securiti-consent-sdk 1.132.1 → 1.132.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1401 -32
- package/ios/HybridConsentSDK.swift +33 -7
- package/package.json +1 -1
|
@@ -591,16 +591,34 @@ public class HybridConsentSDK : HybridConsentSDKSpec {
|
|
|
591
591
|
// Create JSON representation of purpose
|
|
592
592
|
let encoder = JSONEncoder()
|
|
593
593
|
encoder.keyEncodingStrategy = .convertToSnakeCase
|
|
594
|
-
|
|
594
|
+
|
|
595
|
+
var purposeNameMap = [String: String]()
|
|
596
|
+
|
|
597
|
+
purposeNameMap["_"] = purpose.purposeName
|
|
598
|
+
|
|
599
|
+
var purposeDescriptionMap = [String: String]()
|
|
600
|
+
|
|
601
|
+
purposeDescriptionMap["_"] = purpose.purposeDescription
|
|
602
|
+
|
|
603
|
+
var optOutTextMap = [String: String]()
|
|
604
|
+
|
|
605
|
+
optOutTextMap["_"] = purpose.optOutText
|
|
606
|
+
|
|
607
|
+
var attDescriptionMap = [String: String]()
|
|
608
|
+
|
|
609
|
+
attDescriptionMap["_"] = purpose.attDescription
|
|
610
|
+
|
|
595
611
|
// Purpose data to encode
|
|
596
612
|
let purposeData: [String: Any] = [
|
|
597
613
|
"purpose_id": purpose.purposeId as Any,
|
|
598
|
-
"purpose_name":
|
|
599
|
-
"purpose_description":
|
|
600
|
-
"sdks": [],
|
|
614
|
+
"purpose_name": purposeNameMap as Any,
|
|
615
|
+
"purpose_description": purposeDescriptionMap as Any,
|
|
616
|
+
"sdks": [],
|
|
601
617
|
"disable_opt_out": purpose.disableOptOut as Any,
|
|
602
|
-
"opt_out_text":
|
|
603
|
-
"hide_details": purpose.hideDetails as Any
|
|
618
|
+
"opt_out_text": optOutTextMap as Any,
|
|
619
|
+
"hide_details": purpose.hideDetails as Any,
|
|
620
|
+
"is_att_mapped": purpose.isATTMapped as Any,
|
|
621
|
+
"att_description": attDescriptionMap as Any
|
|
604
622
|
]
|
|
605
623
|
|
|
606
624
|
// Convert to JSON data
|
|
@@ -614,11 +632,19 @@ public class HybridConsentSDK : HybridConsentSDKSpec {
|
|
|
614
632
|
|
|
615
633
|
private func convertToAppPermission(_ permission: AppPermission) -> ConsentUI.AppPermission {
|
|
616
634
|
// Create JSON representation of permission
|
|
635
|
+
var descriptionMap: [String: String] = [:]
|
|
636
|
+
|
|
637
|
+
descriptionMap["_"] = permission.description
|
|
638
|
+
|
|
639
|
+
var nameMapObj: [String: String] = [:]
|
|
640
|
+
|
|
641
|
+
nameMapObj["_"] = permission.nameMap
|
|
642
|
+
|
|
617
643
|
let permissionData: [String: Any] = [
|
|
618
644
|
"id": permission.id as Any,
|
|
619
645
|
"name": permission.name as Any,
|
|
620
646
|
"permission_id": permission.permissionId as Any,
|
|
621
|
-
"description":
|
|
647
|
+
"description": descriptionMap as Any,
|
|
622
648
|
"group": permission.group as Any,
|
|
623
649
|
"group_id": permission.groupId as Any,
|
|
624
650
|
"name_map": permission.nameMap as Any,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "securiti-consent-sdk",
|
|
3
|
-
"version": "1.132.
|
|
3
|
+
"version": "1.132.2",
|
|
4
4
|
"description": "A React Native Library for managing user consent preferences and compliance with privacy regulations. Integrates with Securiti's Consent Management Platform.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"module": "lib/index",
|