@ketch-sdk/ketch-types 1.4.4 → 1.5.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 +123 -63
- package/dist/index.js +31 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -92,11 +92,7 @@ export interface StorageProvider {
|
|
|
92
92
|
*/
|
|
93
93
|
removeItem(key: string): Promise<void>;
|
|
94
94
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Ketch host
|
|
97
|
-
*/
|
|
98
95
|
export interface Ketch {
|
|
99
|
-
getConfig(): Promise<Configuration>;
|
|
100
96
|
/**
|
|
101
97
|
* Register a plugin with the given configuration
|
|
102
98
|
*
|
|
@@ -120,82 +116,113 @@ export interface Ketch {
|
|
|
120
116
|
hasConsent(): boolean;
|
|
121
117
|
getConsent(): Promise<Consent>;
|
|
122
118
|
setConsent(c: Consent): Promise<Consent>;
|
|
123
|
-
/**
|
|
124
|
-
* @deprecated use on('consent', callback)
|
|
125
|
-
* @param callback
|
|
126
|
-
*/
|
|
127
|
-
onConsent(callback: Callback): Promise<void>;
|
|
128
119
|
setShowConsentExperience(): Promise<void>;
|
|
129
120
|
showConsentExperience(): Promise<Consent>;
|
|
130
|
-
/**
|
|
131
|
-
* @deprecated use on('showConsentExperience', callback)
|
|
132
|
-
* @param callback
|
|
133
|
-
*/
|
|
134
|
-
onShowConsentExperience(callback: (consents: Consent, options?: ShowConsentOptions) => void): Promise<void>;
|
|
135
121
|
showPreferenceExperience(params: ShowPreferenceOptions): Promise<Consent>;
|
|
122
|
+
experienceClosed(reason: ExperienceClosedReason): Promise<Consent>;
|
|
123
|
+
invokeRight(eventData: InvokeRightEvent): Promise<void>;
|
|
124
|
+
getConfig(): Promise<Configuration>;
|
|
125
|
+
getEnvironment(): Promise<Environment>;
|
|
126
|
+
getGeoIP(): Promise<IPInfo>;
|
|
127
|
+
getIdentities(): Promise<Identities>;
|
|
128
|
+
getJurisdiction(): Promise<string>;
|
|
129
|
+
getRegionInfo(): Promise<string>;
|
|
136
130
|
/**
|
|
137
|
-
*
|
|
138
|
-
* @param callback
|
|
131
|
+
* Alias for `emitter.on(eventName, listener)`.
|
|
139
132
|
*/
|
|
140
|
-
|
|
141
|
-
experienceClosed(reason: ExperienceClosedReason): Promise<Consent>;
|
|
133
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
142
134
|
/**
|
|
143
|
-
*
|
|
144
|
-
*
|
|
135
|
+
* Adds the `listener` function to the end of the listeners array for the
|
|
136
|
+
* event named `eventName`. No checks are made to see if the `listener` has
|
|
137
|
+
* already been added. Multiple calls passing the same combination of `eventName`
|
|
138
|
+
* and `listener` will result in the `listener` being added, and called, multiple
|
|
139
|
+
* times.
|
|
140
|
+
*
|
|
141
|
+
* Returns a reference to the `EventEmitter`, so that calls can be chained.
|
|
142
|
+
*
|
|
143
|
+
* By default, event listeners are invoked in the order they are added. The
|
|
144
|
+
* `emitter.prependListener()` method can be used as an alternative to add the
|
|
145
|
+
* event listener to the beginning of the listeners array.
|
|
146
|
+
*
|
|
147
|
+
* @param eventName The name of the event.
|
|
148
|
+
* @param listener The callback function
|
|
145
149
|
*/
|
|
146
|
-
|
|
150
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
147
151
|
/**
|
|
148
|
-
*
|
|
149
|
-
*
|
|
152
|
+
* Adds a **one-time**`listener` function for the event named `eventName`. The
|
|
153
|
+
* next time `eventName` is triggered, this listener is removed and then invoked.
|
|
154
|
+
*
|
|
155
|
+
* By default, event listeners are invoked in the order they are added. The
|
|
156
|
+
* `emitter.prependOnceListener()` method can be used as an alternative to add the
|
|
157
|
+
* event listener to the beginning of the listeners array.
|
|
158
|
+
*
|
|
159
|
+
* @param eventName The name of the event.
|
|
160
|
+
* @param listener The callback function
|
|
150
161
|
*/
|
|
151
|
-
|
|
152
|
-
invokeRight(eventData: InvokeRightEvent): Promise<void>;
|
|
162
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
153
163
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
164
|
+
* Removes the specified `listener` from the listener array for the event
|
|
165
|
+
* named `eventName`.
|
|
166
|
+
*
|
|
167
|
+
* `removeListener()` will remove, at most, one instance of a listener from the
|
|
168
|
+
* listener array. If any single listener has been added multiple times to the
|
|
169
|
+
* listener array for the specified `eventName`, then `removeListener()` must be
|
|
170
|
+
* called multiple times to remove each instance.
|
|
171
|
+
*
|
|
172
|
+
* Once an event is emitted, all listeners attached to it at the
|
|
173
|
+
* time of emitting are called in order. This implies that any`removeListener()`
|
|
174
|
+
* or `removeAllListeners()` calls _after_ emitting and _before_ the last listener
|
|
175
|
+
* finishes execution will not remove them from`emit()` in progress. Subsequent
|
|
176
|
+
* events behave as expected.
|
|
177
|
+
*
|
|
178
|
+
* Because listeners are managed using an internal array, calling this will
|
|
179
|
+
* change the position indices of any listener registered _after_ the listener
|
|
180
|
+
* being removed. This will not impact the order in which listeners are called,
|
|
181
|
+
* but it means that any copies of the listener array as returned by
|
|
182
|
+
* the `emitter.listeners()` method will need to be recreated.
|
|
183
|
+
*
|
|
184
|
+
* When a single function has been added as a handler multiple times for a single
|
|
185
|
+
* event (as in the example below), `removeListener()` will remove the most
|
|
186
|
+
* recently added instance. In the example the `once('ping')`listener is removed:
|
|
156
187
|
*/
|
|
157
|
-
|
|
158
|
-
setEnvironment(env: Environment): Promise<Environment>;
|
|
159
|
-
getEnvironment(): Promise<Environment>;
|
|
188
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
160
189
|
/**
|
|
161
|
-
*
|
|
162
|
-
* @param callback
|
|
190
|
+
* Alias for `emitter.removeListener()`.
|
|
163
191
|
*/
|
|
164
|
-
|
|
165
|
-
setGeoIP(g: IPInfo): Promise<IPInfo>;
|
|
166
|
-
getGeoIP(): Promise<IPInfo>;
|
|
192
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
167
193
|
/**
|
|
168
|
-
*
|
|
169
|
-
*
|
|
194
|
+
* Removes all listeners, or those of the specified `eventName`.
|
|
195
|
+
*
|
|
196
|
+
* It is bad practice to remove listeners added elsewhere in the code,
|
|
197
|
+
* particularly when the `EventEmitter` instance was created by some other
|
|
198
|
+
* component or module (e.g. sockets or file streams).
|
|
199
|
+
*
|
|
200
|
+
* Returns a reference to the `EventEmitter`, so that calls can be chained.
|
|
170
201
|
*/
|
|
171
|
-
|
|
172
|
-
setIdentities(id: Identities): Promise<Identities>;
|
|
173
|
-
getIdentities(): Promise<Identities>;
|
|
202
|
+
removeAllListeners(event?: string | symbol): this;
|
|
174
203
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
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.
|
|
177
211
|
*/
|
|
178
|
-
|
|
179
|
-
setJurisdiction(ps: string): Promise<string>;
|
|
180
|
-
getJurisdiction(): Promise<string>;
|
|
212
|
+
setMaxListeners(n: number): this;
|
|
181
213
|
/**
|
|
182
|
-
*
|
|
183
|
-
* @
|
|
214
|
+
* Returns the current max listener value for the `EventEmitter` which is either
|
|
215
|
+
* set by `emitter.setMaxListeners(n)` or defaults to {@link defaultMaxListeners}.
|
|
184
216
|
*/
|
|
185
|
-
|
|
186
|
-
setRegionInfo(info: string): Promise<string>;
|
|
187
|
-
getRegionInfo(): Promise<string>;
|
|
217
|
+
getMaxListeners(): number;
|
|
188
218
|
/**
|
|
189
|
-
*
|
|
190
|
-
*
|
|
219
|
+
* Synchronously calls each of the listeners registered for the event named
|
|
220
|
+
* `eventName`, in the order they were registered, passing the supplied arguments
|
|
221
|
+
* to each.
|
|
222
|
+
*
|
|
223
|
+
* @returns `true` if the event had listeners, `false` otherwise.
|
|
191
224
|
*/
|
|
192
|
-
onRegionInfo(callback: Callback): Promise<void>;
|
|
193
225
|
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
194
|
-
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
195
|
-
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
196
|
-
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
197
|
-
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
198
|
-
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
199
226
|
}
|
|
200
227
|
/**
|
|
201
228
|
* ShowPreferenceOptions
|
|
@@ -203,24 +230,30 @@ export interface Ketch {
|
|
|
203
230
|
export type ShowPreferenceOptions = {
|
|
204
231
|
tab?: Tab;
|
|
205
232
|
/**
|
|
206
|
-
* dataSubjectTypeCodes is the list of data subjects to display. If undefined,
|
|
233
|
+
* dataSubjectTypeCodes is the list of data subjects to display. If undefined,
|
|
234
|
+
* all data subjects are displayed.
|
|
207
235
|
*/
|
|
208
236
|
dataSubjectTypeCodes?: string[];
|
|
209
237
|
/**
|
|
210
|
-
* showRightsTab determines whether the rights tab will show. If undefined,
|
|
238
|
+
* showRightsTab determines whether the rights tab will show. If undefined,
|
|
239
|
+
* the rights tab is displayed.
|
|
211
240
|
*/
|
|
212
241
|
showRightsTab?: boolean;
|
|
213
242
|
/**
|
|
214
|
-
* supportedCountries is the list of supported ISO 3166 ALPHA-2 country codes
|
|
243
|
+
* supportedCountries is the list of supported ISO 3166 ALPHA-2 country codes
|
|
244
|
+
* to show in the rights form
|
|
215
245
|
*/
|
|
216
246
|
supportedCountries?: string[];
|
|
217
247
|
/**
|
|
218
|
-
* showConsentsTab determines whether the consents tab will show. If
|
|
248
|
+
* showConsentsTab determines whether the consents tab will show. If
|
|
249
|
+
* undefined, the consents tab is displayed
|
|
219
250
|
*/
|
|
220
251
|
showConsentsTab?: boolean;
|
|
221
252
|
};
|
|
222
253
|
/**
|
|
223
254
|
* ExperienceType is the type of experience that will be shown
|
|
255
|
+
*
|
|
256
|
+
* @enum
|
|
224
257
|
*/
|
|
225
258
|
export declare enum ExperienceType {
|
|
226
259
|
Consent = "experiences.consent",
|
|
@@ -228,6 +261,8 @@ export declare enum ExperienceType {
|
|
|
228
261
|
}
|
|
229
262
|
/**
|
|
230
263
|
* ConsentExperienceType is the type of consent experience that will be shown
|
|
264
|
+
*
|
|
265
|
+
* @enum
|
|
231
266
|
*/
|
|
232
267
|
export declare enum ConsentExperienceType {
|
|
233
268
|
Banner = "experiences.consent.banner",
|
|
@@ -262,6 +297,8 @@ export interface AppDiv {
|
|
|
262
297
|
* setConsent = consent was accepted/set
|
|
263
298
|
* invokeRight = the right was invoked
|
|
264
299
|
* close = the close/exit button was clicked
|
|
300
|
+
*
|
|
301
|
+
* @enum
|
|
265
302
|
*/
|
|
266
303
|
export declare enum ExperienceClosedReason {
|
|
267
304
|
SET_CONSENT = "setConsent",
|
|
@@ -271,6 +308,8 @@ export declare enum ExperienceClosedReason {
|
|
|
271
308
|
}
|
|
272
309
|
/**
|
|
273
310
|
* ExperienceDefault
|
|
311
|
+
*
|
|
312
|
+
* @enum
|
|
274
313
|
*/
|
|
275
314
|
export declare enum ExperienceDefault {
|
|
276
315
|
BANNER = 1,
|
|
@@ -278,6 +317,8 @@ export declare enum ExperienceDefault {
|
|
|
278
317
|
}
|
|
279
318
|
/**
|
|
280
319
|
* ExperienceButtonDestination
|
|
320
|
+
*
|
|
321
|
+
* @enum
|
|
281
322
|
*/
|
|
282
323
|
export declare enum ExperienceButtonDestination {
|
|
283
324
|
GOTO_MODAL = 1,
|
|
@@ -286,6 +327,8 @@ export declare enum ExperienceButtonDestination {
|
|
|
286
327
|
}
|
|
287
328
|
/**
|
|
288
329
|
* ExperiencePrimaryButtonAction
|
|
330
|
+
*
|
|
331
|
+
* @enum
|
|
289
332
|
*/
|
|
290
333
|
export declare enum ExperiencePrimaryButtonAction {
|
|
291
334
|
SAVE_CURRENT_STATE = 1,
|
|
@@ -293,6 +336,8 @@ export declare enum ExperiencePrimaryButtonAction {
|
|
|
293
336
|
}
|
|
294
337
|
/**
|
|
295
338
|
* MigrationOption
|
|
339
|
+
*
|
|
340
|
+
* @enum
|
|
296
341
|
*/
|
|
297
342
|
export declare enum MigrationOption {
|
|
298
343
|
MIGRATE_DEFAULT = 0,
|
|
@@ -303,6 +348,8 @@ export declare enum MigrationOption {
|
|
|
303
348
|
}
|
|
304
349
|
/**
|
|
305
350
|
* CookieDuration
|
|
351
|
+
*
|
|
352
|
+
* @enum
|
|
306
353
|
*/
|
|
307
354
|
export declare enum CookieDuration {
|
|
308
355
|
SESSION = 1,
|
|
@@ -310,6 +357,8 @@ export declare enum CookieDuration {
|
|
|
310
357
|
}
|
|
311
358
|
/**
|
|
312
359
|
* CookieProvenance
|
|
360
|
+
*
|
|
361
|
+
* @enum
|
|
313
362
|
*/
|
|
314
363
|
export declare enum CookieProvenance {
|
|
315
364
|
FIRST_PARTY = 1,
|
|
@@ -317,6 +366,8 @@ export declare enum CookieProvenance {
|
|
|
317
366
|
}
|
|
318
367
|
/**
|
|
319
368
|
* CookieCategory
|
|
369
|
+
*
|
|
370
|
+
* @enum
|
|
320
371
|
*/
|
|
321
372
|
export declare enum CookieCategory {
|
|
322
373
|
STRICTLY_NECESSARY = 1,
|
|
@@ -448,7 +499,6 @@ export interface SetConsentRequest {
|
|
|
448
499
|
[key: string]: string;
|
|
449
500
|
};
|
|
450
501
|
collectedAt?: number;
|
|
451
|
-
migrationOption?: MigrationOption;
|
|
452
502
|
purposes: {
|
|
453
503
|
[key: string]: PurposeAllowedLegalBasis;
|
|
454
504
|
};
|
|
@@ -641,6 +691,8 @@ export interface CanonicalPurpose {
|
|
|
641
691
|
}
|
|
642
692
|
/**
|
|
643
693
|
* IdentityLocation is the location on the page from which to retrieve identity information
|
|
694
|
+
*
|
|
695
|
+
* @enum
|
|
644
696
|
*/
|
|
645
697
|
export declare enum IdentityType {
|
|
646
698
|
IDENTITY_TYPE_UNDEFINED = "",
|
|
@@ -654,6 +706,8 @@ export declare enum IdentityType {
|
|
|
654
706
|
}
|
|
655
707
|
/**
|
|
656
708
|
* IdentityFormat is the encoding of the string identity value
|
|
709
|
+
*
|
|
710
|
+
* @enum
|
|
657
711
|
*/
|
|
658
712
|
export declare enum IdentityFormat {
|
|
659
713
|
IDENTITY_FORMAT_UNDEFINED = "",
|
|
@@ -699,6 +753,8 @@ export interface PolicyDocument {
|
|
|
699
753
|
}
|
|
700
754
|
/**
|
|
701
755
|
* SwitchTextRenderLogic
|
|
756
|
+
*
|
|
757
|
+
* @enum
|
|
702
758
|
*/
|
|
703
759
|
export declare enum SwitchTextRenderLogic {
|
|
704
760
|
/**
|
|
@@ -929,6 +985,8 @@ export interface Experience {
|
|
|
929
985
|
}
|
|
930
986
|
/**
|
|
931
987
|
* BannerPosition
|
|
988
|
+
*
|
|
989
|
+
* @enum
|
|
932
990
|
*/
|
|
933
991
|
export declare enum BannerPosition {
|
|
934
992
|
BOTTOM = 1,
|
|
@@ -938,6 +996,8 @@ export declare enum BannerPosition {
|
|
|
938
996
|
}
|
|
939
997
|
/**
|
|
940
998
|
* ModalPosition
|
|
999
|
+
*
|
|
1000
|
+
* @enum
|
|
941
1001
|
*/
|
|
942
1002
|
export declare enum ModalPosition {
|
|
943
1003
|
CENTER = 1,
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,8 @@ function isTab(value) {
|
|
|
16
16
|
exports.isTab = isTab;
|
|
17
17
|
/**
|
|
18
18
|
* ExperienceType is the type of experience that will be shown
|
|
19
|
+
*
|
|
20
|
+
* @enum
|
|
19
21
|
*/
|
|
20
22
|
var ExperienceType;
|
|
21
23
|
(function (ExperienceType) {
|
|
@@ -24,6 +26,8 @@ var ExperienceType;
|
|
|
24
26
|
})(ExperienceType = exports.ExperienceType || (exports.ExperienceType = {}));
|
|
25
27
|
/**
|
|
26
28
|
* ConsentExperienceType is the type of consent experience that will be shown
|
|
29
|
+
*
|
|
30
|
+
* @enum
|
|
27
31
|
*/
|
|
28
32
|
var ConsentExperienceType;
|
|
29
33
|
(function (ConsentExperienceType) {
|
|
@@ -37,6 +41,8 @@ var ConsentExperienceType;
|
|
|
37
41
|
* setConsent = consent was accepted/set
|
|
38
42
|
* invokeRight = the right was invoked
|
|
39
43
|
* close = the close/exit button was clicked
|
|
44
|
+
*
|
|
45
|
+
* @enum
|
|
40
46
|
*/
|
|
41
47
|
var ExperienceClosedReason;
|
|
42
48
|
(function (ExperienceClosedReason) {
|
|
@@ -47,6 +53,8 @@ var ExperienceClosedReason;
|
|
|
47
53
|
})(ExperienceClosedReason = exports.ExperienceClosedReason || (exports.ExperienceClosedReason = {}));
|
|
48
54
|
/**
|
|
49
55
|
* ExperienceDefault
|
|
56
|
+
*
|
|
57
|
+
* @enum
|
|
50
58
|
*/
|
|
51
59
|
var ExperienceDefault;
|
|
52
60
|
(function (ExperienceDefault) {
|
|
@@ -55,6 +63,8 @@ var ExperienceDefault;
|
|
|
55
63
|
})(ExperienceDefault = exports.ExperienceDefault || (exports.ExperienceDefault = {}));
|
|
56
64
|
/**
|
|
57
65
|
* ExperienceButtonDestination
|
|
66
|
+
*
|
|
67
|
+
* @enum
|
|
58
68
|
*/
|
|
59
69
|
var ExperienceButtonDestination;
|
|
60
70
|
(function (ExperienceButtonDestination) {
|
|
@@ -64,6 +74,8 @@ var ExperienceButtonDestination;
|
|
|
64
74
|
})(ExperienceButtonDestination = exports.ExperienceButtonDestination || (exports.ExperienceButtonDestination = {}));
|
|
65
75
|
/**
|
|
66
76
|
* ExperiencePrimaryButtonAction
|
|
77
|
+
*
|
|
78
|
+
* @enum
|
|
67
79
|
*/
|
|
68
80
|
var ExperiencePrimaryButtonAction;
|
|
69
81
|
(function (ExperiencePrimaryButtonAction) {
|
|
@@ -72,6 +84,8 @@ var ExperiencePrimaryButtonAction;
|
|
|
72
84
|
})(ExperiencePrimaryButtonAction = exports.ExperiencePrimaryButtonAction || (exports.ExperiencePrimaryButtonAction = {}));
|
|
73
85
|
/**
|
|
74
86
|
* MigrationOption
|
|
87
|
+
*
|
|
88
|
+
* @enum
|
|
75
89
|
*/
|
|
76
90
|
var MigrationOption;
|
|
77
91
|
(function (MigrationOption) {
|
|
@@ -83,6 +97,8 @@ var MigrationOption;
|
|
|
83
97
|
})(MigrationOption = exports.MigrationOption || (exports.MigrationOption = {}));
|
|
84
98
|
/**
|
|
85
99
|
* CookieDuration
|
|
100
|
+
*
|
|
101
|
+
* @enum
|
|
86
102
|
*/
|
|
87
103
|
var CookieDuration;
|
|
88
104
|
(function (CookieDuration) {
|
|
@@ -91,6 +107,8 @@ var CookieDuration;
|
|
|
91
107
|
})(CookieDuration = exports.CookieDuration || (exports.CookieDuration = {}));
|
|
92
108
|
/**
|
|
93
109
|
* CookieProvenance
|
|
110
|
+
*
|
|
111
|
+
* @enum
|
|
94
112
|
*/
|
|
95
113
|
var CookieProvenance;
|
|
96
114
|
(function (CookieProvenance) {
|
|
@@ -99,6 +117,8 @@ var CookieProvenance;
|
|
|
99
117
|
})(CookieProvenance = exports.CookieProvenance || (exports.CookieProvenance = {}));
|
|
100
118
|
/**
|
|
101
119
|
* CookieCategory
|
|
120
|
+
*
|
|
121
|
+
* @enum
|
|
102
122
|
*/
|
|
103
123
|
var CookieCategory;
|
|
104
124
|
(function (CookieCategory) {
|
|
@@ -109,6 +129,8 @@ var CookieCategory;
|
|
|
109
129
|
})(CookieCategory = exports.CookieCategory || (exports.CookieCategory = {}));
|
|
110
130
|
/**
|
|
111
131
|
* IdentityLocation is the location on the page from which to retrieve identity information
|
|
132
|
+
*
|
|
133
|
+
* @enum
|
|
112
134
|
*/
|
|
113
135
|
var IdentityType;
|
|
114
136
|
(function (IdentityType) {
|
|
@@ -123,6 +145,8 @@ var IdentityType;
|
|
|
123
145
|
})(IdentityType = exports.IdentityType || (exports.IdentityType = {}));
|
|
124
146
|
/**
|
|
125
147
|
* IdentityFormat is the encoding of the string identity value
|
|
148
|
+
*
|
|
149
|
+
* @enum
|
|
126
150
|
*/
|
|
127
151
|
var IdentityFormat;
|
|
128
152
|
(function (IdentityFormat) {
|
|
@@ -135,6 +159,8 @@ var IdentityFormat;
|
|
|
135
159
|
})(IdentityFormat = exports.IdentityFormat || (exports.IdentityFormat = {}));
|
|
136
160
|
/**
|
|
137
161
|
* SwitchTextRenderLogic
|
|
162
|
+
*
|
|
163
|
+
* @enum
|
|
138
164
|
*/
|
|
139
165
|
var SwitchTextRenderLogic;
|
|
140
166
|
(function (SwitchTextRenderLogic) {
|
|
@@ -157,6 +183,8 @@ var SwitchTextRenderLogic;
|
|
|
157
183
|
})(SwitchTextRenderLogic = exports.SwitchTextRenderLogic || (exports.SwitchTextRenderLogic = {}));
|
|
158
184
|
/**
|
|
159
185
|
* BannerPosition
|
|
186
|
+
*
|
|
187
|
+
* @enum
|
|
160
188
|
*/
|
|
161
189
|
var BannerPosition;
|
|
162
190
|
(function (BannerPosition) {
|
|
@@ -167,6 +195,8 @@ var BannerPosition;
|
|
|
167
195
|
})(BannerPosition = exports.BannerPosition || (exports.BannerPosition = {}));
|
|
168
196
|
/**
|
|
169
197
|
* ModalPosition
|
|
198
|
+
*
|
|
199
|
+
* @enum
|
|
170
200
|
*/
|
|
171
201
|
var ModalPosition;
|
|
172
202
|
(function (ModalPosition) {
|
|
@@ -174,4 +204,4 @@ var ModalPosition;
|
|
|
174
204
|
ModalPosition[ModalPosition["LEFT_FULL_HEIGHT"] = 2] = "LEFT_FULL_HEIGHT";
|
|
175
205
|
ModalPosition[ModalPosition["RIGHT_FULL_HEIGHT"] = 3] = "RIGHT_FULL_HEIGHT";
|
|
176
206
|
})(ModalPosition = exports.ModalPosition || (exports.ModalPosition = {}));
|
|
177
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
207
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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Q0FBQTtBQUM5QixDQUFDLEVBakJXLHFCQUFxQixHQUFyQiw2QkFBcUIsS0FBckIsNkJBQXFCLFFBaUJoQztBQXFPRDs7OztHQUlHO0FBQ0gsSUFBWSxjQUtYO0FBTEQsV0FBWSxjQUFjO0lBQ3hCLHVEQUFVLENBQUE7SUFDVixpREFBTyxDQUFBO0lBQ1AsaUVBQWUsQ0FBQTtJQUNmLG1FQUFnQixDQUFBO0FBQ2xCLENBQUMsRUFMVyxjQUFjLEdBQWQsc0JBQWMsS0FBZCxzQkFBYyxRQUt6QjtBQUVEOzs7O0dBSUc7QUFDSCxJQUFZLGFBSVg7QUFKRCxXQUFZLGFBQWE7SUFDdkIscURBQVUsQ0FBQTtJQUNWLHlFQUFvQixDQUFBO0lBQ3BCLDJFQUFxQixDQUFBO0FBQ3ZCLENBQUMsRUFKVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUl4QiJ9
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@ketch-sdk/ketch-types", "version": "1.
|
|
1
|
+
{"name": "@ketch-sdk/ketch-types", "version": "1.5.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": {"@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"]}
|