@ketch-sdk/ketch-types 1.5.1 → 1.7.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
@@ -1,7 +1,3 @@
1
- /**
2
- * Callback
3
- */
4
- export declare type Callback = (arg0: any) => void;
5
1
  /**
6
2
  * Status
7
3
  */
@@ -21,18 +17,14 @@ export type Consent = {
21
17
  export type Identities = {
22
18
  [key: string]: string;
23
19
  };
24
- /**
25
- * All Tabs
26
- */
27
- export declare const ALL_TABS: readonly ["overviewTab", "rightsTab", "consentsTab"];
28
- /**
29
- * TabTuple
30
- */
31
- export type TabTuple = typeof ALL_TABS;
32
20
  /**
33
21
  * Tab
34
22
  */
35
- export type Tab = TabTuple[number];
23
+ export declare enum Tab {
24
+ Overview = "overviewTab",
25
+ Rights = "rightsTab",
26
+ Consents = "consentsTab"
27
+ }
36
28
  /**
37
29
  * Determines if the Given value is a Tab
38
30
  *
@@ -41,23 +33,114 @@ export type Tab = TabTuple[number];
41
33
  export declare function isTab(value: string): value is Tab;
42
34
  /**
43
35
  * Plugin class
36
+ *
37
+ * @deprecated New plugins should be functional plugins.
38
+ * @see PluginFunction
44
39
  */
45
40
  export interface PluginClass {
41
+ /**
42
+ * Initialize the plugin
43
+ *
44
+ * @param host The Ketch instance
45
+ * @param config The configuration
46
+ */
46
47
  init?: (host: Ketch, config: Configuration) => void;
48
+ /**
49
+ * Equivalent of on('environment')
50
+ *
51
+ * @param host The Ketch instance
52
+ * @param config The configuration
53
+ * @param env The environment
54
+ */
47
55
  environmentLoaded?: (host: Ketch, config: Configuration, env: Environment) => void;
56
+ /**
57
+ * Equivalent of on('geoip')
58
+ *
59
+ * @param host The Ketch instance
60
+ * @param config The configuration
61
+ * @param ipInfo The IP information
62
+ */
48
63
  geoIPLoaded?: (host: Ketch, config: Configuration, ipInfo: IPInfo) => void;
64
+ /**
65
+ * Equivalent of on('identities')
66
+ *
67
+ * @param host The Ketch instance
68
+ * @param config The configuration
69
+ * @param identities The identities
70
+ */
49
71
  identitiesLoaded?: (host: Ketch, config: Configuration, identities: Identities) => void;
72
+ /**
73
+ * Equivalent of on('jurisdiction')
74
+ *
75
+ * @param host The Ketch instance
76
+ * @param config The configuration
77
+ * @param jurisdiction The jurisdiction
78
+ */
50
79
  jurisdictionLoaded?: (host: Ketch, config: Configuration, policyScope: string) => void;
80
+ /**
81
+ * Equivalent of on('regionInfo')
82
+ *
83
+ * @param host The Ketch instance
84
+ * @param config The configuration
85
+ * @param regionInfo The region info
86
+ */
51
87
  regionInfoLoaded?: (host: Ketch, config: Configuration, region: string) => void;
88
+ /**
89
+ * Equivalent of on('consent')
90
+ *
91
+ * @param host The Ketch instance
92
+ * @param config The configuration
93
+ * @param consent The consent
94
+ */
52
95
  consentChanged?: (host: Ketch, config: Configuration, consent: Consent) => void;
96
+ /**
97
+ * Equivalent of on('rightInvoked')
98
+ *
99
+ * @param host The Ketch instance
100
+ * @param config The configuration
101
+ * @param request The right invocation request
102
+ */
53
103
  rightInvoked?: (host: Ketch, config: Configuration, request: InvokeRightRequest) => void;
104
+ /**
105
+ * Equivalent of on('showConsentExperience')
106
+ *
107
+ * @param host The Ketch instance
108
+ * @param config The configuration
109
+ * @param consents The current consents
110
+ * @param options The options for the experience
111
+ */
54
112
  showConsentExperience?: (host: Ketch, config: Configuration, consents: Consent, options?: ShowConsentOptions) => void;
113
+ /**
114
+ * Equivalent of on('showPreferenceExperience')
115
+ *
116
+ * @param host The Ketch instance
117
+ * @param config The configuration
118
+ * @param consents The current consents
119
+ * @param options The options for the experience
120
+ */
55
121
  showPreferenceExperience?: (host: Ketch, config: Configuration, consents: Consent, options?: ShowPreferenceOptions) => void;
122
+ /**
123
+ * Equivalent of on('willShowExperience')
124
+ *
125
+ * @param host The Ketch instance
126
+ * @param config The configuration
127
+ * @param type The type of the experience
128
+ */
56
129
  willShowExperience?: (host: Ketch, config: Configuration, type: string) => void;
130
+ /**
131
+ * Equivalent of on('experienceHidden')
132
+ *
133
+ * @param host The Ketch instance
134
+ * @param config The configuration
135
+ * @param reason The reason the experience was hidden
136
+ */
57
137
  experienceHidden?: (host: Ketch, config: Configuration, reason: string) => void;
58
138
  }
59
139
  /**
60
140
  * Plugin factory function signature
141
+ *
142
+ * @param host The Ketch instance
143
+ * @param config The plugin configuration
61
144
  */
62
145
  export type PluginFunction = (host: Ketch, config?: any) => Promise<void>;
63
146
  /**
@@ -75,62 +158,122 @@ export interface StorageProvider {
75
158
  /**
76
159
  * Get an item with the given key
77
160
  *
78
- * @param key
161
+ * @param key The item key
79
162
  */
80
163
  getItem(key: string): Promise<string | null>;
81
164
  /**
82
165
  * Sets the value for the given key
83
166
  *
84
- * @param key
85
- * @param value
167
+ * @param key The item key
168
+ * @param value The item value
86
169
  */
87
170
  setItem(key: string, value: string): Promise<void>;
88
171
  /**
89
- * Removes the given key
172
+ * Removes the given item
90
173
  *
91
- * @param key
174
+ * @param key The item key
92
175
  */
93
176
  removeItem(key: string): Promise<void>;
94
177
  }
