@coralogix/rum-cli 1.1.38 → 1.1.43
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 +2 -0
- package/api/base/base.api.ts +48 -56
- package/api/dsym/dsym.api.ts +8 -0
- package/api/proguard/proguard.api.ts +8 -0
- package/api/react-native/react-native.api.ts +8 -0
- package/api/source-maps/source-maps.api.ts +8 -0
- package/cli/commands/dsym/upload-dsym-command.ts +4 -2
- package/cli/commands/proguard/upload-proguard-command.ts +4 -2
- package/cli/commands/react-native/upload-react-native-source-maps-command.ts +4 -2
- package/cli/commands/source-maps/upload-source-maps-command.ts +4 -2
- package/consts/consts.ts +1 -0
- package/dist/api/base/base.api.d.ts +10 -9
- package/dist/api/base/base.api.js +20 -34
- package/dist/api/dsym/dsym.api.d.ts +2 -2
- package/dist/api/dsym/dsym.api.js +7 -3
- package/dist/api/proguard/proguard.api.d.ts +2 -2
- package/dist/api/proguard/proguard.api.js +7 -3
- package/dist/api/react-native/react-native.api.d.ts +2 -2
- package/dist/api/react-native/react-native.api.js +7 -3
- package/dist/api/source-maps/source-maps.api.d.ts +2 -2
- package/dist/api/source-maps/source-maps.api.js +7 -3
- package/dist/cli/commands/dsym/upload-dsym-command.js +5 -3
- package/dist/cli/commands/proguard/upload-proguard-command.js +5 -3
- package/dist/cli/commands/react-native/upload-react-native-source-maps-command.js +5 -3
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +5 -3
- package/dist/consts/consts.js +3 -2
- package/dist/grpc-client/grpc-client-factory.d.ts +158 -0
- package/dist/models/dsym-commands.model.d.ts +2 -0
- package/dist/models/dsym-commands.model.js +1 -1
- package/dist/models/proguard-commands.model.d.ts +2 -0
- package/dist/models/proguard-commands.model.js +1 -1
- package/dist/models/react-native-commands.model.d.ts +2 -0
- package/dist/models/react-native-commands.model.js +1 -1
- package/dist/models/source-maps-commands.model.d.ts +2 -0
- package/dist/models/source-maps-commands.model.js +1 -1
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +150 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +29 -1
- package/dist/proto-models/com/coralogix/blobset/v2/case_file.d.ts +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/case_file.js +161 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +1 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +33 -3
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +47 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +375 -11
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +3 -1
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +13 -1
- package/dist/proto-models/com/coralogix/blobset/v2/investigation_file.d.ts +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/investigation_file.js +161 -0
- package/dist/proto-models/com/coralogix/blobset/v2/proguard.d.ts +68 -0
- package/dist/proto-models/com/coralogix/blobset/v2/proguard.js +400 -0
- package/dist/proto-models/com/coralogix/rum/v2/ai_assist.d.ts +89 -0
- package/dist/proto-models/com/coralogix/rum/v2/ai_assist.js +290 -0
- package/dist/proto-models/com/coralogix/rum/v2/application_releases.d.ts +38 -0
- package/dist/proto-models/com/coralogix/rum/v2/application_releases.js +180 -0
- package/dist/proto-models/com/coralogix/rum/v2/merge_error.d.ts +38 -0
- package/dist/proto-models/com/coralogix/rum/v2/merge_error.js +171 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +19 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +225 -10
- package/dist/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.d.ts +197 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.js +478 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +107 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +385 -2
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +94 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +300 -2
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +5 -1
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +25 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +2 -0
- package/dist/proto-models/com/coralogix/rum/v2/template.js +31 -3
- package/dist/proto-models/google/protobuf/struct.d.ts +127 -0
- package/dist/proto-models/google/protobuf/struct.js +476 -0
- package/dist/services/base/base.service.d.ts +1 -1
- package/dist/services/base/base.service.js +7 -5
- package/dist/utils/upload-mode.utils.d.ts +12 -0
- package/dist/utils/upload-mode.utils.js +26 -0
- package/dist/utils/version-context.utils.d.ts +20 -0
- package/dist/utils/version-context.utils.js +71 -0
- package/models/dsym-commands.model.ts +2 -0
- package/models/proguard-commands.model.ts +2 -0
- package/models/react-native-commands.model.ts +2 -0
- package/models/source-maps-commands.model.ts +2 -0
- package/package.json +2 -2
- package/protofetch.lock +4 -4
- package/protofetch.toml +2 -2
- package/services/base/base.service.ts +7 -3
- package/utils/upload-mode.utils.ts +30 -0
- package/utils/version-context.utils.ts +95 -0
- package/proto-models/com/coralogix/blobset/v2/audit_log.ts +0 -84
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +0 -36
- package/proto-models/com/coralogix/blobset/v2/blobset_service.ts +0 -209
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +0 -400
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +0 -540
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +0 -56
- package/proto-models/com/coralogix/blobset/v2/s3_metadata.ts +0 -154
- package/proto-models/com/coralogix/blobset/v2/source_map.ts +0 -418
- package/proto-models/com/coralogix/rum/v2/analytics.ts +0 -924
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +0 -84
- package/proto-models/com/coralogix/rum/v2/chunk.ts +0 -399
- package/proto-models/com/coralogix/rum/v2/file.ts +0 -159
- package/proto-models/com/coralogix/rum/v2/hide_errors.ts +0 -234
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +0 -699
- package/proto-models/com/coralogix/rum/v2/release_entity_type.ts +0 -56
- package/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.ts +0 -605
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +0 -229
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +0 -1679
- package/proto-models/com/coralogix/rum/v2/rum_sdk_versions.ts +0 -279
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +0 -2158
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +0 -16
- package/proto-models/com/coralogix/rum/v2/rum_settings.ts +0 -215
- package/proto-models/com/coralogix/rum/v2/rum_settings_service.ts +0 -283
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +0 -905
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +0 -307
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +0 -358
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +0 -301
- package/proto-models/com/coralogix/rum/v2/template.ts +0 -588
- package/proto-models/google/protobuf/descriptor.ts +0 -4921
- package/protos/com/coralogix/blobset/v2/audit_log.proto +0 -13
- package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +0 -12
- package/protos/com/coralogix/blobset/v2/blobset_service.proto +0 -18
- package/protos/com/coralogix/blobset/v2/dsym.proto +0 -19
- package/protos/com/coralogix/blobset/v2/entity_metadata.proto +0 -35
- package/protos/com/coralogix/blobset/v2/entity_type.proto +0 -11
- package/protos/com/coralogix/blobset/v2/s3_metadata.proto +0 -14
- package/protos/com/coralogix/blobset/v2/source_map.proto +0 -30
- package/protos/com/coralogix/rum/v2/analytics.proto +0 -57
- package/protos/com/coralogix/rum/v2/audit_log.proto +0 -13
- package/protos/com/coralogix/rum/v2/chunk.proto +0 -24
- package/protos/com/coralogix/rum/v2/file.proto +0 -8
- package/protos/com/coralogix/rum/v2/hide_errors.proto +0 -19
- package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +0 -44
- package/protos/com/coralogix/rum/v2/release_entity_type.proto +0 -11
- package/protos/com/coralogix/rum/v2/rum_hide_errors_service.proto +0 -42
- package/protos/com/coralogix/rum/v2/rum_react_native_source_map_service.proto +0 -19
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +0 -117
- package/protos/com/coralogix/rum/v2/rum_sdk_versions.proto +0 -17
- package/protos/com/coralogix/rum/v2/rum_service.proto +0 -144
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +0 -4
- package/protos/com/coralogix/rum/v2/rum_settings.proto +0 -26
- package/protos/com/coralogix/rum/v2/rum_settings_service.proto +0 -23
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +0 -58
- package/protos/com/coralogix/rum/v2/saved_filter.proto +0 -28
- package/protos/com/coralogix/rum/v2/source_code_file_mapping.proto +0 -16
- package/protos/com/coralogix/rum/v2/source_map_release.proto +0 -18
- package/protos/com/coralogix/rum/v2/template.proto +0 -40
- package/protoset.bin +0 -0
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.1
|
|
4
|
-
// protoc v3.19.1
|
|
5
|
-
// source: com/coralogix/rum/v2/rum_sdk_versions.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import Long from "long";
|
|
9
|
-
import _m0 from "protobufjs/minimal";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "com.coralogix.rum.v2";
|
|
12
|
-
|
|
13
|
-
export interface ApplicationSdkVersion {
|
|
14
|
-
companyId: string;
|
|
15
|
-
applicationName: string;
|
|
16
|
-
sdkVersion: string;
|
|
17
|
-
platform: string;
|
|
18
|
-
framework: string;
|
|
19
|
-
detectedTimestamp: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ApplicationData {
|
|
23
|
-
applicationName: string;
|
|
24
|
-
data: ApplicationSdkVersion[];
|
|
25
|
-
companyName?: string | undefined;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function createBaseApplicationSdkVersion(): ApplicationSdkVersion {
|
|
29
|
-
return { companyId: "", applicationName: "", sdkVersion: "", platform: "", framework: "", detectedTimestamp: 0 };
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const ApplicationSdkVersion = {
|
|
33
|
-
encode(message: ApplicationSdkVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
34
|
-
if (message.companyId !== "") {
|
|
35
|
-
writer.uint32(10).string(message.companyId);
|
|
36
|
-
}
|
|
37
|
-
if (message.applicationName !== "") {
|
|
38
|
-
writer.uint32(18).string(message.applicationName);
|
|
39
|
-
}
|
|
40
|
-
if (message.sdkVersion !== "") {
|
|
41
|
-
writer.uint32(26).string(message.sdkVersion);
|
|
42
|
-
}
|
|
43
|
-
if (message.platform !== "") {
|
|
44
|
-
writer.uint32(34).string(message.platform);
|
|
45
|
-
}
|
|
46
|
-
if (message.framework !== "") {
|
|
47
|
-
writer.uint32(42).string(message.framework);
|
|
48
|
-
}
|
|
49
|
-
if (message.detectedTimestamp !== 0) {
|
|
50
|
-
writer.uint32(48).int64(message.detectedTimestamp);
|
|
51
|
-
}
|
|
52
|
-
return writer;
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ApplicationSdkVersion {
|
|
56
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
57
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
-
const message = createBaseApplicationSdkVersion();
|
|
59
|
-
while (reader.pos < end) {
|
|
60
|
-
const tag = reader.uint32();
|
|
61
|
-
switch (tag >>> 3) {
|
|
62
|
-
case 1:
|
|
63
|
-
if (tag !== 10) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message.companyId = reader.string();
|
|
68
|
-
continue;
|
|
69
|
-
case 2:
|
|
70
|
-
if (tag !== 18) {
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message.applicationName = reader.string();
|
|
75
|
-
continue;
|
|
76
|
-
case 3:
|
|
77
|
-
if (tag !== 26) {
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
message.sdkVersion = reader.string();
|
|
82
|
-
continue;
|
|
83
|
-
case 4:
|
|
84
|
-
if (tag !== 34) {
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
message.platform = reader.string();
|
|
89
|
-
continue;
|
|
90
|
-
case 5:
|
|
91
|
-
if (tag !== 42) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
message.framework = reader.string();
|
|
96
|
-
continue;
|
|
97
|
-
case 6:
|
|
98
|
-
if (tag !== 48) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
message.detectedTimestamp = longToNumber(reader.int64() as Long);
|
|
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): ApplicationSdkVersion {
|
|
114
|
-
return {
|
|
115
|
-
companyId: isSet(object.companyId) ? globalThis.String(object.companyId) : "",
|
|
116
|
-
applicationName: isSet(object.applicationName) ? globalThis.String(object.applicationName) : "",
|
|
117
|
-
sdkVersion: isSet(object.sdkVersion) ? globalThis.String(object.sdkVersion) : "",
|
|
118
|
-
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
119
|
-
framework: isSet(object.framework) ? globalThis.String(object.framework) : "",
|
|
120
|
-
detectedTimestamp: isSet(object.detectedTimestamp) ? globalThis.Number(object.detectedTimestamp) : 0,
|
|
121
|
-
};
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
toJSON(message: ApplicationSdkVersion): unknown {
|
|
125
|
-
const obj: any = {};
|
|
126
|
-
if (message.companyId !== "") {
|
|
127
|
-
obj.companyId = message.companyId;
|
|
128
|
-
}
|
|
129
|
-
if (message.applicationName !== "") {
|
|
130
|
-
obj.applicationName = message.applicationName;
|
|
131
|
-
}
|
|
132
|
-
if (message.sdkVersion !== "") {
|
|
133
|
-
obj.sdkVersion = message.sdkVersion;
|
|
134
|
-
}
|
|
135
|
-
if (message.platform !== "") {
|
|
136
|
-
obj.platform = message.platform;
|
|
137
|
-
}
|
|
138
|
-
if (message.framework !== "") {
|
|
139
|
-
obj.framework = message.framework;
|
|
140
|
-
}
|
|
141
|
-
if (message.detectedTimestamp !== 0) {
|
|
142
|
-
obj.detectedTimestamp = Math.round(message.detectedTimestamp);
|
|
143
|
-
}
|
|
144
|
-
return obj;
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
create(base?: DeepPartial<ApplicationSdkVersion>): ApplicationSdkVersion {
|
|
148
|
-
return ApplicationSdkVersion.fromPartial(base ?? {});
|
|
149
|
-
},
|
|
150
|
-
fromPartial(object: DeepPartial<ApplicationSdkVersion>): ApplicationSdkVersion {
|
|
151
|
-
const message = createBaseApplicationSdkVersion();
|
|
152
|
-
message.companyId = object.companyId ?? "";
|
|
153
|
-
message.applicationName = object.applicationName ?? "";
|
|
154
|
-
message.sdkVersion = object.sdkVersion ?? "";
|
|
155
|
-
message.platform = object.platform ?? "";
|
|
156
|
-
message.framework = object.framework ?? "";
|
|
157
|
-
message.detectedTimestamp = object.detectedTimestamp ?? 0;
|
|
158
|
-
return message;
|
|
159
|
-
},
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
function createBaseApplicationData(): ApplicationData {
|
|
163
|
-
return { applicationName: "", data: [], companyName: undefined };
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export const ApplicationData = {
|
|
167
|
-
encode(message: ApplicationData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
168
|
-
if (message.applicationName !== "") {
|
|
169
|
-
writer.uint32(10).string(message.applicationName);
|
|
170
|
-
}
|
|
171
|
-
for (const v of message.data) {
|
|
172
|
-
ApplicationSdkVersion.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
173
|
-
}
|
|
174
|
-
if (message.companyName !== undefined) {
|
|
175
|
-
writer.uint32(26).string(message.companyName);
|
|
176
|
-
}
|
|
177
|
-
return writer;
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ApplicationData {
|
|
181
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
182
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
183
|
-
const message = createBaseApplicationData();
|
|
184
|
-
while (reader.pos < end) {
|
|
185
|
-
const tag = reader.uint32();
|
|
186
|
-
switch (tag >>> 3) {
|
|
187
|
-
case 1:
|
|
188
|
-
if (tag !== 10) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
message.applicationName = reader.string();
|
|
193
|
-
continue;
|
|
194
|
-
case 2:
|
|
195
|
-
if (tag !== 18) {
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
message.data.push(ApplicationSdkVersion.decode(reader, reader.uint32()));
|
|
200
|
-
continue;
|
|
201
|
-
case 3:
|
|
202
|
-
if (tag !== 26) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
message.companyName = reader.string();
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
reader.skipType(tag & 7);
|
|
213
|
-
}
|
|
214
|
-
return message;
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
fromJSON(object: any): ApplicationData {
|
|
218
|
-
return {
|
|
219
|
-
applicationName: isSet(object.applicationName) ? globalThis.String(object.applicationName) : "",
|
|
220
|
-
data: globalThis.Array.isArray(object?.data)
|
|
221
|
-
? object.data.map((e: any) => ApplicationSdkVersion.fromJSON(e))
|
|
222
|
-
: [],
|
|
223
|
-
companyName: isSet(object.companyName) ? globalThis.String(object.companyName) : undefined,
|
|
224
|
-
};
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
toJSON(message: ApplicationData): unknown {
|
|
228
|
-
const obj: any = {};
|
|
229
|
-
if (message.applicationName !== "") {
|
|
230
|
-
obj.applicationName = message.applicationName;
|
|
231
|
-
}
|
|
232
|
-
if (message.data?.length) {
|
|
233
|
-
obj.data = message.data.map((e) => ApplicationSdkVersion.toJSON(e));
|
|
234
|
-
}
|
|
235
|
-
if (message.companyName !== undefined) {
|
|
236
|
-
obj.companyName = message.companyName;
|
|
237
|
-
}
|
|
238
|
-
return obj;
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
create(base?: DeepPartial<ApplicationData>): ApplicationData {
|
|
242
|
-
return ApplicationData.fromPartial(base ?? {});
|
|
243
|
-
},
|
|
244
|
-
fromPartial(object: DeepPartial<ApplicationData>): ApplicationData {
|
|
245
|
-
const message = createBaseApplicationData();
|
|
246
|
-
message.applicationName = object.applicationName ?? "";
|
|
247
|
-
message.data = object.data?.map((e) => ApplicationSdkVersion.fromPartial(e)) || [];
|
|
248
|
-
message.companyName = object.companyName ?? undefined;
|
|
249
|
-
return message;
|
|
250
|
-
},
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
254
|
-
|
|
255
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
256
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
257
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
258
|
-
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
259
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
260
|
-
: Partial<T>;
|
|
261
|
-
|
|
262
|
-
function longToNumber(long: Long): number {
|
|
263
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
264
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
265
|
-
}
|
|
266
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
267
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
268
|
-
}
|
|
269
|
-
return long.toNumber();
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
if (_m0.util.Long !== Long) {
|
|
273
|
-
_m0.util.Long = Long as any;
|
|
274
|
-
_m0.configure();
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
function isSet(value: any): boolean {
|
|
278
|
-
return value !== null && value !== undefined;
|
|
279
|
-
}
|