@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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactnativedidomi/DidomiModule.kt +11 -215
- package/ios/Didomi.m +0 -56
- package/ios/RNDidomi.swift +18 -183
- package/lib/commonjs/Constants.js +1 -1
- package/lib/commonjs/Constants.js.map +1 -1
- package/lib/commonjs/Didomi.js +2 -6
- package/lib/commonjs/Didomi.js.map +1 -1
- package/lib/commonjs/DidomiTypes.js.map +1 -1
- package/lib/commonjs/index.js +0 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Constants.js +1 -1
- package/lib/module/Constants.js.map +1 -1
- package/lib/module/Didomi.js +2 -6
- package/lib/module/Didomi.js.map +1 -1
- package/lib/module/DidomiTypes.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/Constants.d.ts +1 -1
- package/lib/typescript/Didomi.d.ts +2 -6
- package/lib/typescript/DidomiTypes.d.ts +5 -29
- package/lib/typescript/index.d.ts +1 -1
- package/package.json +1 -1
- package/react-native-didomi.podspec +1 -1
- package/src/Constants.ts +1 -1
- package/src/Didomi.ts +2 -19
- package/src/DidomiTypes.ts +5 -30
- package/src/index.tsx +1 -1
|
@@ -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
|
-
|
|
47
|
+
policyUrl: string;
|
|
52
48
|
purposeIds: string[];
|
|
53
|
-
|
|
54
|
-
specialPurposeIds: string[];
|
|
49
|
+
flexibleIds: string[];
|
|
55
50
|
legIntPurposeIds: string[];
|
|
51
|
+
flexiblePurposeIds: string[];
|
|
56
52
|
specialFeatureIds: string[];
|
|
57
|
-
|
|
58
|
-
|
|
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,
|
|
2
|
+
export { DidomiEventType, Vendor, VendorNamespaces, Purpose, UserStatus, UserStatusPurposes, UserStatusVendors, UserStatusIds, CurrentUserStatus, PurposeStatus, VendorStatus } from './DidomiTypes';
|
package/package.json
CHANGED
package/src/Constants.ts
CHANGED
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 `
|
|
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
|
|
package/src/DidomiTypes.ts
CHANGED
|
@@ -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
|
-
|
|
59
|
+
policyUrl: string;
|
|
64
60
|
purposeIds: string[];
|
|
65
|
-
|
|
66
|
-
specialPurposeIds: string[];
|
|
61
|
+
flexibleIds: string[];
|
|
67
62
|
legIntPurposeIds: string[];
|
|
63
|
+
flexiblePurposeIds: string[];
|
|
68
64
|
specialFeatureIds: string[];
|
|
69
|
-
|
|
70
|
-
|
|
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,
|
|
2
|
+
export { DidomiEventType, Vendor, VendorNamespaces, Purpose, UserStatus, UserStatusPurposes, UserStatusVendors, UserStatusIds, CurrentUserStatus, PurposeStatus, VendorStatus } from './DidomiTypes';
|