@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
|
@@ -1,178 +1,32 @@
|
|
|
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 "paper.proto" (package "snowballr", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
5
|
/// Paper 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 { Blob } from "./base";
|
|
17
|
-
import { FieldMask } from "./google/protobuf/field_mask";
|
|
18
|
-
/**
|
|
19
|
-
* An author of a paper.
|
|
20
|
-
*
|
|
21
|
-
* @generated from protobuf message snowballr.Author
|
|
22
|
-
*/
|
|
23
|
-
export interface Author {
|
|
24
|
-
/**
|
|
25
|
-
* @generated from protobuf field: string first_name = 1
|
|
26
|
-
*/
|
|
27
|
-
firstName: string;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from protobuf field: string last_name = 2
|
|
30
|
-
*/
|
|
31
|
-
lastName: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* A scientific paper with it's references and other metadata.
|
|
35
|
-
*
|
|
36
|
-
* @generated from protobuf message snowballr.Paper
|
|
37
|
-
*/
|
|
38
|
-
export interface Paper {
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf field: string id = 1
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* @generated from protobuf field: string title = 3
|
|
45
|
-
*/
|
|
46
|
-
title: string;
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: string abstrakt = 4
|
|
49
|
-
*/
|
|
50
|
-
abstrakt: string;
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf field: int32 year = 5
|
|
53
|
-
*/
|
|
54
|
-
year: number;
|
|
55
|
-
/**
|
|
56
|
-
* @generated from protobuf field: string publisher = 6
|
|
57
|
-
*/
|
|
58
|
-
publisher: string;
|
|
59
|
-
/**
|
|
60
|
-
* @generated from protobuf field: string publication_name = 7
|
|
61
|
-
*/
|
|
62
|
-
publicationName: string;
|
|
63
|
-
/**
|
|
64
|
-
* @generated from protobuf field: string publication_type = 8
|
|
65
|
-
*/
|
|
66
|
-
publicationType: string;
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf field: bool has_pdf = 9
|
|
69
|
-
*/
|
|
70
|
-
hasPdf: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf field: repeated snowballr.Author authors = 10
|
|
73
|
-
*/
|
|
74
|
-
authors: Author[];
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf field: repeated string backward_referenced_ids = 11
|
|
77
|
-
*/
|
|
78
|
-
backwardReferencedIds: string[];
|
|
79
|
-
/**
|
|
80
|
-
* A key-value map to store arbitrary metadata about the paper.
|
|
81
|
-
* This could for example be a fetcher specific id.
|
|
82
|
-
*
|
|
83
|
-
* @generated from protobuf field: map<string, string> fetcher_metadata = 12
|
|
84
|
-
*/
|
|
85
|
-
fetcherMetadata: {
|
|
86
|
-
[key: string]: string;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf field: repeated snowballr.Paper.ExternalId external_ids = 13
|
|
90
|
-
*/
|
|
91
|
-
externalIds: Paper_ExternalId[];
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* A list of papers.
|
|
95
|
-
*
|
|
96
|
-
* @generated from protobuf message snowballr.Paper.List
|
|
97
|
-
*/
|
|
98
|
-
export interface Paper_List {
|
|
99
|
-
/**
|
|
100
|
-
* @generated from protobuf field: repeated snowballr.Paper papers = 1
|
|
101
|
-
*/
|
|
102
|
-
papers: Paper[];
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Request to update a paper.
|
|
106
|
-
*
|
|
107
|
-
* @generated from protobuf message snowballr.Paper.Update
|
|
108
|
-
*/
|
|
109
|
-
export interface Paper_Update {
|
|
110
|
-
/**
|
|
111
|
-
* @generated from protobuf field: snowballr.Paper paper = 1
|
|
112
|
-
*/
|
|
113
|
-
paper?: Paper;
|
|
114
|
-
/**
|
|
115
|
-
* @generated from protobuf field: google.protobuf.FieldMask mask = 2
|
|
116
|
-
*/
|
|
117
|
-
mask?: FieldMask;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Request to update the PDF of a paper.
|
|
121
|
-
*
|
|
122
|
-
* @generated from protobuf message snowballr.Paper.PdfUpdate
|
|
123
|
-
*/
|
|
124
|
-
export interface Paper_PdfUpdate {
|
|
125
|
-
/**
|
|
126
|
-
* @generated from protobuf field: string paper_id = 1
|
|
127
|
-
*/
|
|
128
|
-
paperId: string;
|
|
129
|
-
/**
|
|
130
|
-
* @generated from protobuf field: snowballr.Blob pdf = 2
|
|
131
|
-
*/
|
|
132
|
-
pdf?: Blob;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* External ID of a paper, e.g. DOI, URL, etc. that can be used to identify the paper.
|
|
136
|
-
*
|
|
137
|
-
* @generated from protobuf message snowballr.Paper.ExternalId
|
|
138
|
-
*/
|
|
139
|
-
export interface Paper_ExternalId {
|
|
140
|
-
/**
|
|
141
|
-
* The type of the external ID, e.g. DOI, URL, ...
|
|
142
|
-
*
|
|
143
|
-
* @generated from protobuf field: string type = 1
|
|
144
|
-
*/
|
|
145
|
-
type: string;
|
|
146
|
-
/**
|
|
147
|
-
* The display type of the external ID, e.g. DOI, URL, ...
|
|
148
|
-
*
|
|
149
|
-
* @generated from protobuf field: string display_type = 2
|
|
150
|
-
*/
|
|
151
|
-
displayType: string;
|
|
152
|
-
/**
|
|
153
|
-
* The actual value of the ID that can be used to identify the paper
|
|
154
|
-
*
|
|
155
|
-
* @generated from protobuf field: string value = 3
|
|
156
|
-
*/
|
|
157
|
-
value: string;
|
|
158
|
-
}
|
|
11
|
+
import { Blob } from "./base.js";
|
|
12
|
+
import { FieldMask } from "./google/protobuf/field_mask.js";
|
|
159
13
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
160
|
-
class Author$Type extends MessageType
|
|
14
|
+
class Author$Type extends MessageType {
|
|
161
15
|
constructor() {
|
|
162
16
|
super("snowballr.Author", [
|
|
163
17
|
{ no: 1, name: "first_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
164
18
|
{ no: 2, name: "last_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
165
19
|
]);
|
|
166
20
|
}
|
|
167
|
-
create(value
|
|
168
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
21
|
+
create(value) {
|
|
22
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
169
23
|
message.firstName = "";
|
|
170
24
|
message.lastName = "";
|
|
171
25
|
if (value !== undefined)
|
|
172
|
-
reflectionMergePartial
|
|
26
|
+
reflectionMergePartial(this, message, value);
|
|
173
27
|
return message;
|
|
174
28
|
}
|
|
175
|
-
internalBinaryRead(reader
|
|
29
|
+
internalBinaryRead(reader, length, options, target) {
|
|
176
30
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
177
31
|
while (reader.pos < end) {
|
|
178
32
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -194,7 +48,7 @@ class Author$Type extends MessageType<Author> {
|
|
|
194
48
|
}
|
|
195
49
|
return message;
|
|
196
50
|
}
|
|
197
|
-
internalBinaryWrite(message
|
|
51
|
+
internalBinaryWrite(message, writer, options) {
|
|
198
52
|
/* string first_name = 1; */
|
|
199
53
|
if (message.firstName !== "")
|
|
200
54
|
writer.tag(1, WireType.LengthDelimited).string(message.firstName);
|
|
@@ -212,7 +66,7 @@ class Author$Type extends MessageType<Author> {
|
|
|
212
66
|
*/
|
|
213
67
|
export const Author = new Author$Type();
|
|
214
68
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
215
|
-
class Paper$Type extends MessageType
|
|
69
|
+
class Paper$Type extends MessageType {
|
|
216
70
|
constructor() {
|
|
217
71
|
super("snowballr.Paper", [
|
|
218
72
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -229,8 +83,8 @@ class Paper$Type extends MessageType<Paper> {
|
|
|
229
83
|
{ no: 13, name: "external_ids", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Paper_ExternalId }
|
|
230
84
|
]);
|
|
231
85
|
}
|
|
232
|
-
create(value
|
|
233
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
86
|
+
create(value) {
|
|
87
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
234
88
|
message.id = "";
|
|
235
89
|
message.title = "";
|
|
236
90
|
message.abstrakt = "";
|
|
@@ -244,10 +98,10 @@ class Paper$Type extends MessageType<Paper> {
|
|
|
244
98
|
message.fetcherMetadata = {};
|
|
245
99
|
message.externalIds = [];
|
|
246
100
|
if (value !== undefined)
|
|
247
|
-
reflectionMergePartial
|
|
101
|
+
reflectionMergePartial(this, message, value);
|
|
248
102
|
return message;
|
|
249
103
|
}
|
|
250
|
-
internalBinaryRead(reader
|
|
104
|
+
internalBinaryRead(reader, length, options, target) {
|
|
251
105
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
252
106
|
while (reader.pos < end) {
|
|
253
107
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -299,8 +153,8 @@ class Paper$Type extends MessageType<Paper> {
|
|
|
299
153
|
}
|
|
300
154
|
return message;
|
|
301
155
|
}
|
|
302
|
-
|
|
303
|
-
let len = reader.uint32(), end = reader.pos + len, key
|
|
156
|
+
binaryReadMap12(map, reader, options) {
|
|
157
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
304
158
|
while (reader.pos < end) {
|
|
305
159
|
let [fieldNo, wireType] = reader.tag();
|
|
306
160
|
switch (fieldNo) {
|
|
@@ -315,7 +169,7 @@ class Paper$Type extends MessageType<Paper> {
|
|
|
315
169
|
}
|
|
316
170
|
map[key ?? ""] = val ?? "";
|
|
317
171
|
}
|
|
318
|
-
internalBinaryWrite(message
|
|
172
|
+
internalBinaryWrite(message, writer, options) {
|
|
319
173
|
/* string id = 1; */
|
|
320
174
|
if (message.id !== "")
|
|
321
175
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
@@ -363,20 +217,20 @@ class Paper$Type extends MessageType<Paper> {
|
|
|
363
217
|
*/
|
|
364
218
|
export const Paper = new Paper$Type();
|
|
365
219
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
366
|
-
class Paper_List$Type extends MessageType
|
|
220
|
+
class Paper_List$Type extends MessageType {
|
|
367
221
|
constructor() {
|
|
368
222
|
super("snowballr.Paper.List", [
|
|
369
223
|
{ no: 1, name: "papers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Paper }
|
|
370
224
|
]);
|
|
371
225
|
}
|
|
372
|
-
create(value
|
|
373
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
226
|
+
create(value) {
|
|
227
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
374
228
|
message.papers = [];
|
|
375
229
|
if (value !== undefined)
|
|
376
|
-
reflectionMergePartial
|
|
230
|
+
reflectionMergePartial(this, message, value);
|
|
377
231
|
return message;
|
|
378
232
|
}
|
|
379
|
-
internalBinaryRead(reader
|
|
233
|
+
internalBinaryRead(reader, length, options, target) {
|
|
380
234
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
381
235
|
while (reader.pos < end) {
|
|
382
236
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -395,7 +249,7 @@ class Paper_List$Type extends MessageType<Paper_List> {
|
|
|
395
249
|
}
|
|
396
250
|
return message;
|
|
397
251
|
}
|
|
398
|
-
internalBinaryWrite(message
|
|
252
|
+
internalBinaryWrite(message, writer, options) {
|
|
399
253
|
/* repeated snowballr.Paper papers = 1; */
|
|
400
254
|
for (let i = 0; i < message.papers.length; i++)
|
|
401
255
|
Paper.internalBinaryWrite(message.papers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -410,20 +264,20 @@ class Paper_List$Type extends MessageType<Paper_List> {
|
|
|
410
264
|
*/
|
|
411
265
|
export const Paper_List = new Paper_List$Type();
|
|
412
266
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
413
|
-
class Paper_Update$Type extends MessageType
|
|
267
|
+
class Paper_Update$Type extends MessageType {
|
|
414
268
|
constructor() {
|
|
415
269
|
super("snowballr.Paper.Update", [
|
|
416
270
|
{ no: 1, name: "paper", kind: "message", T: () => Paper },
|
|
417
271
|
{ no: 2, name: "mask", kind: "message", T: () => FieldMask }
|
|
418
272
|
]);
|
|
419
273
|
}
|
|
420
|
-
create(value
|
|
421
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
274
|
+
create(value) {
|
|
275
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
422
276
|
if (value !== undefined)
|
|
423
|
-
reflectionMergePartial
|
|
277
|
+
reflectionMergePartial(this, message, value);
|
|
424
278
|
return message;
|
|
425
279
|
}
|
|
426
|
-
internalBinaryRead(reader
|
|
280
|
+
internalBinaryRead(reader, length, options, target) {
|
|
427
281
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
428
282
|
while (reader.pos < end) {
|
|
429
283
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -445,7 +299,7 @@ class Paper_Update$Type extends MessageType<Paper_Update> {
|
|
|
445
299
|
}
|
|
446
300
|
return message;
|
|
447
301
|
}
|
|
448
|
-
internalBinaryWrite(message
|
|
302
|
+
internalBinaryWrite(message, writer, options) {
|
|
449
303
|
/* snowballr.Paper paper = 1; */
|
|
450
304
|
if (message.paper)
|
|
451
305
|
Paper.internalBinaryWrite(message.paper, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -463,21 +317,21 @@ class Paper_Update$Type extends MessageType<Paper_Update> {
|
|
|
463
317
|
*/
|
|
464
318
|
export const Paper_Update = new Paper_Update$Type();
|
|
465
319
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
466
|
-
class Paper_PdfUpdate$Type extends MessageType
|
|
320
|
+
class Paper_PdfUpdate$Type extends MessageType {
|
|
467
321
|
constructor() {
|
|
468
322
|
super("snowballr.Paper.PdfUpdate", [
|
|
469
323
|
{ no: 1, name: "paper_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
470
324
|
{ no: 2, name: "pdf", kind: "message", T: () => Blob }
|
|
471
325
|
]);
|
|
472
326
|
}
|
|
473
|
-
create(value
|
|
474
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
327
|
+
create(value) {
|
|
328
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
475
329
|
message.paperId = "";
|
|
476
330
|
if (value !== undefined)
|
|
477
|
-
reflectionMergePartial
|
|
331
|
+
reflectionMergePartial(this, message, value);
|
|
478
332
|
return message;
|
|
479
333
|
}
|
|
480
|
-
internalBinaryRead(reader
|
|
334
|
+
internalBinaryRead(reader, length, options, target) {
|
|
481
335
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
482
336
|
while (reader.pos < end) {
|
|
483
337
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -499,7 +353,7 @@ class Paper_PdfUpdate$Type extends MessageType<Paper_PdfUpdate> {
|
|
|
499
353
|
}
|
|
500
354
|
return message;
|
|
501
355
|
}
|
|
502
|
-
internalBinaryWrite(message
|
|
356
|
+
internalBinaryWrite(message, writer, options) {
|
|
503
357
|
/* string paper_id = 1; */
|
|
504
358
|
if (message.paperId !== "")
|
|
505
359
|
writer.tag(1, WireType.LengthDelimited).string(message.paperId);
|
|
@@ -517,7 +371,7 @@ class Paper_PdfUpdate$Type extends MessageType<Paper_PdfUpdate> {
|
|
|
517
371
|
*/
|
|
518
372
|
export const Paper_PdfUpdate = new Paper_PdfUpdate$Type();
|
|
519
373
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
520
|
-
class Paper_ExternalId$Type extends MessageType
|
|
374
|
+
class Paper_ExternalId$Type extends MessageType {
|
|
521
375
|
constructor() {
|
|
522
376
|
super("snowballr.Paper.ExternalId", [
|
|
523
377
|
{ no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -525,16 +379,16 @@ class Paper_ExternalId$Type extends MessageType<Paper_ExternalId> {
|
|
|
525
379
|
{ no: 3, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
526
380
|
]);
|
|
527
381
|
}
|
|
528
|
-
create(value
|
|
529
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
382
|
+
create(value) {
|
|
383
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
530
384
|
message.type = "";
|
|
531
385
|
message.displayType = "";
|
|
532
386
|
message.value = "";
|
|
533
387
|
if (value !== undefined)
|
|
534
|
-
reflectionMergePartial
|
|
388
|
+
reflectionMergePartial(this, message, value);
|
|
535
389
|
return message;
|
|
536
390
|
}
|
|
537
|
-
internalBinaryRead(reader
|
|
391
|
+
internalBinaryRead(reader, length, options, target) {
|
|
538
392
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
539
393
|
while (reader.pos < end) {
|
|
540
394
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -559,7 +413,7 @@ class Paper_ExternalId$Type extends MessageType<Paper_ExternalId> {
|
|
|
559
413
|
}
|
|
560
414
|
return message;
|
|
561
415
|
}
|
|
562
|
-
internalBinaryWrite(message
|
|
416
|
+
internalBinaryWrite(message, writer, options) {
|
|
563
417
|
/* string type = 1; */
|
|
564
418
|
if (message.type !== "")
|
|
565
419
|
writer.tag(1, WireType.LengthDelimited).string(message.type);
|