@coralogix/rum-cli 1.1.19 → 1.1.21
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/README.md +14 -7
- package/api/rum-api.ts +2 -1
- package/cli/commands/update-source-maps-command.ts +3 -2
- package/dist/api/rum-api.js +3 -2
- package/dist/cli/commands/update-source-maps-command.js +4 -3
- package/dist/models/commands.model.d.ts +1 -0
- package/dist/models/commands.model.js +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/analytics.d.ts +131 -0
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +771 -0
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +3 -5
- package/dist/proto-models/com/coralogix/rum/v2/chunk.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +49 -54
- package/dist/proto-models/com/coralogix/rum/v2/file.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +34 -24
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +64 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +387 -92
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +32 -24
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +4 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +72 -59
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +24 -47
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +38 -43
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +53 -66
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +427 -537
- package/dist/services/source-maps.service.d.ts +1 -1
- package/dist/services/source-maps.service.js +3 -2
- package/models/commands.model.ts +1 -0
- package/package.json +1 -1
- package/proto-models/com/coralogix/rum/v2/analytics.ts +910 -0
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +4 -6
- package/proto-models/com/coralogix/rum/v2/chunk.ts +56 -55
- package/proto-models/com/coralogix/rum/v2/file.ts +39 -25
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +439 -90
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +40 -25
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +81 -58
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +27 -48
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +44 -44
- package/proto-models/com/coralogix/rum/v2/template.ts +60 -67
- package/proto-models/google/protobuf/descriptor.ts +464 -551
- package/protofetch.lock +2 -2
- package/protofetch.toml +1 -1
- package/protos/com/coralogix/rum/v2/analytics.proto +57 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +21 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +2 -0
- package/protoset.bin +0 -0
- package/services/source-maps.service.ts +2 -0
|
@@ -26,7 +26,7 @@ export function eventTypeFromJSON(object: any): EventType {
|
|
|
26
26
|
case "EVENT_TYPE_NETWORK":
|
|
27
27
|
return EventType.EVENT_TYPE_NETWORK;
|
|
28
28
|
default:
|
|
29
|
-
throw new
|
|
29
|
+
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum EventType");
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -41,7 +41,7 @@ export function eventTypeToJSON(object: EventType): string {
|
|
|
41
41
|
case EventType.EVENT_TYPE_NETWORK:
|
|
42
42
|
return "EVENT_TYPE_NETWORK";
|
|
43
43
|
default:
|
|
44
|
-
throw new
|
|
44
|
+
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum EventType");
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -117,18 +117,18 @@ export const Filter = {
|
|
|
117
117
|
|
|
118
118
|
fromJSON(object: any): Filter {
|
|
119
119
|
return {
|
|
120
|
-
key: isSet(object.key) ?
|
|
121
|
-
values:
|
|
120
|
+
key: isSet(object.key) ? String(object.key) : "",
|
|
121
|
+
values: Array.isArray(object?.values) ? object.values.map((e: any) => String(e)) : [],
|
|
122
122
|
};
|
|
123
123
|
},
|
|
124
124
|
|
|
125
125
|
toJSON(message: Filter): unknown {
|
|
126
126
|
const obj: any = {};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
obj.values =
|
|
127
|
+
message.key !== undefined && (obj.key = message.key);
|
|
128
|
+
if (message.values) {
|
|
129
|
+
obj.values = message.values.map((e) => e);
|
|
130
|
+
} else {
|
|
131
|
+
obj.values = [];
|
|
132
132
|
}
|
|
133
133
|
return obj;
|
|
134
134
|
},
|
|
@@ -136,6 +136,7 @@ export const Filter = {
|
|
|
136
136
|
create(base?: DeepPartial<Filter>): Filter {
|
|
137
137
|
return Filter.fromPartial(base ?? {});
|
|
138
138
|
},
|
|
139
|
+
|
|
139
140
|
fromPartial(object: DeepPartial<Filter>): Filter {
|
|
140
141
|
const message = createBaseFilter();
|
|
141
142
|
message.key = object.key ?? "";
|
|
@@ -293,63 +294,42 @@ export const Template = {
|
|
|
293
294
|
|
|
294
295
|
fromJSON(object: any): Template {
|
|
295
296
|
return {
|
|
296
|
-
templateId: isSet(object.templateId) ?
|
|
297
|
+
templateId: isSet(object.templateId) ? String(object.templateId) : "",
|
|
297
298
|
eventType: isSet(object.eventType) ? eventTypeFromJSON(object.eventType) : 0,
|
|
298
|
-
pageFragments: isSet(object.pageFragments) ?
|
|
299
|
-
errorMessage: isSet(object.errorMessage) ?
|
|
300
|
-
statusCode: isSet(object.statusCode) ?
|
|
299
|
+
pageFragments: isSet(object.pageFragments) ? String(object.pageFragments) : "",
|
|
300
|
+
errorMessage: isSet(object.errorMessage) ? String(object.errorMessage) : undefined,
|
|
301
|
+
statusCode: isSet(object.statusCode) ? String(object.statusCode) : undefined,
|
|
301
302
|
networkRequestFragments: isSet(object.networkRequestFragments)
|
|
302
|
-
?
|
|
303
|
+
? String(object.networkRequestFragments)
|
|
303
304
|
: undefined,
|
|
304
|
-
errorType: isSet(object.errorType) ?
|
|
305
|
-
companyId: isSet(object.companyId) ?
|
|
306
|
-
createdAt: isSet(object.createdAt) ?
|
|
307
|
-
updatedAt: isSet(object.updatedAt) ?
|
|
308
|
-
applicationName: isSet(object.applicationName) ?
|
|
305
|
+
errorType: isSet(object.errorType) ? String(object.errorType) : undefined,
|
|
306
|
+
companyId: isSet(object.companyId) ? Number(object.companyId) : 0,
|
|
307
|
+
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
308
|
+
updatedAt: isSet(object.updatedAt) ? Number(object.updatedAt) : 0,
|
|
309
|
+
applicationName: isSet(object.applicationName) ? String(object.applicationName) : "",
|
|
309
310
|
};
|
|
310
311
|
},
|
|
311
312
|
|
|
312
313
|
toJSON(message: Template): unknown {
|
|
313
314
|
const obj: any = {};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
if (message.statusCode !== undefined) {
|
|
327
|
-
obj.statusCode = message.statusCode;
|
|
328
|
-
}
|
|
329
|
-
if (message.networkRequestFragments !== undefined) {
|
|
330
|
-
obj.networkRequestFragments = message.networkRequestFragments;
|
|
331
|
-
}
|
|
332
|
-
if (message.errorType !== undefined) {
|
|
333
|
-
obj.errorType = message.errorType;
|
|
334
|
-
}
|
|
335
|
-
if (message.companyId !== 0) {
|
|
336
|
-
obj.companyId = Math.round(message.companyId);
|
|
337
|
-
}
|
|
338
|
-
if (message.createdAt !== 0) {
|
|
339
|
-
obj.createdAt = Math.round(message.createdAt);
|
|
340
|
-
}
|
|
341
|
-
if (message.updatedAt !== 0) {
|
|
342
|
-
obj.updatedAt = Math.round(message.updatedAt);
|
|
343
|
-
}
|
|
344
|
-
if (message.applicationName !== "") {
|
|
345
|
-
obj.applicationName = message.applicationName;
|
|
346
|
-
}
|
|
315
|
+
message.templateId !== undefined && (obj.templateId = message.templateId);
|
|
316
|
+
message.eventType !== undefined && (obj.eventType = eventTypeToJSON(message.eventType));
|
|
317
|
+
message.pageFragments !== undefined && (obj.pageFragments = message.pageFragments);
|
|
318
|
+
message.errorMessage !== undefined && (obj.errorMessage = message.errorMessage);
|
|
319
|
+
message.statusCode !== undefined && (obj.statusCode = message.statusCode);
|
|
320
|
+
message.networkRequestFragments !== undefined && (obj.networkRequestFragments = message.networkRequestFragments);
|
|
321
|
+
message.errorType !== undefined && (obj.errorType = message.errorType);
|
|
322
|
+
message.companyId !== undefined && (obj.companyId = Math.round(message.companyId));
|
|
323
|
+
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
324
|
+
message.updatedAt !== undefined && (obj.updatedAt = Math.round(message.updatedAt));
|
|
325
|
+
message.applicationName !== undefined && (obj.applicationName = message.applicationName);
|
|
347
326
|
return obj;
|
|
348
327
|
},
|
|
349
328
|
|
|
350
329
|
create(base?: DeepPartial<Template>): Template {
|
|
351
330
|
return Template.fromPartial(base ?? {});
|
|
352
331
|
},
|
|
332
|
+
|
|
353
333
|
fromPartial(object: DeepPartial<Template>): Template {
|
|
354
334
|
const message = createBaseTemplate();
|
|
355
335
|
message.templateId = object.templateId ?? "";
|
|
@@ -425,28 +405,23 @@ export const TemplateResult = {
|
|
|
425
405
|
fromJSON(object: any): TemplateResult {
|
|
426
406
|
return {
|
|
427
407
|
template: isSet(object.template) ? Template.fromJSON(object.template) : undefined,
|
|
428
|
-
numberOfErrors: isSet(object.numberOfErrors) ?
|
|
429
|
-
numberOfUsers: isSet(object.numberOfUsers) ?
|
|
408
|
+
numberOfErrors: isSet(object.numberOfErrors) ? Number(object.numberOfErrors) : 0,
|
|
409
|
+
numberOfUsers: isSet(object.numberOfUsers) ? Number(object.numberOfUsers) : 0,
|
|
430
410
|
};
|
|
431
411
|
},
|
|
432
412
|
|
|
433
413
|
toJSON(message: TemplateResult): unknown {
|
|
434
414
|
const obj: any = {};
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
if (message.numberOfErrors !== 0) {
|
|
439
|
-
obj.numberOfErrors = Math.round(message.numberOfErrors);
|
|
440
|
-
}
|
|
441
|
-
if (message.numberOfUsers !== 0) {
|
|
442
|
-
obj.numberOfUsers = Math.round(message.numberOfUsers);
|
|
443
|
-
}
|
|
415
|
+
message.template !== undefined && (obj.template = message.template ? Template.toJSON(message.template) : undefined);
|
|
416
|
+
message.numberOfErrors !== undefined && (obj.numberOfErrors = Math.round(message.numberOfErrors));
|
|
417
|
+
message.numberOfUsers !== undefined && (obj.numberOfUsers = Math.round(message.numberOfUsers));
|
|
444
418
|
return obj;
|
|
445
419
|
},
|
|
446
420
|
|
|
447
421
|
create(base?: DeepPartial<TemplateResult>): TemplateResult {
|
|
448
422
|
return TemplateResult.fromPartial(base ?? {});
|
|
449
423
|
},
|
|
424
|
+
|
|
450
425
|
fromPartial(object: DeepPartial<TemplateResult>): TemplateResult {
|
|
451
426
|
const message = createBaseTemplateResult();
|
|
452
427
|
message.template = (object.template !== undefined && object.template !== null)
|
|
@@ -458,18 +433,36 @@ export const TemplateResult = {
|
|
|
458
433
|
},
|
|
459
434
|
};
|
|
460
435
|
|
|
436
|
+
declare var self: any | undefined;
|
|
437
|
+
declare var window: any | undefined;
|
|
438
|
+
declare var global: any | undefined;
|
|
439
|
+
var tsProtoGlobalThis: any = (() => {
|
|
440
|
+
if (typeof globalThis !== "undefined") {
|
|
441
|
+
return globalThis;
|
|
442
|
+
}
|
|
443
|
+
if (typeof self !== "undefined") {
|
|
444
|
+
return self;
|
|
445
|
+
}
|
|
446
|
+
if (typeof window !== "undefined") {
|
|
447
|
+
return window;
|
|
448
|
+
}
|
|
449
|
+
if (typeof global !== "undefined") {
|
|
450
|
+
return global;
|
|
451
|
+
}
|
|
452
|
+
throw "Unable to locate global object";
|
|
453
|
+
})();
|
|
454
|
+
|
|
461
455
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
462
456
|
|
|
463
457
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
464
|
-
: T extends
|
|
465
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
458
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
466
459
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
467
460
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
468
461
|
: Partial<T>;
|
|
469
462
|
|
|
470
463
|
function longToNumber(long: Long): number {
|
|
471
|
-
if (long.gt(
|
|
472
|
-
throw new
|
|
464
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
465
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
473
466
|
}
|
|
474
467
|
return long.toNumber();
|
|
475
468
|
}
|