@coralogix/rum-cli 1.1.21 → 1.1.24
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 +32 -9
- package/api/client/client-factory.ts +26 -0
- package/api/client/request-builder.ts +122 -0
- package/api/dsym.api.ts +61 -0
- package/api/react-native.api.ts +67 -0
- package/api/{rum-api.ts → source-maps.api.ts} +15 -23
- package/cli/commands/dsym/index.ts +5 -0
- package/cli/commands/dsym/upload-dsym-command.ts +36 -0
- package/cli/commands/react-native/index.ts +5 -0
- package/cli/commands/react-native/upload-react-native-source-maps-command.ts +42 -0
- package/cli/commands/{delete-source-maps-command.ts → source-maps/delete-source-maps-command.ts} +8 -10
- package/cli/commands/source-maps/index.ts +7 -0
- package/cli/commands/{update-source-maps-command.ts → source-maps/update-source-maps-command.ts} +8 -10
- package/cli/commands/{upload-source-maps-command.ts → source-maps/upload-source-maps-command.ts} +8 -10
- package/cli/rum-cli.ts +17 -7
- package/config/config.ts +10 -4
- package/consts/consts.ts +2 -0
- package/dist/api/client/client-factory.d.ts +355 -0
- package/dist/api/client/client-factory.js +31 -0
- package/dist/api/client/request-builder.d.ts +33 -0
- package/dist/api/client/request-builder.js +58 -0
- package/dist/api/dsym.api.d.ts +4 -0
- package/dist/api/dsym.api.js +50 -0
- package/dist/api/react-native.api.d.ts +4 -0
- package/dist/api/react-native.api.js +50 -0
- package/dist/api/{rum-api.d.ts → source-maps.api.d.ts} +2 -2
- package/dist/api/source-maps.api.js +97 -0
- package/dist/cli/commands/dsym/index.d.ts +4 -0
- package/dist/cli/commands/dsym/index.js +6 -0
- package/dist/cli/commands/dsym/upload-dsym-command.d.ts +2 -0
- package/dist/cli/commands/dsym/upload-dsym-command.js +45 -0
- package/dist/cli/commands/react-native/index.d.ts +4 -0
- package/dist/cli/commands/react-native/index.js +6 -0
- package/dist/cli/commands/react-native/upload-react-native-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/react-native/upload-react-native-source-maps-command.js +51 -0
- package/dist/cli/commands/source-maps/delete-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/source-maps/delete-source-maps-command.js +41 -0
- package/dist/cli/commands/source-maps/index.d.ts +6 -0
- package/dist/cli/commands/source-maps/index.js +8 -0
- package/dist/cli/commands/source-maps/update-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/source-maps/update-source-maps-command.js +46 -0
- package/dist/cli/commands/source-maps/upload-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +45 -0
- package/dist/cli/rum-cli.js +14 -8
- package/dist/config/config.d.ts +5 -2
- package/dist/config/config.js +6 -3
- package/dist/consts/consts.d.ts +1 -0
- package/dist/consts/consts.js +3 -2
- package/dist/models/dsym-commands.model.d.ts +11 -0
- package/dist/models/dsym-commands.model.js +3 -0
- package/dist/models/react-native-commands.model.d.ts +11 -0
- package/dist/models/react-native-commands.model.js +3 -0
- package/dist/models/{commands.model.d.ts → source-maps-commands.model.d.ts} +3 -3
- package/dist/models/source-maps-commands.model.js +3 -0
- package/dist/proto-models/com/coralogix/blobset/v2/audit_log.d.ts +24 -0
- package/dist/proto-models/com/coralogix/blobset/v2/audit_log.js +64 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +111 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +31 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.d.ts +67 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.js +174 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +58 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +331 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +78 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +459 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +9 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +47 -0
- package/dist/proto-models/com/coralogix/blobset/v2/react_native.d.ts +54 -0
- package/dist/proto-models/com/coralogix/blobset/v2/react_native.js +313 -0
- package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.d.ts +30 -0
- package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.js +126 -0
- package/dist/proto-models/com/coralogix/rum/v2/analytics.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +115 -102
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +5 -3
- package/dist/proto-models/com/coralogix/rum/v2/chunk.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +54 -49
- package/dist/proto-models/com/coralogix/rum/v2/file.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +24 -34
- package/dist/proto-models/com/coralogix/rum/v2/hide_errors.d.ts +44 -0
- package/dist/proto-models/com/coralogix/rum/v2/hide_errors.js +195 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +78 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +459 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.d.ts +9 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.js +47 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.d.ts +198 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.js +517 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.d.ts +69 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +189 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +480 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1420 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.d.ts +41 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.js +217 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +143 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +595 -127
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +1 -59
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +4 -175
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings.d.ts +45 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings.js +193 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.d.ts +107 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.js +214 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.d.ts +261 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +698 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +93 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +325 -42
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +55 -0
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +267 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.d.ts +109 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +580 -0
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +47 -24
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +43 -38
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +14 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +148 -54
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/dist/services/dsym.service.d.ts +3 -0
- package/dist/services/dsym.service.js +36 -0
- package/dist/services/react-native.service.d.ts +3 -0
- package/dist/services/react-native.service.js +37 -0
- package/dist/services/source-maps.service.js +12 -14
- package/dist/utils/file-processor.utils.d.ts +12 -0
- package/dist/utils/file-processor.utils.js +196 -0
- package/dist/utils/shared.utils.d.ts +9 -0
- package/dist/utils/shared.utils.js +62 -0
- package/models/dsym-commands.model.ts +11 -0
- package/models/react-native-commands.model.ts +11 -0
- package/models/{commands.model.ts → source-maps-commands.model.ts} +3 -3
- package/package.json +4 -3
- package/proto-models/com/coralogix/blobset/v2/audit_log.ts +78 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +30 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_service.ts +203 -0
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +394 -0
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +537 -0
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +44 -0
- package/proto-models/com/coralogix/blobset/v2/react_native.ts +361 -0
- package/proto-models/com/coralogix/blobset/v2/s3_metadata.ts +148 -0
- package/proto-models/com/coralogix/rum/v2/analytics.ts +113 -108
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -4
- package/proto-models/com/coralogix/rum/v2/chunk.ts +55 -56
- package/proto-models/com/coralogix/rum/v2/file.ts +25 -39
- package/proto-models/com/coralogix/rum/v2/hide_errors.ts +225 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +537 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_type.ts +44 -0
- package/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.ts +599 -0
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1673 -0
- package/proto-models/com/coralogix/rum/v2/rum_sdk_versions.ts +254 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +672 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- package/proto-models/com/coralogix/rum/v2/rum_settings.ts +209 -0
- package/proto-models/com/coralogix/rum/v2/rum_settings_service.ts +260 -0
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +818 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +369 -46
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +301 -0
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +656 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +48 -27
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +44 -44
- package/proto-models/com/coralogix/rum/v2/template.ts +161 -59
- package/proto-models/google/protobuf/descriptor.ts +551 -464
- package/protofetch.lock +21 -2
- package/protofetch.toml +6 -1
- package/protos/com/coralogix/blobset/v2/audit_log.proto +13 -0
- package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +12 -0
- package/protos/com/coralogix/blobset/v2/blobset_service.proto +18 -0
- package/protos/com/coralogix/blobset/v2/dsym.proto +19 -0
- package/protos/com/coralogix/blobset/v2/entity_metadata.proto +36 -0
- package/protos/com/coralogix/blobset/v2/entity_type.proto +10 -0
- package/protos/com/coralogix/blobset/v2/react_native.proto +23 -0
- package/protos/com/coralogix/blobset/v2/s3_metadata.proto +14 -0
- package/protos/com/coralogix/rum/v2/hide_errors.proto +19 -0
- package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +35 -0
- package/protos/com/coralogix/rum/v2/release_entity_type.proto +10 -0
- package/protos/com/coralogix/rum/v2/rum_hide_errors_service.proto +42 -0
- package/protos/com/coralogix/rum/v2/rum_react_native_source_map_service.proto +19 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +117 -0
- package/protos/com/coralogix/rum/v2/rum_sdk_versions.proto +16 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +36 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_settings.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_settings_service.proto +21 -0
- package/protos/com/coralogix/rum/v2/rum_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +20 -1
- package/protos/com/coralogix/rum/v2/saved_filter.proto +28 -0
- package/protos/com/coralogix/rum/v2/snooze_errors.proto +55 -0
- package/protos/com/coralogix/rum/v2/template.proto +6 -0
- package/protoset.bin +0 -0
- package/services/dsym.service.ts +33 -0
- package/services/react-native.service.ts +34 -0
- package/services/source-maps.service.ts +12 -14
- package/utils/file-processor.utils.ts +176 -0
- package/utils/shared.utils.ts +52 -0
- package/cli/commands/index.ts +0 -7
- package/dist/api/rum-api.js +0 -104
- package/dist/cli/commands/delete-source-maps-command.d.ts +0 -2
- package/dist/cli/commands/delete-source-maps-command.js +0 -43
- package/dist/cli/commands/index.d.ts +0 -6
- package/dist/cli/commands/index.js +0 -8
- package/dist/cli/commands/update-source-maps-command.d.ts +0 -2
- package/dist/cli/commands/update-source-maps-command.js +0 -48
- package/dist/cli/commands/upload-source-maps-command.d.ts +0 -2
- package/dist/cli/commands/upload-source-maps-command.js +0 -47
- package/dist/models/commands.model.js +0 -3
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -115
- package/utils/index.ts +0 -93
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
5
|
+
|
|
6
|
+
export interface Chunk {
|
|
7
|
+
chunk: string;
|
|
8
|
+
content: Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GetReactNativeSourceMapsChunksRequest {
|
|
12
|
+
application: string;
|
|
13
|
+
releaseId: string;
|
|
14
|
+
chunkNames: string[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface GetReactNativeSourceMapsChunksResponse {
|
|
18
|
+
application: string;
|
|
19
|
+
releaseId: string;
|
|
20
|
+
chunks: Chunk[];
|
|
21
|
+
commitHash?: string | undefined;
|
|
22
|
+
repoName?: string | undefined;
|
|
23
|
+
user?: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function createBaseChunk(): Chunk {
|
|
27
|
+
return { chunk: "", content: new Uint8Array(0) };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const Chunk = {
|
|
31
|
+
encode(message: Chunk, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
32
|
+
if (message.chunk !== "") {
|
|
33
|
+
writer.uint32(10).string(message.chunk);
|
|
34
|
+
}
|
|
35
|
+
if (message.content.length !== 0) {
|
|
36
|
+
writer.uint32(18).bytes(message.content);
|
|
37
|
+
}
|
|
38
|
+
return writer;
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Chunk {
|
|
42
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
43
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
+
const message = createBaseChunk();
|
|
45
|
+
while (reader.pos < end) {
|
|
46
|
+
const tag = reader.uint32();
|
|
47
|
+
switch (tag >>> 3) {
|
|
48
|
+
case 1:
|
|
49
|
+
if (tag !== 10) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message.chunk = reader.string();
|
|
54
|
+
continue;
|
|
55
|
+
case 2:
|
|
56
|
+
if (tag !== 18) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message.content = reader.bytes();
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
reader.skipType(tag & 7);
|
|
67
|
+
}
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
fromJSON(object: any): Chunk {
|
|
72
|
+
return {
|
|
73
|
+
chunk: isSet(object.chunk) ? globalThis.String(object.chunk) : "",
|
|
74
|
+
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
toJSON(message: Chunk): unknown {
|
|
79
|
+
const obj: any = {};
|
|
80
|
+
if (message.chunk !== "") {
|
|
81
|
+
obj.chunk = message.chunk;
|
|
82
|
+
}
|
|
83
|
+
if (message.content.length !== 0) {
|
|
84
|
+
obj.content = base64FromBytes(message.content);
|
|
85
|
+
}
|
|
86
|
+
return obj;
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
create(base?: DeepPartial<Chunk>): Chunk {
|
|
90
|
+
return Chunk.fromPartial(base ?? {});
|
|
91
|
+
},
|
|
92
|
+
fromPartial(object: DeepPartial<Chunk>): Chunk {
|
|
93
|
+
const message = createBaseChunk();
|
|
94
|
+
message.chunk = object.chunk ?? "";
|
|
95
|
+
message.content = object.content ?? new Uint8Array(0);
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
function createBaseGetReactNativeSourceMapsChunksRequest(): GetReactNativeSourceMapsChunksRequest {
|
|
101
|
+
return { application: "", releaseId: "", chunkNames: [] };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const GetReactNativeSourceMapsChunksRequest = {
|
|
105
|
+
encode(message: GetReactNativeSourceMapsChunksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
106
|
+
if (message.application !== "") {
|
|
107
|
+
writer.uint32(10).string(message.application);
|
|
108
|
+
}
|
|
109
|
+
if (message.releaseId !== "") {
|
|
110
|
+
writer.uint32(18).string(message.releaseId);
|
|
111
|
+
}
|
|
112
|
+
for (const v of message.chunkNames) {
|
|
113
|
+
writer.uint32(26).string(v!);
|
|
114
|
+
}
|
|
115
|
+
return writer;
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetReactNativeSourceMapsChunksRequest {
|
|
119
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
120
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
121
|
+
const message = createBaseGetReactNativeSourceMapsChunksRequest();
|
|
122
|
+
while (reader.pos < end) {
|
|
123
|
+
const tag = reader.uint32();
|
|
124
|
+
switch (tag >>> 3) {
|
|
125
|
+
case 1:
|
|
126
|
+
if (tag !== 10) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message.application = reader.string();
|
|
131
|
+
continue;
|
|
132
|
+
case 2:
|
|
133
|
+
if (tag !== 18) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message.releaseId = reader.string();
|
|
138
|
+
continue;
|
|
139
|
+
case 3:
|
|
140
|
+
if (tag !== 26) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message.chunkNames.push(reader.string());
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
reader.skipType(tag & 7);
|
|
151
|
+
}
|
|
152
|
+
return message;
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
fromJSON(object: any): GetReactNativeSourceMapsChunksRequest {
|
|
156
|
+
return {
|
|
157
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
158
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
159
|
+
chunkNames: globalThis.Array.isArray(object?.chunkNames)
|
|
160
|
+
? object.chunkNames.map((e: any) => globalThis.String(e))
|
|
161
|
+
: [],
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
toJSON(message: GetReactNativeSourceMapsChunksRequest): unknown {
|
|
166
|
+
const obj: any = {};
|
|
167
|
+
if (message.application !== "") {
|
|
168
|
+
obj.application = message.application;
|
|
169
|
+
}
|
|
170
|
+
if (message.releaseId !== "") {
|
|
171
|
+
obj.releaseId = message.releaseId;
|
|
172
|
+
}
|
|
173
|
+
if (message.chunkNames?.length) {
|
|
174
|
+
obj.chunkNames = message.chunkNames;
|
|
175
|
+
}
|
|
176
|
+
return obj;
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
create(base?: DeepPartial<GetReactNativeSourceMapsChunksRequest>): GetReactNativeSourceMapsChunksRequest {
|
|
180
|
+
return GetReactNativeSourceMapsChunksRequest.fromPartial(base ?? {});
|
|
181
|
+
},
|
|
182
|
+
fromPartial(object: DeepPartial<GetReactNativeSourceMapsChunksRequest>): GetReactNativeSourceMapsChunksRequest {
|
|
183
|
+
const message = createBaseGetReactNativeSourceMapsChunksRequest();
|
|
184
|
+
message.application = object.application ?? "";
|
|
185
|
+
message.releaseId = object.releaseId ?? "";
|
|
186
|
+
message.chunkNames = object.chunkNames?.map((e) => e) || [];
|
|
187
|
+
return message;
|
|
188
|
+
},
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
function createBaseGetReactNativeSourceMapsChunksResponse(): GetReactNativeSourceMapsChunksResponse {
|
|
192
|
+
return { application: "", releaseId: "", chunks: [], commitHash: undefined, repoName: undefined, user: undefined };
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export const GetReactNativeSourceMapsChunksResponse = {
|
|
196
|
+
encode(message: GetReactNativeSourceMapsChunksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
197
|
+
if (message.application !== "") {
|
|
198
|
+
writer.uint32(10).string(message.application);
|
|
199
|
+
}
|
|
200
|
+
if (message.releaseId !== "") {
|
|
201
|
+
writer.uint32(18).string(message.releaseId);
|
|
202
|
+
}
|
|
203
|
+
for (const v of message.chunks) {
|
|
204
|
+
Chunk.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
205
|
+
}
|
|
206
|
+
if (message.commitHash !== undefined) {
|
|
207
|
+
writer.uint32(34).string(message.commitHash);
|
|
208
|
+
}
|
|
209
|
+
if (message.repoName !== undefined) {
|
|
210
|
+
writer.uint32(42).string(message.repoName);
|
|
211
|
+
}
|
|
212
|
+
if (message.user !== undefined) {
|
|
213
|
+
writer.uint32(50).string(message.user);
|
|
214
|
+
}
|
|
215
|
+
return writer;
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetReactNativeSourceMapsChunksResponse {
|
|
219
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseGetReactNativeSourceMapsChunksResponse();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
case 1:
|
|
226
|
+
if (tag !== 10) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message.application = reader.string();
|
|
231
|
+
continue;
|
|
232
|
+
case 2:
|
|
233
|
+
if (tag !== 18) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message.releaseId = reader.string();
|
|
238
|
+
continue;
|
|
239
|
+
case 3:
|
|
240
|
+
if (tag !== 26) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message.chunks.push(Chunk.decode(reader, reader.uint32()));
|
|
245
|
+
continue;
|
|
246
|
+
case 4:
|
|
247
|
+
if (tag !== 34) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
message.commitHash = reader.string();
|
|
252
|
+
continue;
|
|
253
|
+
case 5:
|
|
254
|
+
if (tag !== 42) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message.repoName = reader.string();
|
|
259
|
+
continue;
|
|
260
|
+
case 6:
|
|
261
|
+
if (tag !== 50) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
message.user = reader.string();
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
reader.skipType(tag & 7);
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
fromJSON(object: any): GetReactNativeSourceMapsChunksResponse {
|
|
277
|
+
return {
|
|
278
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
279
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
280
|
+
chunks: globalThis.Array.isArray(object?.chunks) ? object.chunks.map((e: any) => Chunk.fromJSON(e)) : [],
|
|
281
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
282
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
283
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
toJSON(message: GetReactNativeSourceMapsChunksResponse): unknown {
|
|
288
|
+
const obj: any = {};
|
|
289
|
+
if (message.application !== "") {
|
|
290
|
+
obj.application = message.application;
|
|
291
|
+
}
|
|
292
|
+
if (message.releaseId !== "") {
|
|
293
|
+
obj.releaseId = message.releaseId;
|
|
294
|
+
}
|
|
295
|
+
if (message.chunks?.length) {
|
|
296
|
+
obj.chunks = message.chunks.map((e) => Chunk.toJSON(e));
|
|
297
|
+
}
|
|
298
|
+
if (message.commitHash !== undefined) {
|
|
299
|
+
obj.commitHash = message.commitHash;
|
|
300
|
+
}
|
|
301
|
+
if (message.repoName !== undefined) {
|
|
302
|
+
obj.repoName = message.repoName;
|
|
303
|
+
}
|
|
304
|
+
if (message.user !== undefined) {
|
|
305
|
+
obj.user = message.user;
|
|
306
|
+
}
|
|
307
|
+
return obj;
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
create(base?: DeepPartial<GetReactNativeSourceMapsChunksResponse>): GetReactNativeSourceMapsChunksResponse {
|
|
311
|
+
return GetReactNativeSourceMapsChunksResponse.fromPartial(base ?? {});
|
|
312
|
+
},
|
|
313
|
+
fromPartial(object: DeepPartial<GetReactNativeSourceMapsChunksResponse>): GetReactNativeSourceMapsChunksResponse {
|
|
314
|
+
const message = createBaseGetReactNativeSourceMapsChunksResponse();
|
|
315
|
+
message.application = object.application ?? "";
|
|
316
|
+
message.releaseId = object.releaseId ?? "";
|
|
317
|
+
message.chunks = object.chunks?.map((e) => Chunk.fromPartial(e)) || [];
|
|
318
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
319
|
+
message.repoName = object.repoName ?? undefined;
|
|
320
|
+
message.user = object.user ?? undefined;
|
|
321
|
+
return message;
|
|
322
|
+
},
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
326
|
+
if (globalThis.Buffer) {
|
|
327
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
328
|
+
} else {
|
|
329
|
+
const bin = globalThis.atob(b64);
|
|
330
|
+
const arr = new Uint8Array(bin.length);
|
|
331
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
332
|
+
arr[i] = bin.charCodeAt(i);
|
|
333
|
+
}
|
|
334
|
+
return arr;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
339
|
+
if (globalThis.Buffer) {
|
|
340
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
341
|
+
} else {
|
|
342
|
+
const bin: string[] = [];
|
|
343
|
+
arr.forEach((byte) => {
|
|
344
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
345
|
+
});
|
|
346
|
+
return globalThis.btoa(bin.join(""));
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
351
|
+
|
|
352
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
353
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
354
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
355
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
356
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
357
|
+
: Partial<T>;
|
|
358
|
+
|
|
359
|
+
function isSet(value: any): boolean {
|
|
360
|
+
return value !== null && value !== undefined;
|
|
361
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { EntityMetadata } from "./entity_metadata";
|
|
4
|
+
import { EntityType, entityTypeFromJSON, entityTypeToJSON } from "./entity_type";
|
|
5
|
+
|
|
6
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
7
|
+
|
|
8
|
+
export interface S3Metadata {
|
|
9
|
+
bucket: string;
|
|
10
|
+
key: string;
|
|
11
|
+
companyId: string;
|
|
12
|
+
entityMetadata: EntityMetadata | undefined;
|
|
13
|
+
entityType: EntityType;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function createBaseS3Metadata(): S3Metadata {
|
|
17
|
+
return { bucket: "", key: "", companyId: "", entityMetadata: undefined, entityType: 0 };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const S3Metadata = {
|
|
21
|
+
encode(message: S3Metadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22
|
+
if (message.bucket !== "") {
|
|
23
|
+
writer.uint32(10).string(message.bucket);
|
|
24
|
+
}
|
|
25
|
+
if (message.key !== "") {
|
|
26
|
+
writer.uint32(18).string(message.key);
|
|
27
|
+
}
|
|
28
|
+
if (message.companyId !== "") {
|
|
29
|
+
writer.uint32(26).string(message.companyId);
|
|
30
|
+
}
|
|
31
|
+
if (message.entityMetadata !== undefined) {
|
|
32
|
+
EntityMetadata.encode(message.entityMetadata, writer.uint32(34).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.entityType !== 0) {
|
|
35
|
+
writer.uint32(40).int32(message.entityType);
|
|
36
|
+
}
|
|
37
|
+
return writer;
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): S3Metadata {
|
|
41
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
42
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
43
|
+
const message = createBaseS3Metadata();
|
|
44
|
+
while (reader.pos < end) {
|
|
45
|
+
const tag = reader.uint32();
|
|
46
|
+
switch (tag >>> 3) {
|
|
47
|
+
case 1:
|
|
48
|
+
if (tag !== 10) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message.bucket = reader.string();
|
|
53
|
+
continue;
|
|
54
|
+
case 2:
|
|
55
|
+
if (tag !== 18) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message.key = reader.string();
|
|
60
|
+
continue;
|
|
61
|
+
case 3:
|
|
62
|
+
if (tag !== 26) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message.companyId = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
case 4:
|
|
69
|
+
if (tag !== 34) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message.entityMetadata = EntityMetadata.decode(reader, reader.uint32());
|
|
74
|
+
continue;
|
|
75
|
+
case 5:
|
|
76
|
+
if (tag !== 40) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message.entityType = reader.int32() as any;
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
reader.skipType(tag & 7);
|
|
87
|
+
}
|
|
88
|
+
return message;
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
fromJSON(object: any): S3Metadata {
|
|
92
|
+
return {
|
|
93
|
+
bucket: isSet(object.bucket) ? globalThis.String(object.bucket) : "",
|
|
94
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
95
|
+
companyId: isSet(object.companyId) ? globalThis.String(object.companyId) : "",
|
|
96
|
+
entityMetadata: isSet(object.entityMetadata) ? EntityMetadata.fromJSON(object.entityMetadata) : undefined,
|
|
97
|
+
entityType: isSet(object.entityType) ? entityTypeFromJSON(object.entityType) : 0,
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
toJSON(message: S3Metadata): unknown {
|
|
102
|
+
const obj: any = {};
|
|
103
|
+
if (message.bucket !== "") {
|
|
104
|
+
obj.bucket = message.bucket;
|
|
105
|
+
}
|
|
106
|
+
if (message.key !== "") {
|
|
107
|
+
obj.key = message.key;
|
|
108
|
+
}
|
|
109
|
+
if (message.companyId !== "") {
|
|
110
|
+
obj.companyId = message.companyId;
|
|
111
|
+
}
|
|
112
|
+
if (message.entityMetadata !== undefined) {
|
|
113
|
+
obj.entityMetadata = EntityMetadata.toJSON(message.entityMetadata);
|
|
114
|
+
}
|
|
115
|
+
if (message.entityType !== 0) {
|
|
116
|
+
obj.entityType = entityTypeToJSON(message.entityType);
|
|
117
|
+
}
|
|
118
|
+
return obj;
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
create(base?: DeepPartial<S3Metadata>): S3Metadata {
|
|
122
|
+
return S3Metadata.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object: DeepPartial<S3Metadata>): S3Metadata {
|
|
125
|
+
const message = createBaseS3Metadata();
|
|
126
|
+
message.bucket = object.bucket ?? "";
|
|
127
|
+
message.key = object.key ?? "";
|
|
128
|
+
message.companyId = object.companyId ?? "";
|
|
129
|
+
message.entityMetadata = (object.entityMetadata !== undefined && object.entityMetadata !== null)
|
|
130
|
+
? EntityMetadata.fromPartial(object.entityMetadata)
|
|
131
|
+
: undefined;
|
|
132
|
+
message.entityType = object.entityType ?? 0;
|
|
133
|
+
return message;
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
138
|
+
|
|
139
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
140
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
141
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
142
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
143
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
144
|
+
: Partial<T>;
|
|
145
|
+
|
|
146
|
+
function isSet(value: any): boolean {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|