@coralogix/rum-cli 1.1.38 → 1.1.41
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 +1 -0
- package/api/base/base.api.ts +27 -30
- package/api/source-maps/source-maps.api.ts +78 -0
- package/cli/commands/source-maps/upload-source-maps-command.ts +3 -2
- package/consts/consts.ts +1 -0
- package/dist/api/base/base.api.d.ts +9 -7
- package/dist/api/base/base.api.js +14 -19
- package/dist/api/source-maps/source-maps.api.d.ts +5 -2
- package/dist/api/source-maps/source-maps.api.js +57 -3
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +4 -3
- package/dist/consts/consts.js +3 -2
- package/dist/grpc-client/grpc-client-factory.d.ts +72 -0
- package/dist/models/source-maps-commands.model.d.ts +1 -0
- package/dist/models/source-maps-commands.model.js +1 -1
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +150 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +29 -1
- package/dist/proto-models/com/coralogix/blobset/v2/case_file.d.ts +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/case_file.js +161 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +1 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +33 -3
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +31 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +215 -7
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +3 -1
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +13 -1
- package/dist/proto-models/com/coralogix/blobset/v2/investigation_file.d.ts +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/investigation_file.js +161 -0
- package/dist/proto-models/com/coralogix/blobset/v2/proguard.d.ts +68 -0
- package/dist/proto-models/com/coralogix/blobset/v2/proguard.js +400 -0
- package/dist/proto-models/com/coralogix/rum/v2/application_releases.d.ts +38 -0
- package/dist/proto-models/com/coralogix/rum/v2/application_releases.js +180 -0
- package/dist/proto-models/com/coralogix/rum/v2/merge_error.d.ts +38 -0
- package/dist/proto-models/com/coralogix/rum/v2/merge_error.js +171 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +4 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +93 -9
- package/dist/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.d.ts +197 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.js +478 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +107 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +385 -2
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +46 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +142 -2
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +4 -1
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +19 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +2 -0
- package/dist/proto-models/com/coralogix/rum/v2/template.js +31 -3
- package/dist/services/source-maps/source-maps.service.d.ts +1 -0
- package/dist/services/source-maps/source-maps.service.js +23 -1
- package/models/source-maps-commands.model.ts +1 -0
- package/package.json +1 -1
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +28 -0
- package/proto-models/com/coralogix/blobset/v2/case_file.ts +188 -0
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +35 -1
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +243 -1
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +12 -0
- package/proto-models/com/coralogix/blobset/v2/investigation_file.ts +188 -0
- package/proto-models/com/coralogix/blobset/v2/proguard.ts +466 -0
- package/proto-models/com/coralogix/rum/v2/application_releases.ts +213 -0
- package/proto-models/com/coralogix/rum/v2/merge_error.ts +201 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +96 -4
- package/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.ts +566 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +462 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +164 -0
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +18 -0
- package/proto-models/com/coralogix/rum/v2/template.ts +33 -1
- package/protofetch.lock +4 -4
- package/protofetch.toml +2 -2
- package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +7 -0
- package/protos/com/coralogix/blobset/v2/case_file.proto +12 -0
- package/protos/com/coralogix/blobset/v2/dsym.proto +1 -0
- package/protos/com/coralogix/blobset/v2/entity_metadata.proto +14 -1
- package/protos/com/coralogix/blobset/v2/entity_type.proto +3 -1
- package/protos/com/coralogix/blobset/v2/investigation_file.proto +12 -0
- package/protos/com/coralogix/blobset/v2/proguard.proto +30 -0
- package/protos/com/coralogix/rum/v2/application_releases.proto +14 -0
- package/protos/com/coralogix/rum/v2/merge_error.proto +13 -0
- package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +7 -0
- package/protos/com/coralogix/rum/v2/rum_merge_erros_service.proto +42 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +23 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +11 -0
- package/protos/com/coralogix/rum/v2/saved_filter.proto +3 -0
- package/protos/com/coralogix/rum/v2/template.proto +2 -0
- package/protoset.bin +0 -0
- package/services/source-maps/source-maps.service.ts +26 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v3.19.1
|
|
5
|
+
// source: com/coralogix/blobset/v2/case_file.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
11
|
+
|
|
12
|
+
export interface GetCaseFileRequest {
|
|
13
|
+
fileId: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface GetCaseFileResponse {
|
|
17
|
+
data: Uint8Array;
|
|
18
|
+
fileName: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function createBaseGetCaseFileRequest(): GetCaseFileRequest {
|
|
22
|
+
return { fileId: "" };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GetCaseFileRequest = {
|
|
26
|
+
encode(message: GetCaseFileRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27
|
+
if (message.fileId !== "") {
|
|
28
|
+
writer.uint32(10).string(message.fileId);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetCaseFileRequest {
|
|
34
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseGetCaseFileRequest();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
if (tag !== 10) {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message.fileId = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
fromJSON(object: any): GetCaseFileRequest {
|
|
57
|
+
return { fileId: isSet(object.fileId) ? globalThis.String(object.fileId) : "" };
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
toJSON(message: GetCaseFileRequest): unknown {
|
|
61
|
+
const obj: any = {};
|
|
62
|
+
if (message.fileId !== "") {
|
|
63
|
+
obj.fileId = message.fileId;
|
|
64
|
+
}
|
|
65
|
+
return obj;
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
create(base?: DeepPartial<GetCaseFileRequest>): GetCaseFileRequest {
|
|
69
|
+
return GetCaseFileRequest.fromPartial(base ?? {});
|
|
70
|
+
},
|
|
71
|
+
fromPartial(object: DeepPartial<GetCaseFileRequest>): GetCaseFileRequest {
|
|
72
|
+
const message = createBaseGetCaseFileRequest();
|
|
73
|
+
message.fileId = object.fileId ?? "";
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
function createBaseGetCaseFileResponse(): GetCaseFileResponse {
|
|
79
|
+
return { data: new Uint8Array(0), fileName: "" };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const GetCaseFileResponse = {
|
|
83
|
+
encode(message: GetCaseFileResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
84
|
+
if (message.data.length !== 0) {
|
|
85
|
+
writer.uint32(10).bytes(message.data);
|
|
86
|
+
}
|
|
87
|
+
if (message.fileName !== "") {
|
|
88
|
+
writer.uint32(18).string(message.fileName);
|
|
89
|
+
}
|
|
90
|
+
return writer;
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetCaseFileResponse {
|
|
94
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
95
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
96
|
+
const message = createBaseGetCaseFileResponse();
|
|
97
|
+
while (reader.pos < end) {
|
|
98
|
+
const tag = reader.uint32();
|
|
99
|
+
switch (tag >>> 3) {
|
|
100
|
+
case 1:
|
|
101
|
+
if (tag !== 10) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message.data = reader.bytes();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 18) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message.fileName = reader.string();
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
reader.skipType(tag & 7);
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
fromJSON(object: any): GetCaseFileResponse {
|
|
124
|
+
return {
|
|
125
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
126
|
+
fileName: isSet(object.fileName) ? globalThis.String(object.fileName) : "",
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
toJSON(message: GetCaseFileResponse): unknown {
|
|
131
|
+
const obj: any = {};
|
|
132
|
+
if (message.data.length !== 0) {
|
|
133
|
+
obj.data = base64FromBytes(message.data);
|
|
134
|
+
}
|
|
135
|
+
if (message.fileName !== "") {
|
|
136
|
+
obj.fileName = message.fileName;
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
create(base?: DeepPartial<GetCaseFileResponse>): GetCaseFileResponse {
|
|
142
|
+
return GetCaseFileResponse.fromPartial(base ?? {});
|
|
143
|
+
},
|
|
144
|
+
fromPartial(object: DeepPartial<GetCaseFileResponse>): GetCaseFileResponse {
|
|
145
|
+
const message = createBaseGetCaseFileResponse();
|
|
146
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
147
|
+
message.fileName = object.fileName ?? "";
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
153
|
+
if ((globalThis as any).Buffer) {
|
|
154
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
155
|
+
} else {
|
|
156
|
+
const bin = globalThis.atob(b64);
|
|
157
|
+
const arr = new Uint8Array(bin.length);
|
|
158
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
159
|
+
arr[i] = bin.charCodeAt(i);
|
|
160
|
+
}
|
|
161
|
+
return arr;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
166
|
+
if ((globalThis as any).Buffer) {
|
|
167
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
168
|
+
} else {
|
|
169
|
+
const bin: string[] = [];
|
|
170
|
+
arr.forEach((byte) => {
|
|
171
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
172
|
+
});
|
|
173
|
+
return globalThis.btoa(bin.join(""));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
178
|
+
|
|
179
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
180
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
181
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
182
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
183
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
184
|
+
: Partial<T>;
|
|
185
|
+
|
|
186
|
+
function isSet(value: any): boolean {
|
|
187
|
+
return value !== null && value !== undefined;
|
|
188
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// source: com/coralogix/blobset/v2/dsym.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
8
|
+
import Long from "long";
|
|
8
9
|
import _m0 from "protobufjs/minimal";
|
|
9
10
|
|
|
10
11
|
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
@@ -14,6 +15,7 @@ export interface GetMappedIosStackTraceRequest {
|
|
|
14
15
|
releaseId: string;
|
|
15
16
|
baseAddress: string;
|
|
16
17
|
addresses: string[];
|
|
18
|
+
numberOfSurroundingLines: number;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export interface GetMappedIosStackTraceResponse {
|
|
@@ -32,7 +34,7 @@ export interface GetMappedIosStackTraceResponse_MappedAddressesEntry {
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
function createBaseGetMappedIosStackTraceRequest(): GetMappedIosStackTraceRequest {
|
|
35
|
-
return { application: "", releaseId: "", baseAddress: "", addresses: [] };
|
|
37
|
+
return { application: "", releaseId: "", baseAddress: "", addresses: [], numberOfSurroundingLines: 0 };
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export const GetMappedIosStackTraceRequest = {
|
|
@@ -49,6 +51,9 @@ export const GetMappedIosStackTraceRequest = {
|
|
|
49
51
|
for (const v of message.addresses) {
|
|
50
52
|
writer.uint32(34).string(v!);
|
|
51
53
|
}
|
|
54
|
+
if (message.numberOfSurroundingLines !== 0) {
|
|
55
|
+
writer.uint32(40).int64(message.numberOfSurroundingLines);
|
|
56
|
+
}
|
|
52
57
|
return writer;
|
|
53
58
|
},
|
|
54
59
|
|
|
@@ -87,6 +92,13 @@ export const GetMappedIosStackTraceRequest = {
|
|
|
87
92
|
|
|
88
93
|
message.addresses.push(reader.string());
|
|
89
94
|
continue;
|
|
95
|
+
case 5:
|
|
96
|
+
if (tag !== 40) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message.numberOfSurroundingLines = longToNumber(reader.int64() as Long);
|
|
101
|
+
continue;
|
|
90
102
|
}
|
|
91
103
|
if ((tag & 7) === 4 || tag === 0) {
|
|
92
104
|
break;
|
|
@@ -104,6 +116,9 @@ export const GetMappedIosStackTraceRequest = {
|
|
|
104
116
|
addresses: globalThis.Array.isArray(object?.addresses)
|
|
105
117
|
? object.addresses.map((e: any) => globalThis.String(e))
|
|
106
118
|
: [],
|
|
119
|
+
numberOfSurroundingLines: isSet(object.numberOfSurroundingLines)
|
|
120
|
+
? globalThis.Number(object.numberOfSurroundingLines)
|
|
121
|
+
: 0,
|
|
107
122
|
};
|
|
108
123
|
},
|
|
109
124
|
|
|
@@ -121,6 +136,9 @@ export const GetMappedIosStackTraceRequest = {
|
|
|
121
136
|
if (message.addresses?.length) {
|
|
122
137
|
obj.addresses = message.addresses;
|
|
123
138
|
}
|
|
139
|
+
if (message.numberOfSurroundingLines !== 0) {
|
|
140
|
+
obj.numberOfSurroundingLines = Math.round(message.numberOfSurroundingLines);
|
|
141
|
+
}
|
|
124
142
|
return obj;
|
|
125
143
|
},
|
|
126
144
|
|
|
@@ -133,6 +151,7 @@ export const GetMappedIosStackTraceRequest = {
|
|
|
133
151
|
message.releaseId = object.releaseId ?? "";
|
|
134
152
|
message.baseAddress = object.baseAddress ?? "";
|
|
135
153
|
message.addresses = object.addresses?.map((e) => e) || [];
|
|
154
|
+
message.numberOfSurroundingLines = object.numberOfSurroundingLines ?? 0;
|
|
136
155
|
return message;
|
|
137
156
|
},
|
|
138
157
|
};
|
|
@@ -391,6 +410,21 @@ export type DeepPartial<T> = T extends Builtin ? T
|
|
|
391
410
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
392
411
|
: Partial<T>;
|
|
393
412
|
|
|
413
|
+
function longToNumber(long: Long): number {
|
|
414
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
415
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
416
|
+
}
|
|
417
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
418
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
419
|
+
}
|
|
420
|
+
return long.toNumber();
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (_m0.util.Long !== Long) {
|
|
424
|
+
_m0.util.Long = Long as any;
|
|
425
|
+
_m0.configure();
|
|
426
|
+
}
|
|
427
|
+
|
|
394
428
|
function isObject(value: any): boolean {
|
|
395
429
|
return typeof value === "object" && value !== null;
|
|
396
430
|
}
|
|
@@ -31,6 +31,17 @@ export interface SourceMapMetadata {
|
|
|
31
31
|
commitHash?: string | undefined;
|
|
32
32
|
repoName?: string | undefined;
|
|
33
33
|
orgName?: string | undefined;
|
|
34
|
+
internalVersion?: number | undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface InvestigationFileMetadata {
|
|
38
|
+
fileId: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface CaseFileMetadata {
|
|
43
|
+
fileId: string;
|
|
44
|
+
fileName: string;
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
export interface EntityMetadata {
|
|
@@ -38,6 +49,8 @@ export interface EntityMetadata {
|
|
|
38
49
|
| { $case: "dsymMetadata"; dsymMetadata: DsymMetadata }
|
|
39
50
|
| { $case: "sourceMapMetadata"; sourceMapMetadata: SourceMapMetadata }
|
|
40
51
|
| { $case: "proguardMetadata"; proguardMetadata: ProguardMetadata }
|
|
52
|
+
| { $case: "investigationFileMetadata"; investigationFileMetadata: InvestigationFileMetadata }
|
|
53
|
+
| { $case: "caseFileMetadata"; caseFileMetadata: CaseFileMetadata }
|
|
41
54
|
| undefined;
|
|
42
55
|
}
|
|
43
56
|
|
|
@@ -280,7 +293,14 @@ export const ProguardMetadata = {
|
|
|
280
293
|
};
|
|
281
294
|
|
|
282
295
|
function createBaseSourceMapMetadata(): SourceMapMetadata {
|
|
283
|
-
return {
|
|
296
|
+
return {
|
|
297
|
+
application: "",
|
|
298
|
+
releaseId: "",
|
|
299
|
+
commitHash: undefined,
|
|
300
|
+
repoName: undefined,
|
|
301
|
+
orgName: undefined,
|
|
302
|
+
internalVersion: undefined,
|
|
303
|
+
};
|
|
284
304
|
}
|
|
285
305
|
|
|
286
306
|
export const SourceMapMetadata = {
|
|
@@ -300,6 +320,9 @@ export const SourceMapMetadata = {
|
|
|
300
320
|
if (message.orgName !== undefined) {
|
|
301
321
|
writer.uint32(42).string(message.orgName);
|
|
302
322
|
}
|
|
323
|
+
if (message.internalVersion !== undefined) {
|
|
324
|
+
writer.uint32(48).int32(message.internalVersion);
|
|
325
|
+
}
|
|
303
326
|
return writer;
|
|
304
327
|
},
|
|
305
328
|
|
|
@@ -345,6 +368,13 @@ export const SourceMapMetadata = {
|
|
|
345
368
|
|
|
346
369
|
message.orgName = reader.string();
|
|
347
370
|
continue;
|
|
371
|
+
case 6:
|
|
372
|
+
if (tag !== 48) {
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
message.internalVersion = reader.int32();
|
|
377
|
+
continue;
|
|
348
378
|
}
|
|
349
379
|
if ((tag & 7) === 4 || tag === 0) {
|
|
350
380
|
break;
|
|
@@ -361,6 +391,7 @@ export const SourceMapMetadata = {
|
|
|
361
391
|
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
362
392
|
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
363
393
|
orgName: isSet(object.orgName) ? globalThis.String(object.orgName) : undefined,
|
|
394
|
+
internalVersion: isSet(object.internalVersion) ? globalThis.Number(object.internalVersion) : undefined,
|
|
364
395
|
};
|
|
365
396
|
},
|
|
366
397
|
|
|
@@ -381,6 +412,9 @@ export const SourceMapMetadata = {
|
|
|
381
412
|
if (message.orgName !== undefined) {
|
|
382
413
|
obj.orgName = message.orgName;
|
|
383
414
|
}
|
|
415
|
+
if (message.internalVersion !== undefined) {
|
|
416
|
+
obj.internalVersion = Math.round(message.internalVersion);
|
|
417
|
+
}
|
|
384
418
|
return obj;
|
|
385
419
|
},
|
|
386
420
|
|
|
@@ -394,6 +428,155 @@ export const SourceMapMetadata = {
|
|
|
394
428
|
message.commitHash = object.commitHash ?? undefined;
|
|
395
429
|
message.repoName = object.repoName ?? undefined;
|
|
396
430
|
message.orgName = object.orgName ?? undefined;
|
|
431
|
+
message.internalVersion = object.internalVersion ?? undefined;
|
|
432
|
+
return message;
|
|
433
|
+
},
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
function createBaseInvestigationFileMetadata(): InvestigationFileMetadata {
|
|
437
|
+
return { fileId: "", fileName: "" };
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export const InvestigationFileMetadata = {
|
|
441
|
+
encode(message: InvestigationFileMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
442
|
+
if (message.fileId !== "") {
|
|
443
|
+
writer.uint32(10).string(message.fileId);
|
|
444
|
+
}
|
|
445
|
+
if (message.fileName !== "") {
|
|
446
|
+
writer.uint32(18).string(message.fileName);
|
|
447
|
+
}
|
|
448
|
+
return writer;
|
|
449
|
+
},
|
|
450
|
+
|
|
451
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvestigationFileMetadata {
|
|
452
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
453
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
454
|
+
const message = createBaseInvestigationFileMetadata();
|
|
455
|
+
while (reader.pos < end) {
|
|
456
|
+
const tag = reader.uint32();
|
|
457
|
+
switch (tag >>> 3) {
|
|
458
|
+
case 1:
|
|
459
|
+
if (tag !== 10) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
message.fileId = reader.string();
|
|
464
|
+
continue;
|
|
465
|
+
case 2:
|
|
466
|
+
if (tag !== 18) {
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
message.fileName = reader.string();
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
reader.skipType(tag & 7);
|
|
477
|
+
}
|
|
478
|
+
return message;
|
|
479
|
+
},
|
|
480
|
+
|
|
481
|
+
fromJSON(object: any): InvestigationFileMetadata {
|
|
482
|
+
return {
|
|
483
|
+
fileId: isSet(object.fileId) ? globalThis.String(object.fileId) : "",
|
|
484
|
+
fileName: isSet(object.fileName) ? globalThis.String(object.fileName) : "",
|
|
485
|
+
};
|
|
486
|
+
},
|
|
487
|
+
|
|
488
|
+
toJSON(message: InvestigationFileMetadata): unknown {
|
|
489
|
+
const obj: any = {};
|
|
490
|
+
if (message.fileId !== "") {
|
|
491
|
+
obj.fileId = message.fileId;
|
|
492
|
+
}
|
|
493
|
+
if (message.fileName !== "") {
|
|
494
|
+
obj.fileName = message.fileName;
|
|
495
|
+
}
|
|
496
|
+
return obj;
|
|
497
|
+
},
|
|
498
|
+
|
|
499
|
+
create(base?: DeepPartial<InvestigationFileMetadata>): InvestigationFileMetadata {
|
|
500
|
+
return InvestigationFileMetadata.fromPartial(base ?? {});
|
|
501
|
+
},
|
|
502
|
+
fromPartial(object: DeepPartial<InvestigationFileMetadata>): InvestigationFileMetadata {
|
|
503
|
+
const message = createBaseInvestigationFileMetadata();
|
|
504
|
+
message.fileId = object.fileId ?? "";
|
|
505
|
+
message.fileName = object.fileName ?? "";
|
|
506
|
+
return message;
|
|
507
|
+
},
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
function createBaseCaseFileMetadata(): CaseFileMetadata {
|
|
511
|
+
return { fileId: "", fileName: "" };
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export const CaseFileMetadata = {
|
|
515
|
+
encode(message: CaseFileMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
516
|
+
if (message.fileId !== "") {
|
|
517
|
+
writer.uint32(10).string(message.fileId);
|
|
518
|
+
}
|
|
519
|
+
if (message.fileName !== "") {
|
|
520
|
+
writer.uint32(18).string(message.fileName);
|
|
521
|
+
}
|
|
522
|
+
return writer;
|
|
523
|
+
},
|
|
524
|
+
|
|
525
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CaseFileMetadata {
|
|
526
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
527
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
528
|
+
const message = createBaseCaseFileMetadata();
|
|
529
|
+
while (reader.pos < end) {
|
|
530
|
+
const tag = reader.uint32();
|
|
531
|
+
switch (tag >>> 3) {
|
|
532
|
+
case 1:
|
|
533
|
+
if (tag !== 10) {
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
message.fileId = reader.string();
|
|
538
|
+
continue;
|
|
539
|
+
case 2:
|
|
540
|
+
if (tag !== 18) {
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
message.fileName = reader.string();
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
reader.skipType(tag & 7);
|
|
551
|
+
}
|
|
552
|
+
return message;
|
|
553
|
+
},
|
|
554
|
+
|
|
555
|
+
fromJSON(object: any): CaseFileMetadata {
|
|
556
|
+
return {
|
|
557
|
+
fileId: isSet(object.fileId) ? globalThis.String(object.fileId) : "",
|
|
558
|
+
fileName: isSet(object.fileName) ? globalThis.String(object.fileName) : "",
|
|
559
|
+
};
|
|
560
|
+
},
|
|
561
|
+
|
|
562
|
+
toJSON(message: CaseFileMetadata): unknown {
|
|
563
|
+
const obj: any = {};
|
|
564
|
+
if (message.fileId !== "") {
|
|
565
|
+
obj.fileId = message.fileId;
|
|
566
|
+
}
|
|
567
|
+
if (message.fileName !== "") {
|
|
568
|
+
obj.fileName = message.fileName;
|
|
569
|
+
}
|
|
570
|
+
return obj;
|
|
571
|
+
},
|
|
572
|
+
|
|
573
|
+
create(base?: DeepPartial<CaseFileMetadata>): CaseFileMetadata {
|
|
574
|
+
return CaseFileMetadata.fromPartial(base ?? {});
|
|
575
|
+
},
|
|
576
|
+
fromPartial(object: DeepPartial<CaseFileMetadata>): CaseFileMetadata {
|
|
577
|
+
const message = createBaseCaseFileMetadata();
|
|
578
|
+
message.fileId = object.fileId ?? "";
|
|
579
|
+
message.fileName = object.fileName ?? "";
|
|
397
580
|
return message;
|
|
398
581
|
},
|
|
399
582
|
};
|
|
@@ -414,6 +597,12 @@ export const EntityMetadata = {
|
|
|
414
597
|
case "proguardMetadata":
|
|
415
598
|
ProguardMetadata.encode(message.metadata.proguardMetadata, writer.uint32(26).fork()).ldelim();
|
|
416
599
|
break;
|
|
600
|
+
case "investigationFileMetadata":
|
|
601
|
+
InvestigationFileMetadata.encode(message.metadata.investigationFileMetadata, writer.uint32(34).fork()).ldelim();
|
|
602
|
+
break;
|
|
603
|
+
case "caseFileMetadata":
|
|
604
|
+
CaseFileMetadata.encode(message.metadata.caseFileMetadata, writer.uint32(42).fork()).ldelim();
|
|
605
|
+
break;
|
|
417
606
|
}
|
|
418
607
|
return writer;
|
|
419
608
|
},
|
|
@@ -452,6 +641,26 @@ export const EntityMetadata = {
|
|
|
452
641
|
proguardMetadata: ProguardMetadata.decode(reader, reader.uint32()),
|
|
453
642
|
};
|
|
454
643
|
continue;
|
|
644
|
+
case 4:
|
|
645
|
+
if (tag !== 34) {
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
message.metadata = {
|
|
650
|
+
$case: "investigationFileMetadata",
|
|
651
|
+
investigationFileMetadata: InvestigationFileMetadata.decode(reader, reader.uint32()),
|
|
652
|
+
};
|
|
653
|
+
continue;
|
|
654
|
+
case 5:
|
|
655
|
+
if (tag !== 42) {
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
message.metadata = {
|
|
660
|
+
$case: "caseFileMetadata",
|
|
661
|
+
caseFileMetadata: CaseFileMetadata.decode(reader, reader.uint32()),
|
|
662
|
+
};
|
|
663
|
+
continue;
|
|
455
664
|
}
|
|
456
665
|
if ((tag & 7) === 4 || tag === 0) {
|
|
457
666
|
break;
|
|
@@ -469,6 +678,13 @@ export const EntityMetadata = {
|
|
|
469
678
|
? { $case: "sourceMapMetadata", sourceMapMetadata: SourceMapMetadata.fromJSON(object.sourceMapMetadata) }
|
|
470
679
|
: isSet(object.proguardMetadata)
|
|
471
680
|
? { $case: "proguardMetadata", proguardMetadata: ProguardMetadata.fromJSON(object.proguardMetadata) }
|
|
681
|
+
: isSet(object.investigationFileMetadata)
|
|
682
|
+
? {
|
|
683
|
+
$case: "investigationFileMetadata",
|
|
684
|
+
investigationFileMetadata: InvestigationFileMetadata.fromJSON(object.investigationFileMetadata),
|
|
685
|
+
}
|
|
686
|
+
: isSet(object.caseFileMetadata)
|
|
687
|
+
? { $case: "caseFileMetadata", caseFileMetadata: CaseFileMetadata.fromJSON(object.caseFileMetadata) }
|
|
472
688
|
: undefined,
|
|
473
689
|
};
|
|
474
690
|
},
|
|
@@ -484,6 +700,12 @@ export const EntityMetadata = {
|
|
|
484
700
|
if (message.metadata?.$case === "proguardMetadata") {
|
|
485
701
|
obj.proguardMetadata = ProguardMetadata.toJSON(message.metadata.proguardMetadata);
|
|
486
702
|
}
|
|
703
|
+
if (message.metadata?.$case === "investigationFileMetadata") {
|
|
704
|
+
obj.investigationFileMetadata = InvestigationFileMetadata.toJSON(message.metadata.investigationFileMetadata);
|
|
705
|
+
}
|
|
706
|
+
if (message.metadata?.$case === "caseFileMetadata") {
|
|
707
|
+
obj.caseFileMetadata = CaseFileMetadata.toJSON(message.metadata.caseFileMetadata);
|
|
708
|
+
}
|
|
487
709
|
return obj;
|
|
488
710
|
},
|
|
489
711
|
|
|
@@ -522,6 +744,26 @@ export const EntityMetadata = {
|
|
|
522
744
|
proguardMetadata: ProguardMetadata.fromPartial(object.metadata.proguardMetadata),
|
|
523
745
|
};
|
|
524
746
|
}
|
|
747
|
+
if (
|
|
748
|
+
object.metadata?.$case === "investigationFileMetadata" &&
|
|
749
|
+
object.metadata?.investigationFileMetadata !== undefined &&
|
|
750
|
+
object.metadata?.investigationFileMetadata !== null
|
|
751
|
+
) {
|
|
752
|
+
message.metadata = {
|
|
753
|
+
$case: "investigationFileMetadata",
|
|
754
|
+
investigationFileMetadata: InvestigationFileMetadata.fromPartial(object.metadata.investigationFileMetadata),
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
if (
|
|
758
|
+
object.metadata?.$case === "caseFileMetadata" &&
|
|
759
|
+
object.metadata?.caseFileMetadata !== undefined &&
|
|
760
|
+
object.metadata?.caseFileMetadata !== null
|
|
761
|
+
) {
|
|
762
|
+
message.metadata = {
|
|
763
|
+
$case: "caseFileMetadata",
|
|
764
|
+
caseFileMetadata: CaseFileMetadata.fromPartial(object.metadata.caseFileMetadata),
|
|
765
|
+
};
|
|
766
|
+
}
|
|
525
767
|
return message;
|
|
526
768
|
},
|
|
527
769
|
};
|
|
@@ -14,6 +14,8 @@ export enum EntityType {
|
|
|
14
14
|
ENTITY_TYPE_SOURCE_MAP = 2,
|
|
15
15
|
ENTITY_TYPE_REACT_NATIVE = 3,
|
|
16
16
|
ENTITY_TYPE_PROGUARD = 4,
|
|
17
|
+
ENTITY_TYPE_INVESTIGATION_FILE = 5,
|
|
18
|
+
ENTITY_TYPE_CASE_FILE = 6,
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export function entityTypeFromJSON(object: any): EntityType {
|
|
@@ -33,6 +35,12 @@ export function entityTypeFromJSON(object: any): EntityType {
|
|
|
33
35
|
case 4:
|
|
34
36
|
case "ENTITY_TYPE_PROGUARD":
|
|
35
37
|
return EntityType.ENTITY_TYPE_PROGUARD;
|
|
38
|
+
case 5:
|
|
39
|
+
case "ENTITY_TYPE_INVESTIGATION_FILE":
|
|
40
|
+
return EntityType.ENTITY_TYPE_INVESTIGATION_FILE;
|
|
41
|
+
case 6:
|
|
42
|
+
case "ENTITY_TYPE_CASE_FILE":
|
|
43
|
+
return EntityType.ENTITY_TYPE_CASE_FILE;
|
|
36
44
|
default:
|
|
37
45
|
throw new globalThis.Error("Unrecognized enum value " + object + " for enum EntityType");
|
|
38
46
|
}
|
|
@@ -50,6 +58,10 @@ export function entityTypeToJSON(object: EntityType): string {
|
|
|
50
58
|
return "ENTITY_TYPE_REACT_NATIVE";
|
|
51
59
|
case EntityType.ENTITY_TYPE_PROGUARD:
|
|
52
60
|
return "ENTITY_TYPE_PROGUARD";
|
|
61
|
+
case EntityType.ENTITY_TYPE_INVESTIGATION_FILE:
|
|
62
|
+
return "ENTITY_TYPE_INVESTIGATION_FILE";
|
|
63
|
+
case EntityType.ENTITY_TYPE_CASE_FILE:
|
|
64
|
+
return "ENTITY_TYPE_CASE_FILE";
|
|
53
65
|
default:
|
|
54
66
|
throw new globalThis.Error("Unrecognized enum value " + object + " for enum EntityType");
|
|
55
67
|
}
|