@coralogix/rum-cli 1.1.37 → 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 -1
- 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/base/base.service.js +2 -2
- package/dist/services/source-maps/source-maps.service.d.ts +1 -0
- package/dist/services/source-maps/source-maps.service.js +23 -1
- package/dist/utils/file-processor.utils.js +16 -12
- package/models/source-maps-commands.model.ts +1 -0
- package/package.json +3 -3
- 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/base/base.service.ts +1 -2
- package/services/source-maps/source-maps.service.ts +26 -0
- package/utils/file-processor.utils.ts +14 -12
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import Long from "long";
|
|
9
9
|
import _m0 from "protobufjs/minimal";
|
|
10
10
|
import { ClientDetailsResponse, Error, TopTenResponse, UserAffectedResponse } from "./analytics";
|
|
11
|
+
import { ApplicationReleaseEntity, CurrentPreviousReleases } from "./application_releases";
|
|
11
12
|
import { Chunk, MappedChunk } from "./chunk";
|
|
12
13
|
import { ApplicationData } from "./rum_sdk_versions";
|
|
13
14
|
import { ReleasePoint, SourceMapRelease } from "./source_map_release";
|
|
@@ -30,6 +31,17 @@ export interface GetMappedStackTraceResponse {
|
|
|
30
31
|
user?: string | undefined;
|
|
31
32
|
}
|
|
32
33
|
|
|
34
|
+
export interface GetSourcemapChunksRequest {
|
|
35
|
+
application: string;
|
|
36
|
+
releaseId: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface GetSourcemapChunksResponse {
|
|
40
|
+
application: string;
|
|
41
|
+
releaseId: string;
|
|
42
|
+
chunks: string[];
|
|
43
|
+
}
|
|
44
|
+
|
|
33
45
|
export interface GetMappedStackTraceReactNativeRequest {
|
|
34
46
|
application: string;
|
|
35
47
|
releaseId: string;
|
|
@@ -138,6 +150,20 @@ export interface GetSdkVersionsResponse {
|
|
|
138
150
|
applications: ApplicationData[];
|
|
139
151
|
}
|
|
140
152
|
|
|
153
|
+
export interface GetApplicationReleasesRequest {
|
|
154
|
+
applications: string[];
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface GetApplicationReleasesResponse {
|
|
158
|
+
releases: ApplicationReleaseEntity[];
|
|
159
|
+
applicationToLatestReleases: { [key: string]: CurrentPreviousReleases };
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry {
|
|
163
|
+
key: string;
|
|
164
|
+
value: CurrentPreviousReleases | undefined;
|
|
165
|
+
}
|
|
166
|
+
|
|
141
167
|
function createBaseGetMappedStackTraceRequest(): GetMappedStackTraceRequest {
|
|
142
168
|
return { application: "", releaseId: "", chunks: [] };
|
|
143
169
|
}
|
|
@@ -370,6 +396,169 @@ export const GetMappedStackTraceResponse = {
|
|
|
370
396
|
},
|
|
371
397
|
};
|
|
372
398
|
|
|
399
|
+
function createBaseGetSourcemapChunksRequest(): GetSourcemapChunksRequest {
|
|
400
|
+
return { application: "", releaseId: "" };
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export const GetSourcemapChunksRequest = {
|
|
404
|
+
encode(message: GetSourcemapChunksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
405
|
+
if (message.application !== "") {
|
|
406
|
+
writer.uint32(10).string(message.application);
|
|
407
|
+
}
|
|
408
|
+
if (message.releaseId !== "") {
|
|
409
|
+
writer.uint32(18).string(message.releaseId);
|
|
410
|
+
}
|
|
411
|
+
return writer;
|
|
412
|
+
},
|
|
413
|
+
|
|
414
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetSourcemapChunksRequest {
|
|
415
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
416
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
417
|
+
const message = createBaseGetSourcemapChunksRequest();
|
|
418
|
+
while (reader.pos < end) {
|
|
419
|
+
const tag = reader.uint32();
|
|
420
|
+
switch (tag >>> 3) {
|
|
421
|
+
case 1:
|
|
422
|
+
if (tag !== 10) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
message.application = reader.string();
|
|
427
|
+
continue;
|
|
428
|
+
case 2:
|
|
429
|
+
if (tag !== 18) {
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
message.releaseId = reader.string();
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
reader.skipType(tag & 7);
|
|
440
|
+
}
|
|
441
|
+
return message;
|
|
442
|
+
},
|
|
443
|
+
|
|
444
|
+
fromJSON(object: any): GetSourcemapChunksRequest {
|
|
445
|
+
return {
|
|
446
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
447
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
448
|
+
};
|
|
449
|
+
},
|
|
450
|
+
|
|
451
|
+
toJSON(message: GetSourcemapChunksRequest): unknown {
|
|
452
|
+
const obj: any = {};
|
|
453
|
+
if (message.application !== "") {
|
|
454
|
+
obj.application = message.application;
|
|
455
|
+
}
|
|
456
|
+
if (message.releaseId !== "") {
|
|
457
|
+
obj.releaseId = message.releaseId;
|
|
458
|
+
}
|
|
459
|
+
return obj;
|
|
460
|
+
},
|
|
461
|
+
|
|
462
|
+
create(base?: DeepPartial<GetSourcemapChunksRequest>): GetSourcemapChunksRequest {
|
|
463
|
+
return GetSourcemapChunksRequest.fromPartial(base ?? {});
|
|
464
|
+
},
|
|
465
|
+
fromPartial(object: DeepPartial<GetSourcemapChunksRequest>): GetSourcemapChunksRequest {
|
|
466
|
+
const message = createBaseGetSourcemapChunksRequest();
|
|
467
|
+
message.application = object.application ?? "";
|
|
468
|
+
message.releaseId = object.releaseId ?? "";
|
|
469
|
+
return message;
|
|
470
|
+
},
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
function createBaseGetSourcemapChunksResponse(): GetSourcemapChunksResponse {
|
|
474
|
+
return { application: "", releaseId: "", chunks: [] };
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export const GetSourcemapChunksResponse = {
|
|
478
|
+
encode(message: GetSourcemapChunksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
479
|
+
if (message.application !== "") {
|
|
480
|
+
writer.uint32(10).string(message.application);
|
|
481
|
+
}
|
|
482
|
+
if (message.releaseId !== "") {
|
|
483
|
+
writer.uint32(18).string(message.releaseId);
|
|
484
|
+
}
|
|
485
|
+
for (const v of message.chunks) {
|
|
486
|
+
writer.uint32(26).string(v!);
|
|
487
|
+
}
|
|
488
|
+
return writer;
|
|
489
|
+
},
|
|
490
|
+
|
|
491
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetSourcemapChunksResponse {
|
|
492
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
493
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
494
|
+
const message = createBaseGetSourcemapChunksResponse();
|
|
495
|
+
while (reader.pos < end) {
|
|
496
|
+
const tag = reader.uint32();
|
|
497
|
+
switch (tag >>> 3) {
|
|
498
|
+
case 1:
|
|
499
|
+
if (tag !== 10) {
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
message.application = reader.string();
|
|
504
|
+
continue;
|
|
505
|
+
case 2:
|
|
506
|
+
if (tag !== 18) {
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
message.releaseId = reader.string();
|
|
511
|
+
continue;
|
|
512
|
+
case 3:
|
|
513
|
+
if (tag !== 26) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
message.chunks.push(reader.string());
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
reader.skipType(tag & 7);
|
|
524
|
+
}
|
|
525
|
+
return message;
|
|
526
|
+
},
|
|
527
|
+
|
|
528
|
+
fromJSON(object: any): GetSourcemapChunksResponse {
|
|
529
|
+
return {
|
|
530
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
531
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
532
|
+
chunks: globalThis.Array.isArray(object?.chunks) ? object.chunks.map((e: any) => globalThis.String(e)) : [],
|
|
533
|
+
};
|
|
534
|
+
},
|
|
535
|
+
|
|
536
|
+
toJSON(message: GetSourcemapChunksResponse): unknown {
|
|
537
|
+
const obj: any = {};
|
|
538
|
+
if (message.application !== "") {
|
|
539
|
+
obj.application = message.application;
|
|
540
|
+
}
|
|
541
|
+
if (message.releaseId !== "") {
|
|
542
|
+
obj.releaseId = message.releaseId;
|
|
543
|
+
}
|
|
544
|
+
if (message.chunks?.length) {
|
|
545
|
+
obj.chunks = message.chunks;
|
|
546
|
+
}
|
|
547
|
+
return obj;
|
|
548
|
+
},
|
|
549
|
+
|
|
550
|
+
create(base?: DeepPartial<GetSourcemapChunksResponse>): GetSourcemapChunksResponse {
|
|
551
|
+
return GetSourcemapChunksResponse.fromPartial(base ?? {});
|
|
552
|
+
},
|
|
553
|
+
fromPartial(object: DeepPartial<GetSourcemapChunksResponse>): GetSourcemapChunksResponse {
|
|
554
|
+
const message = createBaseGetSourcemapChunksResponse();
|
|
555
|
+
message.application = object.application ?? "";
|
|
556
|
+
message.releaseId = object.releaseId ?? "";
|
|
557
|
+
message.chunks = object.chunks?.map((e) => e) || [];
|
|
558
|
+
return message;
|
|
559
|
+
},
|
|
560
|
+
};
|
|
561
|
+
|
|
373
562
|
function createBaseGetMappedStackTraceReactNativeRequest(): GetMappedStackTraceReactNativeRequest {
|
|
374
563
|
return { application: "", releaseId: "", chunks: [] };
|
|
375
564
|
}
|
|
@@ -2033,6 +2222,259 @@ export const GetSdkVersionsResponse = {
|
|
|
2033
2222
|
},
|
|
2034
2223
|
};
|
|
2035
2224
|
|
|
2225
|
+
function createBaseGetApplicationReleasesRequest(): GetApplicationReleasesRequest {
|
|
2226
|
+
return { applications: [] };
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
export const GetApplicationReleasesRequest = {
|
|
2230
|
+
encode(message: GetApplicationReleasesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2231
|
+
for (const v of message.applications) {
|
|
2232
|
+
writer.uint32(10).string(v!);
|
|
2233
|
+
}
|
|
2234
|
+
return writer;
|
|
2235
|
+
},
|
|
2236
|
+
|
|
2237
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetApplicationReleasesRequest {
|
|
2238
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2239
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2240
|
+
const message = createBaseGetApplicationReleasesRequest();
|
|
2241
|
+
while (reader.pos < end) {
|
|
2242
|
+
const tag = reader.uint32();
|
|
2243
|
+
switch (tag >>> 3) {
|
|
2244
|
+
case 1:
|
|
2245
|
+
if (tag !== 10) {
|
|
2246
|
+
break;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
message.applications.push(reader.string());
|
|
2250
|
+
continue;
|
|
2251
|
+
}
|
|
2252
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2253
|
+
break;
|
|
2254
|
+
}
|
|
2255
|
+
reader.skipType(tag & 7);
|
|
2256
|
+
}
|
|
2257
|
+
return message;
|
|
2258
|
+
},
|
|
2259
|
+
|
|
2260
|
+
fromJSON(object: any): GetApplicationReleasesRequest {
|
|
2261
|
+
return {
|
|
2262
|
+
applications: globalThis.Array.isArray(object?.applications)
|
|
2263
|
+
? object.applications.map((e: any) => globalThis.String(e))
|
|
2264
|
+
: [],
|
|
2265
|
+
};
|
|
2266
|
+
},
|
|
2267
|
+
|
|
2268
|
+
toJSON(message: GetApplicationReleasesRequest): unknown {
|
|
2269
|
+
const obj: any = {};
|
|
2270
|
+
if (message.applications?.length) {
|
|
2271
|
+
obj.applications = message.applications;
|
|
2272
|
+
}
|
|
2273
|
+
return obj;
|
|
2274
|
+
},
|
|
2275
|
+
|
|
2276
|
+
create(base?: DeepPartial<GetApplicationReleasesRequest>): GetApplicationReleasesRequest {
|
|
2277
|
+
return GetApplicationReleasesRequest.fromPartial(base ?? {});
|
|
2278
|
+
},
|
|
2279
|
+
fromPartial(object: DeepPartial<GetApplicationReleasesRequest>): GetApplicationReleasesRequest {
|
|
2280
|
+
const message = createBaseGetApplicationReleasesRequest();
|
|
2281
|
+
message.applications = object.applications?.map((e) => e) || [];
|
|
2282
|
+
return message;
|
|
2283
|
+
},
|
|
2284
|
+
};
|
|
2285
|
+
|
|
2286
|
+
function createBaseGetApplicationReleasesResponse(): GetApplicationReleasesResponse {
|
|
2287
|
+
return { releases: [], applicationToLatestReleases: {} };
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
export const GetApplicationReleasesResponse = {
|
|
2291
|
+
encode(message: GetApplicationReleasesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2292
|
+
for (const v of message.releases) {
|
|
2293
|
+
ApplicationReleaseEntity.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2294
|
+
}
|
|
2295
|
+
Object.entries(message.applicationToLatestReleases).forEach(([key, value]) => {
|
|
2296
|
+
GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry.encode(
|
|
2297
|
+
{ key: key as any, value },
|
|
2298
|
+
writer.uint32(18).fork(),
|
|
2299
|
+
).ldelim();
|
|
2300
|
+
});
|
|
2301
|
+
return writer;
|
|
2302
|
+
},
|
|
2303
|
+
|
|
2304
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetApplicationReleasesResponse {
|
|
2305
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2306
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2307
|
+
const message = createBaseGetApplicationReleasesResponse();
|
|
2308
|
+
while (reader.pos < end) {
|
|
2309
|
+
const tag = reader.uint32();
|
|
2310
|
+
switch (tag >>> 3) {
|
|
2311
|
+
case 1:
|
|
2312
|
+
if (tag !== 10) {
|
|
2313
|
+
break;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
message.releases.push(ApplicationReleaseEntity.decode(reader, reader.uint32()));
|
|
2317
|
+
continue;
|
|
2318
|
+
case 2:
|
|
2319
|
+
if (tag !== 18) {
|
|
2320
|
+
break;
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
const entry2 = GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry.decode(
|
|
2324
|
+
reader,
|
|
2325
|
+
reader.uint32(),
|
|
2326
|
+
);
|
|
2327
|
+
if (entry2.value !== undefined) {
|
|
2328
|
+
message.applicationToLatestReleases[entry2.key] = entry2.value;
|
|
2329
|
+
}
|
|
2330
|
+
continue;
|
|
2331
|
+
}
|
|
2332
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2333
|
+
break;
|
|
2334
|
+
}
|
|
2335
|
+
reader.skipType(tag & 7);
|
|
2336
|
+
}
|
|
2337
|
+
return message;
|
|
2338
|
+
},
|
|
2339
|
+
|
|
2340
|
+
fromJSON(object: any): GetApplicationReleasesResponse {
|
|
2341
|
+
return {
|
|
2342
|
+
releases: globalThis.Array.isArray(object?.releases)
|
|
2343
|
+
? object.releases.map((e: any) => ApplicationReleaseEntity.fromJSON(e))
|
|
2344
|
+
: [],
|
|
2345
|
+
applicationToLatestReleases: isObject(object.applicationToLatestReleases)
|
|
2346
|
+
? Object.entries(object.applicationToLatestReleases).reduce<{ [key: string]: CurrentPreviousReleases }>(
|
|
2347
|
+
(acc, [key, value]) => {
|
|
2348
|
+
acc[key] = CurrentPreviousReleases.fromJSON(value);
|
|
2349
|
+
return acc;
|
|
2350
|
+
},
|
|
2351
|
+
{},
|
|
2352
|
+
)
|
|
2353
|
+
: {},
|
|
2354
|
+
};
|
|
2355
|
+
},
|
|
2356
|
+
|
|
2357
|
+
toJSON(message: GetApplicationReleasesResponse): unknown {
|
|
2358
|
+
const obj: any = {};
|
|
2359
|
+
if (message.releases?.length) {
|
|
2360
|
+
obj.releases = message.releases.map((e) => ApplicationReleaseEntity.toJSON(e));
|
|
2361
|
+
}
|
|
2362
|
+
if (message.applicationToLatestReleases) {
|
|
2363
|
+
const entries = Object.entries(message.applicationToLatestReleases);
|
|
2364
|
+
if (entries.length > 0) {
|
|
2365
|
+
obj.applicationToLatestReleases = {};
|
|
2366
|
+
entries.forEach(([k, v]) => {
|
|
2367
|
+
obj.applicationToLatestReleases[k] = CurrentPreviousReleases.toJSON(v);
|
|
2368
|
+
});
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
return obj;
|
|
2372
|
+
},
|
|
2373
|
+
|
|
2374
|
+
create(base?: DeepPartial<GetApplicationReleasesResponse>): GetApplicationReleasesResponse {
|
|
2375
|
+
return GetApplicationReleasesResponse.fromPartial(base ?? {});
|
|
2376
|
+
},
|
|
2377
|
+
fromPartial(object: DeepPartial<GetApplicationReleasesResponse>): GetApplicationReleasesResponse {
|
|
2378
|
+
const message = createBaseGetApplicationReleasesResponse();
|
|
2379
|
+
message.releases = object.releases?.map((e) => ApplicationReleaseEntity.fromPartial(e)) || [];
|
|
2380
|
+
message.applicationToLatestReleases = Object.entries(object.applicationToLatestReleases ?? {}).reduce<
|
|
2381
|
+
{ [key: string]: CurrentPreviousReleases }
|
|
2382
|
+
>((acc, [key, value]) => {
|
|
2383
|
+
if (value !== undefined) {
|
|
2384
|
+
acc[key] = CurrentPreviousReleases.fromPartial(value);
|
|
2385
|
+
}
|
|
2386
|
+
return acc;
|
|
2387
|
+
}, {});
|
|
2388
|
+
return message;
|
|
2389
|
+
},
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
function createBaseGetApplicationReleasesResponse_ApplicationToLatestReleasesEntry(): GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry {
|
|
2393
|
+
return { key: "", value: undefined };
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
export const GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry = {
|
|
2397
|
+
encode(
|
|
2398
|
+
message: GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry,
|
|
2399
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
2400
|
+
): _m0.Writer {
|
|
2401
|
+
if (message.key !== "") {
|
|
2402
|
+
writer.uint32(10).string(message.key);
|
|
2403
|
+
}
|
|
2404
|
+
if (message.value !== undefined) {
|
|
2405
|
+
CurrentPreviousReleases.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
2406
|
+
}
|
|
2407
|
+
return writer;
|
|
2408
|
+
},
|
|
2409
|
+
|
|
2410
|
+
decode(
|
|
2411
|
+
input: _m0.Reader | Uint8Array,
|
|
2412
|
+
length?: number,
|
|
2413
|
+
): GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry {
|
|
2414
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2415
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2416
|
+
const message = createBaseGetApplicationReleasesResponse_ApplicationToLatestReleasesEntry();
|
|
2417
|
+
while (reader.pos < end) {
|
|
2418
|
+
const tag = reader.uint32();
|
|
2419
|
+
switch (tag >>> 3) {
|
|
2420
|
+
case 1:
|
|
2421
|
+
if (tag !== 10) {
|
|
2422
|
+
break;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
message.key = reader.string();
|
|
2426
|
+
continue;
|
|
2427
|
+
case 2:
|
|
2428
|
+
if (tag !== 18) {
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
message.value = CurrentPreviousReleases.decode(reader, reader.uint32());
|
|
2433
|
+
continue;
|
|
2434
|
+
}
|
|
2435
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2436
|
+
break;
|
|
2437
|
+
}
|
|
2438
|
+
reader.skipType(tag & 7);
|
|
2439
|
+
}
|
|
2440
|
+
return message;
|
|
2441
|
+
},
|
|
2442
|
+
|
|
2443
|
+
fromJSON(object: any): GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry {
|
|
2444
|
+
return {
|
|
2445
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2446
|
+
value: isSet(object.value) ? CurrentPreviousReleases.fromJSON(object.value) : undefined,
|
|
2447
|
+
};
|
|
2448
|
+
},
|
|
2449
|
+
|
|
2450
|
+
toJSON(message: GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry): unknown {
|
|
2451
|
+
const obj: any = {};
|
|
2452
|
+
if (message.key !== "") {
|
|
2453
|
+
obj.key = message.key;
|
|
2454
|
+
}
|
|
2455
|
+
if (message.value !== undefined) {
|
|
2456
|
+
obj.value = CurrentPreviousReleases.toJSON(message.value);
|
|
2457
|
+
}
|
|
2458
|
+
return obj;
|
|
2459
|
+
},
|
|
2460
|
+
|
|
2461
|
+
create(
|
|
2462
|
+
base?: DeepPartial<GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry>,
|
|
2463
|
+
): GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry {
|
|
2464
|
+
return GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry.fromPartial(base ?? {});
|
|
2465
|
+
},
|
|
2466
|
+
fromPartial(
|
|
2467
|
+
object: DeepPartial<GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry>,
|
|
2468
|
+
): GetApplicationReleasesResponse_ApplicationToLatestReleasesEntry {
|
|
2469
|
+
const message = createBaseGetApplicationReleasesResponse_ApplicationToLatestReleasesEntry();
|
|
2470
|
+
message.key = object.key ?? "";
|
|
2471
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
2472
|
+
? CurrentPreviousReleases.fromPartial(object.value)
|
|
2473
|
+
: undefined;
|
|
2474
|
+
return message;
|
|
2475
|
+
},
|
|
2476
|
+
};
|
|
2477
|
+
|
|
2036
2478
|
export type RumServiceDefinition = typeof RumServiceDefinition;
|
|
2037
2479
|
export const RumServiceDefinition = {
|
|
2038
2480
|
name: "RumService",
|
|
@@ -2126,6 +2568,22 @@ export const RumServiceDefinition = {
|
|
|
2126
2568
|
responseStream: false,
|
|
2127
2569
|
options: {},
|
|
2128
2570
|
},
|
|
2571
|
+
getApplicationReleases: {
|
|
2572
|
+
name: "GetApplicationReleases",
|
|
2573
|
+
requestType: GetApplicationReleasesRequest,
|
|
2574
|
+
requestStream: false,
|
|
2575
|
+
responseType: GetApplicationReleasesResponse,
|
|
2576
|
+
responseStream: false,
|
|
2577
|
+
options: {},
|
|
2578
|
+
},
|
|
2579
|
+
getSourcemapChunks: {
|
|
2580
|
+
name: "GetSourcemapChunks",
|
|
2581
|
+
requestType: GetSourcemapChunksRequest,
|
|
2582
|
+
requestStream: false,
|
|
2583
|
+
responseType: GetSourcemapChunksResponse,
|
|
2584
|
+
responseStream: false,
|
|
2585
|
+
options: {},
|
|
2586
|
+
},
|
|
2129
2587
|
},
|
|
2130
2588
|
} as const;
|
|
2131
2589
|
|
|
@@ -2153,6 +2611,10 @@ if (_m0.util.Long !== Long) {
|
|
|
2153
2611
|
_m0.configure();
|
|
2154
2612
|
}
|
|
2155
2613
|
|
|
2614
|
+
function isObject(value: any): boolean {
|
|
2615
|
+
return typeof value === "object" && value !== null;
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2156
2618
|
function isSet(value: any): boolean {
|
|
2157
2619
|
return value !== null && value !== undefined;
|
|
2158
2620
|
}
|
|
@@ -65,6 +65,16 @@ export interface IsEntityReleaseExistsResponse {
|
|
|
65
65
|
exists: boolean;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
export interface GetLatestInternalVersionRequest {
|
|
69
|
+
application: string;
|
|
70
|
+
releaseId: string;
|
|
71
|
+
releaseEntityType: ReleaseEntityType;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface GetLatestInternalVersionResponse {
|
|
75
|
+
latestVersion?: number | undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
68
78
|
function createBaseUploadSourceMapsRequest(): UploadSourceMapsRequest {
|
|
69
79
|
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, user: undefined, files: [] };
|
|
70
80
|
}
|
|
@@ -843,6 +853,152 @@ export const IsEntityReleaseExistsResponse = {
|
|
|
843
853
|
},
|
|
844
854
|
};
|
|
845
855
|
|
|
856
|
+
function createBaseGetLatestInternalVersionRequest(): GetLatestInternalVersionRequest {
|
|
857
|
+
return { application: "", releaseId: "", releaseEntityType: 0 };
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export const GetLatestInternalVersionRequest = {
|
|
861
|
+
encode(message: GetLatestInternalVersionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
862
|
+
if (message.application !== "") {
|
|
863
|
+
writer.uint32(10).string(message.application);
|
|
864
|
+
}
|
|
865
|
+
if (message.releaseId !== "") {
|
|
866
|
+
writer.uint32(18).string(message.releaseId);
|
|
867
|
+
}
|
|
868
|
+
if (message.releaseEntityType !== 0) {
|
|
869
|
+
writer.uint32(24).int32(message.releaseEntityType);
|
|
870
|
+
}
|
|
871
|
+
return writer;
|
|
872
|
+
},
|
|
873
|
+
|
|
874
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestInternalVersionRequest {
|
|
875
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
876
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
877
|
+
const message = createBaseGetLatestInternalVersionRequest();
|
|
878
|
+
while (reader.pos < end) {
|
|
879
|
+
const tag = reader.uint32();
|
|
880
|
+
switch (tag >>> 3) {
|
|
881
|
+
case 1:
|
|
882
|
+
if (tag !== 10) {
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
message.application = reader.string();
|
|
887
|
+
continue;
|
|
888
|
+
case 2:
|
|
889
|
+
if (tag !== 18) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
message.releaseId = reader.string();
|
|
894
|
+
continue;
|
|
895
|
+
case 3:
|
|
896
|
+
if (tag !== 24) {
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
message.releaseEntityType = reader.int32() as any;
|
|
901
|
+
continue;
|
|
902
|
+
}
|
|
903
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
904
|
+
break;
|
|
905
|
+
}
|
|
906
|
+
reader.skipType(tag & 7);
|
|
907
|
+
}
|
|
908
|
+
return message;
|
|
909
|
+
},
|
|
910
|
+
|
|
911
|
+
fromJSON(object: any): GetLatestInternalVersionRequest {
|
|
912
|
+
return {
|
|
913
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
914
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
915
|
+
releaseEntityType: isSet(object.releaseEntityType) ? releaseEntityTypeFromJSON(object.releaseEntityType) : 0,
|
|
916
|
+
};
|
|
917
|
+
},
|
|
918
|
+
|
|
919
|
+
toJSON(message: GetLatestInternalVersionRequest): unknown {
|
|
920
|
+
const obj: any = {};
|
|
921
|
+
if (message.application !== "") {
|
|
922
|
+
obj.application = message.application;
|
|
923
|
+
}
|
|
924
|
+
if (message.releaseId !== "") {
|
|
925
|
+
obj.releaseId = message.releaseId;
|
|
926
|
+
}
|
|
927
|
+
if (message.releaseEntityType !== 0) {
|
|
928
|
+
obj.releaseEntityType = releaseEntityTypeToJSON(message.releaseEntityType);
|
|
929
|
+
}
|
|
930
|
+
return obj;
|
|
931
|
+
},
|
|
932
|
+
|
|
933
|
+
create(base?: DeepPartial<GetLatestInternalVersionRequest>): GetLatestInternalVersionRequest {
|
|
934
|
+
return GetLatestInternalVersionRequest.fromPartial(base ?? {});
|
|
935
|
+
},
|
|
936
|
+
fromPartial(object: DeepPartial<GetLatestInternalVersionRequest>): GetLatestInternalVersionRequest {
|
|
937
|
+
const message = createBaseGetLatestInternalVersionRequest();
|
|
938
|
+
message.application = object.application ?? "";
|
|
939
|
+
message.releaseId = object.releaseId ?? "";
|
|
940
|
+
message.releaseEntityType = object.releaseEntityType ?? 0;
|
|
941
|
+
return message;
|
|
942
|
+
},
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
function createBaseGetLatestInternalVersionResponse(): GetLatestInternalVersionResponse {
|
|
946
|
+
return { latestVersion: undefined };
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export const GetLatestInternalVersionResponse = {
|
|
950
|
+
encode(message: GetLatestInternalVersionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
951
|
+
if (message.latestVersion !== undefined) {
|
|
952
|
+
writer.uint32(8).int32(message.latestVersion);
|
|
953
|
+
}
|
|
954
|
+
return writer;
|
|
955
|
+
},
|
|
956
|
+
|
|
957
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestInternalVersionResponse {
|
|
958
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
959
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
960
|
+
const message = createBaseGetLatestInternalVersionResponse();
|
|
961
|
+
while (reader.pos < end) {
|
|
962
|
+
const tag = reader.uint32();
|
|
963
|
+
switch (tag >>> 3) {
|
|
964
|
+
case 1:
|
|
965
|
+
if (tag !== 8) {
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
message.latestVersion = reader.int32();
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
reader.skipType(tag & 7);
|
|
976
|
+
}
|
|
977
|
+
return message;
|
|
978
|
+
},
|
|
979
|
+
|
|
980
|
+
fromJSON(object: any): GetLatestInternalVersionResponse {
|
|
981
|
+
return { latestVersion: isSet(object.latestVersion) ? globalThis.Number(object.latestVersion) : undefined };
|
|
982
|
+
},
|
|
983
|
+
|
|
984
|
+
toJSON(message: GetLatestInternalVersionResponse): unknown {
|
|
985
|
+
const obj: any = {};
|
|
986
|
+
if (message.latestVersion !== undefined) {
|
|
987
|
+
obj.latestVersion = Math.round(message.latestVersion);
|
|
988
|
+
}
|
|
989
|
+
return obj;
|
|
990
|
+
},
|
|
991
|
+
|
|
992
|
+
create(base?: DeepPartial<GetLatestInternalVersionResponse>): GetLatestInternalVersionResponse {
|
|
993
|
+
return GetLatestInternalVersionResponse.fromPartial(base ?? {});
|
|
994
|
+
},
|
|
995
|
+
fromPartial(object: DeepPartial<GetLatestInternalVersionResponse>): GetLatestInternalVersionResponse {
|
|
996
|
+
const message = createBaseGetLatestInternalVersionResponse();
|
|
997
|
+
message.latestVersion = object.latestVersion ?? undefined;
|
|
998
|
+
return message;
|
|
999
|
+
},
|
|
1000
|
+
};
|
|
1001
|
+
|
|
846
1002
|
export type RumSourceMapServiceDefinition = typeof RumSourceMapServiceDefinition;
|
|
847
1003
|
export const RumSourceMapServiceDefinition = {
|
|
848
1004
|
name: "RumSourceMapService",
|
|
@@ -888,6 +1044,14 @@ export const RumSourceMapServiceDefinition = {
|
|
|
888
1044
|
responseStream: false,
|
|
889
1045
|
options: {},
|
|
890
1046
|
},
|
|
1047
|
+
getLatestInternalVersion: {
|
|
1048
|
+
name: "GetLatestInternalVersion",
|
|
1049
|
+
requestType: GetLatestInternalVersionRequest,
|
|
1050
|
+
requestStream: false,
|
|
1051
|
+
responseType: GetLatestInternalVersionResponse,
|
|
1052
|
+
responseStream: false,
|
|
1053
|
+
options: {},
|
|
1054
|
+
},
|
|
891
1055
|
},
|
|
892
1056
|
} as const;
|
|
893
1057
|
|