178
+ /**
179
+ * Storage policy setting
180
+ */
181
+ export declare enum StorageOriginPolicy {
182
+ /**
183
+ * Storage saved cross-origin.
184
+ */
185
+ CrossOrigin = "cross-origin",
186
+ /**
187
+ * Storage is same-origin only.
188
+ */
189
+ SameOrigin = "same-origin,"
190
+ }
95
191
  export interface Ketch {
96
192
  /**
97
193
  * Register a plugin with the given configuration
98
194
  *
99
- * @param plugin
100
- * @param config
195
+ * @param plugin The plugin
196
+ * @param config The plugin configuration
101
197
  */
102
198
  registerPlugin(plugin: Plugin, config?: any): Promise<void>;
103
199
  /**
104
200
  * Register an identity provider for the given identity
105
201
  *
106
- * @param name
107
- * @param provider
202
+ * @param name The name of the identity
203
+ * @param provider The provider of the identity
108
204
  */
109
205
  registerIdentityProvider(name: string, provider: IdentityProvider): Promise<void>;
110
206
  /**
111
207
  * Register a storage provider
112
208
  *
113
- * @param provider
209
+ * @param policy The storage origin policy
210
+ * @param provider The provider implementation
211
+ */
212
+ registerStorageProvider(policy: StorageOriginPolicy, provider: StorageProvider): Promise<void>;
213
+ /**
214
+ * Returns the Consent
114
215
  */
115
- registerStorageProvider(provider: StorageProvider): Promise<void>;
116
- hasConsent(): boolean;
117
216
  getConsent(): Promise<Consent>;
118
- setConsent(c: Consent): Promise<Consent>;
119
- setShowConsentExperience(): Promise<void>;
120
- showConsentExperience(): Promise<Consent>;
121
- showPreferenceExperience(params: ShowPreferenceOptions): Promise<Consent>;
122
- experienceClosed(reason: ExperienceClosedReason): Promise<Consent>;
217
+ /**
218
+ * Sets the consent
219
+ *
220
+ * @param consent
221
+ */
222
+ setConsent(consent: Consent): Promise<void>;
223
+ /**
224
+ * Show the consent experience
225
+ */
226
+ showConsent(): Promise<void>;
227
+ /**
228
+ * Show the preference experience
229
+ *
230
+ * @param params The parameters for the experience
231
+ */
232
+ showPreferences(params?: ShowPreferenceOptions): Promise<void>;
233
+ /**
234
+ * Notify that the experience was closed
235
+ *
236
+ * @param reason Reason the experience was closed
237
+ * @deprecated This method will be moved to an experience interface.
238
+ */
239
+ experienceClosed(reason: ExperienceClosedReason): Promise<void>;
240
+ /**
241
+ * Invokes a right
242
+ *
243
+ * @param eventData The definition of the right
244
+ */
123
245
  invokeRight(eventData: InvokeRightEvent): Promise<void>;
246
+ /**
247
+ * Get the Configuration.
248
+ */
124
249
  getConfig(): Promise<Configuration>;
250
+ /**
251
+ * Get the Environment
252
+ */
125
253
  getEnvironment(): Promise<Environment>;
254
+ /**
255
+ * Get the IP information
256
+ */
126
257
  getGeoIP(): Promise<IPInfo>;
258
+ /**
259
+ * Get the identities
260
+ */
127
261
  getIdentities(): Promise<Identities>;
262
+ /**
263
+ * Get the jurisdiction
264
+ */
128
265
  getJurisdiction(): Promise<string>;
266
+ /**
267
+ * Get the region information
268
+ */
129
269
  getRegionInfo(): Promise<string>;
130
270
  /**
131
271
  * Alias for `emitter.on(eventName, listener)`.
272
+ *
273
+ * @param eventName The name of the event.
274
+ * @param listener The callback function
132
275
  */
133
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
276
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): Promise<void>;
134
277
  /**
135
278
  * Adds the `listener` function to the end of the listeners array for the
136
279
  * event named `eventName`. No checks are made to see if the `listener` has
@@ -147,7 +290,7 @@ export interface Ketch {
147
290
  * @param eventName The name of the event.
148
291
  * @param listener The callback function
149
292
  */
