@coralogix/rum-cli 1.1.16 → 1.1.18
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/.prettierrc +15 -0
- package/README.md +26 -19
- package/api/rum-api.ts +104 -91
- package/cli/commands/delete-source-maps-command.ts +34 -0
- package/cli/commands/index.ts +7 -0
- package/cli/commands/update-source-maps-command.ts +38 -0
- package/cli/commands/upload-source-maps-command.ts +38 -0
- package/cli/rum-cli.ts +13 -47
- package/cli/validators/index.ts +9 -10
- package/config/config.ts +21 -21
- package/consts/consts.ts +16 -0
- package/dist/api/rum-api.d.ts +4 -3
- package/dist/api/rum-api.js +60 -72
- package/dist/cli/commands/delete-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/delete-source-maps-command.js +43 -0
- package/dist/cli/commands/index.d.ts +6 -0
- package/dist/cli/commands/index.js +8 -0
- package/dist/cli/commands/update-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/update-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-source-maps-command.js +47 -0
- package/dist/cli/rum-cli.js +14 -55
- package/dist/cli/validators/index.js +5 -6
- package/dist/config/config.js +6 -5
- package/dist/{cli/theme/index.d.ts → consts/consts.d.ts} +2 -0
- package/dist/consts/consts.js +16 -0
- package/dist/models/commands.model.d.ts +29 -0
- package/dist/models/commands.model.js +3 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +88 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +228 -4
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +65 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +182 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +92 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +271 -2
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.d.ts +13 -0
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +77 -2
- package/dist/services/source-maps.service.d.ts +5 -0
- package/dist/services/source-maps.service.js +80 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +115 -0
- package/models/commands.model.ts +31 -0
- package/package.json +5 -3
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +268 -2
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +217 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +322 -0
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +90 -0
- package/protofetch.lock +2 -2
- package/protofetch.toml +1 -1
- package/protos/com/coralogix/rum/v2/rum_service.proto +16 -1
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +15 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +18 -0
- package/protos/com/coralogix/rum/v2/source_map_release.proto +6 -0
- package/protoset.bin +0 -0
- package/services/source-maps.service.ts +96 -0
- package/utils/index.ts +93 -0
- package/cli/consts/consts.ts +0 -2
- package/cli/theme/index.ts +0 -5
- package/dist/cli/consts/consts.d.ts +0 -2
- package/dist/cli/consts/consts.js +0 -6
- package/dist/cli/theme/index.js +0 -7
- package/dist/model/cli.model.d.ts +0 -1
- package/dist/model/cli.model.js +0 -11
- package/dist/services/source-maps/source-maps.service.d.ts +0 -3
- package/dist/services/source-maps/source-maps.service.js +0 -42
- package/dist/services/source-maps/utils/traverse-folder.util.d.ts +0 -2
- package/dist/services/source-maps/utils/traverse-folder.util.js +0 -42
- package/model/cli.model.ts +0 -7
- package/services/source-maps/source-maps.service.ts +0 -31
- package/services/source-maps/utils/traverse-folder.util.ts +0 -33
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
5
|
+
|
|
6
|
+
export interface GetSessionRecordingRequest {
|
|
7
|
+
sessionId: string;
|
|
8
|
+
application: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GetSessionRecordingResponse {
|
|
12
|
+
sessionRecordings: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function createBaseGetSessionRecordingRequest(): GetSessionRecordingRequest {
|
|
16
|
+
return { sessionId: "", application: "" };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const GetSessionRecordingRequest = {
|
|
20
|
+
encode(message: GetSessionRecordingRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
21
|
+
if (message.sessionId !== "") {
|
|
22
|
+
writer.uint32(10).string(message.sessionId);
|
|
23
|
+
}
|
|
24
|
+
if (message.application !== "") {
|
|
25
|
+
writer.uint32(18).string(message.application);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetSessionRecordingRequest {
|
|
31
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
+
const message = createBaseGetSessionRecordingRequest();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1:
|
|
38
|
+
if (tag !== 10) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message.sessionId = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message.application = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
reader.skipType(tag & 7);
|
|
56
|
+
}
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
fromJSON(object: any): GetSessionRecordingRequest {
|
|
61
|
+
return {
|
|
62
|
+
sessionId: isSet(object.sessionId) ? String(object.sessionId) : "",
|
|
63
|
+
application: isSet(object.application) ? String(object.application) : "",
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
toJSON(message: GetSessionRecordingRequest): unknown {
|
|
68
|
+
const obj: any = {};
|
|
69
|
+
message.sessionId !== undefined && (obj.sessionId = message.sessionId);
|
|
70
|
+
message.application !== undefined && (obj.application = message.application);
|
|
71
|
+
return obj;
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
create(base?: DeepPartial<GetSessionRecordingRequest>): GetSessionRecordingRequest {
|
|
75
|
+
return GetSessionRecordingRequest.fromPartial(base ?? {});
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
fromPartial(object: DeepPartial<GetSessionRecordingRequest>): GetSessionRecordingRequest {
|
|
79
|
+
const message = createBaseGetSessionRecordingRequest();
|
|
80
|
+
message.sessionId = object.sessionId ?? "";
|
|
81
|
+
message.application = object.application ?? "";
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
function createBaseGetSessionRecordingResponse(): GetSessionRecordingResponse {
|
|
87
|
+
return { sessionRecordings: new Uint8Array() };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export const GetSessionRecordingResponse = {
|
|
91
|
+
encode(message: GetSessionRecordingResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
92
|
+
if (message.sessionRecordings.length !== 0) {
|
|
93
|
+
writer.uint32(10).bytes(message.sessionRecordings);
|
|
94
|
+
}
|
|
95
|
+
return writer;
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetSessionRecordingResponse {
|
|
99
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
100
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
|
+
const message = createBaseGetSessionRecordingResponse();
|
|
102
|
+
while (reader.pos < end) {
|
|
103
|
+
const tag = reader.uint32();
|
|
104
|
+
switch (tag >>> 3) {
|
|
105
|
+
case 1:
|
|
106
|
+
if (tag !== 10) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message.sessionRecordings = reader.bytes();
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
reader.skipType(tag & 7);
|
|
117
|
+
}
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
fromJSON(object: any): GetSessionRecordingResponse {
|
|
122
|
+
return {
|
|
123
|
+
sessionRecordings: isSet(object.sessionRecordings) ? bytesFromBase64(object.sessionRecordings) : new Uint8Array(),
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
toJSON(message: GetSessionRecordingResponse): unknown {
|
|
128
|
+
const obj: any = {};
|
|
129
|
+
message.sessionRecordings !== undefined &&
|
|
130
|
+
(obj.sessionRecordings = base64FromBytes(
|
|
131
|
+
message.sessionRecordings !== undefined ? message.sessionRecordings : new Uint8Array(),
|
|
132
|
+
));
|
|
133
|
+
return obj;
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
create(base?: DeepPartial<GetSessionRecordingResponse>): GetSessionRecordingResponse {
|
|
137
|
+
return GetSessionRecordingResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
fromPartial(object: DeepPartial<GetSessionRecordingResponse>): GetSessionRecordingResponse {
|
|
141
|
+
const message = createBaseGetSessionRecordingResponse();
|
|
142
|
+
message.sessionRecordings = object.sessionRecordings ?? new Uint8Array();
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export type RumSessionRecordingServiceDefinition = typeof RumSessionRecordingServiceDefinition;
|
|
148
|
+
export const RumSessionRecordingServiceDefinition = {
|
|
149
|
+
name: "RumSessionRecordingService",
|
|
150
|
+
fullName: "com.coralogix.rum.v2.RumSessionRecordingService",
|
|
151
|
+
methods: {
|
|
152
|
+
getSessionRecording: {
|
|
153
|
+
name: "GetSessionRecording",
|
|
154
|
+
requestType: GetSessionRecordingRequest,
|
|
155
|
+
requestStream: false,
|
|
156
|
+
responseType: GetSessionRecordingResponse,
|
|
157
|
+
responseStream: false,
|
|
158
|
+
options: {},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
} as const;
|
|
162
|
+
|
|
163
|
+
declare var self: any | undefined;
|
|
164
|
+
declare var window: any | undefined;
|
|
165
|
+
declare var global: any | undefined;
|
|
166
|
+
var tsProtoGlobalThis: any = (() => {
|
|
167
|
+
if (typeof globalThis !== "undefined") {
|
|
168
|
+
return globalThis;
|
|
169
|
+
}
|
|
170
|
+
if (typeof self !== "undefined") {
|
|
171
|
+
return self;
|
|
172
|
+
}
|
|
173
|
+
if (typeof window !== "undefined") {
|
|
174
|
+
return window;
|
|
175
|
+
}
|
|
176
|
+
if (typeof global !== "undefined") {
|
|
177
|
+
return global;
|
|
178
|
+
}
|
|
179
|
+
throw "Unable to locate global object";
|
|
180
|
+
})();
|
|
181
|
+
|
|
182
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
183
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
184
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
185
|
+
} else {
|
|
186
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
187
|
+
const arr = new Uint8Array(bin.length);
|
|
188
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
189
|
+
arr[i] = bin.charCodeAt(i);
|
|
190
|
+
}
|
|
191
|
+
return arr;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
196
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
197
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
198
|
+
} else {
|
|
199
|
+
const bin: string[] = [];
|
|
200
|
+
arr.forEach((byte) => {
|
|
201
|
+
bin.push(String.fromCharCode(byte));
|
|
202
|
+
});
|
|
203
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
208
|
+
|
|
209
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
210
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
211
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
212
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
213
|
+
: Partial<T>;
|
|
214
|
+
|
|
215
|
+
function isSet(value: any): boolean {
|
|
216
|
+
return value !== null && value !== undefined;
|
|
217
|
+
}
|
|
@@ -13,9 +13,29 @@ export interface UploadSourceMapsRequest {
|
|
|
13
13
|
files: FileMetadata[];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export interface UpdateSourceMapRequest {
|
|
17
|
+
application: string;
|
|
18
|
+
releaseId: string;
|
|
19
|
+
commitHash?: string | undefined;
|
|
20
|
+
repoName?: string | undefined;
|
|
21
|
+
user?: string | undefined;
|
|
22
|
+
files: FileMetadata[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface DeleteSourceMapRequest {
|
|
26
|
+
application: string;
|
|
27
|
+
releaseId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
export interface UploadSourceMapsResponse {
|
|
17
31
|
}
|
|
18
32
|
|
|
33
|
+
export interface UpdateSourceMapResponse {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface DeleteSourceMapResponse {
|
|
37
|
+
}
|
|
38
|
+
|
|
19
39
|
function createBaseUploadSourceMapsRequest(): UploadSourceMapsRequest {
|
|
20
40
|
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, user: undefined, files: [] };
|
|
21
41
|
}
|
|
@@ -143,6 +163,204 @@ export const UploadSourceMapsRequest = {
|
|
|
143
163
|
},
|
|
144
164
|
};
|
|
145
165
|
|
|
166
|
+
function createBaseUpdateSourceMapRequest(): UpdateSourceMapRequest {
|
|
167
|
+
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, user: undefined, files: [] };
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const UpdateSourceMapRequest = {
|
|
171
|
+
encode(message: UpdateSourceMapRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
172
|
+
if (message.application !== "") {
|
|
173
|
+
writer.uint32(10).string(message.application);
|
|
174
|
+
}
|
|
175
|
+
if (message.releaseId !== "") {
|
|
176
|
+
writer.uint32(18).string(message.releaseId);
|
|
177
|
+
}
|
|
178
|
+
if (message.commitHash !== undefined) {
|
|
179
|
+
writer.uint32(26).string(message.commitHash);
|
|
180
|
+
}
|
|
181
|
+
if (message.repoName !== undefined) {
|
|
182
|
+
writer.uint32(34).string(message.repoName);
|
|
183
|
+
}
|
|
184
|
+
if (message.user !== undefined) {
|
|
185
|
+
writer.uint32(42).string(message.user);
|
|
186
|
+
}
|
|
187
|
+
for (const v of message.files) {
|
|
188
|
+
FileMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
189
|
+
}
|
|
190
|
+
return writer;
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSourceMapRequest {
|
|
194
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
195
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
196
|
+
const message = createBaseUpdateSourceMapRequest();
|
|
197
|
+
while (reader.pos < end) {
|
|
198
|
+
const tag = reader.uint32();
|
|
199
|
+
switch (tag >>> 3) {
|
|
200
|
+
case 1:
|
|
201
|
+
if (tag !== 10) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message.application = reader.string();
|
|
206
|
+
continue;
|
|
207
|
+
case 2:
|
|
208
|
+
if (tag !== 18) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message.releaseId = reader.string();
|
|
213
|
+
continue;
|
|
214
|
+
case 3:
|
|
215
|
+
if (tag !== 26) {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
message.commitHash = reader.string();
|
|
220
|
+
continue;
|
|
221
|
+
case 4:
|
|
222
|
+
if (tag !== 34) {
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
message.repoName = reader.string();
|
|
227
|
+
continue;
|
|
228
|
+
case 5:
|
|
229
|
+
if (tag !== 42) {
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message.user = reader.string();
|
|
234
|
+
continue;
|
|
235
|
+
case 6:
|
|
236
|
+
if (tag !== 50) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message.files.push(FileMetadata.decode(reader, reader.uint32()));
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
reader.skipType(tag & 7);
|
|
247
|
+
}
|
|
248
|
+
return message;
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
fromJSON(object: any): UpdateSourceMapRequest {
|
|
252
|
+
return {
|
|
253
|
+
application: isSet(object.application) ? String(object.application) : "",
|
|
254
|
+
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
255
|
+
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
256
|
+
repoName: isSet(object.repoName) ? String(object.repoName) : undefined,
|
|
257
|
+
user: isSet(object.user) ? String(object.user) : undefined,
|
|
258
|
+
files: Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
toJSON(message: UpdateSourceMapRequest): unknown {
|
|
263
|
+
const obj: any = {};
|
|
264
|
+
message.application !== undefined && (obj.application = message.application);
|
|
265
|
+
message.releaseId !== undefined && (obj.releaseId = message.releaseId);
|
|
266
|
+
message.commitHash !== undefined && (obj.commitHash = message.commitHash);
|
|
267
|
+
message.repoName !== undefined && (obj.repoName = message.repoName);
|
|
268
|
+
message.user !== undefined && (obj.user = message.user);
|
|
269
|
+
if (message.files) {
|
|
270
|
+
obj.files = message.files.map((e) => e ? FileMetadata.toJSON(e) : undefined);
|
|
271
|
+
} else {
|
|
272
|
+
obj.files = [];
|
|
273
|
+
}
|
|
274
|
+
return obj;
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
create(base?: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
278
|
+
return UpdateSourceMapRequest.fromPartial(base ?? {});
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
fromPartial(object: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
282
|
+
const message = createBaseUpdateSourceMapRequest();
|
|
283
|
+
message.application = object.application ?? "";
|
|
284
|
+
message.releaseId = object.releaseId ?? "";
|
|
285
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
286
|
+
message.repoName = object.repoName ?? undefined;
|
|
287
|
+
message.user = object.user ?? undefined;
|
|
288
|
+
message.files = object.files?.map((e) => FileMetadata.fromPartial(e)) || [];
|
|
289
|
+
return message;
|
|
290
|
+
},
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
function createBaseDeleteSourceMapRequest(): DeleteSourceMapRequest {
|
|
294
|
+
return { application: "", releaseId: "" };
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export const DeleteSourceMapRequest = {
|
|
298
|
+
encode(message: DeleteSourceMapRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
299
|
+
if (message.application !== "") {
|
|
300
|
+
writer.uint32(10).string(message.application);
|
|
301
|
+
}
|
|
302
|
+
if (message.releaseId !== "") {
|
|
303
|
+
writer.uint32(18).string(message.releaseId);
|
|
304
|
+
}
|
|
305
|
+
return writer;
|
|
306
|
+
},
|
|
307
|
+
|
|
308
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSourceMapRequest {
|
|
309
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
310
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
|
+
const message = createBaseDeleteSourceMapRequest();
|
|
312
|
+
while (reader.pos < end) {
|
|
313
|
+
const tag = reader.uint32();
|
|
314
|
+
switch (tag >>> 3) {
|
|
315
|
+
case 1:
|
|
316
|
+
if (tag !== 10) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
message.application = reader.string();
|
|
321
|
+
continue;
|
|
322
|
+
case 2:
|
|
323
|
+
if (tag !== 18) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
message.releaseId = reader.string();
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
reader.skipType(tag & 7);
|
|
334
|
+
}
|
|
335
|
+
return message;
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
fromJSON(object: any): DeleteSourceMapRequest {
|
|
339
|
+
return {
|
|
340
|
+
application: isSet(object.application) ? String(object.application) : "",
|
|
341
|
+
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
342
|
+
};
|
|
343
|
+
},
|
|
344
|
+
|
|
345
|
+
toJSON(message: DeleteSourceMapRequest): unknown {
|
|
346
|
+
const obj: any = {};
|
|
347
|
+
message.application !== undefined && (obj.application = message.application);
|
|
348
|
+
message.releaseId !== undefined && (obj.releaseId = message.releaseId);
|
|
349
|
+
return obj;
|
|
350
|
+
},
|
|
351
|
+
|
|
352
|
+
create(base?: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
353
|
+
return DeleteSourceMapRequest.fromPartial(base ?? {});
|
|
354
|
+
},
|
|
355
|
+
|
|
356
|
+
fromPartial(object: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
357
|
+
const message = createBaseDeleteSourceMapRequest();
|
|
358
|
+
message.application = object.application ?? "";
|
|
359
|
+
message.releaseId = object.releaseId ?? "";
|
|
360
|
+
return message;
|
|
361
|
+
},
|
|
362
|
+
};
|
|
363
|
+
|
|
146
364
|
function createBaseUploadSourceMapsResponse(): UploadSourceMapsResponse {
|
|
147
365
|
return {};
|
|
148
366
|
}
|
|
@@ -187,6 +405,94 @@ export const UploadSourceMapsResponse = {
|
|
|
187
405
|
},
|
|
188
406
|
};
|
|
189
407
|
|
|
408
|
+
function createBaseUpdateSourceMapResponse(): UpdateSourceMapResponse {
|
|
409
|
+
return {};
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export const UpdateSourceMapResponse = {
|
|
413
|
+
encode(_: UpdateSourceMapResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
414
|
+
return writer;
|
|
415
|
+
},
|
|
416
|
+
|
|
417
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSourceMapResponse {
|
|
418
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
419
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
420
|
+
const message = createBaseUpdateSourceMapResponse();
|
|
421
|
+
while (reader.pos < end) {
|
|
422
|
+
const tag = reader.uint32();
|
|
423
|
+
switch (tag >>> 3) {
|
|
424
|
+
}
|
|
425
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
reader.skipType(tag & 7);
|
|
429
|
+
}
|
|
430
|
+
return message;
|
|
431
|
+
},
|
|
432
|
+
|
|
433
|
+
fromJSON(_: any): UpdateSourceMapResponse {
|
|
434
|
+
return {};
|
|
435
|
+
},
|
|
436
|
+
|
|
437
|
+
toJSON(_: UpdateSourceMapResponse): unknown {
|
|
438
|
+
const obj: any = {};
|
|
439
|
+
return obj;
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
create(base?: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
443
|
+
return UpdateSourceMapResponse.fromPartial(base ?? {});
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
fromPartial(_: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
447
|
+
const message = createBaseUpdateSourceMapResponse();
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
function createBaseDeleteSourceMapResponse(): DeleteSourceMapResponse {
|
|
453
|
+
return {};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export const DeleteSourceMapResponse = {
|
|
457
|
+
encode(_: DeleteSourceMapResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
458
|
+
return writer;
|
|
459
|
+
},
|
|
460
|
+
|
|
461
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSourceMapResponse {
|
|
462
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
463
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
464
|
+
const message = createBaseDeleteSourceMapResponse();
|
|
465
|
+
while (reader.pos < end) {
|
|
466
|
+
const tag = reader.uint32();
|
|
467
|
+
switch (tag >>> 3) {
|
|
468
|
+
}
|
|
469
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
reader.skipType(tag & 7);
|
|
473
|
+
}
|
|
474
|
+
return message;
|
|
475
|
+
},
|
|
476
|
+
|
|
477
|
+
fromJSON(_: any): DeleteSourceMapResponse {
|
|
478
|
+
return {};
|
|
479
|
+
},
|
|
480
|
+
|
|
481
|
+
toJSON(_: DeleteSourceMapResponse): unknown {
|
|
482
|
+
const obj: any = {};
|
|
483
|
+
return obj;
|
|
484
|
+
},
|
|
485
|
+
|
|
486
|
+
create(base?: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
487
|
+
return DeleteSourceMapResponse.fromPartial(base ?? {});
|
|
488
|
+
},
|
|
489
|
+
|
|
490
|
+
fromPartial(_: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
491
|
+
const message = createBaseDeleteSourceMapResponse();
|
|
492
|
+
return message;
|
|
493
|
+
},
|
|
494
|
+
};
|
|
495
|
+
|
|
190
496
|
export type RumSourceMapServiceDefinition = typeof RumSourceMapServiceDefinition;
|
|
191
497
|
export const RumSourceMapServiceDefinition = {
|
|
192
498
|
name: "RumSourceMapService",
|
|
@@ -200,6 +506,22 @@ export const RumSourceMapServiceDefinition = {
|
|
|
200
506
|
responseStream: false,
|
|
201
507
|
options: {},
|
|
202
508
|
},
|
|
509
|
+
updateSourceMap: {
|
|
510
|
+
name: "UpdateSourceMap",
|
|
511
|
+
requestType: UpdateSourceMapRequest,
|
|
512
|
+
requestStream: false,
|
|
513
|
+
responseType: UpdateSourceMapResponse,
|
|
514
|
+
responseStream: false,
|
|
515
|
+
options: {},
|
|
516
|
+
},
|
|
517
|
+
deleteSourceMap: {
|
|
518
|
+
name: "DeleteSourceMap",
|
|
519
|
+
requestType: DeleteSourceMapRequest,
|
|
520
|
+
requestStream: false,
|
|
521
|
+
responseType: DeleteSourceMapResponse,
|
|
522
|
+
responseStream: false,
|
|
523
|
+
options: {},
|
|
524
|
+
},
|
|
203
525
|
},
|
|
204
526
|
} as const;
|
|
205
527
|
|
|
@@ -14,6 +14,12 @@ export interface SourceMapRelease {
|
|
|
14
14
|
isUploadSucceeded?: boolean | undefined;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export interface ReleasePoint {
|
|
18
|
+
releaseId: string;
|
|
19
|
+
application: string;
|
|
20
|
+
timestamp: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
function createBaseSourceMapRelease(): SourceMapRelease {
|
|
18
24
|
return {
|
|
19
25
|
releaseId: "",
|
|
@@ -158,6 +164,90 @@ export const SourceMapRelease = {
|
|
|
158
164
|
},
|
|
159
165
|
};
|
|
160
166
|
|
|
167
|
+
function createBaseReleasePoint(): ReleasePoint {
|
|
168
|
+
return { releaseId: "", application: "", timestamp: 0 };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export const ReleasePoint = {
|
|
172
|
+
encode(message: ReleasePoint, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
173
|
+
if (message.releaseId !== "") {
|
|
174
|
+
writer.uint32(10).string(message.releaseId);
|
|
175
|
+
}
|
|
176
|
+
if (message.application !== "") {
|
|
177
|
+
writer.uint32(18).string(message.application);
|
|
178
|
+
}
|
|
179
|
+
if (message.timestamp !== 0) {
|
|
180
|
+
writer.uint32(24).int64(message.timestamp);
|
|
181
|
+
}
|
|
182
|
+
return writer;
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReleasePoint {
|
|
186
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseReleasePoint();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1:
|
|
193
|
+
if (tag !== 10) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message.releaseId = reader.string();
|
|
198
|
+
continue;
|
|
199
|
+
case 2:
|
|
200
|
+
if (tag !== 18) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
message.application = reader.string();
|
|
205
|
+
continue;
|
|
206
|
+
case 3:
|
|
207
|
+
if (tag !== 24) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
message.timestamp = longToNumber(reader.int64() as Long);
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
reader.skipType(tag & 7);
|
|
218
|
+
}
|
|
219
|
+
return message;
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
fromJSON(object: any): ReleasePoint {
|
|
223
|
+
return {
|
|
224
|
+
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
225
|
+
application: isSet(object.application) ? String(object.application) : "",
|
|
226
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
toJSON(message: ReleasePoint): unknown {
|
|
231
|
+
const obj: any = {};
|
|
232
|
+
message.releaseId !== undefined && (obj.releaseId = message.releaseId);
|
|
233
|
+
message.application !== undefined && (obj.application = message.application);
|
|
234
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
235
|
+
return obj;
|
|
236
|
+
},
|
|
237
|
+
|
|
238
|
+
create(base?: DeepPartial<ReleasePoint>): ReleasePoint {
|
|
239
|
+
return ReleasePoint.fromPartial(base ?? {});
|
|
240
|
+
},
|
|
241
|
+
|
|
242
|
+
fromPartial(object: DeepPartial<ReleasePoint>): ReleasePoint {
|
|
243
|
+
const message = createBaseReleasePoint();
|
|
244
|
+
message.releaseId = object.releaseId ?? "";
|
|
245
|
+
message.application = object.application ?? "";
|
|
246
|
+
message.timestamp = object.timestamp ?? 0;
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
|
|
161
251
|
declare var self: any | undefined;
|
|
162
252
|
declare var window: any | undefined;
|
|
163
253
|
declare var global: any | undefined;
|
package/protofetch.lock
CHANGED
|
@@ -2,10 +2,10 @@ module_name = "rum-cli"
|
|
|
2
2
|
proto_out_dir = "protos"
|
|
3
3
|
|
|
4
4
|
[[dependencies]]
|
|
5
|
-
commit_hash = "
|
|
5
|
+
commit_hash = "c778db02c0165b69c76dfb7d823dc5ad32c6750c"
|
|
6
6
|
|
|
7
7
|
[[dependencies.specifications]]
|
|
8
|
-
revision = "v0.3
|
|
8
|
+
revision = "v0.4.3"
|
|
9
9
|
|
|
10
10
|
[dependencies.coordinate]
|
|
11
11
|
forge = "github.com"
|
package/protofetch.toml
CHANGED