@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/base.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
|
+
// @generated from protobuf file "base.proto" (package "snowballr", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
/// Base types required for various RPCs.
|
|
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
|
+
/**
|
|
14
|
+
* Just an empty object. Use when there's no parameter or return value.
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf message snowballr.Nothing
|
|
17
|
+
*/
|
|
18
|
+
export interface Nothing {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* An arbitrary ID. Use for RPCs related to single entities.
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf message snowballr.Id
|
|
24
|
+
*/
|
|
25
|
+
export interface Id {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: string id = 1
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An email as defined by RFC 5322.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf message snowballr.Email
|
|
35
|
+
*/
|
|
36
|
+
export interface Email {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: string email = 1
|
|
39
|
+
*/
|
|
40
|
+
email: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A boolean value.
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf message snowballr.BoolValue
|
|
46
|
+
*/
|
|
47
|
+
export interface BoolValue {
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: bool value = 1
|
|
50
|
+
*/
|
|
51
|
+
value: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Binary data.
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf message snowballr.Blob
|
|
57
|
+
*/
|
|
58
|
+
export interface Blob {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf field: bytes data = 1
|
|
61
|
+
*/
|
|
62
|
+
data: Uint8Array;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A link with a label and a URL.
|
|
66
|
+
*
|
|
67
|
+
* @generated from protobuf message snowballr.Link
|
|
68
|
+
*/
|
|
69
|
+
export interface Link {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf field: string label = 1
|
|
72
|
+
*/
|
|
73
|
+
label: string;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: string url = 2
|
|
76
|
+
*/
|
|
77
|
+
url: string;
|
|
78
|
+
}
|
|
79
|
+
declare class Nothing$Type extends MessageType<Nothing> {
|
|
80
|
+
constructor();
|
|
81
|
+
create(value?: PartialMessage<Nothing>): Nothing;
|
|
82
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Nothing): Nothing;
|
|
83
|
+
internalBinaryWrite(message: Nothing, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @generated MessageType for protobuf message snowballr.Nothing
|
|
87
|
+
*/
|
|
88
|
+
export declare const Nothing: Nothing$Type;
|
|
89
|
+
declare class Id$Type extends MessageType<Id> {
|
|
90
|
+
constructor();
|
|
91
|
+
create(value?: PartialMessage<Id>): Id;
|
|
92
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Id): Id;
|
|
93
|
+
internalBinaryWrite(message: Id, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @generated MessageType for protobuf message snowballr.Id
|
|
97
|
+
*/
|
|
98
|
+
export declare const Id: Id$Type;
|
|
99
|
+
declare class Email$Type extends MessageType<Email> {
|
|
100
|
+
constructor();
|
|
101
|
+
create(value?: PartialMessage<Email>): Email;
|
|
102
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Email): Email;
|
|
103
|
+
internalBinaryWrite(message: Email, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @generated MessageType for protobuf message snowballr.Email
|
|
107
|
+
*/
|
|
108
|
+
export declare const Email: Email$Type;
|
|
109
|
+
declare class BoolValue$Type extends MessageType<BoolValue> {
|
|
110
|
+
constructor();
|
|
111
|
+
create(value?: PartialMessage<BoolValue>): BoolValue;
|
|
112
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue;
|
|
113
|
+
internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @generated MessageType for protobuf message snowballr.BoolValue
|
|
117
|
+
*/
|
|
118
|
+
export declare const BoolValue: BoolValue$Type;
|
|
119
|
+
declare class Blob$Type extends MessageType<Blob> {
|
|
120
|
+
constructor();
|
|
121
|
+
create(value?: PartialMessage<Blob>): Blob;
|
|
122
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Blob): Blob;
|
|
123
|
+
internalBinaryWrite(message: Blob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @generated MessageType for protobuf message snowballr.Blob
|
|
127
|
+
*/
|
|
128
|
+
export declare const Blob: Blob$Type;
|
|
129
|
+
declare class Link$Type extends MessageType<Link> {
|
|
130
|
+
constructor();
|
|
131
|
+
create(value?: PartialMessage<Link>): Link;
|
|
132
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Link): Link;
|
|
133
|
+
internalBinaryWrite(message: Link, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @generated MessageType for protobuf message snowballr.Link
|
|
137
|
+
*/
|
|
138
|
+
export declare const Link: Link$Type;
|
|
139
|
+
export {};
|
package/dist/{base.ts → base.js}
RENAMED
|
@@ -1,96 +1,31 @@
|
|
|
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
|
+
// @generated from protobuf file "base.proto" (package "snowballr", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
/// Base types required for various RPCs.
|
|
6
|
+
//
|
|
7
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
8
|
// @generated from protobuf file "base.proto" (package "snowballr", syntax proto3)
|
|
3
9
|
// tslint:disable
|
|
4
10
|
//
|
|
5
11
|
/// Base types required for various RPCs.
|
|
6
12
|
//
|
|
7
13
|
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
12
14
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
14
15
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
15
16
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
16
|
-
/**
|
|
17
|
-
* Just an empty object. Use when there's no parameter or return value.
|
|
18
|
-
*
|
|
19
|
-
* @generated from protobuf message snowballr.Nothing
|
|
20
|
-
*/
|
|
21
|
-
export interface Nothing {
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* An arbitrary ID. Use for RPCs related to single entities.
|
|
25
|
-
*
|
|
26
|
-
* @generated from protobuf message snowballr.Id
|
|
27
|
-
*/
|
|
28
|
-
export interface Id {
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: string id = 1
|
|
31
|
-
*/
|
|
32
|
-
id: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* An email as defined by RFC 5322.
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf message snowballr.Email
|
|
38
|
-
*/
|
|
39
|
-
export interface Email {
|
|
40
|
-
/**
|
|
41
|
-
* @generated from protobuf field: string email = 1
|
|
42
|
-
*/
|
|
43
|
-
email: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* A boolean value.
|
|
47
|
-
*
|
|
48
|
-
* @generated from protobuf message snowballr.BoolValue
|
|
49
|
-
*/
|
|
50
|
-
export interface BoolValue {
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf field: bool value = 1
|
|
53
|
-
*/
|
|
54
|
-
value: boolean;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Binary data.
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf message snowballr.Blob
|
|
60
|
-
*/
|
|
61
|
-
export interface Blob {
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf field: bytes data = 1
|
|
64
|
-
*/
|
|
65
|
-
data: Uint8Array;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* A link with a label and a URL.
|
|
69
|
-
*
|
|
70
|
-
* @generated from protobuf message snowballr.Link
|
|
71
|
-
*/
|
|
72
|
-
export interface Link {
|
|
73
|
-
/**
|
|
74
|
-
* @generated from protobuf field: string label = 1
|
|
75
|
-
*/
|
|
76
|
-
label: string;
|
|
77
|
-
/**
|
|
78
|
-
* @generated from protobuf field: string url = 2
|
|
79
|
-
*/
|
|
80
|
-
url: string;
|
|
81
|
-
}
|
|
82
17
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
83
|
-
class Nothing$Type extends MessageType
|
|
18
|
+
class Nothing$Type extends MessageType {
|
|
84
19
|
constructor() {
|
|
85
20
|
super("snowballr.Nothing", []);
|
|
86
21
|
}
|
|
87
|
-
create(value
|
|
88
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
22
|
+
create(value) {
|
|
23
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
89
24
|
if (value !== undefined)
|
|
90
|
-
reflectionMergePartial
|
|
25
|
+
reflectionMergePartial(this, message, value);
|
|
91
26
|
return message;
|
|
92
27
|
}
|
|
93
|
-
internalBinaryRead(reader
|
|
28
|
+
internalBinaryRead(reader, length, options, target) {
|
|
94
29
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
95
30
|
while (reader.pos < end) {
|
|
96
31
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -106,7 +41,7 @@ class Nothing$Type extends MessageType<Nothing> {
|
|
|
106
41
|
}
|
|
107
42
|
return message;
|
|
108
43
|
}
|
|
109
|
-
internalBinaryWrite(message
|
|
44
|
+
internalBinaryWrite(message, writer, options) {
|
|
110
45
|
let u = options.writeUnknownFields;
|
|
111
46
|
if (u !== false)
|
|
112
47
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -118,20 +53,20 @@ class Nothing$Type extends MessageType<Nothing> {
|
|
|
118
53
|
*/
|
|
119
54
|
export const Nothing = new Nothing$Type();
|
|
120
55
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
121
|
-
class Id$Type extends MessageType
|
|
56
|
+
class Id$Type extends MessageType {
|
|
122
57
|
constructor() {
|
|
123
58
|
super("snowballr.Id", [
|
|
124
59
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
125
60
|
]);
|
|
126
61
|
}
|
|
127
|
-
create(value
|
|
128
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
62
|
+
create(value) {
|
|
63
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
129
64
|
message.id = "";
|
|
130
65
|
if (value !== undefined)
|
|
131
|
-
reflectionMergePartial
|
|
66
|
+
reflectionMergePartial(this, message, value);
|
|
132
67
|
return message;
|
|
133
68
|
}
|
|
134
|
-
internalBinaryRead(reader
|
|
69
|
+
internalBinaryRead(reader, length, options, target) {
|
|
135
70
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
136
71
|
while (reader.pos < end) {
|
|
137
72
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -150,7 +85,7 @@ class Id$Type extends MessageType<Id> {
|
|
|
150
85
|
}
|
|
151
86
|
return message;
|
|
152
87
|
}
|
|
153
|
-
internalBinaryWrite(message
|
|
88
|
+
internalBinaryWrite(message, writer, options) {
|
|
154
89
|
/* string id = 1; */
|
|
155
90
|
if (message.id !== "")
|
|
156
91
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
@@ -165,20 +100,20 @@ class Id$Type extends MessageType<Id> {
|
|
|
165
100
|
*/
|
|
166
101
|
export const Id = new Id$Type();
|
|
167
102
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
168
|
-
class Email$Type extends MessageType
|
|
103
|
+
class Email$Type extends MessageType {
|
|
169
104
|
constructor() {
|
|
170
105
|
super("snowballr.Email", [
|
|
171
106
|
{ no: 1, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
172
107
|
]);
|
|
173
108
|
}
|
|
174
|
-
create(value
|
|
175
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
109
|
+
create(value) {
|
|
110
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
176
111
|
message.email = "";
|
|
177
112
|
if (value !== undefined)
|
|
178
|
-
reflectionMergePartial
|
|
113
|
+
reflectionMergePartial(this, message, value);
|
|
179
114
|
return message;
|
|
180
115
|
}
|
|
181
|
-
internalBinaryRead(reader
|
|
116
|
+
internalBinaryRead(reader, length, options, target) {
|
|
182
117
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
183
118
|
while (reader.pos < end) {
|
|
184
119
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -197,7 +132,7 @@ class Email$Type extends MessageType<Email> {
|
|
|
197
132
|
}
|
|
198
133
|
return message;
|
|
199
134
|
}
|
|
200
|
-
internalBinaryWrite(message
|
|
135
|
+
internalBinaryWrite(message, writer, options) {
|
|
201
136
|
/* string email = 1; */
|
|
202
137
|
if (message.email !== "")
|
|
203
138
|
writer.tag(1, WireType.LengthDelimited).string(message.email);
|
|
@@ -212,20 +147,20 @@ class Email$Type extends MessageType<Email> {
|
|
|
212
147
|
*/
|
|
213
148
|
export const Email = new Email$Type();
|
|
214
149
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
215
|
-
class BoolValue$Type extends MessageType
|
|
150
|
+
class BoolValue$Type extends MessageType {
|
|
216
151
|
constructor() {
|
|
217
152
|
super("snowballr.BoolValue", [
|
|
218
153
|
{ no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
219
154
|
]);
|
|
220
155
|
}
|
|
221
|
-
create(value
|
|
222
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
156
|
+
create(value) {
|
|
157
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
223
158
|
message.value = false;
|
|
224
159
|
if (value !== undefined)
|
|
225
|
-
reflectionMergePartial
|
|
160
|
+
reflectionMergePartial(this, message, value);
|
|
226
161
|
return message;
|
|
227
162
|
}
|
|
228
|
-
internalBinaryRead(reader
|
|
163
|
+
internalBinaryRead(reader, length, options, target) {
|
|
229
164
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
230
165
|
while (reader.pos < end) {
|
|
231
166
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -244,7 +179,7 @@ class BoolValue$Type extends MessageType<BoolValue> {
|
|
|
244
179
|
}
|
|
245
180
|
return message;
|
|
246
181
|
}
|
|
247
|
-
internalBinaryWrite(message
|
|
182
|
+
internalBinaryWrite(message, writer, options) {
|
|
248
183
|
/* bool value = 1; */
|
|
249
184
|
if (message.value !== false)
|
|
250
185
|
writer.tag(1, WireType.Varint).bool(message.value);
|
|
@@ -259,20 +194,20 @@ class BoolValue$Type extends MessageType<BoolValue> {
|
|
|
259
194
|
*/
|
|
260
195
|
export const BoolValue = new BoolValue$Type();
|
|
261
196
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
262
|
-
class Blob$Type extends MessageType
|
|
197
|
+
class Blob$Type extends MessageType {
|
|
263
198
|
constructor() {
|
|
264
199
|
super("snowballr.Blob", [
|
|
265
200
|
{ no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
266
201
|
]);
|
|
267
202
|
}
|
|
268
|
-
create(value
|
|
269
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
203
|
+
create(value) {
|
|
204
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
270
205
|
message.data = new Uint8Array(0);
|
|
271
206
|
if (value !== undefined)
|
|
272
|
-
reflectionMergePartial
|
|
207
|
+
reflectionMergePartial(this, message, value);
|
|
273
208
|
return message;
|
|
274
209
|
}
|
|
275
|
-
internalBinaryRead(reader
|
|
210
|
+
internalBinaryRead(reader, length, options, target) {
|
|
276
211
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
277
212
|
while (reader.pos < end) {
|
|
278
213
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -291,7 +226,7 @@ class Blob$Type extends MessageType<Blob> {
|
|
|
291
226
|
}
|
|
292
227
|
return message;
|
|
293
228
|
}
|
|
294
|
-
internalBinaryWrite(message
|
|
229
|
+
internalBinaryWrite(message, writer, options) {
|
|
295
230
|
/* bytes data = 1; */
|
|
296
231
|
if (message.data.length)
|
|
297
232
|
writer.tag(1, WireType.LengthDelimited).bytes(message.data);
|
|
@@ -306,22 +241,22 @@ class Blob$Type extends MessageType<Blob> {
|
|
|
306
241
|
*/
|
|
307
242
|
export const Blob = new Blob$Type();
|
|
308
243
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
309
|
-
class Link$Type extends MessageType
|
|
244
|
+
class Link$Type extends MessageType {
|
|
310
245
|
constructor() {
|
|
311
246
|
super("snowballr.Link", [
|
|
312
247
|
{ no: 1, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
313
248
|
{ no: 2, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
314
249
|
]);
|
|
315
250
|
}
|
|
316
|
-
create(value
|
|
317
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
251
|
+
create(value) {
|
|
252
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
318
253
|
message.label = "";
|
|
319
254
|
message.url = "";
|
|
320
255
|
if (value !== undefined)
|
|
321
|
-
reflectionMergePartial
|
|
256
|
+
reflectionMergePartial(this, message, value);
|
|
322
257
|
return message;
|
|
323
258
|
}
|
|
324
|
-
internalBinaryRead(reader
|
|
259
|
+
internalBinaryRead(reader, length, options, target) {
|
|
325
260
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
326
261
|
while (reader.pos < end) {
|
|
327
262
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -343,7 +278,7 @@ class Link$Type extends MessageType<Link> {
|
|
|
343
278
|
}
|
|
344
279
|
return message;
|
|
345
280
|
}
|
|
346
|
-
internalBinaryWrite(message
|
|
281
|
+
internalBinaryWrite(message, writer, options) {
|
|
347
282
|
/* string label = 1; */
|
|
348
283
|
if (message.label !== "")
|
|
349
284
|
writer.tag(1, WireType.LengthDelimited).string(message.label);
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
|
+
// @generated from protobuf file "criterion.proto" (package "snowballr", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
/// Criterion 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
|
+
/**
|
|
15
|
+
* There are two types of criteria that must be differentiated: user- and
|
|
16
|
+
* project-criteria. A user-criterion has a user but no project attached to it
|
|
17
|
+
* and can be used for the creation of default criteria for a project in the
|
|
18
|
+
* user settings.
|
|
19
|
+
* A project-criterion on the other hand is associated with a project and
|
|
20
|
+
* provide the basis for justifying reviews.
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf message snowballr.Criterion
|
|
23
|
+
*/
|
|
24
|
+
export interface Criterion {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: string id = 1
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf field: string tag = 2
|
|
31
|
+
*/
|
|
32
|
+
tag: string;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: string name = 3
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: string description = 4
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf field: snowballr.CriterionCategory category = 5
|
|
43
|
+
*/
|
|
44
|
+
category: CriterionCategory;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* List of criteria.
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf message snowballr.Criterion.List
|
|
50
|
+
*/
|
|
51
|
+
export interface Criterion_List {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: repeated snowballr.Criterion criteria = 1
|
|
54
|
+
*/
|
|
55
|
+
criteria: Criterion[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Request to create a criterion.
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf message snowballr.Criterion.Create
|
|
61
|
+
*/
|
|
62
|
+
export interface Criterion_Create {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: string project_id = 1
|
|
65
|
+
*/
|
|
66
|
+
projectId: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: string tag = 2
|
|
69
|
+
*/
|
|
70
|
+
tag: string;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: string name = 3
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: string description = 4
|
|
77
|
+
*/
|
|
78
|
+
description: string;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: snowballr.CriterionCategory category = 5
|
|
81
|
+
*/
|
|
82
|
+
category: CriterionCategory;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Request to update a criterion.
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf message snowballr.Criterion.Update
|
|
88
|
+
*/
|
|
89
|
+
export interface Criterion_Update {
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: snowballr.Criterion criterion = 1
|
|
92
|
+
*/
|
|
93
|
+
criterion?: Criterion;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf field: google.protobuf.FieldMask mask = 2
|
|
96
|
+
*/
|
|
97
|
+
mask?: FieldMask;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Category of a criterion, it can only be ever one of it.
|
|
101
|
+
*
|
|
102
|
+
* @generated from protobuf enum snowballr.CriterionCategory
|
|
103
|
+
*/
|
|
104
|
+
export declare enum CriterionCategory {
|
|
105
|
+
/**
|
|
106
|
+
* Unspecified criterion category.
|
|
107
|
+
*
|
|
108
|
+
* @generated from protobuf enum value: CRITERION_CATEGORY_UNSPECIFIED = 0;
|
|
109
|
+
*/
|
|
110
|
+
UNSPECIFIED = 0,
|
|
111
|
+
/**
|
|
112
|
+
* If this criterion is fulfilled, the paper should be accepted.
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf enum value: CRITERION_CATEGORY_INCLUSION = 1;
|
|
115
|
+
*/
|
|
116
|
+
INCLUSION = 1,
|
|
117
|
+
/**
|
|
118
|
+
* If this criterion is fulfilled, the paper should be declined.
|
|
119
|
+
*
|
|
120
|
+
* @generated from protobuf enum value: CRITERION_CATEGORY_EXCLUSION = 2;
|
|
121
|
+
*/
|
|
122
|
+
EXCLUSION = 2,
|
|
123
|
+
/**
|
|
124
|
+
* If this criterion is fulfilled, the paper is definitely declined.
|
|
125
|
+
*
|
|
126
|
+
* @generated from protobuf enum value: CRITERION_CATEGORY_HARD_EXCLUSION = 3;
|
|
127
|
+
*/
|
|
128
|
+
HARD_EXCLUSION = 3
|
|
129
|
+
}
|
|
130
|
+
declare class Criterion$Type extends MessageType<Criterion> {
|
|
131
|
+
constructor();
|
|
132
|
+
create(value?: PartialMessage<Criterion>): Criterion;
|
|
133
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Criterion): Criterion;
|
|
134
|
+
internalBinaryWrite(message: Criterion, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @generated MessageType for protobuf message snowballr.Criterion
|
|
138
|
+
*/
|
|
139
|
+
export declare const Criterion: Criterion$Type;
|
|
140
|
+
declare class Criterion_List$Type extends MessageType<Criterion_List> {
|
|
141
|
+
constructor();
|
|
142
|
+
create(value?: PartialMessage<Criterion_List>): Criterion_List;
|
|
143
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Criterion_List): Criterion_List;
|
|
144
|
+
internalBinaryWrite(message: Criterion_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @generated MessageType for protobuf message snowballr.Criterion.List
|
|
148
|
+
*/
|
|
149
|
+
export declare const Criterion_List: Criterion_List$Type;
|
|
150
|
+
declare class Criterion_Create$Type extends MessageType<Criterion_Create> {
|
|
151
|
+
constructor();
|
|
152
|
+
create(value?: PartialMessage<Criterion_Create>): Criterion_Create;
|
|
153
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Criterion_Create): Criterion_Create;
|
|
154
|
+
internalBinaryWrite(message: Criterion_Create, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @generated MessageType for protobuf message snowballr.Criterion.Create
|
|
158
|
+
*/
|
|
159
|
+
export declare const Criterion_Create: Criterion_Create$Type;
|
|
160
|
+
declare class Criterion_Update$Type extends MessageType<Criterion_Update> {
|
|
161
|
+
constructor();
|
|
162
|
+
create(value?: PartialMessage<Criterion_Update>): Criterion_Update;
|
|
163
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Criterion_Update): Criterion_Update;
|
|
164
|
+
internalBinaryWrite(message: Criterion_Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @generated MessageType for protobuf message snowballr.Criterion.Update
|
|
168
|
+
*/
|
|
169
|
+
export declare const Criterion_Update: Criterion_Update$Type;
|
|
170
|
+
export {};
|