@se-uulm/snowballr-grpc-client 0.2.0 → 0.2.1-alpha.2fd7ace
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/dist/authentication.d.ts +216 -0
- package/dist/{authentication.ts → authentication.js} +50 -155
- package/dist/base.d.ts +139 -0
- package/dist/{base.ts → base.js} +43 -108
- package/dist/criterion.d.ts +170 -0
- package/dist/{criterion.ts → criterion.js} +33 -122
- package/dist/export.d.ts +84 -0
- package/dist/{export.ts → export.js} +19 -65
- package/dist/fetcher.d.ts +161 -0
- package/dist/{fetcher.ts → fetcher.js} +30 -140
- package/dist/google/protobuf/{field_mask.ts → field_mask.d.ts} +10 -73
- package/dist/google/protobuf/field_mask.js +117 -0
- package/dist/google/protobuf/{timestamp.ts → timestamp.d.ts} +13 -111
- package/dist/google/protobuf/timestamp.js +166 -0
- package/dist/{main.client.ts → main.client.d.ts} +135 -362
- package/dist/main.client.js +1690 -0
- package/dist/main.d.ts +10 -0
- package/dist/{main.ts → main.js} +60 -54
- package/dist/paper.d.ts +217 -0
- package/dist/{paper.ts → paper.js} +41 -187
- package/dist/project.d.ts +866 -0
- package/dist/{project.ts → project.js} +195 -641
- package/dist/review.d.ts +153 -0
- package/dist/{review.ts → review.js} +33 -105
- package/dist/user.d.ts +157 -0
- package/dist/{user.ts → user.js} +33 -93
- package/dist/user_settings.d.ts +74 -0
- package/dist/{user_settings.ts → user_settings.js} +16 -59
- package/package.json +15 -6
package/dist/{user.ts → user.js}
RENAMED
|
@@ -1,134 +1,74 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
2
|
// @generated from protobuf file "user.proto" (package "snowballr", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
5
|
/// User related messages and enums of the SnowballR app.
|
|
6
6
|
//
|
|
7
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
7
|
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
12
8
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
14
9
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
15
10
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
16
|
-
import { FieldMask } from "./google/protobuf/field_mask";
|
|
17
|
-
/**
|
|
18
|
-
* A SnowballR user.
|
|
19
|
-
*
|
|
20
|
-
* @generated from protobuf message snowballr.User
|
|
21
|
-
*/
|
|
22
|
-
export interface User {
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf field: string id = 1
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* @generated from protobuf field: string email = 2
|
|
29
|
-
*/
|
|
30
|
-
email: string;
|
|
31
|
-
/**
|
|
32
|
-
* @generated from protobuf field: string first_name = 3
|
|
33
|
-
*/
|
|
34
|
-
firstName: string;
|
|
35
|
-
/**
|
|
36
|
-
* @generated from protobuf field: string last_name = 4
|
|
37
|
-
*/
|
|
38
|
-
lastName: string;
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf field: snowballr.UserRole role = 5
|
|
41
|
-
*/
|
|
42
|
-
role: UserRole;
|
|
43
|
-
/**
|
|
44
|
-
* @generated from protobuf field: snowballr.UserStatus status = 6
|
|
45
|
-
*/
|
|
46
|
-
status: UserStatus;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A list of users.
|
|
50
|
-
*
|
|
51
|
-
* @generated from protobuf message snowballr.User.List
|
|
52
|
-
*/
|
|
53
|
-
export interface User_List {
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf field: repeated snowballr.User users = 1
|
|
56
|
-
*/
|
|
57
|
-
users: User[];
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Request to update a user.
|
|
61
|
-
*
|
|
62
|
-
* @generated from protobuf message snowballr.User.Update
|
|
63
|
-
*/
|
|
64
|
-
export interface User_Update {
|
|
65
|
-
/**
|
|
66
|
-
* @generated from protobuf field: snowballr.User user = 1
|
|
67
|
-
*/
|
|
68
|
-
user?: User;
|
|
69
|
-
/**
|
|
70
|
-
* @generated from protobuf field: google.protobuf.FieldMask mask = 2
|
|
71
|
-
*/
|
|
72
|
-
mask?: FieldMask;
|
|
73
|
-
}
|
|
11
|
+
import { FieldMask } from "./google/protobuf/field_mask.js";
|
|
74
12
|
/**
|
|
75
13
|
* Role of a user inside the SnowballR app.
|
|
76
14
|
*
|
|
77
15
|
* @generated from protobuf enum snowballr.UserRole
|
|
78
16
|
*/
|
|
79
|
-
export
|
|
17
|
+
export var UserRole;
|
|
18
|
+
(function (UserRole) {
|
|
80
19
|
/**
|
|
81
20
|
* Unspecified user role.
|
|
82
21
|
*
|
|
83
22
|
* @generated from protobuf enum value: USER_ROLE_UNSPECIFIED = 0;
|
|
84
23
|
*/
|
|
85
|
-
UNSPECIFIED = 0
|
|
24
|
+
UserRole[UserRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
86
25
|
/**
|
|
87
26
|
* Default user role. No elevated rights.
|
|
88
27
|
*
|
|
89
28
|
* @generated from protobuf enum value: USER_ROLE_DEFAULT = 1;
|
|
90
29
|
*/
|
|
91
|
-
DEFAULT = 1
|
|
30
|
+
UserRole[UserRole["DEFAULT"] = 1] = "DEFAULT";
|
|
92
31
|
/**
|
|
93
32
|
* (SnowballR instance) Admin user role. Can do everything that a default user can do and more.
|
|
94
33
|
*
|
|
95
34
|
* @generated from protobuf enum value: USER_ROLE_ADMIN = 2;
|
|
96
35
|
*/
|
|
97
|
-
ADMIN = 2
|
|
98
|
-
}
|
|
36
|
+
UserRole[UserRole["ADMIN"] = 2] = "ADMIN";
|
|
37
|
+
})(UserRole || (UserRole = {}));
|
|
99
38
|
/**
|
|
100
39
|
* Status of the user. Can be considered the stage in the lifecycle of a user.
|
|
101
40
|
*
|
|
102
41
|
* @generated from protobuf enum snowballr.UserStatus
|
|
103
42
|
*/
|
|
104
|
-
export
|
|
43
|
+
export var UserStatus;
|
|
44
|
+
(function (UserStatus) {
|
|
105
45
|
/**
|
|
106
46
|
* Unspecified user status.
|
|
107
47
|
*
|
|
108
48
|
* @generated from protobuf enum value: USER_STATUS_UNSPECIFIED = 0;
|
|
109
49
|
*/
|
|
110
|
-
UNSPECIFIED = 0
|
|
50
|
+
UserStatus[UserStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
111
51
|
/**
|
|
112
52
|
* User is registered and has confirmed their email address.
|
|
113
53
|
*
|
|
114
54
|
* @generated from protobuf enum value: USER_STATUS_ACTIVE = 1;
|
|
115
55
|
*/
|
|
116
|
-
ACTIVE = 1
|
|
56
|
+
UserStatus[UserStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
117
57
|
/**
|
|
118
58
|
* User has requested the deletion of their account.
|
|
119
59
|
*
|
|
120
60
|
* @generated from protobuf enum value: USER_STATUS_DELETED = 2;
|
|
121
61
|
*/
|
|
122
|
-
DELETED = 2
|
|
62
|
+
UserStatus[UserStatus["DELETED"] = 2] = "DELETED";
|
|
123
63
|
/**
|
|
124
64
|
* User is registered, but has not yet confirmed their email address.
|
|
125
65
|
*
|
|
126
66
|
* @generated from protobuf enum value: USER_STATUS_ACTIVE_UNCONFIRMED = 3;
|
|
127
67
|
*/
|
|
128
|
-
ACTIVE_UNCONFIRMED = 3
|
|
129
|
-
}
|
|
68
|
+
UserStatus[UserStatus["ACTIVE_UNCONFIRMED"] = 3] = "ACTIVE_UNCONFIRMED";
|
|
69
|
+
})(UserStatus || (UserStatus = {}));
|
|
130
70
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
131
|
-
class User$Type extends MessageType
|
|
71
|
+
class User$Type extends MessageType {
|
|
132
72
|
constructor() {
|
|
133
73
|
super("snowballr.User", [
|
|
134
74
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -139,8 +79,8 @@ class User$Type extends MessageType<User> {
|
|
|
139
79
|
{ no: 6, name: "status", kind: "enum", T: () => ["snowballr.UserStatus", UserStatus, "USER_STATUS_"] }
|
|
140
80
|
]);
|
|
141
81
|
}
|
|
142
|
-
create(value
|
|
143
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
82
|
+
create(value) {
|
|
83
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
144
84
|
message.id = "";
|
|
145
85
|
message.email = "";
|
|
146
86
|
message.firstName = "";
|
|
@@ -148,10 +88,10 @@ class User$Type extends MessageType<User> {
|
|
|
148
88
|
message.role = 0;
|
|
149
89
|
message.status = 0;
|
|
150
90
|
if (value !== undefined)
|
|
151
|
-
reflectionMergePartial
|
|
91
|
+
reflectionMergePartial(this, message, value);
|
|
152
92
|
return message;
|
|
153
93
|
}
|
|
154
|
-
internalBinaryRead(reader
|
|
94
|
+
internalBinaryRead(reader, length, options, target) {
|
|
155
95
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
156
96
|
while (reader.pos < end) {
|
|
157
97
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -185,7 +125,7 @@ class User$Type extends MessageType<User> {
|
|
|
185
125
|
}
|
|
186
126
|
return message;
|
|
187
127
|
}
|
|
188
|
-
internalBinaryWrite(message
|
|
128
|
+
internalBinaryWrite(message, writer, options) {
|
|
189
129
|
/* string id = 1; */
|
|
190
130
|
if (message.id !== "")
|
|
191
131
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
@@ -215,20 +155,20 @@ class User$Type extends MessageType<User> {
|
|
|
215
155
|
*/
|
|
216
156
|
export const User = new User$Type();
|
|
217
157
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
218
|
-
class User_List$Type extends MessageType
|
|
158
|
+
class User_List$Type extends MessageType {
|
|
219
159
|
constructor() {
|
|
220
160
|
super("snowballr.User.List", [
|
|
221
161
|
{ no: 1, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => User }
|
|
222
162
|
]);
|
|
223
163
|
}
|
|
224
|
-
create(value
|
|
225
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
164
|
+
create(value) {
|
|
165
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
226
166
|
message.users = [];
|
|
227
167
|
if (value !== undefined)
|
|
228
|
-
reflectionMergePartial
|
|
168
|
+
reflectionMergePartial(this, message, value);
|
|
229
169
|
return message;
|
|
230
170
|
}
|
|
231
|
-
internalBinaryRead(reader
|
|
171
|
+
internalBinaryRead(reader, length, options, target) {
|
|
232
172
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
233
173
|
while (reader.pos < end) {
|
|
234
174
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -247,7 +187,7 @@ class User_List$Type extends MessageType<User_List> {
|
|
|
247
187
|
}
|
|
248
188
|
return message;
|
|
249
189
|
}
|
|
250
|
-
internalBinaryWrite(message
|
|
190
|
+
internalBinaryWrite(message, writer, options) {
|
|
251
191
|
/* repeated snowballr.User users = 1; */
|
|
252
192
|
for (let i = 0; i < message.users.length; i++)
|
|
253
193
|
User.internalBinaryWrite(message.users[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -262,20 +202,20 @@ class User_List$Type extends MessageType<User_List> {
|
|
|
262
202
|
*/
|
|
263
203
|
export const User_List = new User_List$Type();
|
|
264
204
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
265
|
-
class User_Update$Type extends MessageType
|
|
205
|
+
class User_Update$Type extends MessageType {
|
|
266
206
|
constructor() {
|
|
267
207
|
super("snowballr.User.Update", [
|
|
268
208
|
{ no: 1, name: "user", kind: "message", T: () => User },
|
|
269
209
|
{ no: 2, name: "mask", kind: "message", T: () => FieldMask }
|
|
270
210
|
]);
|
|
271
211
|
}
|
|
272
|
-
create(value
|
|
273
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
212
|
+
create(value) {
|
|
213
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
274
214
|
if (value !== undefined)
|
|
275
|
-
reflectionMergePartial
|
|
215
|
+
reflectionMergePartial(this, message, value);
|
|
276
216
|
return message;
|
|
277
217
|
}
|
|
278
|
-
internalBinaryRead(reader
|
|
218
|
+
internalBinaryRead(reader, length, options, target) {
|
|
279
219
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
280
220
|
while (reader.pos < end) {
|
|
281
221
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -297,7 +237,7 @@ class User_Update$Type extends MessageType<User_Update> {
|
|
|
297
237
|
}
|
|
298
238
|
return message;
|
|
299
239
|
}
|
|
300
|
-
internalBinaryWrite(message
|
|
240
|
+
internalBinaryWrite(message, writer, options) {
|
|
301
241
|
/* snowballr.User user = 1; */
|
|
302
242
|
if (message.user)
|
|
303
243
|
User.internalBinaryWrite(message.user, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
|
+
// @generated from protobuf file "user_settings.proto" (package "snowballr", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
/// User settings related messages and enums of the SnowballR app.
|
|
6
|
+
//
|
|
7
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { FieldMask } from "./google/protobuf/field_mask.js";
|
|
14
|
+
import { Criterion_List } from "./criterion.js";
|
|
15
|
+
import { Project_Settings } from "./project.js";
|
|
16
|
+
/**
|
|
17
|
+
* Settings related to a user.
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf message snowballr.UserSettings
|
|
20
|
+
*/
|
|
21
|
+
export interface UserSettings {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: bool show_hotkeys = 1
|
|
24
|
+
*/
|
|
25
|
+
showHotkeys: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: bool review_mode = 2
|
|
28
|
+
*/
|
|
29
|
+
reviewMode: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: snowballr.Project.Settings default_project_settings = 3
|
|
32
|
+
*/
|
|
33
|
+
defaultProjectSettings?: Project_Settings;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: snowballr.Criterion.List default_criteria = 4
|
|
36
|
+
*/
|
|
37
|
+
defaultCriteria?: Criterion_List;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Request to update the user settings.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf message snowballr.UserSettings.Update
|
|
43
|
+
*/
|
|
44
|
+
export interface UserSettings_Update {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: snowballr.UserSettings user_settings = 1
|
|
47
|
+
*/
|
|
48
|
+
userSettings?: UserSettings;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: google.protobuf.FieldMask mask = 2
|
|
51
|
+
*/
|
|
52
|
+
mask?: FieldMask;
|
|
53
|
+
}
|
|
54
|
+
declare class UserSettings$Type extends MessageType<UserSettings> {
|
|
55
|
+
constructor();
|
|
56
|
+
create(value?: PartialMessage<UserSettings>): UserSettings;
|
|
57
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserSettings): UserSettings;
|
|
58
|
+
internalBinaryWrite(message: UserSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @generated MessageType for protobuf message snowballr.UserSettings
|
|
62
|
+
*/
|
|
63
|
+
export declare const UserSettings: UserSettings$Type;
|
|
64
|
+
declare class UserSettings_Update$Type extends MessageType<UserSettings_Update> {
|
|
65
|
+
constructor();
|
|
66
|
+
create(value?: PartialMessage<UserSettings_Update>): UserSettings_Update;
|
|
67
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserSettings_Update): UserSettings_Update;
|
|
68
|
+
internalBinaryWrite(message: UserSettings_Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated MessageType for protobuf message snowballr.UserSettings.Update
|
|
72
|
+
*/
|
|
73
|
+
export declare const UserSettings_Update: UserSettings_Update$Type;
|
|
74
|
+
export {};
|
|
@@ -1,61 +1,18 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
2
|
// @generated from protobuf file "user_settings.proto" (package "snowballr", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
5
|
/// User settings related messages and enums of the SnowballR app.
|
|
6
6
|
//
|
|
7
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
7
|
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
12
8
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
14
9
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
15
10
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
16
|
-
import { FieldMask } from "./google/protobuf/field_mask";
|
|
17
|
-
import { Criterion_List } from "./criterion";
|
|
18
|
-
import { Project_Settings } from "./project";
|
|
19
|
-
/**
|
|
20
|
-
* Settings related to a user.
|
|
21
|
-
*
|
|
22
|
-
* @generated from protobuf message snowballr.UserSettings
|
|
23
|
-
*/
|
|
24
|
-
export interface UserSettings {
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: bool show_hotkeys = 1
|
|
27
|
-
*/
|
|
28
|
-
showHotkeys: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: bool review_mode = 2
|
|
31
|
-
*/
|
|
32
|
-
reviewMode: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: snowballr.Project.Settings default_project_settings = 3
|
|
35
|
-
*/
|
|
36
|
-
defaultProjectSettings?: Project_Settings;
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf field: snowballr.Criterion.List default_criteria = 4
|
|
39
|
-
*/
|
|
40
|
-
defaultCriteria?: Criterion_List;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Request to update the user settings.
|
|
44
|
-
*
|
|
45
|
-
* @generated from protobuf message snowballr.UserSettings.Update
|
|
46
|
-
*/
|
|
47
|
-
export interface UserSettings_Update {
|
|
48
|
-
/**
|
|
49
|
-
* @generated from protobuf field: snowballr.UserSettings user_settings = 1
|
|
50
|
-
*/
|
|
51
|
-
userSettings?: UserSettings;
|
|
52
|
-
/**
|
|
53
|
-
* @generated from protobuf field: google.protobuf.FieldMask mask = 2
|
|
54
|
-
*/
|
|
55
|
-
mask?: FieldMask;
|
|
56
|
-
}
|
|
11
|
+
import { FieldMask } from "./google/protobuf/field_mask.js";
|
|
12
|
+
import { Criterion_List } from "./criterion.js";
|
|
13
|
+
import { Project_Settings } from "./project.js";
|
|
57
14
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
58
|
-
class UserSettings$Type extends MessageType
|
|
15
|
+
class UserSettings$Type extends MessageType {
|
|
59
16
|
constructor() {
|
|
60
17
|
super("snowballr.UserSettings", [
|
|
61
18
|
{ no: 1, name: "show_hotkeys", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
@@ -64,15 +21,15 @@ class UserSettings$Type extends MessageType<UserSettings> {
|
|
|
64
21
|
{ no: 4, name: "default_criteria", kind: "message", T: () => Criterion_List }
|
|
65
22
|
]);
|
|
66
23
|
}
|
|
67
|
-
create(value
|
|
68
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
24
|
+
create(value) {
|
|
25
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
69
26
|
message.showHotkeys = false;
|
|
70
27
|
message.reviewMode = false;
|
|
71
28
|
if (value !== undefined)
|
|
72
|
-
reflectionMergePartial
|
|
29
|
+
reflectionMergePartial(this, message, value);
|
|
73
30
|
return message;
|
|
74
31
|
}
|
|
75
|
-
internalBinaryRead(reader
|
|
32
|
+
internalBinaryRead(reader, length, options, target) {
|
|
76
33
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
77
34
|
while (reader.pos < end) {
|
|
78
35
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -100,7 +57,7 @@ class UserSettings$Type extends MessageType<UserSettings> {
|
|
|
100
57
|
}
|
|
101
58
|
return message;
|
|
102
59
|
}
|
|
103
|
-
internalBinaryWrite(message
|
|
60
|
+
internalBinaryWrite(message, writer, options) {
|
|
104
61
|
/* bool show_hotkeys = 1; */
|
|
105
62
|
if (message.showHotkeys !== false)
|
|
106
63
|
writer.tag(1, WireType.Varint).bool(message.showHotkeys);
|
|
@@ -124,20 +81,20 @@ class UserSettings$Type extends MessageType<UserSettings> {
|
|
|
124
81
|
*/
|
|
125
82
|
export const UserSettings = new UserSettings$Type();
|
|
126
83
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
127
|
-
class UserSettings_Update$Type extends MessageType
|
|
84
|
+
class UserSettings_Update$Type extends MessageType {
|
|
128
85
|
constructor() {
|
|
129
86
|
super("snowballr.UserSettings.Update", [
|
|
130
87
|
{ no: 1, name: "user_settings", kind: "message", T: () => UserSettings },
|
|
131
88
|
{ no: 2, name: "mask", kind: "message", T: () => FieldMask }
|
|
132
89
|
]);
|
|
133
90
|
}
|
|
134
|
-
create(value
|
|
135
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
91
|
+
create(value) {
|
|
92
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
136
93
|
if (value !== undefined)
|
|
137
|
-
reflectionMergePartial
|
|
94
|
+
reflectionMergePartial(this, message, value);
|
|
138
95
|
return message;
|
|
139
96
|
}
|
|
140
|
-
internalBinaryRead(reader
|
|
97
|
+
internalBinaryRead(reader, length, options, target) {
|
|
141
98
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
142
99
|
while (reader.pos < end) {
|
|
143
100
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -159,7 +116,7 @@ class UserSettings_Update$Type extends MessageType<UserSettings_Update> {
|
|
|
159
116
|
}
|
|
160
117
|
return message;
|
|
161
118
|
}
|
|
162
|
-
internalBinaryWrite(message
|
|
119
|
+
internalBinaryWrite(message, writer, options) {
|
|
163
120
|
/* snowballr.UserSettings user_settings = 1; */
|
|
164
121
|
if (message.userSettings)
|
|
165
122
|
UserSettings.internalBinaryWrite(message.userSettings, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-uulm/snowballr-grpc-client",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "API for the SnowballR Web Application.",
|
|
3
|
+
"version": "0.2.1-alpha.2fd7ace",
|
|
4
|
+
"description": "gRPC API client for the SnowballR Web Application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
7
7
|
"protobuf",
|
|
8
8
|
"grpc"
|
|
9
9
|
],
|
|
10
|
-
"homepage": "https://github.com/SE-UUlm/snowballr-backend/tree/
|
|
10
|
+
"homepage": "https://github.com/SE-UUlm/snowballr-backend/tree/develop/api/grpc#readme",
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/SE-UUlm/snowballr-backend/issues"
|
|
13
13
|
},
|
|
@@ -18,15 +18,24 @@
|
|
|
18
18
|
"license": "GPL-3.0-or-later",
|
|
19
19
|
"author": "SnowballR",
|
|
20
20
|
"type": "module",
|
|
21
|
-
"
|
|
21
|
+
"exports": {
|
|
22
|
+
"./*": {
|
|
23
|
+
"types": "./dist/*.d.ts",
|
|
24
|
+
"default": "./dist/*.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
22
27
|
"files": [
|
|
23
|
-
"dist",
|
|
28
|
+
"dist/",
|
|
24
29
|
"README.md",
|
|
25
30
|
"LICENSE",
|
|
26
31
|
"CHANGELOG.md"
|
|
27
32
|
],
|
|
28
33
|
"scripts": {
|
|
29
|
-
"
|
|
34
|
+
"prepare": "node compile.js"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@protobuf-ts/runtime": "^2.11.1",
|
|
38
|
+
"@protobuf-ts/runtime-rpc": "^2.11.1"
|
|
30
39
|
},
|
|
31
40
|
"devDependencies": {
|
|
32
41
|
"@protobuf-ts/plugin": "^2.11.1",
|