150
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
293
+ on(eventName: string | symbol, listener: (...args: any[]) => void): Promise<void>;
151
294
  /**
152
295
  * Adds a **one-time**`listener` function for the event named `eventName`. The
153
296
  * next time `eventName` is triggered, this listener is removed and then invoked.
@@ -159,7 +302,7 @@ export interface Ketch {
159
302
  * @param eventName The name of the event.
160
303
  * @param listener The callback function
161
304
  */
162
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
305
+ once(eventName: string | symbol, listener: (...args: any[]) => void): Promise<void>;
163
306
  /**
164
307
  * Removes the specified `listener` from the listener array for the event
165
308
  * named `eventName`.
@@ -183,13 +326,19 @@ export interface Ketch {
183
326
  *
184
327
  * When a single function has been added as a handler multiple times for a single
185
328
  * event (as in the example below), `removeListener()` will remove the most
186
- * recently added instance. In the example the `once('ping')`listener is removed:
329
+ * recently added instance. In the example the `once('ping')` listener is removed
330
+ *
331
+ * @param eventName The name of the event.
332
+ * @param listener The callback function
187
333
  */
188
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
334
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): Promise<void>;
189
335
  /**
190
336
  * Alias for `emitter.removeListener()`.
337
+ *
338
+ * @param eventName The name of the event.
339
+ * @param listener The callback function
191
340
  */
192
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
341
+ off(eventName: string | symbol, listener: (...args: any[]) => void): Promise<void>;
193
342
  /**
194
343
  * Removes all listeners, or those of the specified `eventName`.
195
344
  *
@@ -197,37 +346,28 @@ export interface Ketch {
197
346
  * particularly when the `EventEmitter` instance was created by some other
198
347
  * component or module (e.g. sockets or file streams).
199
348
  *
200
- * Returns a reference to the `EventEmitter`, so that calls can be chained.
201
- */
202
- removeAllListeners(event?: string | symbol): this;
203
- /**
204
- * By default `EventEmitter`s will print a warning if more than `10` listeners are
205
- * added for a particular event. This is a useful default that helps finding
206
- * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be
207
- * modified for this specific `EventEmitter` instance. The value can be set to
208
- * `Infinity` (or `0`) to indicate an unlimited number of listeners.
209
- *
210
- * Returns a reference to the `EventEmitter`, so that calls can be chained.
211
- */
212
- setMaxListeners(n: number): this;
213
- /**
214
- * Returns the current max listener value for the `EventEmitter` which is either
215
- * set by `emitter.setMaxListeners(n)` or defaults to {@link defaultMaxListeners}.
349
+ * @param eventName The name of the event.
216
350
  */
