@multiplayer-app/session-recorder-common 1.3.11 → 1.3.13
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/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/type/index.d.ts +1 -0
- package/dist/esm/type/index.d.ts.map +1 -1
- package/dist/esm/type/index.js +1 -0
- package/dist/esm/type/index.js.map +1 -1
- package/dist/esm/type/session.d.ts +73 -0
- package/dist/esm/type/session.d.ts.map +1 -0
- package/dist/esm/type/session.js +7 -0
- package/dist/esm/type/session.js.map +1 -0
- package/dist/esm/type/user-type.enum.js.map +1 -1
- package/dist/esnext/tsconfig.esnext.tsbuildinfo +1 -1
- package/dist/esnext/type/index.d.ts +1 -0
- package/dist/esnext/type/index.d.ts.map +1 -1
- package/dist/esnext/type/index.js +1 -0
- package/dist/esnext/type/index.js.map +1 -1
- package/dist/esnext/type/session.d.ts +73 -0
- package/dist/esnext/type/session.d.ts.map +1 -0
- package/dist/esnext/type/session.js +7 -0
- package/dist/esnext/type/session.js.map +1 -0
- package/dist/esnext/type/user-type.enum.js.map +1 -1
- package/dist/src/type/index.d.ts +1 -0
- package/dist/src/type/index.d.ts.map +1 -1
- package/dist/src/type/index.js +1 -0
- package/dist/src/type/index.js.map +1 -1
- package/dist/src/type/session.d.ts +73 -0
- package/dist/src/type/session.d.ts.map +1 -0
- package/dist/src/type/session.js +10 -0
- package/dist/src/type/session.js.map +1 -0
- package/dist/src/type/user-type.enum.js.map +1 -1
- package/package.json +1 -1
- package/src/type/index.ts +2 -1
- package/src/type/session.ts +84 -0
- package/src/type/user-type.enum.ts +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { SessionType } from "./session-type.enum";
|
|
2
|
+
import { UserType } from "./user-type.enum";
|
|
3
|
+
export interface IResourceAttributes {
|
|
4
|
+
browserInfo?: string;
|
|
5
|
+
cookiesEnabled?: string;
|
|
6
|
+
deviceInfo?: string;
|
|
7
|
+
hardwareConcurrency?: number;
|
|
8
|
+
osInfo?: string;
|
|
9
|
+
pixelRatio?: number;
|
|
10
|
+
screenSize?: string;
|
|
11
|
+
packageVersion?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export interface ISessionAttributes {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
export interface IUserAttributes {
|
|
18
|
+
type: UserType;
|
|
19
|
+
id?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
groupId?: string;
|
|
22
|
+
groupName?: string;
|
|
23
|
+
userEmail?: string;
|
|
24
|
+
userId?: string;
|
|
25
|
+
userName?: string;
|
|
26
|
+
accountId?: string;
|
|
27
|
+
accountName?: string;
|
|
28
|
+
orgId?: string;
|
|
29
|
+
orgName?: string;
|
|
30
|
+
tags?: string[];
|
|
31
|
+
environment?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ISession {
|
|
34
|
+
_id: string;
|
|
35
|
+
shortId: string;
|
|
36
|
+
workspace: string;
|
|
37
|
+
project: string;
|
|
38
|
+
continuousDebugSession?: string;
|
|
39
|
+
creationType: SessionType;
|
|
40
|
+
name: string;
|
|
41
|
+
startedAt: string | Date;
|
|
42
|
+
stoppedAt: string | Date;
|
|
43
|
+
durationInSeconds?: number;
|
|
44
|
+
createdAt: string | Date;
|
|
45
|
+
updatedAt: string | Date;
|
|
46
|
+
tags: any[];
|
|
47
|
+
resourceAttributes?: IResourceAttributes;
|
|
48
|
+
sessionAttributes?: ISessionAttributes;
|
|
49
|
+
userAttributes?: IUserAttributes;
|
|
50
|
+
views: ISessionView[];
|
|
51
|
+
starred: boolean;
|
|
52
|
+
starredItems: string[];
|
|
53
|
+
s3Files: {
|
|
54
|
+
_id?: string;
|
|
55
|
+
bucket: string;
|
|
56
|
+
key: string;
|
|
57
|
+
dataType: DebugSessionDataType;
|
|
58
|
+
url?: string;
|
|
59
|
+
}[];
|
|
60
|
+
finishedS3Transfer?: boolean;
|
|
61
|
+
tempApiKey?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ISessionView {
|
|
64
|
+
_id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
components?: string[];
|
|
67
|
+
}
|
|
68
|
+
export declare enum DebugSessionDataType {
|
|
69
|
+
OTLP_TRACES = "OTLP_TRACES",
|
|
70
|
+
OTLP_LOGS = "OTLP_LOGS",
|
|
71
|
+
RRWEB_EVENTS = "RRWEB_EVENTS"
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/type/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAA;IACd,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAA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AC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAGD,oBAAY,oBAAoB;IAC9B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;CAC9B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var DebugSessionDataType;
|
|
2
|
+
(function (DebugSessionDataType) {
|
|
3
|
+
DebugSessionDataType["OTLP_TRACES"] = "OTLP_TRACES";
|
|
4
|
+
DebugSessionDataType["OTLP_LOGS"] = "OTLP_LOGS";
|
|
5
|
+
DebugSessionDataType["RRWEB_EVENTS"] = "RRWEB_EVENTS";
|
|
6
|
+
})(DebugSessionDataType || (DebugSessionDataType = {}));
|
|
7
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/type/session.ts"],"names":[],"mappings":"AA+EA,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,mDAA2B,CAAA;IAC3B,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B","sourcesContent":["import { SessionType } from \"./session-type.enum\";\nimport { UserType } from \"./user-type.enum\";\n\nexport interface IResourceAttributes {\n browserInfo?: string;\n cookiesEnabled?: string;\n deviceInfo?: string;\n hardwareConcurrency?: number;\n osInfo?: string;\n pixelRatio?: number;\n screenSize?: string;\n packageVersion?: string;\n [key: string]: any;\n}\n\nexport interface ISessionAttributes {\n [key: string]: any;\n}\n\nexport interface IUserAttributes {\n type: UserType\n id?: string\n name?: string\n groupId?: string\n groupName?: string\n userEmail?: string\n userId?: string\n userName?: string\n accountId?: string\n accountName?: string\n orgId?: string\n orgName?: string\n tags?: string[]\n environment?: string\n}\n\nexport interface ISession {\n _id: string;\n shortId: string;\n workspace: string;\n project: string;\n continuousDebugSession?: string;\n creationType: SessionType;\n name: string;\n startedAt: string | Date;\n stoppedAt: string | Date;\n durationInSeconds?: number;\n createdAt: string | Date;\n updatedAt: string | Date;\n tags: any[];\n\n resourceAttributes?: IResourceAttributes;\n sessionAttributes?: ISessionAttributes;\n\n userAttributes?: IUserAttributes\n\n views: ISessionView[];\n starred: boolean;\n starredItems: string[];\n s3Files: {\n _id?: string;\n bucket: string;\n key: string;\n dataType: DebugSessionDataType;\n url?: string;\n }[];\n finishedS3Transfer?: boolean;\n tempApiKey?: string;\n}\n\n\n\nexport interface ISessionView {\n _id: string;\n name: string;\n components?: string[];\n}\n\n\nexport enum DebugSessionDataType {\n OTLP_TRACES = 'OTLP_TRACES',\n OTLP_LOGS = 'OTLP_LOGS',\n RRWEB_EVENTS = 'RRWEB_EVENTS',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-type.enum.js","sourceRoot":"","sources":["../../../src/type/user-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;AAC3B,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB","sourcesContent":["export enum UserType {\n USER = 'USER',\n VISITOR = 'VISITOR',\n API_CLIENT = 'API_CLIENT',\n}
|
|
1
|
+
{"version":3,"file":"user-type.enum.js","sourceRoot":"","sources":["../../../src/type/user-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;AAC3B,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB","sourcesContent":["export enum UserType {\n USER = 'USER',\n VISITOR = 'VISITOR',\n API_CLIENT = 'API_CLIENT',\n}"]}
|