@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,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
|
+
}
|