217
- getMaxListeners(): number;
351
+ removeAllListeners(eventName?: string | symbol): Promise<void>;
218
352
  /**
219
353
  * Synchronously calls each of the listeners registered for the event named
220
354
  * `eventName`, in the order they were registered, passing the supplied arguments
221
355
  * to each.
222
356
  *
223
357
  * @returns `true` if the event had listeners, `false` otherwise.
358
+ *
359
+ * @param eventName The name of the event.
360
+ * @param args The arguments for the event.
224
361
  */
225
- emit(eventName: string | symbol, ...args: any[]): boolean;
362
+ emit(eventName: string | symbol, ...args: any[]): Promise<void>;
226
363
  }
227
364
  /**
228
365
  * ShowPreferenceOptions
229
366
  */
230
367
  export type ShowPreferenceOptions = {
368
+ /**
369
+ * The tab to display.
370
+ */
231
371
  tab?: Tab;
232
372
  /**
233
373
  * dataSubjectTypeCodes is the list of data subjects to display. If undefined,
@@ -284,19 +424,13 @@ export type InvokeRightEvent = {
284
424
  subject: DataSubject;
285
425
  recaptchaToken?: string;
286
426
  };
287
- /**
288
- * AppDiv
289
- */
290
- export interface AppDiv {
291
- id: string;
292
- zIndex: string;
293
- }
294
427
  /**
295
428
  * ExperienceClosedReason describes the reason the experience was closed.
296
429
  *
297
430
  * setConsent = consent was accepted/set
298
431
  * invokeRight = the right was invoked
299
432
  * close = the close/exit button was clicked
433
+ * willNotShow = the experience was skipped
300
434
  *
301
435
  * @enum
302
436
  */
@@ -462,6 +596,9 @@ export interface GetConsentRequest {
462
596
  purposes: {
463
597
  [key: string]: PurposeLegalBasis;
464
598
  };
599
+ /**
600
+ * list of vendor ids for which the user has opted out
601
+ */
465
602
  vendors?: string[];
466
603
  collectedAt?: number;
467
604
  }
@@ -502,6 +639,9 @@ export interface SetConsentRequest {
502
639
  purposes: {
503
640
  [key: string]: PurposeAllowedLegalBasis;
504
641
  };
642
+ /**
643
+ * list of vendor ids for which the user has opted out
644
+ */
505
645
  vendors?: string[];
506
646
  }
507
647
  /**
@@ -1246,8 +1386,16 @@ export interface Loaded {
1246
1386
  declare global {
1247
1387
  interface Window {
1248
1388
  /**
1249
- * Semaphore is the main entrypoint.
1389
+ * Semaphore is the action queue (should not be accessed directly except by legacy code
1390
+ * which should be migrated to the `ketch` function).
1250
1391
  */
1251
1392
  semaphore: Pusher & Loaded;
1393
+ /**
1394
+ * Ketch is the main entrypoint to the JS API.
1395
+ *
1396
+ * @param action The action to invoke
1397
+ * @param args The arguments to the action
1398
+ */
1399
+ ketch(action: string, ...args: any[]): void;
1252
1400
  }
1253
1401
  }
package/dist/index.js CHANGED
@@ -1,19 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModalPosition = exports.BannerPosition = exports.SwitchTextRenderLogic = exports.IdentityFormat = exports.IdentityType = exports.CookieCategory = exports.CookieProvenance = exports.CookieDuration = exports.MigrationOption = exports.ExperiencePrimaryButtonAction = exports.ExperienceButtonDestination = exports.ExperienceDefault = exports.ExperienceClosedReason = exports.ConsentExperienceType = exports.ExperienceType = exports.isTab = exports.ALL_TABS = void 0;
3
+ exports.ModalPosition = exports.BannerPosition = exports.SwitchTextRenderLogic = exports.IdentityFormat = exports.IdentityType = exports.CookieCategory = exports.CookieProvenance = exports.CookieDuration = exports.MigrationOption = exports.ExperiencePrimaryButtonAction = exports.ExperienceButtonDestination = exports.ExperienceDefault = exports.ExperienceClosedReason = exports.ConsentExperienceType = exports.ExperienceType = exports.StorageOriginPolicy = exports.isTab = exports.Tab = void 0;
4
4
  /**
5
- * All Tabs
5
+ * Tab
6
6
  */
