securiti-consent-sdk 1.134.0 → 1.135.0-1rc
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/NitroSecuritiConsentSdk.podspec +1 -1
- package/android/build.gradle +1 -1
- package/ios/HybridConsentSDK.swift +1 -2
- package/nitrogen/generated/.gitattributes +1 -1
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Umbrella.hpp +1 -0
- package/package.json +1 -1
- package/src/ConsentSDK.nitro.ts +1 -1
- package/lib/index.d.ts +0 -20
package/android/build.gradle
CHANGED
|
@@ -138,7 +138,7 @@ dependencies {
|
|
|
138
138
|
implementation "com.facebook.react:react-native:+"
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
implementation 'ai.securiti.cmpsdkcore:consent-sdk:1.
|
|
141
|
+
implementation 'ai.securiti.cmpsdkcore:consent-sdk:1.135.0'
|
|
142
142
|
|
|
143
143
|
// Add a dependency on NitroModules
|
|
144
144
|
implementation project(":react-native-nitro-modules")
|
|
@@ -46,9 +46,8 @@ public class HybridConsentSDK : HybridConsentSDKSpec {
|
|
|
46
46
|
testingMode: options.testingMode,
|
|
47
47
|
logLevel: logLevel,
|
|
48
48
|
consentsCheckInterval: Int(options.consentsCheckInterval),
|
|
49
|
-
subjectId: options.subjectId,
|
|
50
49
|
languageCode: options.languageCode,
|
|
51
|
-
locationCode: options.locationCode
|
|
50
|
+
locationCode: options.locationCode
|
|
52
51
|
))
|
|
53
52
|
|
|
54
53
|
// Register for ready status
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
** linguist-generated=true
|
|
@@ -60,6 +60,7 @@ namespace margelo::nitro::securiticonsentsdk { struct SettingsPrompt; }
|
|
|
60
60
|
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
61
61
|
#include <NitroModules/AnyMapHolder.hpp>
|
|
62
62
|
#include <NitroModules/RuntimeError.hpp>
|
|
63
|
+
#include <NitroModules/DateToChronoDate.hpp>
|
|
63
64
|
|
|
64
65
|
// Forward declarations of Swift defined types
|
|
65
66
|
// Forward declaration of `HybridConsentSDKSpec_cxx` to properly resolve imports.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "securiti-consent-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.135.0-1rc",
|
|
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",
|
package/src/ConsentSDK.nitro.ts
CHANGED
package/lib/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { CmpSDKLoggerLevel, CmpSDKOptions, ConsentStatus, Purpose, AppPermission, SDK, BannerConfig, SettingsPrompt, PostConsentsRequest, ComplianceType, BannerPosition, ButtonShape, CustomColors, PurposeConsent, PermissionConsent, Mode, PurposeObject, PermissionObject } from './ConsentSDK.nitro';
|
|
2
|
-
export type { CmpSDKLoggerLevel, CmpSDKOptions, ConsentStatus, Purpose, AppPermission, SDK, BannerConfig, SettingsPrompt, PostConsentsRequest, ComplianceType, BannerPosition, ButtonShape, CustomColors, PurposeConsent, PermissionConsent, Mode, PurposeObject, PermissionObject, };
|
|
3
|
-
export { LoggerLevel, ModeValues, ConsentStatusValues, ComplianceTypeValues, BannerPositionValues, ButtonShapeValues, } from './ConsentSDK.nitro';
|
|
4
|
-
export declare function initialize(sdkOptions: CmpSDKOptions): void;
|
|
5
|
-
export declare function presentConsentBanner(): void;
|
|
6
|
-
export declare function presentPreferenceCenter(): void;
|
|
7
|
-
export declare function isSdkReady(): boolean;
|
|
8
|
-
export declare function isReady(callback: (isReady: boolean) => void): void;
|
|
9
|
-
export declare function resetConsents(): void;
|
|
10
|
-
export declare function getConsentByPurposeId(purposeId: number): Promise<string>;
|
|
11
|
-
export declare function getConsentByPermissionId(permissionId: string): Promise<string>;
|
|
12
|
-
export declare function getPermissions(): Promise<Array<AppPermission>>;
|
|
13
|
-
export declare function getPurposes(): Promise<Array<Purpose>>;
|
|
14
|
-
export declare function getSdksInPurpose(purposeId: number): Promise<Array<SDK>>;
|
|
15
|
-
export declare function setPurposeConsent(purpose: Purpose, consent: string): boolean;
|
|
16
|
-
export declare function setPermissionConsent(permission: AppPermission, consent: string): boolean;
|
|
17
|
-
export declare function getBannerConfig(): Promise<BannerConfig | null>;
|
|
18
|
-
export declare function options(): CmpSDKOptions | null;
|
|
19
|
-
export declare function getSettingsPrompt(): Promise<SettingsPrompt | null>;
|
|
20
|
-
export declare function uploadConsents(request: PostConsentsRequest): Promise<boolean>;
|