@ketch-sdk/ketch-types 0.4.1 → 0.4.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/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: InvokeRightsEvent): Promise<void>;
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
- * InvokeRightsEvent
114
+ * InvokeRightEvent
115
115
  */
116
- export declare type InvokeRightsEvent = {
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
- rightsEmail: string;
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: 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
- first: string;
331
- last: string;
321
+ firstName: string;
322
+ lastName: string;
332
323
  country?: string;
333
324
  stateRegion?: string;
334
325
  description?: string;
@@ -612,6 +603,7 @@ export interface Modal {
612
603
  title: string;
613
604
  bodyTitle?: string;
614
605
  bodyDescription?: string;
606
+ footerDescription?: string;
615
607
  buttonText: string;
616
608
  /**
617
609
  * consentTitle is the heading that goes above the list of purposes this optionally overrides the standard title
@@ -813,8 +805,12 @@ export declare enum ModalPosition {
813
805
  * Theme
814
806
  */
815
807
  export interface Theme {
808
+ code?: string;
809
+ name?: string;
810
+ description?: string;
816
811
  watermark?: boolean;
817
812
  buttonBorderRadius: number;
813
+ font?: string;
818
814
  bannerBackgroundColor: string;
819
815
  bannerContentColor?: string;
820
816
  bannerButtonColor: string;
@@ -878,7 +874,6 @@ export interface Vendor {
878
874
  policyUrl?: string;
879
875
  cookieMaxAgeSeconds?: number;
880
876
  usesCookies?: boolean;
881
- UsesNonCookieAccess?: boolean;
882
877
  usesNonCookieAccess?: boolean;
883
878
  }
884
879
  /**
@@ -957,8 +952,6 @@ export interface Configuration {
957
952
  purposes?: Purpose[];
958
953
  /**
959
954
  * Mapping of purposes to canonical purposes.
960
- *
961
- * @deprecated
962
955
  */
963
956
  canonicalPurposes?: {
964
957
  [key: string]: CanonicalPurpose;
@@ -979,6 +972,18 @@ export interface Configuration {
979
972
  * Experience definitions
980
973
  */
981
974
  experiences?: Experience;
975
+ /**
976
+ * Vendors (TCF)
977
+ */
978
+ vendors?: Vendor[];
979
+ /**
980
+ * Data subject types relevant for this configuration
981
+ */
982
+ dataSubjectTypes?: DataSubjectType[];
983
+ /**
984
+ * Stacks to be displayed in an experience
985
+ */
986
+ stacks?: Stack[];
982
987
  /**
983
988
  * Services
984
989
  */
@@ -1001,18 +1006,6 @@ export interface Configuration {
1001
1006
  plugins?: {
1002
1007
  [key: string]: any;
1003
1008
  };
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
1009
  }
1017
1010
  /**
1018
1011
  * 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.4.1", "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
+ {"name": "@ketch-sdk/ketch-types", "version": "0.4.2", "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="1667246176709" clover="3.2.0">
3
- <project timestamp="1667246176709" name="All files">
2
+ <coverage generated="1667261557722" clover="3.2.0">
3
+ <project timestamp="1667261557722" 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-10-31T19:56:16.706Z
89
+ at 2022-11-01T00:12:37.718Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -1,3 +1,3 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites name="jest tests" tests="0" failures="0" errors="0" time="0.002">
2
+ <testsuites name="jest tests" tests="0" failures="0" errors="0" time="0.003">
3
3
  </testsuites>