@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,254 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
6
|
+
|
|
7
|
+
export interface ApplicationSdkVersion {
|
|
8
|
+
companyId: string;
|
|
9
|
+
applicationName: string;
|
|
10
|
+
sdkVersion: string;
|
|
11
|
+
platform: string;
|
|
12
|
+
framework: string;
|
|
13
|
+
detectedTimestamp: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ApplicationData {
|
|
17
|
+
applicationName: string;
|
|
18
|
+
data: ApplicationSdkVersion[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function createBaseApplicationSdkVersion(): ApplicationSdkVersion {
|
|
22
|
+
return { companyId: "", applicationName: "", sdkVersion: "", platform: "", framework: "", detectedTimestamp: 0 };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const ApplicationSdkVersion = {
|
|
26
|
+
encode(message: ApplicationSdkVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27
|
+
if (message.companyId !== "") {
|
|
28
|
+
writer.uint32(10).string(message.companyId);
|
|
29
|
+
}
|
|
30
|
+
if (message.applicationName !== "") {
|
|
31
|
+
writer.uint32(18).string(message.applicationName);
|
|
32
|
+
}
|
|
33
|
+
if (message.sdkVersion !== "") {
|
|
34
|
+
writer.uint32(26).string(message.sdkVersion);
|
|
35
|
+
}
|
|
36
|
+
if (message.platform !== "") {
|
|
37
|
+
writer.uint32(34).string(message.platform);
|
|
38
|
+
}
|
|
39
|
+
if (message.framework !== "") {
|
|
40
|
+
writer.uint32(42).string(message.framework);
|
|
41
|
+
}
|
|
42
|
+
if (message.detectedTimestamp !== 0) {
|
|
43
|
+
writer.uint32(48).int64(message.detectedTimestamp);
|
|
44
|
+
}
|
|
45
|
+
return writer;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ApplicationSdkVersion {
|
|
49
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
50
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseApplicationSdkVersion();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
if (tag !== 10) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message.companyId = reader.string();
|
|
61
|
+
continue;
|
|
62
|
+
case 2:
|
|
63
|
+
if (tag !== 18) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message.applicationName = reader.string();
|
|
68
|
+
continue;
|
|
69
|
+
case 3:
|
|
70
|
+
if (tag !== 26) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message.sdkVersion = reader.string();
|
|
75
|
+
continue;
|
|
76
|
+
case 4:
|
|
77
|
+
if (tag !== 34) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message.platform = reader.string();
|
|
82
|
+
continue;
|
|
83
|
+
case 5:
|
|
84
|
+
if (tag !== 42) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message.framework = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
case 6:
|
|
91
|
+
if (tag !== 48) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message.detectedTimestamp = longToNumber(reader.int64() as Long);
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
reader.skipType(tag & 7);
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
fromJSON(object: any): ApplicationSdkVersion {
|
|
107
|
+
return {
|
|
108
|
+
companyId: isSet(object.companyId) ? globalThis.String(object.companyId) : "",
|
|
109
|
+
applicationName: isSet(object.applicationName) ? globalThis.String(object.applicationName) : "",
|
|
110
|
+
sdkVersion: isSet(object.sdkVersion) ? globalThis.String(object.sdkVersion) : "",
|
|
111
|
+
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
112
|
+
framework: isSet(object.framework) ? globalThis.String(object.framework) : "",
|
|
113
|
+
detectedTimestamp: isSet(object.detectedTimestamp) ? globalThis.Number(object.detectedTimestamp) : 0,
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
toJSON(message: ApplicationSdkVersion): unknown {
|
|
118
|
+
const obj: any = {};
|
|
119
|
+
if (message.companyId !== "") {
|
|
120
|
+
obj.companyId = message.companyId;
|
|
121
|
+
}
|
|
122
|
+
if (message.applicationName !== "") {
|
|
123
|
+
obj.applicationName = message.applicationName;
|
|
124
|
+
}
|
|
125
|
+
if (message.sdkVersion !== "") {
|
|
126
|
+
obj.sdkVersion = message.sdkVersion;
|
|
127
|
+
}
|
|
128
|
+
if (message.platform !== "") {
|
|
129
|
+
obj.platform = message.platform;
|
|
130
|
+
}
|
|
131
|
+
if (message.framework !== "") {
|
|
132
|
+
obj.framework = message.framework;
|
|
133
|
+
}
|
|
134
|
+
if (message.detectedTimestamp !== 0) {
|
|
135
|
+
obj.detectedTimestamp = Math.round(message.detectedTimestamp);
|
|
136
|
+
}
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
create(base?: DeepPartial<ApplicationSdkVersion>): ApplicationSdkVersion {
|
|
141
|
+
return ApplicationSdkVersion.fromPartial(base ?? {});
|
|
142
|
+
},
|
|
143
|
+
fromPartial(object: DeepPartial<ApplicationSdkVersion>): ApplicationSdkVersion {
|
|
144
|
+
const message = createBaseApplicationSdkVersion();
|
|
145
|
+
message.companyId = object.companyId ?? "";
|
|
146
|
+
message.applicationName = object.applicationName ?? "";
|
|
147
|
+
message.sdkVersion = object.sdkVersion ?? "";
|
|
148
|
+
message.platform = object.platform ?? "";
|
|
149
|
+
message.framework = object.framework ?? "";
|
|
150
|
+
message.detectedTimestamp = object.detectedTimestamp ?? 0;
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
function createBaseApplicationData(): ApplicationData {
|
|
156
|
+
return { applicationName: "", data: [] };
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export const ApplicationData = {
|
|
160
|
+
encode(message: ApplicationData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
161
|
+
if (message.applicationName !== "") {
|
|
162
|
+
writer.uint32(10).string(message.applicationName);
|
|
163
|
+
}
|
|
164
|
+
for (const v of message.data) {
|
|
165
|
+
ApplicationSdkVersion.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
166
|
+
}
|
|
167
|
+
return writer;
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ApplicationData {
|
|
171
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
172
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
173
|
+
const message = createBaseApplicationData();
|
|
174
|
+
while (reader.pos < end) {
|
|
175
|
+
const tag = reader.uint32();
|
|
176
|
+
switch (tag >>> 3) {
|
|
177
|
+
case 1:
|
|
178
|
+
if (tag !== 10) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message.applicationName = reader.string();
|
|
183
|
+
continue;
|
|
184
|
+
case 2:
|
|
185
|
+
if (tag !== 18) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message.data.push(ApplicationSdkVersion.decode(reader, reader.uint32()));
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
reader.skipType(tag & 7);
|
|
196
|
+
}
|
|
197
|
+
return message;
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
fromJSON(object: any): ApplicationData {
|
|
201
|
+
return {
|
|
202
|
+
applicationName: isSet(object.applicationName) ? globalThis.String(object.applicationName) : "",
|
|
203
|
+
data: globalThis.Array.isArray(object?.data)
|
|
204
|
+
? object.data.map((e: any) => ApplicationSdkVersion.fromJSON(e))
|
|
205
|
+
: [],
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
toJSON(message: ApplicationData): unknown {
|
|
210
|
+
const obj: any = {};
|
|
211
|
+
if (message.applicationName !== "") {
|
|
212
|
+
obj.applicationName = message.applicationName;
|
|
213
|
+
}
|
|
214
|
+
if (message.data?.length) {
|
|
215
|
+
obj.data = message.data.map((e) => ApplicationSdkVersion.toJSON(e));
|
|
216
|
+
}
|
|
217
|
+
return obj;
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
create(base?: DeepPartial<ApplicationData>): ApplicationData {
|
|
221
|
+
return ApplicationData.fromPartial(base ?? {});
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object: DeepPartial<ApplicationData>): ApplicationData {
|
|
224
|
+
const message = createBaseApplicationData();
|
|
225
|
+
message.applicationName = object.applicationName ?? "";
|
|
226
|
+
message.data = object.data?.map((e) => ApplicationSdkVersion.fromPartial(e)) || [];
|
|
227
|
+
return message;
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
232
|
+
|
|
233
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
234
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
235
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
236
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
237
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
238
|
+
: Partial<T>;
|
|
239
|
+
|
|
240
|
+
function longToNumber(long: Long): number {
|
|
241
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
242
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
243
|
+
}
|
|
244
|
+
return long.toNumber();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (_m0.util.Long !== Long) {
|
|
248
|
+
_m0.util.Long = Long as any;
|
|
249
|
+
_m0.configure();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function isSet(value: any): boolean {
|
|
253
|
+
return value !== null && value !== undefined;
|
|
254
|
+
}
|