@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,537 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
5
|
+
|
|
6
|
+
export interface DsymMetadata {
|
|
7
|
+
application: string;
|
|
8
|
+
releaseId: string;
|
|
9
|
+
commitHash?: string | undefined;
|
|
10
|
+
repoName?: string | undefined;
|
|
11
|
+
orgName?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface SourceMapMetadata {
|
|
15
|
+
application: string;
|
|
16
|
+
releaseId: string;
|
|
17
|
+
commitHash?: string | undefined;
|
|
18
|
+
repoName?: string | undefined;
|
|
19
|
+
orgName?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ReactNativeMetadata {
|
|
23
|
+
application: string;
|
|
24
|
+
releaseId: string;
|
|
25
|
+
commitHash?: string | undefined;
|
|
26
|
+
repoName?: string | undefined;
|
|
27
|
+
orgName?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ReleaseEntityMetadata {
|
|
31
|
+
metadata?:
|
|
32
|
+
| { $case: "dsymMetadata"; dsymMetadata: DsymMetadata }
|
|
33
|
+
| { $case: "sourceMapMetadata"; sourceMapMetadata: SourceMapMetadata }
|
|
34
|
+
| { $case: "reactNativeMetadata"; reactNativeMetadata: ReactNativeMetadata }
|
|
35
|
+
| undefined;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function createBaseDsymMetadata(): DsymMetadata {
|
|
39
|
+
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, orgName: undefined };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const DsymMetadata = {
|
|
43
|
+
encode(message: DsymMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
44
|
+
if (message.application !== "") {
|
|
45
|
+
writer.uint32(10).string(message.application);
|
|
46
|
+
}
|
|
47
|
+
if (message.releaseId !== "") {
|
|
48
|
+
writer.uint32(18).string(message.releaseId);
|
|
49
|
+
}
|
|
50
|
+
if (message.commitHash !== undefined) {
|
|
51
|
+
writer.uint32(26).string(message.commitHash);
|
|
52
|
+
}
|
|
53
|
+
if (message.repoName !== undefined) {
|
|
54
|
+
writer.uint32(34).string(message.repoName);
|
|
55
|
+
}
|
|
56
|
+
if (message.orgName !== undefined) {
|
|
57
|
+
writer.uint32(42).string(message.orgName);
|
|
58
|
+
}
|
|
59
|
+
return writer;
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DsymMetadata {
|
|
63
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBaseDsymMetadata();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message.application = reader.string();
|
|
75
|
+
continue;
|
|
76
|
+
case 2:
|
|
77
|
+
if (tag !== 18) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message.releaseId = reader.string();
|
|
82
|
+
continue;
|
|
83
|
+
case 3:
|
|
84
|
+
if (tag !== 26) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message.commitHash = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
case 4:
|
|
91
|
+
if (tag !== 34) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message.repoName = reader.string();
|
|
96
|
+
continue;
|
|
97
|
+
case 5:
|
|
98
|
+
if (tag !== 42) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message.orgName = reader.string();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
fromJSON(object: any): DsymMetadata {
|
|
114
|
+
return {
|
|
115
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
116
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
117
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
118
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
119
|
+
orgName: isSet(object.orgName) ? globalThis.String(object.orgName) : undefined,
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
toJSON(message: DsymMetadata): unknown {
|
|
124
|
+
const obj: any = {};
|
|
125
|
+
if (message.application !== "") {
|
|
126
|
+
obj.application = message.application;
|
|
127
|
+
}
|
|
128
|
+
if (message.releaseId !== "") {
|
|
129
|
+
obj.releaseId = message.releaseId;
|
|
130
|
+
}
|
|
131
|
+
if (message.commitHash !== undefined) {
|
|
132
|
+
obj.commitHash = message.commitHash;
|
|
133
|
+
}
|
|
134
|
+
if (message.repoName !== undefined) {
|
|
135
|
+
obj.repoName = message.repoName;
|
|
136
|
+
}
|
|
137
|
+
if (message.orgName !== undefined) {
|
|
138
|
+
obj.orgName = message.orgName;
|
|
139
|
+
}
|
|
140
|
+
return obj;
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
create(base?: DeepPartial<DsymMetadata>): DsymMetadata {
|
|
144
|
+
return DsymMetadata.fromPartial(base ?? {});
|
|
145
|
+
},
|
|
146
|
+
fromPartial(object: DeepPartial<DsymMetadata>): DsymMetadata {
|
|
147
|
+
const message = createBaseDsymMetadata();
|
|
148
|
+
message.application = object.application ?? "";
|
|
149
|
+
message.releaseId = object.releaseId ?? "";
|
|
150
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
151
|
+
message.repoName = object.repoName ?? undefined;
|
|
152
|
+
message.orgName = object.orgName ?? undefined;
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
function createBaseSourceMapMetadata(): SourceMapMetadata {
|
|
158
|
+
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, orgName: undefined };
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export const SourceMapMetadata = {
|
|
162
|
+
encode(message: SourceMapMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
163
|
+
if (message.application !== "") {
|
|
164
|
+
writer.uint32(10).string(message.application);
|
|
165
|
+
}
|
|
166
|
+
if (message.releaseId !== "") {
|
|
167
|
+
writer.uint32(18).string(message.releaseId);
|
|
168
|
+
}
|
|
169
|
+
if (message.commitHash !== undefined) {
|
|
170
|
+
writer.uint32(26).string(message.commitHash);
|
|
171
|
+
}
|
|
172
|
+
if (message.repoName !== undefined) {
|
|
173
|
+
writer.uint32(34).string(message.repoName);
|
|
174
|
+
}
|
|
175
|
+
if (message.orgName !== undefined) {
|
|
176
|
+
writer.uint32(42).string(message.orgName);
|
|
177
|
+
}
|
|
178
|
+
return writer;
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SourceMapMetadata {
|
|
182
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
183
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
184
|
+
const message = createBaseSourceMapMetadata();
|
|
185
|
+
while (reader.pos < end) {
|
|
186
|
+
const tag = reader.uint32();
|
|
187
|
+
switch (tag >>> 3) {
|
|
188
|
+
case 1:
|
|
189
|
+
if (tag !== 10) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
message.application = reader.string();
|
|
194
|
+
continue;
|
|
195
|
+
case 2:
|
|
196
|
+
if (tag !== 18) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message.releaseId = reader.string();
|
|
201
|
+
continue;
|
|
202
|
+
case 3:
|
|
203
|
+
if (tag !== 26) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message.commitHash = reader.string();
|
|
208
|
+
continue;
|
|
209
|
+
case 4:
|
|
210
|
+
if (tag !== 34) {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
message.repoName = reader.string();
|
|
215
|
+
continue;
|
|
216
|
+
case 5:
|
|
217
|
+
if (tag !== 42) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message.orgName = reader.string();
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
reader.skipType(tag & 7);
|
|
228
|
+
}
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
fromJSON(object: any): SourceMapMetadata {
|
|
233
|
+
return {
|
|
234
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
235
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
236
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
237
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
238
|
+
orgName: isSet(object.orgName) ? globalThis.String(object.orgName) : undefined,
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
|
|
242
|
+
toJSON(message: SourceMapMetadata): unknown {
|
|
243
|
+
const obj: any = {};
|
|
244
|
+
if (message.application !== "") {
|
|
245
|
+
obj.application = message.application;
|
|
246
|
+
}
|
|
247
|
+
if (message.releaseId !== "") {
|
|
248
|
+
obj.releaseId = message.releaseId;
|
|
249
|
+
}
|
|
250
|
+
if (message.commitHash !== undefined) {
|
|
251
|
+
obj.commitHash = message.commitHash;
|
|
252
|
+
}
|
|
253
|
+
if (message.repoName !== undefined) {
|
|
254
|
+
obj.repoName = message.repoName;
|
|
255
|
+
}
|
|
256
|
+
if (message.orgName !== undefined) {
|
|
257
|
+
obj.orgName = message.orgName;
|
|
258
|
+
}
|
|
259
|
+
return obj;
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
create(base?: DeepPartial<SourceMapMetadata>): SourceMapMetadata {
|
|
263
|
+
return SourceMapMetadata.fromPartial(base ?? {});
|
|
264
|
+
},
|
|
265
|
+
fromPartial(object: DeepPartial<SourceMapMetadata>): SourceMapMetadata {
|
|
266
|
+
const message = createBaseSourceMapMetadata();
|
|
267
|
+
message.application = object.application ?? "";
|
|
268
|
+
message.releaseId = object.releaseId ?? "";
|
|
269
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
270
|
+
message.repoName = object.repoName ?? undefined;
|
|
271
|
+
message.orgName = object.orgName ?? undefined;
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
function createBaseReactNativeMetadata(): ReactNativeMetadata {
|
|
277
|
+
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, orgName: undefined };
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export const ReactNativeMetadata = {
|
|
281
|
+
encode(message: ReactNativeMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
282
|
+
if (message.application !== "") {
|
|
283
|
+
writer.uint32(10).string(message.application);
|
|
284
|
+
}
|
|
285
|
+
if (message.releaseId !== "") {
|
|
286
|
+
writer.uint32(18).string(message.releaseId);
|
|
287
|
+
}
|
|
288
|
+
if (message.commitHash !== undefined) {
|
|
289
|
+
writer.uint32(26).string(message.commitHash);
|
|
290
|
+
}
|
|
291
|
+
if (message.repoName !== undefined) {
|
|
292
|
+
writer.uint32(34).string(message.repoName);
|
|
293
|
+
}
|
|
294
|
+
if (message.orgName !== undefined) {
|
|
295
|
+
writer.uint32(42).string(message.orgName);
|
|
296
|
+
}
|
|
297
|
+
return writer;
|
|
298
|
+
},
|
|
299
|
+
|
|
300
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReactNativeMetadata {
|
|
301
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
302
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
303
|
+
const message = createBaseReactNativeMetadata();
|
|
304
|
+
while (reader.pos < end) {
|
|
305
|
+
const tag = reader.uint32();
|
|
306
|
+
switch (tag >>> 3) {
|
|
307
|
+
case 1:
|
|
308
|
+
if (tag !== 10) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
message.application = reader.string();
|
|
313
|
+
continue;
|
|
314
|
+
case 2:
|
|
315
|
+
if (tag !== 18) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
message.releaseId = reader.string();
|
|
320
|
+
continue;
|
|
321
|
+
case 3:
|
|
322
|
+
if (tag !== 26) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
message.commitHash = reader.string();
|
|
327
|
+
continue;
|
|
328
|
+
case 4:
|
|
329
|
+
if (tag !== 34) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
message.repoName = reader.string();
|
|
334
|
+
continue;
|
|
335
|
+
case 5:
|
|
336
|
+
if (tag !== 42) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
message.orgName = reader.string();
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
reader.skipType(tag & 7);
|
|
347
|
+
}
|
|
348
|
+
return message;
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
fromJSON(object: any): ReactNativeMetadata {
|
|
352
|
+
return {
|
|
353
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
354
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
355
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
356
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
357
|
+
orgName: isSet(object.orgName) ? globalThis.String(object.orgName) : undefined,
|
|
358
|
+
};
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
toJSON(message: ReactNativeMetadata): unknown {
|
|
362
|
+
const obj: any = {};
|
|
363
|
+
if (message.application !== "") {
|
|
364
|
+
obj.application = message.application;
|
|
365
|
+
}
|
|
366
|
+
if (message.releaseId !== "") {
|
|
367
|
+
obj.releaseId = message.releaseId;
|
|
368
|
+
}
|
|
369
|
+
if (message.commitHash !== undefined) {
|
|
370
|
+
obj.commitHash = message.commitHash;
|
|
371
|
+
}
|
|
372
|
+
if (message.repoName !== undefined) {
|
|
373
|
+
obj.repoName = message.repoName;
|
|
374
|
+
}
|
|
375
|
+
if (message.orgName !== undefined) {
|
|
376
|
+
obj.orgName = message.orgName;
|
|
377
|
+
}
|
|
378
|
+
return obj;
|
|
379
|
+
},
|
|
380
|
+
|
|
381
|
+
create(base?: DeepPartial<ReactNativeMetadata>): ReactNativeMetadata {
|
|
382
|
+
return ReactNativeMetadata.fromPartial(base ?? {});
|
|
383
|
+
},
|
|
384
|
+
fromPartial(object: DeepPartial<ReactNativeMetadata>): ReactNativeMetadata {
|
|
385
|
+
const message = createBaseReactNativeMetadata();
|
|
386
|
+
message.application = object.application ?? "";
|
|
387
|
+
message.releaseId = object.releaseId ?? "";
|
|
388
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
389
|
+
message.repoName = object.repoName ?? undefined;
|
|
390
|
+
message.orgName = object.orgName ?? undefined;
|
|
391
|
+
return message;
|
|
392
|
+
},
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
function createBaseReleaseEntityMetadata(): ReleaseEntityMetadata {
|
|
396
|
+
return { metadata: undefined };
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export const ReleaseEntityMetadata = {
|
|
400
|
+
encode(message: ReleaseEntityMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
401
|
+
switch (message.metadata?.$case) {
|
|
402
|
+
case "dsymMetadata":
|
|
403
|
+
DsymMetadata.encode(message.metadata.dsymMetadata, writer.uint32(10).fork()).ldelim();
|
|
404
|
+
break;
|
|
405
|
+
case "sourceMapMetadata":
|
|
406
|
+
SourceMapMetadata.encode(message.metadata.sourceMapMetadata, writer.uint32(18).fork()).ldelim();
|
|
407
|
+
break;
|
|
408
|
+
case "reactNativeMetadata":
|
|
409
|
+
ReactNativeMetadata.encode(message.metadata.reactNativeMetadata, writer.uint32(26).fork()).ldelim();
|
|
410
|
+
break;
|
|
411
|
+
}
|
|
412
|
+
return writer;
|
|
413
|
+
},
|
|
414
|
+
|
|
415
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReleaseEntityMetadata {
|
|
416
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
417
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
418
|
+
const message = createBaseReleaseEntityMetadata();
|
|
419
|
+
while (reader.pos < end) {
|
|
420
|
+
const tag = reader.uint32();
|
|
421
|
+
switch (tag >>> 3) {
|
|
422
|
+
case 1:
|
|
423
|
+
if (tag !== 10) {
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
message.metadata = { $case: "dsymMetadata", dsymMetadata: DsymMetadata.decode(reader, reader.uint32()) };
|
|
428
|
+
continue;
|
|
429
|
+
case 2:
|
|
430
|
+
if (tag !== 18) {
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
message.metadata = {
|
|
435
|
+
$case: "sourceMapMetadata",
|
|
436
|
+
sourceMapMetadata: SourceMapMetadata.decode(reader, reader.uint32()),
|
|
437
|
+
};
|
|
438
|
+
continue;
|
|
439
|
+
case 3:
|
|
440
|
+
if (tag !== 26) {
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
message.metadata = {
|
|
445
|
+
$case: "reactNativeMetadata",
|
|
446
|
+
reactNativeMetadata: ReactNativeMetadata.decode(reader, reader.uint32()),
|
|
447
|
+
};
|
|
448
|
+
continue;
|
|
449
|
+
}
|
|
450
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
reader.skipType(tag & 7);
|
|
454
|
+
}
|
|
455
|
+
return message;
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
fromJSON(object: any): ReleaseEntityMetadata {
|
|
459
|
+
return {
|
|
460
|
+
metadata: isSet(object.dsymMetadata)
|
|
461
|
+
? { $case: "dsymMetadata", dsymMetadata: DsymMetadata.fromJSON(object.dsymMetadata) }
|
|
462
|
+
: isSet(object.sourceMapMetadata)
|
|
463
|
+
? { $case: "sourceMapMetadata", sourceMapMetadata: SourceMapMetadata.fromJSON(object.sourceMapMetadata) }
|
|
464
|
+
: isSet(object.reactNativeMetadata)
|
|
465
|
+
? {
|
|
466
|
+
$case: "reactNativeMetadata",
|
|
467
|
+
reactNativeMetadata: ReactNativeMetadata.fromJSON(object.reactNativeMetadata),
|
|
468
|
+
}
|
|
469
|
+
: undefined,
|
|
470
|
+
};
|
|
471
|
+
},
|
|
472
|
+
|
|
473
|
+
toJSON(message: ReleaseEntityMetadata): unknown {
|
|
474
|
+
const obj: any = {};
|
|
475
|
+
if (message.metadata?.$case === "dsymMetadata") {
|
|
476
|
+
obj.dsymMetadata = DsymMetadata.toJSON(message.metadata.dsymMetadata);
|
|
477
|
+
}
|
|
478
|
+
if (message.metadata?.$case === "sourceMapMetadata") {
|
|
479
|
+
obj.sourceMapMetadata = SourceMapMetadata.toJSON(message.metadata.sourceMapMetadata);
|
|
480
|
+
}
|
|
481
|
+
if (message.metadata?.$case === "reactNativeMetadata") {
|
|
482
|
+
obj.reactNativeMetadata = ReactNativeMetadata.toJSON(message.metadata.reactNativeMetadata);
|
|
483
|
+
}
|
|
484
|
+
return obj;
|
|
485
|
+
},
|
|
486
|
+
|
|
487
|
+
create(base?: DeepPartial<ReleaseEntityMetadata>): ReleaseEntityMetadata {
|
|
488
|
+
return ReleaseEntityMetadata.fromPartial(base ?? {});
|
|
489
|
+
},
|
|
490
|
+
fromPartial(object: DeepPartial<ReleaseEntityMetadata>): ReleaseEntityMetadata {
|
|
491
|
+
const message = createBaseReleaseEntityMetadata();
|
|
492
|
+
if (
|
|
493
|
+
object.metadata?.$case === "dsymMetadata" &&
|
|
494
|
+
object.metadata?.dsymMetadata !== undefined &&
|
|
495
|
+
object.metadata?.dsymMetadata !== null
|
|
496
|
+
) {
|
|
497
|
+
message.metadata = {
|
|
498
|
+
$case: "dsymMetadata",
|
|
499
|
+
dsymMetadata: DsymMetadata.fromPartial(object.metadata.dsymMetadata),
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
if (
|
|
503
|
+
object.metadata?.$case === "sourceMapMetadata" &&
|
|
504
|
+
object.metadata?.sourceMapMetadata !== undefined &&
|
|
505
|
+
object.metadata?.sourceMapMetadata !== null
|
|
506
|
+
) {
|
|
507
|
+
message.metadata = {
|
|
508
|
+
$case: "sourceMapMetadata",
|
|
509
|
+
sourceMapMetadata: SourceMapMetadata.fromPartial(object.metadata.sourceMapMetadata),
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
if (
|
|
513
|
+
object.metadata?.$case === "reactNativeMetadata" &&
|
|
514
|
+
object.metadata?.reactNativeMetadata !== undefined &&
|
|
515
|
+
object.metadata?.reactNativeMetadata !== null
|
|
516
|
+
) {
|
|
517
|
+
message.metadata = {
|
|
518
|
+
$case: "reactNativeMetadata",
|
|
519
|
+
reactNativeMetadata: ReactNativeMetadata.fromPartial(object.metadata.reactNativeMetadata),
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
return message;
|
|
523
|
+
},
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
527
|
+
|
|
528
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
529
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
530
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
531
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
532
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
533
|
+
: Partial<T>;
|
|
534
|
+
|
|
535
|
+
function isSet(value: any): boolean {
|
|
536
|
+
return value !== null && value !== undefined;
|
|
537
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
4
|
+
|
|
5
|
+
export enum ReleaseEntityType {
|
|
6
|
+
RELEASE_ENTITY_TYPE_UNSPECIFIED = 0,
|
|
7
|
+
RELEASE_ENTITY_TYPE_DSYM = 1,
|
|
8
|
+
RELEASE_ENTITY_TYPE_SOURCE_MAP = 2,
|
|
9
|
+
RELEASE_ENTITY_TYPE_REACT_NATIVE = 3,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function releaseEntityTypeFromJSON(object: any): ReleaseEntityType {
|
|
13
|
+
switch (object) {
|
|
14
|
+
case 0:
|
|
15
|
+
case "RELEASE_ENTITY_TYPE_UNSPECIFIED":
|
|
16
|
+
return ReleaseEntityType.RELEASE_ENTITY_TYPE_UNSPECIFIED;
|
|
17
|
+
case 1:
|
|
18
|
+
case "RELEASE_ENTITY_TYPE_DSYM":
|
|
19
|
+
return ReleaseEntityType.RELEASE_ENTITY_TYPE_DSYM;
|
|
20
|
+
case 2:
|
|
21
|
+
case "RELEASE_ENTITY_TYPE_SOURCE_MAP":
|
|
22
|
+
return ReleaseEntityType.RELEASE_ENTITY_TYPE_SOURCE_MAP;
|
|
23
|
+
case 3:
|
|
24
|
+
case "RELEASE_ENTITY_TYPE_REACT_NATIVE":
|
|
25
|
+
return ReleaseEntityType.RELEASE_ENTITY_TYPE_REACT_NATIVE;
|
|
26
|
+
default:
|
|
27
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum ReleaseEntityType");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function releaseEntityTypeToJSON(object: ReleaseEntityType): string {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case ReleaseEntityType.RELEASE_ENTITY_TYPE_UNSPECIFIED:
|
|
34
|
+
return "RELEASE_ENTITY_TYPE_UNSPECIFIED";
|
|
35
|
+
case ReleaseEntityType.RELEASE_ENTITY_TYPE_DSYM:
|
|
36
|
+
return "RELEASE_ENTITY_TYPE_DSYM";
|
|
37
|
+
case ReleaseEntityType.RELEASE_ENTITY_TYPE_SOURCE_MAP:
|
|
38
|
+
return "RELEASE_ENTITY_TYPE_SOURCE_MAP";
|
|
39
|
+
case ReleaseEntityType.RELEASE_ENTITY_TYPE_REACT_NATIVE:
|
|
40
|
+
return "RELEASE_ENTITY_TYPE_REACT_NATIVE";
|
|
41
|
+
default:
|
|
42
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum ReleaseEntityType");
|
|
43
|
+
}
|
|
44
|
+
}
|