@multiplayer-app/session-recorder-common 1.3.11 → 1.3.12

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.
@@ -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,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE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,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}\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}"]}
@@ -1,3 +1,4 @@
1
1
  export * from './session-type.enum';
2
2
  export * from './user-type.enum';
3
+ export * from './session';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/type/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/type/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./session-type.enum"), exports);
18
18
  __exportStar(require("./user-type.enum"), exports);
19
+ __exportStar(require("./session"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/type/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,mDAAgC","sourcesContent":["export * from './session-type.enum'\nexport * from './user-type.enum'"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/type/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,mDAAgC;AAChC,4CAAyB","sourcesContent":["export * from './session-type.enum'\nexport * from './user-type.enum'\nexport * from './session'"]}
@@ -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,kBAA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;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE;QACP,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,oBAAoB,CAAC;QAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,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,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DebugSessionDataType = void 0;
4
+ var DebugSessionDataType;
5
+ (function (DebugSessionDataType) {
6
+ DebugSessionDataType["OTLP_TRACES"] = "OTLP_TRACES";
7
+ DebugSessionDataType["OTLP_LOGS"] = "OTLP_LOGS";
8
+ DebugSessionDataType["RRWEB_EVENTS"] = "RRWEB_EVENTS";
9
+ })(DebugSessionDataType || (exports.DebugSessionDataType = DebugSessionDataType = {}));
10
+ //# sourceMappingURL=session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/type/session.ts"],"names":[],"mappings":";;;AA+EA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,mDAA2B,CAAA;IAC3B,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EAJW,oBAAoB,oCAApB,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,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;AAC3B,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB","sourcesContent":["export enum UserType {\n USER = 'USER',\n VISITOR = 'VISITOR',\n API_CLIENT = 'API_CLIENT',\n}\n"]}
1
+ {"version":3,"file":"user-type.enum.js","sourceRoot":"","sources":["../../../src/type/user-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;AAC3B,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB","sourcesContent":["export enum UserType {\n USER = 'USER',\n VISITOR = 'VISITOR',\n API_CLIENT = 'API_CLIENT',\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplayer-app/session-recorder-common",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "Multiplayer Fullstack Session Recorder - opentelemetry",
5
5
  "author": {
6
6
  "name": "Multiplayer Software, Inc.",
package/src/type/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './session-type.enum'
2
- export * from './user-type.enum'
2
+ export * from './user-type.enum'
3
+ export * from './session'
@@ -0,0 +1,84 @@
1
+ import { SessionType } from "./session-type.enum";
2
+ import { UserType } from "./user-type.enum";
3
+
4
+ export interface IResourceAttributes {
5
+ browserInfo?: string;
6
+ cookiesEnabled?: string;
7
+ deviceInfo?: string;
8
+ hardwareConcurrency?: number;
9
+ osInfo?: string;
10
+ pixelRatio?: number;
11
+ screenSize?: string;
12
+ packageVersion?: string;
13
+ [key: string]: any;
14
+ }
15
+
16
+ export interface ISessionAttributes {
17
+ [key: string]: any;
18
+ }
19
+
20
+ export interface IUserAttributes {
21
+ type: UserType
22
+ id?: string
23
+ name?: string
24
+ groupId?: string
25
+ groupName?: string
26
+ userEmail?: string
27
+ userId?: string
28
+ userName?: string
29
+ accountId?: string
30
+ accountName?: string
31
+ orgId?: string
32
+ orgName?: string
33
+ tags?: string[]
34
+ environment?: string
35
+ }
36
+
37
+ export interface ISession {
38
+ _id: string;
39
+ shortId: string;
40
+ workspace: string;
41
+ project: string;
42
+ continuousDebugSession?: string;
43
+ creationType: SessionType;
44
+ name: string;
45
+ startedAt: string | Date;
46
+ stoppedAt: string | Date;
47
+ durationInSeconds?: number;
48
+ createdAt: string | Date;
49
+ updatedAt: string | Date;
50
+ tags: any[];
51
+
52
+ resourceAttributes?: IResourceAttributes;
53
+ sessionAttributes?: ISessionAttributes;
54
+
55
+ userAttributes?: IUserAttributes
56
+
57
+ views: ISessionView[];
58
+ starred: boolean;
59
+ starredItems: string[];
60
+ s3Files: {
61
+ _id?: string;
62
+ bucket: string;
63
+ key: string;
64
+ dataType: DebugSessionDataType;
65
+ url?: string;
66
+ }[];
67
+ finishedS3Transfer?: boolean;
68
+ tempApiKey?: string;
69
+ }
70
+
71
+
72
+
73
+ export interface ISessionView {
74
+ _id: string;
75
+ name: string;
76
+ components?: string[];
77
+ }
78
+
79
+
80
+ export enum DebugSessionDataType {
81
+ OTLP_TRACES = 'OTLP_TRACES',
82
+ OTLP_LOGS = 'OTLP_LOGS',
83
+ RRWEB_EVENTS = 'RRWEB_EVENTS',
84
+ }
@@ -2,4 +2,4 @@ export enum UserType {
2
2
  USER = 'USER',
3
3
  VISITOR = 'VISITOR',
4
4
  API_CLIENT = 'API_CLIENT',
5
- }
5
+ }