@ketch-sdk/ketch-types 1.1.10 → 1.2.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
|
@@ -321,6 +321,7 @@ export interface GetLocationResponse {
|
|
|
321
321
|
* PurposeLegalBasis
|
|
322
322
|
*/
|
|
323
323
|
export interface PurposeLegalBasis {
|
|
324
|
+
allowed?: string;
|
|
324
325
|
legalBasisCode: string;
|
|
325
326
|
}
|
|
326
327
|
/**
|
|
@@ -328,6 +329,7 @@ export interface PurposeLegalBasis {
|
|
|
328
329
|
*/
|
|
329
330
|
export interface PurposeAllowed {
|
|
330
331
|
allowed: string;
|
|
332
|
+
legalBasisCode?: string;
|
|
331
333
|
}
|
|
332
334
|
/**
|
|
333
335
|
* PurposeAllowedLegalBasis
|
|
@@ -351,6 +353,8 @@ export interface GetConsentRequest {
|
|
|
351
353
|
purposes: {
|
|
352
354
|
[key: string]: PurposeLegalBasis;
|
|
353
355
|
};
|
|
356
|
+
vendors?: string[];
|
|
357
|
+
collectedAt?: number;
|
|
354
358
|
}
|
|
355
359
|
/**
|
|
356
360
|
* GetConsentResponse
|
|
@@ -372,25 +376,16 @@ export interface SetConsentRequest {
|
|
|
372
376
|
controllerCode?: string;
|
|
373
377
|
propertyCode: string;
|
|
374
378
|
environmentCode: string;
|
|
379
|
+
jurisdictionCode: string;
|
|
375
380
|
identities: {
|
|
376
381
|
[key: string]: string;
|
|
377
382
|
};
|
|
378
383
|
collectedAt?: number;
|
|
379
|
-
jurisdictionCode: string;
|
|
380
384
|
migrationOption?: MigrationOption;
|
|
381
385
|
purposes: {
|
|
382
386
|
[key: string]: PurposeAllowedLegalBasis;
|
|
383
387
|
};
|
|
384
388
|
vendors?: string[];
|
|
385
|
-
/**
|
|
386
|
-
* identityPriority is a map from the identity space code to the priority that should be used to resolve consent
|
|
387
|
-
* conflict
|
|
388
|
-
* lower values take top priority
|
|
389
|
-
* if an identity space codes is not in the identityPriority map then it is the last priority
|
|
390
|
-
*/
|
|
391
|
-
identityPriority?: {
|
|
392
|
-
[key: string]: number;
|
|
393
|
-
};
|
|
394
389
|
}
|
|
395
390
|
/**
|
|
396
391
|
* DataSubject
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var T={};(()=>{T.d=(E,e)=>{for(var _ in e){if(T.o(e,_)&&!T.o(E,_)){Object.defineProperty(E,_,{enumerable:true,get:e[_]})}}}})();(()=>{T.o=(T,E)=>Object.prototype.hasOwnProperty.call(T,E)})();(()=>{T.r=T=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(T,"__esModule",{value:true})}})();if(typeof T!=="undefined")T.ab=__dirname+"/";var E={};T.r(E);T.d(E,{ALL_TABS:()=>e,
|
|
1
|
+
(()=>{"use strict";var T={};(()=>{T.d=(E,e)=>{for(var _ in e){if(T.o(e,_)&&!T.o(E,_)){Object.defineProperty(E,_,{enumerable:true,get:e[_]})}}}})();(()=>{T.o=(T,E)=>Object.prototype.hasOwnProperty.call(T,E)})();(()=>{T.r=T=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(T,"__esModule",{value:true})}})();if(typeof T!=="undefined")T.ab=__dirname+"/";var E={};T.r(E);T.d(E,{ALL_TABS:()=>e,BannerPosition:()=>L,ConsentExperienceType:()=>n,CookieCategory:()=>N,CookieDuration:()=>r,CookieProvenance:()=>A,ExperienceButtonDestination:()=>I,ExperienceClosedReason:()=>o,ExperienceDefault:()=>R,ExperiencePrimaryButtonAction:()=>t,ExperienceType:()=>_,IdentityFormat:()=>S,IdentityType:()=>O,MigrationOption:()=>i,ModalPosition:()=>c,SwitchTextRenderLogic:()=>a,isTab:()=>isTab});const e=["overviewTab","rightsTab","consentsTab"];function isTab(T){return e.includes(T)}var _;(function(T){T["Consent"]="experiences.consent";T["Preference"]="experiences.preference"})(_||(_={}));var n;(function(T){T["Banner"]="experiences.consent.banner";T["Modal"]="experiences.consent.modal";T["JIT"]="experiences.consent.jit"})(n||(n={}));var o;(function(T){T["SET_CONSENT"]="setConsent";T["INVOKE_RIGHT"]="invokeRight";T["CLOSE"]="close";T["WILL_NOT_SHOW"]="willNotShow"})(o||(o={}));var R;(function(T){T[T["BANNER"]=1]="BANNER";T[T["MODAL"]=2]="MODAL"})(R||(R={}));var I;(function(T){T[T["GOTO_MODAL"]=1]="GOTO_MODAL";T[T["GOTO_PREFERENCE"]=2]="GOTO_PREFERENCE";T[T["REJECT_ALL"]=3]="REJECT_ALL"})(I||(I={}));var t;(function(T){T[T["SAVE_CURRENT_STATE"]=1]="SAVE_CURRENT_STATE";T[T["ACCEPT_ALL"]=2]="ACCEPT_ALL"})(t||(t={}));var i;(function(T){T[T["MIGRATE_DEFAULT"]=0]="MIGRATE_DEFAULT";T[T["MIGRATE_NEVER"]=1]="MIGRATE_NEVER";T[T["MIGRATE_FROM_ALLOW"]=2]="MIGRATE_FROM_ALLOW";T[T["MIGRATE_FROM_DENY"]=3]="MIGRATE_FROM_DENY";T[T["MIGRATE_ALWAYS"]=4]="MIGRATE_ALWAYS"})(i||(i={}));var r;(function(T){T[T["SESSION"]=1]="SESSION";T[T["PERSISTENT"]=2]="PERSISTENT"})(r||(r={}));var A;(function(T){T[T["FIRST_PARTY"]=1]="FIRST_PARTY";T[T["THIRD_PARTY"]=2]="THIRD_PARTY"})(A||(A={}));var N;(function(T){T[T["STRICTLY_NECESSARY"]=1]="STRICTLY_NECESSARY";T[T["FUNCTIONAL"]=2]="FUNCTIONAL";T[T["PERFORMANCE"]=3]="PERFORMANCE";T[T["MARKETING"]=4]="MARKETING"})(N||(N={}));var O;(function(T){T["IDENTITY_TYPE_UNDEFINED"]="";T["IDENTITY_TYPE_DATA_LAYER"]="dataLayer";T["IDENTITY_TYPE_WINDOW"]="window";T["IDENTITY_TYPE_COOKIE"]="cookie";T["IDENTITY_TYPE_MANAGED"]="managedCookie";T["IDENTITY_TYPE_LOCAL_STORAGE"]="localStorage";T["IDENTITY_TYPE_SESSION_STORAGE"]="sessionStorage";T["IDENTITY_TYPE_QUERY_STRING"]="queryString"})(O||(O={}));var S;(function(T){T["IDENTITY_FORMAT_UNDEFINED"]="";T["IDENTITY_FORMAT_STRING"]="string";T["IDENTITY_FORMAT_JSON"]="json";T["IDENTITY_FORMAT_JWT"]="jwt";T["IDENTITY_FORMAT_QUERY"]="query";T["IDENTITY_FORMAT_SEMICOLON"]="semicolon"})(S||(S={}));var a;(function(T){T[T["SWITCH_TEXT_RENDER_ALL"]=1]="SWITCH_TEXT_RENDER_ALL";T[T["SWITCH_TEXT_RENDER_LEGAL_BASIS"]=2]="SWITCH_TEXT_RENDER_LEGAL_BASIS";T[T["SWITCH_TEXT_RENDER_CHANGE"]=3]="SWITCH_TEXT_RENDER_CHANGE";T[T["SWITCH_TEXT_RENDER_NEVER"]=4]="SWITCH_TEXT_RENDER_NEVER"})(a||(a={}));var L;(function(T){T[T["BOTTOM"]=1]="BOTTOM";T[T["TOP"]=2]="TOP";T[T["BOTTOM_LEFT"]=3]="BOTTOM_LEFT";T[T["BOTTOM_RIGHT"]=4]="BOTTOM_RIGHT"})(L||(L={}));var c;(function(T){T[T["CENTER"]=1]="CENTER";T[T["LEFT_FULL_HEIGHT"]=2]="LEFT_FULL_HEIGHT";T[T["RIGHT_FULL_HEIGHT"]=3]="RIGHT_FULL_HEIGHT"})(c||(c={}));module.exports=E})();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@ketch-sdk/ketch-types", "version": "1.
|
|
1
|
+
{"name": "@ketch-sdk/ketch-types", "version": "1.2.0", "description": "Ketch Types", "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": {"all": "npm run lint && npm run format-check && npm run test && npm run build && npm run docs", "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.3.1", "@types/jest": "^29.2.4", "@typescript-eslint/eslint-plugin": "^5.47.0", "@typescript-eslint/parser": "^5.47.0", "@vercel/ncc": "^0.36.0", "eslint": "^8.30.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.7", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.3.1", "jest-environment-jsdom": "^29.3.1", "jest-junit": "^15.0.0", "prettier": "^2.8.1", "ts-jest": "^29.0.3", "typedoc": "^0.23.23", "typescript": "^4.9.4"}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1671862777271" clover="3.2.0">
|
|
3
|
+
<project timestamp="1671862777271" 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-12-
|
|
89
|
+
at 2022-12-24T06:19:37.267Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|