@coralogix/rum-cli 1.1.21 → 1.1.22
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 +8 -4
- package/api/rum-api.ts +1 -1
- package/cli/commands/delete-source-maps-command.ts +1 -1
- package/cli/commands/index.ts +5 -4
- package/cli/commands/update-source-maps-command.ts +1 -1
- package/cli/commands/upload-react-native-source-maps-command.ts +39 -0
- package/cli/commands/upload-source-maps-command.ts +1 -1
- package/cli/rum-cli.ts +8 -7
- package/dist/api/rum-api.js +2 -2
- package/dist/cli/commands/delete-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/delete-source-maps-command.js +4 -4
- package/dist/cli/commands/index.d.ts +4 -3
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/update-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/update-source-maps-command.js +4 -4
- package/dist/cli/commands/upload-react-native-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-react-native-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/upload-source-maps-command.js +4 -4
- package/dist/cli/rum-cli.js +9 -7
- package/dist/proto-models/com/coralogix/rum/v2/analytics.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +115 -102
- 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 +5 -3
- package/dist/proto-models/com/coralogix/rum/v2/chunk.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +54 -49
- package/dist/proto-models/com/coralogix/rum/v2/file.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +24 -34
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.d.ts +69 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +189 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +526 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1560 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +98 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +475 -127
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +1 -59
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +4 -175
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.d.ts +261 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +698 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +65 -41
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +55 -0
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +267 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.d.ts +109 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +580 -0
- 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 +47 -24
- 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 +43 -38
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +14 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +148 -54
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/dist/services/react-native-source-maps.service.d.ts +3 -0
- package/dist/services/react-native-source-maps.service.js +42 -0
- package/dist/services/source-maps.service.js +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- package/proto-models/com/coralogix/rum/v2/analytics.ts +113 -108
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -4
- package/proto-models/com/coralogix/rum/v2/chunk.ts +55 -56
- package/proto-models/com/coralogix/rum/v2/file.ts +25 -39
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1837 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +533 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +818 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +65 -46
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +301 -0
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +656 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +48 -27
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +44 -44
- package/proto-models/com/coralogix/rum/v2/template.ts +161 -59
- package/proto-models/google/protobuf/descriptor.ts +551 -464
- package/protofetch.lock +2 -2
- package/protofetch.toml +1 -1
- package/protos/com/coralogix/rum/v2/rum_react_native_source_map_service.proto +19 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +128 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +1 -1
- package/protos/com/coralogix/rum/v2/saved_filter.proto +28 -0
- package/protos/com/coralogix/rum/v2/snooze_errors.proto +55 -0
- package/protos/com/coralogix/rum/v2/template.proto +6 -0
- package/protoset.bin +0 -0
- package/services/react-native-source-maps.service.ts +40 -0
- package/services/source-maps.service.ts +2 -2
- package/utils/index.ts +3 -3
|
@@ -83,25 +83,29 @@ export const Chunk = {
|
|
|
83
83
|
|
|
84
84
|
fromJSON(object: any): Chunk {
|
|
85
85
|
return {
|
|
86
|
-
chunkName: isSet(object.chunkName) ? String(object.chunkName) : "",
|
|
87
|
-
generatedLineNumber: isSet(object.generatedLineNumber) ? Number(object.generatedLineNumber) : 0,
|
|
88
|
-
generatedColumnNumber: isSet(object.generatedColumnNumber) ? Number(object.generatedColumnNumber) : 0,
|
|
86
|
+
chunkName: isSet(object.chunkName) ? globalThis.String(object.chunkName) : "",
|
|
87
|
+
generatedLineNumber: isSet(object.generatedLineNumber) ? globalThis.Number(object.generatedLineNumber) : 0,
|
|
88
|
+
generatedColumnNumber: isSet(object.generatedColumnNumber) ? globalThis.Number(object.generatedColumnNumber) : 0,
|
|
89
89
|
};
|
|
90
90
|
},
|
|
91
91
|
|
|
92
92
|
toJSON(message: Chunk): unknown {
|
|
93
93
|
const obj: any = {};
|
|
94
|
-
message.chunkName !==
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
if (message.chunkName !== "") {
|
|
95
|
+
obj.chunkName = message.chunkName;
|
|
96
|
+
}
|
|
97
|
+
if (message.generatedLineNumber !== 0) {
|
|
98
|
+
obj.generatedLineNumber = Math.round(message.generatedLineNumber);
|
|
99
|
+
}
|
|
100
|
+
if (message.generatedColumnNumber !== 0) {
|
|
101
|
+
obj.generatedColumnNumber = Math.round(message.generatedColumnNumber);
|
|
102
|
+
}
|
|
98
103
|
return obj;
|
|
99
104
|
},
|
|
100
105
|
|
|
101
106
|
create(base?: DeepPartial<Chunk>): Chunk {
|
|
102
107
|
return Chunk.fromPartial(base ?? {});
|
|
103
108
|
},
|
|
104
|
-
|
|
105
109
|
fromPartial(object: DeepPartial<Chunk>): Chunk {
|
|
106
110
|
const message = createBaseChunk();
|
|
107
111
|
message.chunkName = object.chunkName ?? "";
|
|
@@ -158,22 +162,25 @@ export const CodeLine = {
|
|
|
158
162
|
|
|
159
163
|
fromJSON(object: any): CodeLine {
|
|
160
164
|
return {
|
|
161
|
-
lineIndex: isSet(object.lineIndex) ? Number(object.lineIndex) : 0,
|
|
162
|
-
lineCode: isSet(object.lineCode) ? String(object.lineCode) : "",
|
|
165
|
+
lineIndex: isSet(object.lineIndex) ? globalThis.Number(object.lineIndex) : 0,
|
|
166
|
+
lineCode: isSet(object.lineCode) ? globalThis.String(object.lineCode) : "",
|
|
163
167
|
};
|
|
164
168
|
},
|
|
165
169
|
|
|
166
170
|
toJSON(message: CodeLine): unknown {
|
|
167
171
|
const obj: any = {};
|
|
168
|
-
message.lineIndex !==
|
|
169
|
-
|
|
172
|
+
if (message.lineIndex !== 0) {
|
|
173
|
+
obj.lineIndex = Math.round(message.lineIndex);
|
|
174
|
+
}
|
|
175
|
+
if (message.lineCode !== "") {
|
|
176
|
+
obj.lineCode = message.lineCode;
|
|
177
|
+
}
|
|
170
178
|
return obj;
|
|
171
179
|
},
|
|
172
180
|
|
|
173
181
|
create(base?: DeepPartial<CodeLine>): CodeLine {
|
|
174
182
|
return CodeLine.fromPartial(base ?? {});
|
|
175
183
|
},
|
|
176
|
-
|
|
177
184
|
fromPartial(object: DeepPartial<CodeLine>): CodeLine {
|
|
178
185
|
const message = createBaseCodeLine();
|
|
179
186
|
message.lineIndex = object.lineIndex ?? 0;
|
|
@@ -298,41 +305,51 @@ export const MappedChunk = {
|
|
|
298
305
|
|
|
299
306
|
fromJSON(object: any): MappedChunk {
|
|
300
307
|
return {
|
|
301
|
-
chunkName: isSet(object.chunkName) ? String(object.chunkName) : "",
|
|
302
|
-
originalLineNumber: isSet(object.originalLineNumber) ? Number(object.originalLineNumber) : 0,
|
|
303
|
-
originalColumnNumber: isSet(object.originalColumnNumber) ? Number(object.originalColumnNumber) : 0,
|
|
304
|
-
sourceFileName: isSet(object.sourceFileName) ? String(object.sourceFileName) : "",
|
|
305
|
-
sourceCodeLines: Array.isArray(object?.sourceCodeLines)
|
|
308
|
+
chunkName: isSet(object.chunkName) ? globalThis.String(object.chunkName) : "",
|
|
309
|
+
originalLineNumber: isSet(object.originalLineNumber) ? globalThis.Number(object.originalLineNumber) : 0,
|
|
310
|
+
originalColumnNumber: isSet(object.originalColumnNumber) ? globalThis.Number(object.originalColumnNumber) : 0,
|
|
311
|
+
sourceFileName: isSet(object.sourceFileName) ? globalThis.String(object.sourceFileName) : "",
|
|
312
|
+
sourceCodeLines: globalThis.Array.isArray(object?.sourceCodeLines)
|
|
306
313
|
? object.sourceCodeLines.map((e: any) => CodeLine.fromJSON(e))
|
|
307
314
|
: [],
|
|
308
|
-
generatedLineNumber: isSet(object.generatedLineNumber) ? Number(object.generatedLineNumber) : 0,
|
|
309
|
-
generatedColumnNumber: isSet(object.generatedColumnNumber) ? Number(object.generatedColumnNumber) : 0,
|
|
310
|
-
sourceFunctionName: isSet(object.sourceFunctionName) ? String(object.sourceFunctionName) : "",
|
|
315
|
+
generatedLineNumber: isSet(object.generatedLineNumber) ? globalThis.Number(object.generatedLineNumber) : 0,
|
|
316
|
+
generatedColumnNumber: isSet(object.generatedColumnNumber) ? globalThis.Number(object.generatedColumnNumber) : 0,
|
|
317
|
+
sourceFunctionName: isSet(object.sourceFunctionName) ? globalThis.String(object.sourceFunctionName) : "",
|
|
311
318
|
};
|
|
312
319
|
},
|
|
313
320
|
|
|
314
321
|
toJSON(message: MappedChunk): unknown {
|
|
315
322
|
const obj: any = {};
|
|
316
|
-
message.chunkName !==
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
message.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
obj.
|
|
323
|
+
if (message.chunkName !== "") {
|
|
324
|
+
obj.chunkName = message.chunkName;
|
|
325
|
+
}
|
|
326
|
+
if (message.originalLineNumber !== 0) {
|
|
327
|
+
obj.originalLineNumber = Math.round(message.originalLineNumber);
|
|
328
|
+
}
|
|
329
|
+
if (message.originalColumnNumber !== 0) {
|
|
330
|
+
obj.originalColumnNumber = Math.round(message.originalColumnNumber);
|
|
331
|
+
}
|
|
332
|
+
if (message.sourceFileName !== "") {
|
|
333
|
+
obj.sourceFileName = message.sourceFileName;
|
|
334
|
+
}
|
|
335
|
+
if (message.sourceCodeLines?.length) {
|
|
336
|
+
obj.sourceCodeLines = message.sourceCodeLines.map((e) => CodeLine.toJSON(e));
|
|
337
|
+
}
|
|
338
|
+
if (message.generatedLineNumber !== 0) {
|
|
339
|
+
obj.generatedLineNumber = Math.round(message.generatedLineNumber);
|
|
340
|
+
}
|
|
341
|
+
if (message.generatedColumnNumber !== 0) {
|
|
342
|
+
obj.generatedColumnNumber = Math.round(message.generatedColumnNumber);
|
|
343
|
+
}
|
|
344
|
+
if (message.sourceFunctionName !== "") {
|
|
345
|
+
obj.sourceFunctionName = message.sourceFunctionName;
|
|
324
346
|
}
|
|
325
|
-
message.generatedLineNumber !== undefined && (obj.generatedLineNumber = Math.round(message.generatedLineNumber));
|
|
326
|
-
message.generatedColumnNumber !== undefined &&
|
|
327
|
-
(obj.generatedColumnNumber = Math.round(message.generatedColumnNumber));
|
|
328
|
-
message.sourceFunctionName !== undefined && (obj.sourceFunctionName = message.sourceFunctionName);
|
|
329
347
|
return obj;
|
|
330
348
|
},
|
|
331
349
|
|
|
332
350
|
create(base?: DeepPartial<MappedChunk>): MappedChunk {
|
|
333
351
|
return MappedChunk.fromPartial(base ?? {});
|
|
334
352
|
},
|
|
335
|
-
|
|
336
353
|
fromPartial(object: DeepPartial<MappedChunk>): MappedChunk {
|
|
337
354
|
const message = createBaseMappedChunk();
|
|
338
355
|
message.chunkName = object.chunkName ?? "";
|
|
@@ -347,36 +364,18 @@ export const MappedChunk = {
|
|
|
347
364
|
},
|
|
348
365
|
};
|
|
349
366
|
|
|
350
|
-
declare var self: any | undefined;
|
|
351
|
-
declare var window: any | undefined;
|
|
352
|
-
declare var global: any | undefined;
|
|
353
|
-
var tsProtoGlobalThis: any = (() => {
|
|
354
|
-
if (typeof globalThis !== "undefined") {
|
|
355
|
-
return globalThis;
|
|
356
|
-
}
|
|
357
|
-
if (typeof self !== "undefined") {
|
|
358
|
-
return self;
|
|
359
|
-
}
|
|
360
|
-
if (typeof window !== "undefined") {
|
|
361
|
-
return window;
|
|
362
|
-
}
|
|
363
|
-
if (typeof global !== "undefined") {
|
|
364
|
-
return global;
|
|
365
|
-
}
|
|
366
|
-
throw "Unable to locate global object";
|
|
367
|
-
})();
|
|
368
|
-
|
|
369
367
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
370
368
|
|
|
371
369
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
372
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
370
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
371
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
373
372
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
374
373
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
375
374
|
: Partial<T>;
|
|
376
375
|
|
|
377
376
|
function longToNumber(long: Long): number {
|
|
378
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
379
|
-
throw new
|
|
377
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
378
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
380
379
|
}
|
|
381
380
|
return long.toNumber();
|
|
382
381
|
}
|
|
@@ -11,7 +11,7 @@ export interface FileMetadata {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function createBaseFileMetadata(): FileMetadata {
|
|
14
|
-
return { chunkName: "", size: 0, content: new Uint8Array() };
|
|
14
|
+
return { chunkName: "", size: 0, content: new Uint8Array(0) };
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const FileMetadata = {
|
|
@@ -67,58 +67,43 @@ export const FileMetadata = {
|
|
|
67
67
|
|
|
68
68
|
fromJSON(object: any): FileMetadata {
|
|
69
69
|
return {
|
|
70
|
-
chunkName: isSet(object.chunkName) ? String(object.chunkName) : "",
|
|
71
|
-
size: isSet(object.size) ? Number(object.size) : 0,
|
|
72
|
-
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(),
|
|
70
|
+
chunkName: isSet(object.chunkName) ? globalThis.String(object.chunkName) : "",
|
|
71
|
+
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
72
|
+
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
|
|
76
76
|
toJSON(message: FileMetadata): unknown {
|
|
77
77
|
const obj: any = {};
|
|
78
|
-
message.chunkName !==
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
if (message.chunkName !== "") {
|
|
79
|
+
obj.chunkName = message.chunkName;
|
|
80
|
+
}
|
|
81
|
+
if (message.size !== 0) {
|
|
82
|
+
obj.size = Math.round(message.size);
|
|
83
|
+
}
|
|
84
|
+
if (message.content.length !== 0) {
|
|
85
|
+
obj.content = base64FromBytes(message.content);
|
|
86
|
+
}
|
|
82
87
|
return obj;
|
|
83
88
|
},
|
|
84
89
|
|
|
85
90
|
create(base?: DeepPartial<FileMetadata>): FileMetadata {
|
|
86
91
|
return FileMetadata.fromPartial(base ?? {});
|
|
87
92
|
},
|
|
88
|
-
|
|
89
93
|
fromPartial(object: DeepPartial<FileMetadata>): FileMetadata {
|
|
90
94
|
const message = createBaseFileMetadata();
|
|
91
95
|
message.chunkName = object.chunkName ?? "";
|
|
92
96
|
message.size = object.size ?? 0;
|
|
93
|
-
message.content = object.content ?? new Uint8Array();
|
|
97
|
+
message.content = object.content ?? new Uint8Array(0);
|
|
94
98
|
return message;
|
|
95
99
|
},
|
|
96
100
|
};
|
|
97
101
|
|
|
98
|
-
declare var self: any | undefined;
|
|
99
|
-
declare var window: any | undefined;
|
|
100
|
-
declare var global: any | undefined;
|
|
101
|
-
var tsProtoGlobalThis: any = (() => {
|
|
102
|
-
if (typeof globalThis !== "undefined") {
|
|
103
|
-
return globalThis;
|
|
104
|
-
}
|
|
105
|
-
if (typeof self !== "undefined") {
|
|
106
|
-
return self;
|
|
107
|
-
}
|
|
108
|
-
if (typeof window !== "undefined") {
|
|
109
|
-
return window;
|
|
110
|
-
}
|
|
111
|
-
if (typeof global !== "undefined") {
|
|
112
|
-
return global;
|
|
113
|
-
}
|
|
114
|
-
throw "Unable to locate global object";
|
|
115
|
-
})();
|
|
116
|
-
|
|
117
102
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
118
|
-
if (
|
|
119
|
-
return Uint8Array.from(
|
|
103
|
+
if (globalThis.Buffer) {
|
|
104
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
120
105
|
} else {
|
|
121
|
-
const bin =
|
|
106
|
+
const bin = globalThis.atob(b64);
|
|
122
107
|
const arr = new Uint8Array(bin.length);
|
|
123
108
|
for (let i = 0; i < bin.length; ++i) {
|
|
124
109
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -128,28 +113,29 @@ function bytesFromBase64(b64: string): Uint8Array {
|
|
|
128
113
|
}
|
|
129
114
|
|
|
130
115
|
function base64FromBytes(arr: Uint8Array): string {
|
|
131
|
-
if (
|
|
132
|
-
return
|
|
116
|
+
if (globalThis.Buffer) {
|
|
117
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
133
118
|
} else {
|
|
134
119
|
const bin: string[] = [];
|
|
135
120
|
arr.forEach((byte) => {
|
|
136
|
-
bin.push(String.fromCharCode(byte));
|
|
121
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
137
122
|
});
|
|
138
|
-
return
|
|
123
|
+
return globalThis.btoa(bin.join(""));
|
|
139
124
|
}
|
|
140
125
|
}
|
|
141
126
|
|
|
142
127
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
143
128
|
|
|
144
129
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
145
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
130
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
131
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
146
132
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
147
133
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
148
134
|
: Partial<T>;
|
|
149
135
|
|
|
150
136
|
function longToNumber(long: Long): number {
|
|
151
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
152
|
-
throw new
|
|
137
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
138
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
153
139
|
}
|
|
154
140
|
return long.toNumber();
|
|
155
141
|
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { FileMetadata } from "./file";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
6
|
+
|
|
7
|
+
export interface UploadReactNativeSourceMapsRequest {
|
|
8
|
+
application: string;
|
|
9
|
+
releaseId: string;
|
|
10
|
+
commitHash?: string | undefined;
|
|
11
|
+
repoName?: string | undefined;
|
|
12
|
+
user?: string | undefined;
|
|
13
|
+
files: FileMetadata[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface UploadReactNativeSourceMapsResponse {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function createBaseUploadReactNativeSourceMapsRequest(): UploadReactNativeSourceMapsRequest {
|
|
20
|
+
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, user: undefined, files: [] };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const UploadReactNativeSourceMapsRequest = {
|
|
24
|
+
encode(message: UploadReactNativeSourceMapsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
25
|
+
if (message.application !== "") {
|
|
26
|
+
writer.uint32(10).string(message.application);
|
|
27
|
+
}
|
|
28
|
+
if (message.releaseId !== "") {
|
|
29
|
+
writer.uint32(18).string(message.releaseId);
|
|
30
|
+
}
|
|
31
|
+
if (message.commitHash !== undefined) {
|
|
32
|
+
writer.uint32(26).string(message.commitHash);
|
|
33
|
+
}
|
|
34
|
+
if (message.repoName !== undefined) {
|
|
35
|
+
writer.uint32(34).string(message.repoName);
|
|
36
|
+
}
|
|
37
|
+
if (message.user !== undefined) {
|
|
38
|
+
writer.uint32(42).string(message.user);
|
|
39
|
+
}
|
|
40
|
+
for (const v of message.files) {
|
|
41
|
+
FileMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UploadReactNativeSourceMapsRequest {
|
|
47
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
48
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
49
|
+
const message = createBaseUploadReactNativeSourceMapsRequest();
|
|
50
|
+
while (reader.pos < end) {
|
|
51
|
+
const tag = reader.uint32();
|
|
52
|
+
switch (tag >>> 3) {
|
|
53
|
+
case 1:
|
|
54
|
+
if (tag !== 10) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message.application = reader.string();
|
|
59
|
+
continue;
|
|
60
|
+
case 2:
|
|
61
|
+
if (tag !== 18) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message.releaseId = reader.string();
|
|
66
|
+
continue;
|
|
67
|
+
case 3:
|
|
68
|
+
if (tag !== 26) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message.commitHash = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
case 4:
|
|
75
|
+
if (tag !== 34) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message.repoName = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 5:
|
|
82
|
+
if (tag !== 42) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message.user = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
case 6:
|
|
89
|
+
if (tag !== 50) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message.files.push(FileMetadata.decode(reader, reader.uint32()));
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
reader.skipType(tag & 7);
|
|
100
|
+
}
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
fromJSON(object: any): UploadReactNativeSourceMapsRequest {
|
|
105
|
+
return {
|
|
106
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
107
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
108
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
109
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
110
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
111
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
toJSON(message: UploadReactNativeSourceMapsRequest): unknown {
|
|
116
|
+
const obj: any = {};
|
|
117
|
+
if (message.application !== "") {
|
|
118
|
+
obj.application = message.application;
|
|
119
|
+
}
|
|
120
|
+
if (message.releaseId !== "") {
|
|
121
|
+
obj.releaseId = message.releaseId;
|
|
122
|
+
}
|
|
123
|
+
if (message.commitHash !== undefined) {
|
|
124
|
+
obj.commitHash = message.commitHash;
|
|
125
|
+
}
|
|
126
|
+
if (message.repoName !== undefined) {
|
|
127
|
+
obj.repoName = message.repoName;
|
|
128
|
+
}
|
|
129
|
+
if (message.user !== undefined) {
|
|
130
|
+
obj.user = message.user;
|
|
131
|
+
}
|
|
132
|
+
if (message.files?.length) {
|
|
133
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
create(base?: DeepPartial<UploadReactNativeSourceMapsRequest>): UploadReactNativeSourceMapsRequest {
|
|
139
|
+
return UploadReactNativeSourceMapsRequest.fromPartial(base ?? {});
|
|
140
|
+
},
|
|
141
|
+
fromPartial(object: DeepPartial<UploadReactNativeSourceMapsRequest>): UploadReactNativeSourceMapsRequest {
|
|
142
|
+
const message = createBaseUploadReactNativeSourceMapsRequest();
|
|
143
|
+
message.application = object.application ?? "";
|
|
144
|
+
message.releaseId = object.releaseId ?? "";
|
|
145
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
146
|
+
message.repoName = object.repoName ?? undefined;
|
|
147
|
+
message.user = object.user ?? undefined;
|
|
148
|
+
message.files = object.files?.map((e) => FileMetadata.fromPartial(e)) || [];
|
|
149
|
+
return message;
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
function createBaseUploadReactNativeSourceMapsResponse(): UploadReactNativeSourceMapsResponse {
|
|
154
|
+
return {};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export const UploadReactNativeSourceMapsResponse = {
|
|
158
|
+
encode(_: UploadReactNativeSourceMapsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
159
|
+
return writer;
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UploadReactNativeSourceMapsResponse {
|
|
163
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
164
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
165
|
+
const message = createBaseUploadReactNativeSourceMapsResponse();
|
|
166
|
+
while (reader.pos < end) {
|
|
167
|
+
const tag = reader.uint32();
|
|
168
|
+
switch (tag >>> 3) {
|
|
169
|
+
}
|
|
170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
reader.skipType(tag & 7);
|
|
174
|
+
}
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
fromJSON(_: any): UploadReactNativeSourceMapsResponse {
|
|
179
|
+
return {};
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
toJSON(_: UploadReactNativeSourceMapsResponse): unknown {
|
|
183
|
+
const obj: any = {};
|
|
184
|
+
return obj;
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
create(base?: DeepPartial<UploadReactNativeSourceMapsResponse>): UploadReactNativeSourceMapsResponse {
|
|
188
|
+
return UploadReactNativeSourceMapsResponse.fromPartial(base ?? {});
|
|
189
|
+
},
|
|
190
|
+
fromPartial(_: DeepPartial<UploadReactNativeSourceMapsResponse>): UploadReactNativeSourceMapsResponse {
|
|
191
|
+
const message = createBaseUploadReactNativeSourceMapsResponse();
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export type RumReactNativeSourceMapServiceDefinition = typeof RumReactNativeSourceMapServiceDefinition;
|
|
197
|
+
export const RumReactNativeSourceMapServiceDefinition = {
|
|
198
|
+
name: "RumReactNativeSourceMapService",
|
|
199
|
+
fullName: "com.coralogix.rum.v2.RumReactNativeSourceMapService",
|
|
200
|
+
methods: {
|
|
201
|
+
uploadReactNativeSourceMaps: {
|
|
202
|
+
name: "UploadReactNativeSourceMaps",
|
|
203
|
+
requestType: UploadReactNativeSourceMapsRequest,
|
|
204
|
+
requestStream: false,
|
|
205
|
+
responseType: UploadReactNativeSourceMapsResponse,
|
|
206
|
+
responseStream: false,
|
|
207
|
+
options: {},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
} as const;
|
|
211
|
+
|
|
212
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
213
|
+
|
|
214
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
215
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
216
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
217
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
218
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
219
|
+
: Partial<T>;
|
|
220
|
+
|
|
221
|
+
function isSet(value: any): boolean {
|
|
222
|
+
return value !== null && value !== undefined;
|
|
223
|
+
}
|