7
- exports.ALL_TABS = ['overviewTab', 'rightsTab', 'consentsTab'];
7
+ var Tab;
8
+ (function (Tab) {
9
+ Tab["Overview"] = "overviewTab";
10
+ Tab["Rights"] = "rightsTab";
11
+ Tab["Consents"] = "consentsTab";
12
+ })(Tab = exports.Tab || (exports.Tab = {}));
8
13
  /**
9
14
  * Determines if the Given value is a Tab
10
15
  *
11
16
  * @param value
12
17
  */
13
18
  function isTab(value) {
14
- return exports.ALL_TABS.includes(value);
19
+ return value in Tab;
15
20
  }
16
21
  exports.isTab = isTab;
22
+ /**
23
+ * Storage policy setting
24
+ */
25
+ var StorageOriginPolicy;
26
+ (function (StorageOriginPolicy) {
27
+ /**
28
+ * Storage saved cross-origin.
29
+ */
30
+ StorageOriginPolicy["CrossOrigin"] = "cross-origin";
31
+ /**
32
+ * Storage is same-origin only.
33
+ */
34
+ StorageOriginPolicy["SameOrigin"] = "same-origin,";
35
+ })(StorageOriginPolicy = exports.StorageOriginPolicy || (exports.StorageOriginPolicy = {}));
17
36
  /**
18
37
  * ExperienceType is the type of experience that will be shown
19
38
  *
@@ -41,6 +60,7 @@ var ConsentExperienceType;
41
60
  * setConsent = consent was accepted/set
42
61
  * invokeRight = the right was invoked
43
62
  * close = the close/exit button was clicked
63
+ * willNotShow = the experience was skipped
44
64
  *
45
65
  * @enum
46
66
  */
@@ -204,4 +224,4 @@ var ModalPosition;
204
224
  ModalPosition[ModalPosition["LEFT_FULL_HEIGHT"] = 2] = "LEFT_FULL_HEIGHT";
205
225
  ModalPosition[ModalPosition["RIGHT_FULL_HEIGHT"] = 3] = "RIGHT_FULL_HEIGHT";
206
226
  })(ModalPosition = exports.ModalPosition || (exports.ModalPosition = {}));
207
- //# sourceMappingURL=data:application/json;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TtBQUNsQixDQUFDLEVBTFcsY0FBYyxHQUFkLHNCQUFjLEtBQWQsc0JBQWMsUUFLekI7QUFFRDs7OztHQUlHO0FBQ0gsSUFBWSxhQUlYO0FBSkQsV0FBWSxhQUFhO0lBQ3ZCLHFEQUFVLENBQUE7SUFDVix5RUFBb0IsQ0FBQTtJQUNwQiwyRUFBcUIsQ0FBQTtBQUN2QixDQUFDLEVBSlcsYUFBYSxHQUFiLHFCQUFhLEtBQWIscUJBQWEsUUFJeEIifQ==
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@ketch-sdk/ketch-types", "version": "1.5.1", "description": "Ketch Types", "main": "./dist/index.js", "types": "./dist/index.d.ts", "type": "commonjs", "scripts": {"all": "npm run lint && npm run format-check && npm run test && npm run build && npm run docs", "build": "tsc -p .", "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.4.1", "@types/events": "^3.0.0", "@types/jest": "^29.4.0", "@typescript-eslint/eslint-plugin": "^5.49.0", "@typescript-eslint/parser": "^5.49.0", "eslint": "^8.33.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.4.1", "jest-environment-jsdom": "^29.4.1", "jest-junit": "^15.0.0", "prettier": "^2.8.3", "ts-jest": "^29.0.5", "typedoc": "^0.23.24", "typescript": "^4.9.4"}, "files": ["./dist"]}
1
+ {"name": "@ketch-sdk/ketch-types", "version": "1.7.0", "description": "Ketch Types", "main": "./dist/index.js", "types": "./dist/index.d.ts", "type": "commonjs", "scripts": {"all": "npm run lint && npm run format-check && npm run test && npm run build && npm run docs", "build": "tsc -p .", "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": {"@types/events": "^3.0.0", "@types/jest": "^29.4.0", "@typescript-eslint/eslint-plugin": "^5.50.0", "@typescript-eslint/parser": "^5.50.0", "eslint": "^8.33.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.4.1", "jest-environment-jsdom": "^29.4.1", "jest-junit": "^15.0.0", "prettier": "^2.8.3", "ts-jest": "^29.0.5", "typedoc": "^0.23.24", "typescript": "^4.9.5"}, "files": ["./dist"]}