@levo-so/core 0.1.25 → 0.1.27
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.js +1 -4
- package/dist/plugins/LevoAudience.d.ts +4 -11
- package/dist/plugins/LevoAudience.d.ts.map +1 -1
- package/dist/plugins/LevoAudience.js +55 -76
- package/dist/types/audience.d.ts +32 -7
- package/dist/types/audience.d.ts.map +1 -1
- package/dist/types/query.d.ts +1 -1
- package/dist/types/query.d.ts.map +1 -1
- package/dist/utils/getUserProperties.d.ts +3 -3
- package/dist/utils/getUserProperties.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66,10 +66,7 @@ var LevoClient = class {
|
|
|
66
66
|
credentials: "include",
|
|
67
67
|
signal: AbortSignal.timeout(3e4),
|
|
68
68
|
// 30 seconds timeout,
|
|
69
|
-
headers: {
|
|
70
|
-
Accept: "application/json",
|
|
71
|
-
"Content-Type": "application/json"
|
|
72
|
-
}
|
|
69
|
+
headers: {}
|
|
73
70
|
};
|
|
74
71
|
if (this.workspace) {
|
|
75
72
|
options.headers = {
|
|
@@ -4,9 +4,7 @@ import { LevoPlugin } from "./LevoPlugin";
|
|
|
4
4
|
export declare class LevoAudience extends LevoPlugin {
|
|
5
5
|
#private;
|
|
6
6
|
instance: AnalyticsInstance | null;
|
|
7
|
-
request(url: string, data:
|
|
8
|
-
isIdentified: boolean;
|
|
9
|
-
requestBatch: any[];
|
|
7
|
+
request<ResponseBody = unknown, RequestBody = unknown>(url: string, data: RequestBody): Promise<Awaited<ResponseBody>>;
|
|
10
8
|
initiate(properties: ILevoAudience.Properties): Promise<any>;
|
|
11
9
|
getReferrer(): {
|
|
12
10
|
type?: undefined;
|
|
@@ -14,18 +12,13 @@ export declare class LevoAudience extends LevoPlugin {
|
|
|
14
12
|
data?: undefined;
|
|
15
13
|
raw?: undefined;
|
|
16
14
|
} | {
|
|
17
|
-
type:
|
|
18
|
-
referrer:
|
|
19
|
-
data:
|
|
15
|
+
type: string;
|
|
16
|
+
referrer: Record<string, string>;
|
|
17
|
+
data: Record<string, string>;
|
|
20
18
|
raw: string;
|
|
21
19
|
};
|
|
22
20
|
startActivityListener(): any;
|
|
23
21
|
track(event: string, properties: ILevoAudience.Properties): Promise<any>;
|
|
24
|
-
bounce: (properties?: ILevoAudience.Properties) => void;
|
|
25
|
-
click: ({ properties, target, }: {
|
|
26
|
-
properties?: ILevoAudience.Properties;
|
|
27
|
-
target: HTMLElement;
|
|
28
|
-
}) => void;
|
|
29
22
|
getCurrentTabId(): string | null;
|
|
30
23
|
getTabCount(): number | null;
|
|
31
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LevoAudience.d.ts","sourceRoot":"","sources":["../../src/plugins/LevoAudience.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LevoAudience.d.ts","sourceRoot":"","sources":["../../src/plugins/LevoAudience.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qBAAa,YAAa,SAAQ,UAAU;;IAC1C,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAa1C,OAAO,CAAC,YAAY,GAAG,OAAO,EAAE,WAAW,GAAG,OAAO,EACnD,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW;IA4Bb,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,UAAU;IAuHnD,WAAW;;;;;;;;;;;IAmEX,qBAAqB;IAqBf,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,CAAC,UAAU;IA6B/D,eAAe;IAef,WAAW;CAYZ"}
|
|
@@ -172,11 +172,11 @@ var isIncognito_default = isIncognito;
|
|
|
172
172
|
|
|
173
173
|
// src/utils/getUserProperties.ts
|
|
174
174
|
var getUserProperties = async () => {
|
|
175
|
+
let locale = "";
|
|
176
|
+
let timezone = "";
|
|
177
|
+
let dark_mode = false;
|
|
178
|
+
let private_mode = false;
|
|
175
179
|
if (window) {
|
|
176
|
-
let locale = null;
|
|
177
|
-
let timezone = null;
|
|
178
|
-
let dark_mode = false;
|
|
179
|
-
let private_mode = false;
|
|
180
180
|
try {
|
|
181
181
|
({ isPrivate: private_mode } = await isIncognito_default());
|
|
182
182
|
} catch (e) {
|
|
@@ -197,13 +197,13 @@ var getUserProperties = async () => {
|
|
|
197
197
|
} catch (e) {
|
|
198
198
|
console.error(e);
|
|
199
199
|
}
|
|
200
|
-
return {
|
|
201
|
-
locale,
|
|
202
|
-
timezone,
|
|
203
|
-
dark_mode,
|
|
204
|
-
private_mode
|
|
205
|
-
};
|
|
206
200
|
}
|
|
201
|
+
return {
|
|
202
|
+
locale,
|
|
203
|
+
timezone,
|
|
204
|
+
dark_mode,
|
|
205
|
+
private_mode
|
|
206
|
+
};
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
// src/plugins/LevoAudience.ts
|
|
@@ -213,6 +213,10 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
213
213
|
// every 1 second we check for idlness
|
|
214
214
|
#IDLE_TIMEOUT = 60 * 1e3;
|
|
215
215
|
// 60 seconds till we consider user idle
|
|
216
|
+
#session = "";
|
|
217
|
+
#device = "";
|
|
218
|
+
#is_identified = false;
|
|
219
|
+
#batch = [];
|
|
216
220
|
request(url, data) {
|
|
217
221
|
const headers = {
|
|
218
222
|
Accept: "application/json",
|
|
@@ -231,8 +235,6 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
231
235
|
keepAlive: true
|
|
232
236
|
}).headers(headers).post(data).json();
|
|
233
237
|
}
|
|
234
|
-
isIdentified = false;
|
|
235
|
-
requestBatch = [];
|
|
236
238
|
async initiate(properties) {
|
|
237
239
|
if (this.client.NODE_ENV === "development") {
|
|
238
240
|
return;
|
|
@@ -240,11 +242,13 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
240
242
|
const plugin = {
|
|
241
243
|
name: this.client.workspace,
|
|
242
244
|
track: ({ payload }) => {
|
|
243
|
-
if (!this?.client?.insightsUrl) {
|
|
245
|
+
if (!this?.client?.insightsUrl || !this.client.workspace) {
|
|
244
246
|
return;
|
|
245
247
|
}
|
|
246
248
|
const payloadProperties = payload?.properties || {};
|
|
247
|
-
|
|
249
|
+
const collectInput = {
|
|
250
|
+
session_id: this.#session,
|
|
251
|
+
device_id: this.#device,
|
|
248
252
|
event: payload.event,
|
|
249
253
|
properties: {
|
|
250
254
|
...properties,
|
|
@@ -260,9 +264,13 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
260
264
|
identifier: payloadProperties?.identifier || properties?.id,
|
|
261
265
|
workspace_id: this.client.workspace,
|
|
262
266
|
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
263
|
-
tab_id: this.getCurrentTabId(),
|
|
264
|
-
tab_count: this.getTabCount()
|
|
265
|
-
}
|
|
267
|
+
tab_id: this.getCurrentTabId() || "",
|
|
268
|
+
tab_count: this.getTabCount() || 0
|
|
269
|
+
};
|
|
270
|
+
navigator.sendBeacon(
|
|
271
|
+
`${this?.client?.insightsUrl}/v1/insights/event/collect`,
|
|
272
|
+
JSON.stringify(collectInput)
|
|
273
|
+
);
|
|
266
274
|
},
|
|
267
275
|
page: ({ payload }) => {
|
|
268
276
|
if (!this?.client?.insightsUrl) {
|
|
@@ -278,31 +286,34 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
278
286
|
}).catch((e) => getLevoError(e));
|
|
279
287
|
},
|
|
280
288
|
identify: ({ payload }) => {
|
|
281
|
-
if (!this?.client?.insightsUrl) {
|
|
289
|
+
if (!this?.client?.insightsUrl || !this.client.workspace) {
|
|
282
290
|
return;
|
|
283
291
|
}
|
|
292
|
+
const welcomeInput = {
|
|
293
|
+
private_mode: payload.traits.private_mode,
|
|
294
|
+
dark_mode: payload.traits.dark_mode,
|
|
295
|
+
timezone: payload.traits.timezone,
|
|
296
|
+
locale: payload.traits.locale,
|
|
297
|
+
referrer: payload.traits.referrer,
|
|
298
|
+
workspace_id: this.client.workspace,
|
|
299
|
+
hostname: window.location.hostname,
|
|
300
|
+
pathname: window.location.pathname,
|
|
301
|
+
page_title: document.title,
|
|
302
|
+
url: window.location.href,
|
|
303
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
304
|
+
tab_id: this.getCurrentTabId() || "",
|
|
305
|
+
tab_count: this.getTabCount() || 0
|
|
306
|
+
};
|
|
284
307
|
this.request(
|
|
285
|
-
`${this?.client?.insightsUrl}/v1/insights/
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
referrer: payload.traits.referrer,
|
|
292
|
-
workspace_id: this.client.workspace,
|
|
293
|
-
hostname: window.location.hostname,
|
|
294
|
-
pathname: window.location.pathname,
|
|
295
|
-
page_title: document.title,
|
|
296
|
-
url: window.location.href,
|
|
297
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
298
|
-
tab_id: this.getCurrentTabId(),
|
|
299
|
-
tab_count: this.getTabCount()
|
|
300
|
-
}
|
|
301
|
-
).then(() => {
|
|
302
|
-
this.isIdentified = true;
|
|
308
|
+
`${this?.client?.insightsUrl}/v1/insights/event/welcome`,
|
|
309
|
+
welcomeInput
|
|
310
|
+
).then((data) => {
|
|
311
|
+
this.#is_identified = true;
|
|
312
|
+
this.#session = data.content.data.session;
|
|
313
|
+
this.#device = data.content.data.device;
|
|
303
314
|
this.request(
|
|
304
315
|
`${this?.client?.insightsUrl}/v1/insights/event/collect/bulk`,
|
|
305
|
-
this
|
|
316
|
+
this.#batch
|
|
306
317
|
).catch((e) => getLevoError(e));
|
|
307
318
|
}).catch((e) => getLevoError(e));
|
|
308
319
|
}
|
|
@@ -363,10 +374,13 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
363
374
|
return null;
|
|
364
375
|
}
|
|
365
376
|
async track(event, properties) {
|
|
366
|
-
if (this.
|
|
377
|
+
if (!this.client.workspace) {
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (this.instance && this.#is_identified) {
|
|
367
381
|
return this.instance.track(event, properties);
|
|
368
382
|
}
|
|
369
|
-
return this.
|
|
383
|
+
return this.#batch.push({
|
|
370
384
|
event,
|
|
371
385
|
properties: {
|
|
372
386
|
...properties,
|
|
@@ -381,45 +395,10 @@ var LevoAudience = class extends LevoPlugin {
|
|
|
381
395
|
identifier: properties?.identifier || properties?.id,
|
|
382
396
|
workspace_id: this.client.workspace,
|
|
383
397
|
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
384
|
-
tab_id: this.getCurrentTabId(),
|
|
385
|
-
tab_count: this.getTabCount()
|
|
398
|
+
tab_id: this.getCurrentTabId() || "",
|
|
399
|
+
tab_count: this.getTabCount() || 0
|
|
386
400
|
});
|
|
387
401
|
}
|
|
388
|
-
bounce = (properties) => {
|
|
389
|
-
const payload = {
|
|
390
|
-
event: "page.bounce",
|
|
391
|
-
properties: {
|
|
392
|
-
...properties,
|
|
393
|
-
tab_count: this.getTabCount,
|
|
394
|
-
resource: void 0,
|
|
395
|
-
identifier: void 0
|
|
396
|
-
},
|
|
397
|
-
hostname: window.location.hostname,
|
|
398
|
-
pathname: window.location.pathname,
|
|
399
|
-
url: window.location.href,
|
|
400
|
-
page_title: document.title,
|
|
401
|
-
resource: properties?.resource || "page",
|
|
402
|
-
identifier: properties?.identifier || properties?.id,
|
|
403
|
-
workspace_id: this.client.workspace,
|
|
404
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
405
|
-
tab_id: this.getCurrentTabId(),
|
|
406
|
-
tab_count: this.getTabCount()
|
|
407
|
-
};
|
|
408
|
-
navigator.sendBeacon(
|
|
409
|
-
`${this?.client?.insightsUrl}/v1/insights/event/collect`,
|
|
410
|
-
JSON.stringify(payload)
|
|
411
|
-
);
|
|
412
|
-
};
|
|
413
|
-
click = ({
|
|
414
|
-
properties,
|
|
415
|
-
target
|
|
416
|
-
}) => {
|
|
417
|
-
const label = target.innerText;
|
|
418
|
-
this.track("button.click", {
|
|
419
|
-
...properties,
|
|
420
|
-
label
|
|
421
|
-
});
|
|
422
|
-
};
|
|
423
402
|
getCurrentTabId() {
|
|
424
403
|
try {
|
|
425
404
|
if (typeof window === "undefined" || !("sessionStorage" in window)) {
|
package/dist/types/audience.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export declare namespace ILevoAudience {
|
|
2
|
-
interface
|
|
2
|
+
interface Traits {
|
|
3
3
|
private_mode: boolean;
|
|
4
4
|
dark_mode: boolean;
|
|
5
5
|
locale: string;
|
|
6
6
|
timezone: string;
|
|
7
|
-
resource: string;
|
|
8
|
-
identifier: string;
|
|
9
7
|
referrer: {
|
|
10
|
-
type:
|
|
11
|
-
referrer:
|
|
12
|
-
data:
|
|
8
|
+
type: string;
|
|
9
|
+
referrer: Record<string, string>;
|
|
10
|
+
data: Record<string, string>;
|
|
13
11
|
};
|
|
14
12
|
}
|
|
13
|
+
type BaseProperties = Traits & {
|
|
14
|
+
resource: string;
|
|
15
|
+
identifier: string;
|
|
16
|
+
};
|
|
15
17
|
interface BlockProperties {
|
|
16
18
|
id: string;
|
|
17
19
|
}
|
|
@@ -25,10 +27,33 @@ export declare namespace ILevoAudience {
|
|
|
25
27
|
type Properties = Partial<BaseProperties & BlockProperties & ActivityProperties & ScrollProperties> & Record<string, any>;
|
|
26
28
|
type EventProperties = {
|
|
27
29
|
properties: Properties;
|
|
28
|
-
traits:
|
|
30
|
+
traits: Traits;
|
|
29
31
|
event: string;
|
|
30
32
|
type: "track" | "page" | "identify";
|
|
31
33
|
userId: string | null;
|
|
32
34
|
};
|
|
35
|
+
type BaseInput = {
|
|
36
|
+
workspace_id: string;
|
|
37
|
+
hostname: string;
|
|
38
|
+
pathname: string;
|
|
39
|
+
page_title: string;
|
|
40
|
+
url: string;
|
|
41
|
+
created_at: string;
|
|
42
|
+
tab_id: string;
|
|
43
|
+
tab_count: number;
|
|
44
|
+
};
|
|
45
|
+
type WelcomeInput = Traits & BaseInput;
|
|
46
|
+
type WelcomeResponse = {
|
|
47
|
+
session: string;
|
|
48
|
+
device: string;
|
|
49
|
+
};
|
|
50
|
+
type CollectInput = BaseInput & {
|
|
51
|
+
session_id?: string;
|
|
52
|
+
device_id?: string;
|
|
53
|
+
event: string;
|
|
54
|
+
properties: Properties;
|
|
55
|
+
resource: string;
|
|
56
|
+
identifier: string | undefined;
|
|
57
|
+
};
|
|
33
58
|
}
|
|
34
59
|
//# sourceMappingURL=audience.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience.d.ts","sourceRoot":"","sources":["../../src/types/audience.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"audience.d.ts","sourceRoot":"","sources":["../../src/types/audience.ts"],"names":[],"mappings":"AACA,yBAAiB,aAAa,CAAC;IAC7B,UAAiB,MAAM;QACrB,YAAY,EAAE,OAAO,CAAC;QACtB,SAAS,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAC9B,CAAC;KACH;IAED,KAAY,cAAc,GAAG,MAAM,GAAG;QACpC,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,UAAiB,eAAe;QAC9B,EAAE,EAAE,MAAM,CAAC;KACZ;IAED,UAAiB,kBAAkB;QACjC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;IAED,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,MAAM,CAAC;KACjB;IAED,KAAY,UAAU,GAAG,OAAO,CAC9B,cAAc,GAAG,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,CACzE,GACC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEtB,KAAY,eAAe,GAAG;QAC5B,UAAU,EAAE,UAAU,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;QACpC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC;IAEF,KAAY,SAAS,GAAG;QACtB,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,EAAE,MAAM,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,KAAY,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;IAE9C,KAAY,eAAe,GAAG;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,KAAY,YAAY,GAAG,SAAS,GAAG;QACrC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,UAAU,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;KAChC,CAAC;CACH"}
|
package/dist/types/query.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/types/query.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5D,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,CAAC,EAAE,CAAC;KACX,CAAC;CACH;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,GAAG,GAAG;IACtE,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/types/query.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5D,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,CAAC,EAAE,CAAC;KACX,CAAC;CACH;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,GAAG,GAAG;IACtE,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9D,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,CAAC,EAAE,CAAC;KACX,CAAC;CACH;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACxD,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;IACb,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;KACtB,GAAG,CAAC,CAAC;CACP,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getUserProperties: () => Promise<{
|
|
2
|
-
locale: string
|
|
3
|
-
timezone: string
|
|
2
|
+
locale: string;
|
|
3
|
+
timezone: string;
|
|
4
4
|
dark_mode: boolean;
|
|
5
5
|
private_mode: boolean;
|
|
6
|
-
}
|
|
6
|
+
}>;
|
|
7
7
|
//# sourceMappingURL=getUserProperties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserProperties.d.ts","sourceRoot":"","sources":["../../src/utils/getUserProperties.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;
|
|
1
|
+
{"version":3,"file":"getUserProperties.d.ts","sourceRoot":"","sources":["../../src/utils/getUserProperties.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;EAoC7B,CAAC"}
|