@ketch-sdk/ketch-types 0.4.1 → 1.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/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface Ketch {
|
|
|
53
53
|
experienceClosed(reason: ExperienceClosedReason): Promise<Consent>;
|
|
54
54
|
onHideExperience(callback: Callback): Promise<void>;
|
|
55
55
|
onWillShowExperience(callback: Callback): Promise<void>;
|
|
56
|
-
invokeRight(eventData:
|
|
56
|
+
invokeRight(eventData: InvokeRightEvent): Promise<void>;
|
|
57
57
|
onInvokeRight(callback: Callback): Promise<void>;
|
|
58
58
|
setEnvironment(env: Environment): Promise<Environment>;
|
|
59
59
|
getEnvironment(): Promise<Environment>;
|
|
@@ -111,20 +111,11 @@ export declare type ShowConsentOptions = {
|
|
|
111
111
|
purposes?: string[];
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* InvokeRightEvent
|
|
115
115
|
*/
|
|
116
|
-
export declare type
|
|
117
|
-
addressLine1?: string;
|
|
118
|
-
addressLine2?: string;
|
|
119
|
-
country?: string;
|
|
120
|
-
details?: string;
|
|
121
|
-
firstName: string;
|
|
122
|
-
lastName: string;
|
|
123
|
-
phoneNumber?: string;
|
|
124
|
-
postalCode?: string;
|
|
116
|
+
export declare type InvokeRightEvent = {
|
|
125
117
|
right: string;
|
|
126
|
-
|
|
127
|
-
stateRegion?: string;
|
|
118
|
+
subject: DataSubject;
|
|
128
119
|
};
|
|
129
120
|
/**
|
|
130
121
|
* AppDiv
|
|
@@ -307,7 +298,7 @@ export interface SetConsentRequest {
|
|
|
307
298
|
};
|
|
308
299
|
collectedAt?: number;
|
|
309
300
|
jurisdictionCode: string;
|
|
310
|
-
migrationOption
|
|
301
|
+
migrationOption?: MigrationOption;
|
|
311
302
|
purposes: {
|
|
312
303
|
[key: string]: PurposeAllowedLegalBasis;
|
|
313
304
|
};
|
|
@@ -327,8 +318,8 @@ export interface SetConsentRequest {
|
|
|
327
318
|
*/
|
|
328
319
|
export interface DataSubject {
|
|
329
320
|
email: string;
|
|
330
|
-
|
|
331
|
-
|
|
321
|
+
firstName: string;
|
|
322
|
+
lastName: string;
|
|
332
323
|
country?: string;
|
|
333
324
|
stateRegion?: string;
|
|
334
325
|
description?: string;
|
|
@@ -440,6 +431,7 @@ export interface Environment {
|
|
|
440
431
|
code: string;
|
|
441
432
|
pattern?: string;
|
|
442
433
|
hash?: string;
|
|
434
|
+
domain?: string;
|
|
443
435
|
}
|
|
444
436
|
/**
|
|
445
437
|
* Deployment
|
|
@@ -612,6 +604,7 @@ export interface Modal {
|
|
|
612
604
|
title: string;
|
|
613
605
|
bodyTitle?: string;
|
|
614
606
|
bodyDescription?: string;
|
|
607
|
+
footerDescription?: string;
|
|
615
608
|
buttonText: string;
|
|
616
609
|
/**
|
|
617
610
|
* consentTitle is the heading that goes above the list of purposes this optionally overrides the standard title
|
|
@@ -813,8 +806,12 @@ export declare enum ModalPosition {
|
|
|
813
806
|
* Theme
|
|
814
807
|
*/
|
|
815
808
|
export interface Theme {
|
|
809
|
+
code?: string;
|
|
810
|
+
name?: string;
|
|
811
|
+
description?: string;
|
|
816
812
|
watermark?: boolean;
|
|
817
813
|
buttonBorderRadius: number;
|
|
814
|
+
font?: string;
|
|
818
815
|
bannerBackgroundColor: string;
|
|
819
816
|
bannerContentColor?: string;
|
|
820
817
|
bannerButtonColor: string;
|
|
@@ -878,7 +875,6 @@ export interface Vendor {
|
|
|
878
875
|
policyUrl?: string;
|
|
879
876
|
cookieMaxAgeSeconds?: number;
|
|
880
877
|
usesCookies?: boolean;
|
|
881
|
-
UsesNonCookieAccess?: boolean;
|
|
882
878
|
usesNonCookieAccess?: boolean;
|
|
883
879
|
}
|
|
884
880
|
/**
|
|
@@ -957,8 +953,6 @@ export interface Configuration {
|
|
|
957
953
|
purposes?: Purpose[];
|
|
958
954
|
/**
|
|
959
955
|
* Mapping of purposes to canonical purposes.
|
|
960
|
-
*
|
|
961
|
-
* @deprecated
|
|
962
956
|
*/
|
|
963
957
|
canonicalPurposes?: {
|
|
964
958
|
[key: string]: CanonicalPurpose;
|
|
@@ -979,6 +973,18 @@ export interface Configuration {
|
|
|
979
973
|
* Experience definitions
|
|
980
974
|
*/
|
|
981
975
|
experiences?: Experience;
|
|
976
|
+
/**
|
|
977
|
+
* Vendors (TCF)
|
|
978
|
+
*/
|
|
979
|
+
vendors?: Vendor[];
|
|
980
|
+
/**
|
|
981
|
+
* Data subject types relevant for this configuration
|
|
982
|
+
*/
|
|
983
|
+
dataSubjectTypes?: DataSubjectType[];
|
|
984
|
+
/**
|
|
985
|
+
* Stacks to be displayed in an experience
|
|
986
|
+
*/
|
|
987
|
+
stacks?: Stack[];
|
|
982
988
|
/**
|
|
983
989
|
* Services
|
|
984
990
|
*/
|
|
@@ -1001,18 +1007,6 @@ export interface Configuration {
|
|
|
1001
1007
|
plugins?: {
|
|
1002
1008
|
[key: string]: any;
|
|
1003
1009
|
};
|
|
1004
|
-
/**
|
|
1005
|
-
* Vendors (TCF)
|
|
1006
|
-
*/
|
|
1007
|
-
vendors?: Vendor[];
|
|
1008
|
-
/**
|
|
1009
|
-
* Data subject types relevant for this configuration
|
|
1010
|
-
*/
|
|
1011
|
-
dataSubjectTypes?: DataSubjectType[];
|
|
1012
|
-
/**
|
|
1013
|
-
* Stacks to be displayed in an experience
|
|
1014
|
-
*/
|
|
1015
|
-
stacks?: Stack[];
|
|
1016
1010
|
}
|
|
1017
1011
|
/**
|
|
1018
1012
|
* Pusher interface defines a type that has a push function like an array
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@ketch-sdk/ketch-types", "version": "0.
|
|
1
|
+
{"name": "@ketch-sdk/ketch-types", "version": "1.0.0", "description": "Ketch Types", "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": {"build": "ncc build --minify --license licenses.txt src/index.ts", "lint": "eslint src/**/*.ts", "test": "jest --runInBand --passWithNoTests", "format": "prettier --write \"**/*.{ts,tsx,yml,yaml}\"", "format-check": "prettier --check '**/*.ts'", "docs": "typedoc --githubPages true --excludeInternal src/index.ts"}, "repository": {"type": "git", "url": "git+https://github.com/ketch-sdk/ketch-types.git"}, "author": "Ketch Kloud, Inc. (https://www.ketch.com/)", "license": "MIT", "homepage": "https://github.com/ketch-sdk/ketch-types", "bugs": {"url": "https://github.com/ketch-sdk/ketch-types/issues"}, "devDependencies": {"@jest/globals": "^29.2.2", "@types/jest": "^29.2.0", "@typescript-eslint/eslint-plugin": "^5.42.0", "@typescript-eslint/parser": "^5.42.0", "@vercel/ncc": "^0.34.0", "eslint": "^8.26.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.3", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.2.2", "jest-environment-jsdom": "^29.2.2", "jest-junit": "^14.0.1", "prettier": "^2.7.1", "ts-jest": "^29.0.3", "typedoc": "^0.23.19", "typescript": "^4.8.4"}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1667262137250" clover="3.2.0">
|
|
3
|
+
<project timestamp="1667262137250" name="All files">
|
|
4
4
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
|
|
5
5
|
</project>
|
|
6
6
|
</coverage>
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2022-
|
|
89
|
+
at 2022-11-01T00:22:17.246Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|