@didomi/react-native 1.26.0 → 2.0.0

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.
@@ -42,22 +42,16 @@ export declare enum DidomiEventType {
42
42
  }
43
43
  export interface Vendor {
44
44
  id: string;
45
- iabId: string;
46
45
  name: string;
47
- policyUrl: string;
48
- urls: VendorUrls[];
49
- namespace: string;
50
46
  namespaces: VendorNamespaces;
51
- iabVendor: boolean;
47
+ policyUrl: string;
52
48
  purposeIds: string[];
53
- flexiblePurposeIds: string[];
54
- specialPurposeIds: string[];
49
+ flexibleIds: string[];
55
50
  legIntPurposeIds: string[];
51
+ flexiblePurposeIds: string[];
56
52
  specialFeatureIds: string[];
57
- dataDeclaration: string[];
58
- dataRetention: VendorDataRetention;
59
- cookieMaxAgeSeconds: number;
60
- usesNonCookieAccess: boolean;
53
+ specialPurposeIds: string[];
54
+ urls: VendorUrls[];
61
55
  }
62
56
  export interface VendorNamespaces {
63
57
  iab2: string;
@@ -74,26 +68,8 @@ export interface VendorDataRetention {
74
68
  }
75
69
  export interface Purpose {
76
70
  id: string;
77
- iabId: string;
78
71
  name: string;
79
72
  description: string;
80
- descriptionLegal: string;
81
- illustrations: string[];
82
- custom: boolean;
83
- essential: boolean;
84
- specialFeature: boolean;
85
- legitimateInterest: boolean;
86
- consent: boolean;
87
- category: PurposeCategory;
88
- }
89
- export interface PurposeCategory {
90
- id: string;
91
- purposeId: string;
92
- icon: string;
93
- type: string;
94
- name: Map<string>;
95
- description: Map<string>;
96
- children: PurposeCategory[];
97
73
  }
98
74
  export interface Map<T> {
99
75
  [index: string]: T;
@@ -1,2 +1,2 @@
1
1
  export { Didomi } from './Didomi';
2
- export { DidomiEventType, Vendor, VendorNamespaces, Purpose, PurposeCategory, UserStatus, UserStatusPurposes, UserStatusVendors, UserStatusIds, CurrentUserStatus, PurposeStatus, VendorStatus } from './DidomiTypes';
2
+ export { DidomiEventType, Vendor, VendorNamespaces, Purpose, UserStatus, UserStatusPurposes, UserStatusVendors, UserStatusIds, CurrentUserStatus, PurposeStatus, VendorStatus } from './DidomiTypes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@didomi/react-native",
3
- "version": "1.26.0",
3
+ "version": "2.0.0",
4
4
  "description": "Didomi React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Didomi-XCFramework", "1.98.0"
19
+ s.dependency "Didomi-XCFramework", "2.0.1"
20
20
  end
package/src/Constants.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  // User agent name
2
2
  export const DIDOMI_USER_AGENT_NAME = "Didomi React-Native SDK"
3
3
  // User agent version
4
- export const DIDOMI_VERSION = "1.26.0"
4
+ export const DIDOMI_VERSION = "2.0.0"
package/src/Didomi.ts CHANGED
@@ -415,25 +415,8 @@ export const Didomi = {
415
415
  * Set user information without authentication
416
416
  *
417
417
  * @param id Organization user ID
418
- * @param algorithm Deprecated. To set user with authentication, use setUserWithHashAuth or setUserWithEncryptionAuth.
419
- * @param secretId Deprecated. To set user with authentication, use setUserWithHashAuth or setUserWithEncryptionAuth.
420
- * @param salt Deprecated. To set user with authentication, use setUserWithHashAuth or setUserWithEncryptionAuth.
421
- * @param digest Deprecated. To set user with authentication, use setUserWithHashAuth or setUserWithEncryptionAuth.
422
418
  */
423
- setUser: (
424
- id: string,
425
- algorithm?: string,
426
- secretId?: string,
427
- salt?: string,
428
- digest?: string
429
- ): Promise<void> =>
430
- RNDidomi.setUser(
431
- id,
432
- algorithm,
433
- secretId,
434
- salt,
435
- digest
436
- ),
419
+ setUser: (id: string): Promise<void> => RNDidomi.setUser(id),
437
420
 
438
421
  /**
439
422
  * Set user information without authentication and check for missing consent
@@ -593,7 +576,7 @@ export const Didomi = {
593
576
 
594
577
  /**
595
578
  * Show the preferences screen when/if the SDK is ready. By default the purposes list will be displayed.
596
- * @param view: It can be `purposes` or `vendors`
579
+ * @param view: It can be `purposes`, `vendors` or `senstive-personal-information`.
597
580
  */
598
581
  showPreferences: (view?: string): Promise<void> => RNDidomi.showPreferences(view),
599
582
 
@@ -54,22 +54,16 @@ export enum DidomiEventType {
54
54
 
55
55
  export interface Vendor {
56
56
  id: string;
57
- iabId: string
58
57
  name: string;
59
- policyUrl: string;
60
- urls: VendorUrls[];
61
- namespace: string;
62
58
  namespaces: VendorNamespaces;
63
- iabVendor: boolean;
59
+ policyUrl: string;
64
60
  purposeIds: string[];
65
- flexiblePurposeIds: string[];
66
- specialPurposeIds: string[];
61
+ flexibleIds: string[];
67
62
  legIntPurposeIds: string[];
63
+ flexiblePurposeIds: string[];
68
64
  specialFeatureIds: string[];
69
- dataDeclaration: string[];
70
- dataRetention: VendorDataRetention;
71
- cookieMaxAgeSeconds: number;
72
- usesNonCookieAccess: boolean;
65
+ specialPurposeIds: string[];
66
+ urls: VendorUrls[];
73
67
  }
74
68
 
75
69
  export interface VendorNamespaces {
@@ -90,27 +84,8 @@ export interface VendorDataRetention {
90
84
 
91
85
  export interface Purpose {
92
86
  id: string;
93
- iabId: string;
94
87
  name: string;
95
88
  description: string;
96
- descriptionLegal: string;
97
- illustrations: string[];
98
- custom: boolean;
99
- essential: boolean;
100
- specialFeature: boolean;
101
- legitimateInterest: boolean;
102
- consent: boolean;
103
- category: PurposeCategory;
104
- }
105
-
106
- export interface PurposeCategory {
107
- id: string;
108
- purposeId: string;
109
- icon: string;
110
- type: string;
111
- name: Map<string>;
112
- description: Map<string>;
113
- children: PurposeCategory[];
114
89
  }
115
90
 
116
91
  export interface Map<T> {
package/src/index.tsx CHANGED
@@ -1,2 +1,2 @@
1
1
  export { Didomi } from './Didomi';
2
- export { DidomiEventType, Vendor, VendorNamespaces, Purpose, PurposeCategory, UserStatus, UserStatusPurposes, UserStatusVendors, UserStatusIds, CurrentUserStatus, PurposeStatus, VendorStatus } from './DidomiTypes';
2
+ export { DidomiEventType, Vendor, VendorNamespaces, Purpose, UserStatus, UserStatusPurposes, UserStatusVendors, UserStatusIds, CurrentUserStatus, PurposeStatus, VendorStatus } from './DidomiTypes';