@coralogix/rum-cli 1.1.21 → 1.1.22
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 +8 -4
- package/api/rum-api.ts +1 -1
- package/cli/commands/delete-source-maps-command.ts +1 -1
- package/cli/commands/index.ts +5 -4
- package/cli/commands/update-source-maps-command.ts +1 -1
- package/cli/commands/upload-react-native-source-maps-command.ts +39 -0
- package/cli/commands/upload-source-maps-command.ts +1 -1
- package/cli/rum-cli.ts +8 -7
- package/dist/api/rum-api.js +2 -2
- package/dist/cli/commands/delete-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/delete-source-maps-command.js +4 -4
- package/dist/cli/commands/index.d.ts +4 -3
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/update-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/update-source-maps-command.js +4 -4
- package/dist/cli/commands/upload-react-native-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-react-native-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/upload-source-maps-command.js +4 -4
- package/dist/cli/rum-cli.js +9 -7
- 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/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 +526 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1560 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +98 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +475 -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_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 +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +65 -41
- 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/react-native-source-maps.service.d.ts +3 -0
- package/dist/services/react-native-source-maps.service.js +42 -0
- package/dist/services/source-maps.service.js +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- 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/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1837 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +533 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- 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 +65 -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 +2 -2
- package/protofetch.toml +1 -1
- 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 +128 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +1 -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/react-native-source-maps.service.ts +40 -0
- package/services/source-maps.service.ts +2 -2
- package/utils/index.ts +3 -3
|
@@ -126,26 +126,34 @@ export const UploadSourceMapsRequest = {
|
|
|
126
126
|
|
|
127
127
|
fromJSON(object: any): UploadSourceMapsRequest {
|
|
128
128
|
return {
|
|
129
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
130
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
131
|
-
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
132
|
-
repoName: isSet(object.repoName) ? String(object.repoName) : undefined,
|
|
133
|
-
user: isSet(object.user) ? String(object.user) : undefined,
|
|
134
|
-
files: Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
129
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
130
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
131
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
132
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
133
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
134
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
135
135
|
};
|
|
136
136
|
},
|
|
137
137
|
|
|
138
138
|
toJSON(message: UploadSourceMapsRequest): unknown {
|
|
139
139
|
const obj: any = {};
|
|
140
|
-
message.application !==
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
message.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
if (message.application !== "") {
|
|
141
|
+
obj.application = message.application;
|
|
142
|
+
}
|
|
143
|
+
if (message.releaseId !== "") {
|
|
144
|
+
obj.releaseId = message.releaseId;
|
|
145
|
+
}
|
|
146
|
+
if (message.commitHash !== undefined) {
|
|
147
|
+
obj.commitHash = message.commitHash;
|
|
148
|
+
}
|
|
149
|
+
if (message.repoName !== undefined) {
|
|
150
|
+
obj.repoName = message.repoName;
|
|
151
|
+
}
|
|
152
|
+
if (message.user !== undefined) {
|
|
153
|
+
obj.user = message.user;
|
|
154
|
+
}
|
|
155
|
+
if (message.files?.length) {
|
|
156
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
149
157
|
}
|
|
150
158
|
return obj;
|
|
151
159
|
},
|
|
@@ -153,7 +161,6 @@ export const UploadSourceMapsRequest = {
|
|
|
153
161
|
create(base?: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
154
162
|
return UploadSourceMapsRequest.fromPartial(base ?? {});
|
|
155
163
|
},
|
|
156
|
-
|
|
157
164
|
fromPartial(object: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
158
165
|
const message = createBaseUploadSourceMapsRequest();
|
|
159
166
|
message.application = object.application ?? "";
|
|
@@ -282,38 +289,49 @@ export const UpdateSourceMapRequest = {
|
|
|
282
289
|
|
|
283
290
|
fromJSON(object: any): UpdateSourceMapRequest {
|
|
284
291
|
return {
|
|
285
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
286
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
287
|
-
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
288
|
-
repoName: isSet(object.repoName) ? String(object.repoName) : undefined,
|
|
289
|
-
user: isSet(object.user) ? String(object.user) : undefined,
|
|
290
|
-
files: Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
291
|
-
replace: isSet(object.replace) ? String(object.replace) : undefined,
|
|
292
|
-
generate: isSet(object.generate) ? String(object.generate) : undefined,
|
|
292
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
293
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
294
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
295
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
296
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
297
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
298
|
+
replace: isSet(object.replace) ? globalThis.String(object.replace) : undefined,
|
|
299
|
+
generate: isSet(object.generate) ? globalThis.String(object.generate) : undefined,
|
|
293
300
|
};
|
|
294
301
|
},
|
|
295
302
|
|
|
296
303
|
toJSON(message: UpdateSourceMapRequest): unknown {
|
|
297
304
|
const obj: any = {};
|
|
298
|
-
message.application !==
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
message.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
305
|
+
if (message.application !== "") {
|
|
306
|
+
obj.application = message.application;
|
|
307
|
+
}
|
|
308
|
+
if (message.releaseId !== "") {
|
|
309
|
+
obj.releaseId = message.releaseId;
|
|
310
|
+
}
|
|
311
|
+
if (message.commitHash !== undefined) {
|
|
312
|
+
obj.commitHash = message.commitHash;
|
|
313
|
+
}
|
|
314
|
+
if (message.repoName !== undefined) {
|
|
315
|
+
obj.repoName = message.repoName;
|
|
316
|
+
}
|
|
317
|
+
if (message.user !== undefined) {
|
|
318
|
+
obj.user = message.user;
|
|
319
|
+
}
|
|
320
|
+
if (message.files?.length) {
|
|
321
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
322
|
+
}
|
|
323
|
+
if (message.replace !== undefined) {
|
|
324
|
+
obj.replace = message.replace;
|
|
325
|
+
}
|
|
326
|
+
if (message.generate !== undefined) {
|
|
327
|
+
obj.generate = message.generate;
|
|
328
|
+
}
|
|
310
329
|
return obj;
|
|
311
330
|
},
|
|
312
331
|
|
|
313
332
|
create(base?: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
314
333
|
return UpdateSourceMapRequest.fromPartial(base ?? {});
|
|
315
334
|
},
|
|
316
|
-
|
|
317
335
|
fromPartial(object: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
318
336
|
const message = createBaseUpdateSourceMapRequest();
|
|
319
337
|
message.application = object.application ?? "";
|
|
@@ -375,22 +393,25 @@ export const DeleteSourceMapRequest = {
|
|
|
375
393
|
|
|
376
394
|
fromJSON(object: any): DeleteSourceMapRequest {
|
|
377
395
|
return {
|
|
378
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
379
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
396
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
397
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
380
398
|
};
|
|
381
399
|
},
|
|
382
400
|
|
|
383
401
|
toJSON(message: DeleteSourceMapRequest): unknown {
|
|
384
402
|
const obj: any = {};
|
|
385
|
-
message.application !==
|
|
386
|
-
|
|
403
|
+
if (message.application !== "") {
|
|
404
|
+
obj.application = message.application;
|
|
405
|
+
}
|
|
406
|
+
if (message.releaseId !== "") {
|
|
407
|
+
obj.releaseId = message.releaseId;
|
|
408
|
+
}
|
|
387
409
|
return obj;
|
|
388
410
|
},
|
|
389
411
|
|
|
390
412
|
create(base?: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
391
413
|
return DeleteSourceMapRequest.fromPartial(base ?? {});
|
|
392
414
|
},
|
|
393
|
-
|
|
394
415
|
fromPartial(object: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
395
416
|
const message = createBaseDeleteSourceMapRequest();
|
|
396
417
|
message.application = object.application ?? "";
|
|
@@ -436,7 +457,6 @@ export const UploadSourceMapsResponse = {
|
|
|
436
457
|
create(base?: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
437
458
|
return UploadSourceMapsResponse.fromPartial(base ?? {});
|
|
438
459
|
},
|
|
439
|
-
|
|
440
460
|
fromPartial(_: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
441
461
|
const message = createBaseUploadSourceMapsResponse();
|
|
442
462
|
return message;
|
|
@@ -480,7 +500,6 @@ export const UpdateSourceMapResponse = {
|
|
|
480
500
|
create(base?: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
481
501
|
return UpdateSourceMapResponse.fromPartial(base ?? {});
|
|
482
502
|
},
|
|
483
|
-
|
|
484
503
|
fromPartial(_: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
485
504
|
const message = createBaseUpdateSourceMapResponse();
|
|
486
505
|
return message;
|
|
@@ -524,7 +543,6 @@ export const DeleteSourceMapResponse = {
|
|
|
524
543
|
create(base?: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
525
544
|
return DeleteSourceMapResponse.fromPartial(base ?? {});
|
|
526
545
|
},
|
|
527
|
-
|
|
528
546
|
fromPartial(_: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
529
547
|
const message = createBaseDeleteSourceMapResponse();
|
|
530
548
|
return message;
|
|
@@ -566,7 +584,8 @@ export const RumSourceMapServiceDefinition = {
|
|
|
566
584
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
567
585
|
|
|
568
586
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
569
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
587
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
588
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
570
589
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
571
590
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
572
591
|
: Partial<T>;
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
5
|
+
|
|
6
|
+
export enum Page {
|
|
7
|
+
PAGE_UNSPECIFIED = 0,
|
|
8
|
+
PAGE_ERROR_TRACKING = 1,
|
|
9
|
+
PAGE_USER_SESSION = 2,
|
|
10
|
+
PAGE_WEB_VITALS = 3,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function pageFromJSON(object: any): Page {
|
|
14
|
+
switch (object) {
|
|
15
|
+
case 0:
|
|
16
|
+
case "PAGE_UNSPECIFIED":
|
|
17
|
+
return Page.PAGE_UNSPECIFIED;
|
|
18
|
+
case 1:
|
|
19
|
+
case "PAGE_ERROR_TRACKING":
|
|
20
|
+
return Page.PAGE_ERROR_TRACKING;
|
|
21
|
+
case 2:
|
|
22
|
+
case "PAGE_USER_SESSION":
|
|
23
|
+
return Page.PAGE_USER_SESSION;
|
|
24
|
+
case 3:
|
|
25
|
+
case "PAGE_WEB_VITALS":
|
|
26
|
+
return Page.PAGE_WEB_VITALS;
|
|
27
|
+
default:
|
|
28
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum Page");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function pageToJSON(object: Page): string {
|
|
33
|
+
switch (object) {
|
|
34
|
+
case Page.PAGE_UNSPECIFIED:
|
|
35
|
+
return "PAGE_UNSPECIFIED";
|
|
36
|
+
case Page.PAGE_ERROR_TRACKING:
|
|
37
|
+
return "PAGE_ERROR_TRACKING";
|
|
38
|
+
case Page.PAGE_USER_SESSION:
|
|
39
|
+
return "PAGE_USER_SESSION";
|
|
40
|
+
case Page.PAGE_WEB_VITALS:
|
|
41
|
+
return "PAGE_WEB_VITALS";
|
|
42
|
+
default:
|
|
43
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum Page");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export enum SavedFilterPermission {
|
|
48
|
+
SAVED_FILTER_PERMISSION_UNSPECIFIED = 0,
|
|
49
|
+
SAVED_FILTER_PERMISSION_PRIVATE = 1,
|
|
50
|
+
SAVED_FILTER_PERMISSION_PUBLIC = 2,
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function savedFilterPermissionFromJSON(object: any): SavedFilterPermission {
|
|
54
|
+
switch (object) {
|
|
55
|
+
case 0:
|
|
56
|
+
case "SAVED_FILTER_PERMISSION_UNSPECIFIED":
|
|
57
|
+
return SavedFilterPermission.SAVED_FILTER_PERMISSION_UNSPECIFIED;
|
|
58
|
+
case 1:
|
|
59
|
+
case "SAVED_FILTER_PERMISSION_PRIVATE":
|
|
60
|
+
return SavedFilterPermission.SAVED_FILTER_PERMISSION_PRIVATE;
|
|
61
|
+
case 2:
|
|
62
|
+
case "SAVED_FILTER_PERMISSION_PUBLIC":
|
|
63
|
+
return SavedFilterPermission.SAVED_FILTER_PERMISSION_PUBLIC;
|
|
64
|
+
default:
|
|
65
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum SavedFilterPermission");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function savedFilterPermissionToJSON(object: SavedFilterPermission): string {
|
|
70
|
+
switch (object) {
|
|
71
|
+
case SavedFilterPermission.SAVED_FILTER_PERMISSION_UNSPECIFIED:
|
|
72
|
+
return "SAVED_FILTER_PERMISSION_UNSPECIFIED";
|
|
73
|
+
case SavedFilterPermission.SAVED_FILTER_PERMISSION_PRIVATE:
|
|
74
|
+
return "SAVED_FILTER_PERMISSION_PRIVATE";
|
|
75
|
+
case SavedFilterPermission.SAVED_FILTER_PERMISSION_PUBLIC:
|
|
76
|
+
return "SAVED_FILTER_PERMISSION_PUBLIC";
|
|
77
|
+
default:
|
|
78
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum SavedFilterPermission");
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface SavedFilterBasicProperties {
|
|
83
|
+
name: string;
|
|
84
|
+
id: string;
|
|
85
|
+
page: Page;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface SavedFilter {
|
|
89
|
+
savedFilter: SavedFilterBasicProperties | undefined;
|
|
90
|
+
isFavorite: boolean;
|
|
91
|
+
favoriteId?: string | undefined;
|
|
92
|
+
permission: SavedFilterPermission;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function createBaseSavedFilterBasicProperties(): SavedFilterBasicProperties {
|
|
96
|
+
return { name: "", id: "", page: 0 };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const SavedFilterBasicProperties = {
|
|
100
|
+
encode(message: SavedFilterBasicProperties, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
101
|
+
if (message.name !== "") {
|
|
102
|
+
writer.uint32(10).string(message.name);
|
|
103
|
+
}
|
|
104
|
+
if (message.id !== "") {
|
|
105
|
+
writer.uint32(18).string(message.id);
|
|
106
|
+
}
|
|
107
|
+
if (message.page !== 0) {
|
|
108
|
+
writer.uint32(24).int32(message.page);
|
|
109
|
+
}
|
|
110
|
+
return writer;
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SavedFilterBasicProperties {
|
|
114
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
115
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
116
|
+
const message = createBaseSavedFilterBasicProperties();
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
const tag = reader.uint32();
|
|
119
|
+
switch (tag >>> 3) {
|
|
120
|
+
case 1:
|
|
121
|
+
if (tag !== 10) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message.name = reader.string();
|
|
126
|
+
continue;
|
|
127
|
+
case 2:
|
|
128
|
+
if (tag !== 18) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message.id = reader.string();
|
|
133
|
+
continue;
|
|
134
|
+
case 3:
|
|
135
|
+
if (tag !== 24) {
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message.page = reader.int32() as any;
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
reader.skipType(tag & 7);
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
fromJSON(object: any): SavedFilterBasicProperties {
|
|
151
|
+
return {
|
|
152
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
153
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
154
|
+
page: isSet(object.page) ? pageFromJSON(object.page) : 0,
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
toJSON(message: SavedFilterBasicProperties): unknown {
|
|
159
|
+
const obj: any = {};
|
|
160
|
+
if (message.name !== "") {
|
|
161
|
+
obj.name = message.name;
|
|
162
|
+
}
|
|
163
|
+
if (message.id !== "") {
|
|
164
|
+
obj.id = message.id;
|
|
165
|
+
}
|
|
166
|
+
if (message.page !== 0) {
|
|
167
|
+
obj.page = pageToJSON(message.page);
|
|
168
|
+
}
|
|
169
|
+
return obj;
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
create(base?: DeepPartial<SavedFilterBasicProperties>): SavedFilterBasicProperties {
|
|
173
|
+
return SavedFilterBasicProperties.fromPartial(base ?? {});
|
|
174
|
+
},
|
|
175
|
+
fromPartial(object: DeepPartial<SavedFilterBasicProperties>): SavedFilterBasicProperties {
|
|
176
|
+
const message = createBaseSavedFilterBasicProperties();
|
|
177
|
+
message.name = object.name ?? "";
|
|
178
|
+
message.id = object.id ?? "";
|
|
179
|
+
message.page = object.page ?? 0;
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
function createBaseSavedFilter(): SavedFilter {
|
|
185
|
+
return { savedFilter: undefined, isFavorite: false, favoriteId: undefined, permission: 0 };
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export const SavedFilter = {
|
|
189
|
+
encode(message: SavedFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
190
|
+
if (message.savedFilter !== undefined) {
|
|
191
|
+
SavedFilterBasicProperties.encode(message.savedFilter, writer.uint32(10).fork()).ldelim();
|
|
192
|
+
}
|
|
193
|
+
if (message.isFavorite === true) {
|
|
194
|
+
writer.uint32(16).bool(message.isFavorite);
|
|
195
|
+
}
|
|
196
|
+
if (message.favoriteId !== undefined) {
|
|
197
|
+
writer.uint32(26).string(message.favoriteId);
|
|
198
|
+
}
|
|
199
|
+
if (message.permission !== 0) {
|
|
200
|
+
writer.uint32(32).int32(message.permission);
|
|
201
|
+
}
|
|
202
|
+
return writer;
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SavedFilter {
|
|
206
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
207
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
208
|
+
const message = createBaseSavedFilter();
|
|
209
|
+
while (reader.pos < end) {
|
|
210
|
+
const tag = reader.uint32();
|
|
211
|
+
switch (tag >>> 3) {
|
|
212
|
+
case 1:
|
|
213
|
+
if (tag !== 10) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message.savedFilter = SavedFilterBasicProperties.decode(reader, reader.uint32());
|
|
218
|
+
continue;
|
|
219
|
+
case 2:
|
|
220
|
+
if (tag !== 16) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
message.isFavorite = reader.bool();
|
|
225
|
+
continue;
|
|
226
|
+
case 3:
|
|
227
|
+
if (tag !== 26) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message.favoriteId = reader.string();
|
|
232
|
+
continue;
|
|
233
|
+
case 4:
|
|
234
|
+
if (tag !== 32) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message.permission = reader.int32() as any;
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
reader.skipType(tag & 7);
|
|
245
|
+
}
|
|
246
|
+
return message;
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
fromJSON(object: any): SavedFilter {
|
|
250
|
+
return {
|
|
251
|
+
savedFilter: isSet(object.savedFilter) ? SavedFilterBasicProperties.fromJSON(object.savedFilter) : undefined,
|
|
252
|
+
isFavorite: isSet(object.isFavorite) ? globalThis.Boolean(object.isFavorite) : false,
|
|
253
|
+
favoriteId: isSet(object.favoriteId) ? globalThis.String(object.favoriteId) : undefined,
|
|
254
|
+
permission: isSet(object.permission) ? savedFilterPermissionFromJSON(object.permission) : 0,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
toJSON(message: SavedFilter): unknown {
|
|
259
|
+
const obj: any = {};
|
|
260
|
+
if (message.savedFilter !== undefined) {
|
|
261
|
+
obj.savedFilter = SavedFilterBasicProperties.toJSON(message.savedFilter);
|
|
262
|
+
}
|
|
263
|
+
if (message.isFavorite === true) {
|
|
264
|
+
obj.isFavorite = message.isFavorite;
|
|
265
|
+
}
|
|
266
|
+
if (message.favoriteId !== undefined) {
|
|
267
|
+
obj.favoriteId = message.favoriteId;
|
|
268
|
+
}
|
|
269
|
+
if (message.permission !== 0) {
|
|
270
|
+
obj.permission = savedFilterPermissionToJSON(message.permission);
|
|
271
|
+
}
|
|
272
|
+
return obj;
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
create(base?: DeepPartial<SavedFilter>): SavedFilter {
|
|
276
|
+
return SavedFilter.fromPartial(base ?? {});
|
|
277
|
+
},
|
|
278
|
+
fromPartial(object: DeepPartial<SavedFilter>): SavedFilter {
|
|
279
|
+
const message = createBaseSavedFilter();
|
|
280
|
+
message.savedFilter = (object.savedFilter !== undefined && object.savedFilter !== null)
|
|
281
|
+
? SavedFilterBasicProperties.fromPartial(object.savedFilter)
|
|
282
|
+
: undefined;
|
|
283
|
+
message.isFavorite = object.isFavorite ?? false;
|
|
284
|
+
message.favoriteId = object.favoriteId ?? undefined;
|
|
285
|
+
message.permission = object.permission ?? 0;
|
|
286
|
+
return message;
|
|
287
|
+
},
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
291
|
+
|
|
292
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
293
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
294
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
295
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
296
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
297
|
+
: Partial<T>;
|
|
298
|
+
|
|
299
|
+
function isSet(value: any): boolean {
|
|
300
|
+
return value !== null && value !== undefined;
|
|
301
|
+
}
|