@coralogix/rum-cli 1.1.18 → 1.1.19
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/consts/consts.ts +1 -1
- package/dist/consts/consts.js +2 -2
- 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_service.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +91 -89
- 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 +24 -32
- 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 +55 -35
- 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 +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +66 -53
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/package.json +1 -1
- 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_service.ts +93 -103
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +25 -40
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +56 -41
- 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 +67 -60
- package/proto-models/google/protobuf/descriptor.ts +551 -464
|
@@ -123,26 +123,34 @@ export const UploadSourceMapsRequest = {
|
|
|
123
123
|
|
|
124
124
|
fromJSON(object: any): UploadSourceMapsRequest {
|
|
125
125
|
return {
|
|
126
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
127
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
128
|
-
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
129
|
-
repoName: isSet(object.repoName) ? String(object.repoName) : undefined,
|
|
130
|
-
user: isSet(object.user) ? String(object.user) : undefined,
|
|
131
|
-
files: Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
126
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
127
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
128
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
129
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
130
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
131
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
132
132
|
};
|
|
133
133
|
},
|
|
134
134
|
|
|
135
135
|
toJSON(message: UploadSourceMapsRequest): unknown {
|
|
136
136
|
const obj: any = {};
|
|
137
|
-
message.application !==
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
message.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
if (message.application !== "") {
|
|
138
|
+
obj.application = message.application;
|
|
139
|
+
}
|
|
140
|
+
if (message.releaseId !== "") {
|
|
141
|
+
obj.releaseId = message.releaseId;
|
|
142
|
+
}
|
|
143
|
+
if (message.commitHash !== undefined) {
|
|
144
|
+
obj.commitHash = message.commitHash;
|
|
145
|
+
}
|
|
146
|
+
if (message.repoName !== undefined) {
|
|
147
|
+
obj.repoName = message.repoName;
|
|
148
|
+
}
|
|
149
|
+
if (message.user !== undefined) {
|
|
150
|
+
obj.user = message.user;
|
|
151
|
+
}
|
|
152
|
+
if (message.files?.length) {
|
|
153
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
146
154
|
}
|
|
147
155
|
return obj;
|
|
148
156
|
},
|
|
@@ -150,7 +158,6 @@ export const UploadSourceMapsRequest = {
|
|
|
150
158
|
create(base?: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
151
159
|
return UploadSourceMapsRequest.fromPartial(base ?? {});
|
|
152
160
|
},
|
|
153
|
-
|
|
154
161
|
fromPartial(object: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
155
162
|
const message = createBaseUploadSourceMapsRequest();
|
|
156
163
|
message.application = object.application ?? "";
|
|
@@ -250,26 +257,34 @@ export const UpdateSourceMapRequest = {
|
|
|
250
257
|
|
|
251
258
|
fromJSON(object: any): UpdateSourceMapRequest {
|
|
252
259
|
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)) : [],
|
|
260
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
261
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
262
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
263
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
264
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
265
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
259
266
|
};
|
|
260
267
|
},
|
|
261
268
|
|
|
262
269
|
toJSON(message: UpdateSourceMapRequest): unknown {
|
|
263
270
|
const obj: any = {};
|
|
264
|
-
message.application !==
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
message.
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
if (message.application !== "") {
|
|
272
|
+
obj.application = message.application;
|
|
273
|
+
}
|
|
274
|
+
if (message.releaseId !== "") {
|
|
275
|
+
obj.releaseId = message.releaseId;
|
|
276
|
+
}
|
|
277
|
+
if (message.commitHash !== undefined) {
|
|
278
|
+
obj.commitHash = message.commitHash;
|
|
279
|
+
}
|
|
280
|
+
if (message.repoName !== undefined) {
|
|
281
|
+
obj.repoName = message.repoName;
|
|
282
|
+
}
|
|
283
|
+
if (message.user !== undefined) {
|
|
284
|
+
obj.user = message.user;
|
|
285
|
+
}
|
|
286
|
+
if (message.files?.length) {
|
|
287
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
273
288
|
}
|
|
274
289
|
return obj;
|
|
275
290
|
},
|
|
@@ -277,7 +292,6 @@ export const UpdateSourceMapRequest = {
|
|
|
277
292
|
create(base?: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
278
293
|
return UpdateSourceMapRequest.fromPartial(base ?? {});
|
|
279
294
|
},
|
|
280
|
-
|
|
281
295
|
fromPartial(object: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
282
296
|
const message = createBaseUpdateSourceMapRequest();
|
|
283
297
|
message.application = object.application ?? "";
|
|
@@ -337,22 +351,25 @@ export const DeleteSourceMapRequest = {
|
|
|
337
351
|
|
|
338
352
|
fromJSON(object: any): DeleteSourceMapRequest {
|
|
339
353
|
return {
|
|
340
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
341
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
354
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
355
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
342
356
|
};
|
|
343
357
|
},
|
|
344
358
|
|
|
345
359
|
toJSON(message: DeleteSourceMapRequest): unknown {
|
|
346
360
|
const obj: any = {};
|
|
347
|
-
message.application !==
|
|
348
|
-
|
|
361
|
+
if (message.application !== "") {
|
|
362
|
+
obj.application = message.application;
|
|
363
|
+
}
|
|
364
|
+
if (message.releaseId !== "") {
|
|
365
|
+
obj.releaseId = message.releaseId;
|
|
366
|
+
}
|
|
349
367
|
return obj;
|
|
350
368
|
},
|
|
351
369
|
|
|
352
370
|
create(base?: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
353
371
|
return DeleteSourceMapRequest.fromPartial(base ?? {});
|
|
354
372
|
},
|
|
355
|
-
|
|
356
373
|
fromPartial(object: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
357
374
|
const message = createBaseDeleteSourceMapRequest();
|
|
358
375
|
message.application = object.application ?? "";
|
|
@@ -398,7 +415,6 @@ export const UploadSourceMapsResponse = {
|
|
|
398
415
|
create(base?: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
399
416
|
return UploadSourceMapsResponse.fromPartial(base ?? {});
|
|
400
417
|
},
|
|
401
|
-
|
|
402
418
|
fromPartial(_: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
403
419
|
const message = createBaseUploadSourceMapsResponse();
|
|
404
420
|
return message;
|
|
@@ -442,7 +458,6 @@ export const UpdateSourceMapResponse = {
|
|
|
442
458
|
create(base?: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
443
459
|
return UpdateSourceMapResponse.fromPartial(base ?? {});
|
|
444
460
|
},
|
|
445
|
-
|
|
446
461
|
fromPartial(_: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
447
462
|
const message = createBaseUpdateSourceMapResponse();
|
|
448
463
|
return message;
|
|
@@ -486,7 +501,6 @@ export const DeleteSourceMapResponse = {
|
|
|
486
501
|
create(base?: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
487
502
|
return DeleteSourceMapResponse.fromPartial(base ?? {});
|
|
488
503
|
},
|
|
489
|
-
|
|
490
504
|
fromPartial(_: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
491
505
|
const message = createBaseDeleteSourceMapResponse();
|
|
492
506
|
return message;
|
|
@@ -528,7 +542,8 @@ export const RumSourceMapServiceDefinition = {
|
|
|
528
542
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
529
543
|
|
|
530
544
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
531
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
545
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
546
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
532
547
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
533
548
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
534
549
|
: Partial<T>;
|
|
@@ -73,11 +73,14 @@ export const FileSourceCodeMap = {
|
|
|
73
73
|
|
|
74
74
|
toJSON(message: FileSourceCodeMap): unknown {
|
|
75
75
|
const obj: any = {};
|
|
76
|
-
obj.fileNameToCode = {};
|
|
77
76
|
if (message.fileNameToCode) {
|
|
78
|
-
Object.entries(message.fileNameToCode)
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
const entries = Object.entries(message.fileNameToCode);
|
|
78
|
+
if (entries.length > 0) {
|
|
79
|
+
obj.fileNameToCode = {};
|
|
80
|
+
entries.forEach(([k, v]) => {
|
|
81
|
+
obj.fileNameToCode[k] = v;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
81
84
|
}
|
|
82
85
|
return obj;
|
|
83
86
|
},
|
|
@@ -85,13 +88,12 @@ export const FileSourceCodeMap = {
|
|
|
85
88
|
create(base?: DeepPartial<FileSourceCodeMap>): FileSourceCodeMap {
|
|
86
89
|
return FileSourceCodeMap.fromPartial(base ?? {});
|
|
87
90
|
},
|
|
88
|
-
|
|
89
91
|
fromPartial(object: DeepPartial<FileSourceCodeMap>): FileSourceCodeMap {
|
|
90
92
|
const message = createBaseFileSourceCodeMap();
|
|
91
93
|
message.fileNameToCode = Object.entries(object.fileNameToCode ?? {}).reduce<{ [key: string]: string }>(
|
|
92
94
|
(acc, [key, value]) => {
|
|
93
95
|
if (value !== undefined) {
|
|
94
|
-
acc[key] = String(value);
|
|
96
|
+
acc[key] = globalThis.String(value);
|
|
95
97
|
}
|
|
96
98
|
return acc;
|
|
97
99
|
},
|
|
@@ -147,20 +149,26 @@ export const FileSourceCodeMap_FileNameToCodeEntry = {
|
|
|
147
149
|
},
|
|
148
150
|
|
|
149
151
|
fromJSON(object: any): FileSourceCodeMap_FileNameToCodeEntry {
|
|
150
|
-
return {
|
|
152
|
+
return {
|
|
153
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
154
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
155
|
+
};
|
|
151
156
|
},
|
|
152
157
|
|
|
153
158
|
toJSON(message: FileSourceCodeMap_FileNameToCodeEntry): unknown {
|
|
154
159
|
const obj: any = {};
|
|
155
|
-
message.key !==
|
|
156
|
-
|
|
160
|
+
if (message.key !== "") {
|
|
161
|
+
obj.key = message.key;
|
|
162
|
+
}
|
|
163
|
+
if (message.value !== "") {
|
|
164
|
+
obj.value = message.value;
|
|
165
|
+
}
|
|
157
166
|
return obj;
|
|
158
167
|
},
|
|
159
168
|
|
|
160
169
|
create(base?: DeepPartial<FileSourceCodeMap_FileNameToCodeEntry>): FileSourceCodeMap_FileNameToCodeEntry {
|
|
161
170
|
return FileSourceCodeMap_FileNameToCodeEntry.fromPartial(base ?? {});
|
|
162
171
|
},
|
|
163
|
-
|
|
164
172
|
fromPartial(object: DeepPartial<FileSourceCodeMap_FileNameToCodeEntry>): FileSourceCodeMap_FileNameToCodeEntry {
|
|
165
173
|
const message = createBaseFileSourceCodeMap_FileNameToCodeEntry();
|
|
166
174
|
message.key = object.key ?? "";
|
|
@@ -274,33 +282,45 @@ export const SourceCodeLineMapping = {
|
|
|
274
282
|
|
|
275
283
|
fromJSON(object: any): SourceCodeLineMapping {
|
|
276
284
|
return {
|
|
277
|
-
chunkName: isSet(object.chunkName) ? String(object.chunkName) : "",
|
|
278
|
-
sourceFileName: isSet(object.sourceFileName) ? String(object.sourceFileName) : "",
|
|
279
|
-
originalLineNumber: isSet(object.originalLineNumber) ? Number(object.originalLineNumber) : 0,
|
|
280
|
-
generatedLineNumber: isSet(object.generatedLineNumber) ? Number(object.generatedLineNumber) : 0,
|
|
281
|
-
originalColumnNumber: isSet(object.originalColumnNumber) ? Number(object.originalColumnNumber) : 0,
|
|
282
|
-
generatedColumnNumber: isSet(object.generatedColumnNumber) ? Number(object.generatedColumnNumber) : 0,
|
|
283
|
-
sourceFunctionName: isSet(object.sourceFunctionName) ? String(object.sourceFunctionName) : "",
|
|
285
|
+
chunkName: isSet(object.chunkName) ? globalThis.String(object.chunkName) : "",
|
|
286
|
+
sourceFileName: isSet(object.sourceFileName) ? globalThis.String(object.sourceFileName) : "",
|
|
287
|
+
originalLineNumber: isSet(object.originalLineNumber) ? globalThis.Number(object.originalLineNumber) : 0,
|
|
288
|
+
generatedLineNumber: isSet(object.generatedLineNumber) ? globalThis.Number(object.generatedLineNumber) : 0,
|
|
289
|
+
originalColumnNumber: isSet(object.originalColumnNumber) ? globalThis.Number(object.originalColumnNumber) : 0,
|
|
290
|
+
generatedColumnNumber: isSet(object.generatedColumnNumber) ? globalThis.Number(object.generatedColumnNumber) : 0,
|
|
291
|
+
sourceFunctionName: isSet(object.sourceFunctionName) ? globalThis.String(object.sourceFunctionName) : "",
|
|
284
292
|
};
|
|
285
293
|
},
|
|
286
294
|
|
|
287
295
|
toJSON(message: SourceCodeLineMapping): unknown {
|
|
288
296
|
const obj: any = {};
|
|
289
|
-
message.chunkName !==
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
message.
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
if (message.chunkName !== "") {
|
|
298
|
+
obj.chunkName = message.chunkName;
|
|
299
|
+
}
|
|
300
|
+
if (message.sourceFileName !== "") {
|
|
301
|
+
obj.sourceFileName = message.sourceFileName;
|
|
302
|
+
}
|
|
303
|
+
if (message.originalLineNumber !== 0) {
|
|
304
|
+
obj.originalLineNumber = Math.round(message.originalLineNumber);
|
|
305
|
+
}
|
|
306
|
+
if (message.generatedLineNumber !== 0) {
|
|
307
|
+
obj.generatedLineNumber = Math.round(message.generatedLineNumber);
|
|
308
|
+
}
|
|
309
|
+
if (message.originalColumnNumber !== 0) {
|
|
310
|
+
obj.originalColumnNumber = Math.round(message.originalColumnNumber);
|
|
311
|
+
}
|
|
312
|
+
if (message.generatedColumnNumber !== 0) {
|
|
313
|
+
obj.generatedColumnNumber = Math.round(message.generatedColumnNumber);
|
|
314
|
+
}
|
|
315
|
+
if (message.sourceFunctionName !== "") {
|
|
316
|
+
obj.sourceFunctionName = message.sourceFunctionName;
|
|
317
|
+
}
|
|
297
318
|
return obj;
|
|
298
319
|
},
|
|
299
320
|
|
|
300
321
|
create(base?: DeepPartial<SourceCodeLineMapping>): SourceCodeLineMapping {
|
|
301
322
|
return SourceCodeLineMapping.fromPartial(base ?? {});
|
|
302
323
|
},
|
|
303
|
-
|
|
304
324
|
fromPartial(object: DeepPartial<SourceCodeLineMapping>): SourceCodeLineMapping {
|
|
305
325
|
const message = createBaseSourceCodeLineMapping();
|
|
306
326
|
message.chunkName = object.chunkName ?? "";
|
|
@@ -317,7 +337,8 @@ export const SourceCodeLineMapping = {
|
|
|
317
337
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
318
338
|
|
|
319
339
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
320
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
340
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
341
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
321
342
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
322
343
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
323
344
|
: Partial<T>;
|
|
@@ -125,32 +125,45 @@ export const SourceMapRelease = {
|
|
|
125
125
|
|
|
126
126
|
fromJSON(object: any): SourceMapRelease {
|
|
127
127
|
return {
|
|
128
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
129
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
130
|
-
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
131
|
-
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
132
|
-
repoName: isSet(object.repoName) ? String(object.repoName) : undefined,
|
|
133
|
-
user: isSet(object.user) ? String(object.user) : undefined,
|
|
134
|
-
isUploadSucceeded: isSet(object.isUploadSucceeded) ? Boolean(object.isUploadSucceeded) : undefined,
|
|
128
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
129
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
130
|
+
createdAt: isSet(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
131
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
132
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
133
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
134
|
+
isUploadSucceeded: isSet(object.isUploadSucceeded) ? globalThis.Boolean(object.isUploadSucceeded) : undefined,
|
|
135
135
|
};
|
|
136
136
|
},
|
|
137
137
|
|
|
138
138
|
toJSON(message: SourceMapRelease): unknown {
|
|
139
139
|
const obj: any = {};
|
|
140
|
-
message.releaseId !==
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
message.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
message.
|
|
140
|
+
if (message.releaseId !== "") {
|
|
141
|
+
obj.releaseId = message.releaseId;
|
|
142
|
+
}
|
|
143
|
+
if (message.application !== "") {
|
|
144
|
+
obj.application = message.application;
|
|
145
|
+
}
|
|
146
|
+
if (message.createdAt !== 0) {
|
|
147
|
+
obj.createdAt = Math.round(message.createdAt);
|
|
148
|
+
}
|
|
149
|
+
if (message.commitHash !== undefined) {
|
|
150
|
+
obj.commitHash = message.commitHash;
|
|
151
|
+
}
|
|
152
|
+
if (message.repoName !== undefined) {
|
|
153
|
+
obj.repoName = message.repoName;
|
|
154
|
+
}
|
|
155
|
+
if (message.user !== undefined) {
|
|
156
|
+
obj.user = message.user;
|
|
157
|
+
}
|
|
158
|
+
if (message.isUploadSucceeded !== undefined) {
|
|
159
|
+
obj.isUploadSucceeded = message.isUploadSucceeded;
|
|
160
|
+
}
|
|
147
161
|
return obj;
|
|
148
162
|
},
|
|
149
163
|
|
|
150
164
|
create(base?: DeepPartial<SourceMapRelease>): SourceMapRelease {
|
|
151
165
|
return SourceMapRelease.fromPartial(base ?? {});
|
|
152
166
|
},
|
|
153
|
-
|
|
154
167
|
fromPartial(object: DeepPartial<SourceMapRelease>): SourceMapRelease {
|
|
155
168
|
const message = createBaseSourceMapRelease();
|
|
156
169
|
message.releaseId = object.releaseId ?? "";
|
|
@@ -221,24 +234,29 @@ export const ReleasePoint = {
|
|
|
221
234
|
|
|
222
235
|
fromJSON(object: any): ReleasePoint {
|
|
223
236
|
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,
|
|
237
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
238
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
239
|
+
timestamp: isSet(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
227
240
|
};
|
|
228
241
|
},
|
|
229
242
|
|
|
230
243
|
toJSON(message: ReleasePoint): unknown {
|
|
231
244
|
const obj: any = {};
|
|
232
|
-
message.releaseId !==
|
|
233
|
-
|
|
234
|
-
|
|
245
|
+
if (message.releaseId !== "") {
|
|
246
|
+
obj.releaseId = message.releaseId;
|
|
247
|
+
}
|
|
248
|
+
if (message.application !== "") {
|
|
249
|
+
obj.application = message.application;
|
|
250
|
+
}
|
|
251
|
+
if (message.timestamp !== 0) {
|
|
252
|
+
obj.timestamp = Math.round(message.timestamp);
|
|
253
|
+
}
|
|
235
254
|
return obj;
|
|
236
255
|
},
|
|
237
256
|
|
|
238
257
|
create(base?: DeepPartial<ReleasePoint>): ReleasePoint {
|
|
239
258
|
return ReleasePoint.fromPartial(base ?? {});
|
|
240
259
|
},
|
|
241
|
-
|
|
242
260
|
fromPartial(object: DeepPartial<ReleasePoint>): ReleasePoint {
|
|
243
261
|
const message = createBaseReleasePoint();
|
|
244
262
|
message.releaseId = object.releaseId ?? "";
|
|
@@ -248,36 +266,18 @@ export const ReleasePoint = {
|
|
|
248
266
|
},
|
|
249
267
|
};
|
|
250
268
|
|
|
251
|
-
declare var self: any | undefined;
|
|
252
|
-
declare var window: any | undefined;
|
|
253
|
-
declare var global: any | undefined;
|
|
254
|
-
var tsProtoGlobalThis: any = (() => {
|
|
255
|
-
if (typeof globalThis !== "undefined") {
|
|
256
|
-
return globalThis;
|
|
257
|
-
}
|
|
258
|
-
if (typeof self !== "undefined") {
|
|
259
|
-
return self;
|
|
260
|
-
}
|
|
261
|
-
if (typeof window !== "undefined") {
|
|
262
|
-
return window;
|
|
263
|
-
}
|
|
264
|
-
if (typeof global !== "undefined") {
|
|
265
|
-
return global;
|
|
266
|
-
}
|
|
267
|
-
throw "Unable to locate global object";
|
|
268
|
-
})();
|
|
269
|
-
|
|
270
269
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
271
270
|
|
|
272
271
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
273
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
272
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
273
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
274
274
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
275
275
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
276
276
|
: Partial<T>;
|
|
277
277
|
|
|
278
278
|
function longToNumber(long: Long): number {
|
|
279
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
280
|
-
throw new
|
|
279
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
280
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
281
281
|
}
|
|
282
282
|
return long.toNumber();
|
|
283
283
|
}
|