@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,137 +1,48 @@
|
|
|
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 "criterion.proto" (package "snowballr", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
5
|
/// Criterion 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
|
-
* There are two types of criteria that must be differentiated: user- and
|
|
19
|
-
* project-criteria. A user-criterion has a user but no project attached to it
|
|
20
|
-
* and can be used for the creation of default criteria for a project in the
|
|
21
|
-
* user settings.
|
|
22
|
-
* A project-criterion on the other hand is associated with a project and
|
|
23
|
-
* provide the basis for justifying reviews.
|
|
24
|
-
*
|
|
25
|
-
* @generated from protobuf message snowballr.Criterion
|
|
26
|
-
*/
|
|
27
|
-
export interface Criterion {
|
|
28
|
-
/**
|
|
29
|
-
* @generated from protobuf field: string id = 1
|
|
30
|
-
*/
|
|
31
|
-
id: string;
|
|
32
|
-
/**
|
|
33
|
-
* @generated from protobuf field: string tag = 2
|
|
34
|
-
*/
|
|
35
|
-
tag: string;
|
|
36
|
-
/**
|
|
37
|
-
* @generated from protobuf field: string name = 3
|
|
38
|
-
*/
|
|
39
|
-
name: string;
|
|
40
|
-
/**
|
|
41
|
-
* @generated from protobuf field: string description = 4
|
|
42
|
-
*/
|
|
43
|
-
description: string;
|
|
44
|
-
/**
|
|
45
|
-
* @generated from protobuf field: snowballr.CriterionCategory category = 5
|
|
46
|
-
*/
|
|
47
|
-
category: CriterionCategory;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* List of criteria.
|
|
51
|
-
*
|
|
52
|
-
* @generated from protobuf message snowballr.Criterion.List
|
|
53
|
-
*/
|
|
54
|
-
export interface Criterion_List {
|
|
55
|
-
/**
|
|
56
|
-
* @generated from protobuf field: repeated snowballr.Criterion criteria = 1
|
|
57
|
-
*/
|
|
58
|
-
criteria: Criterion[];
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Request to create a criterion.
|
|
62
|
-
*
|
|
63
|
-
* @generated from protobuf message snowballr.Criterion.Create
|
|
64
|
-
*/
|
|
65
|
-
export interface Criterion_Create {
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: string project_id = 1
|
|
68
|
-
*/
|
|
69
|
-
projectId: string;
|
|
70
|
-
/**
|
|
71
|
-
* @generated from protobuf field: string tag = 2
|
|
72
|
-
*/
|
|
73
|
-
tag: string;
|
|
74
|
-
/**
|
|
75
|
-
* @generated from protobuf field: string name = 3
|
|
76
|
-
*/
|
|
77
|
-
name: string;
|
|
78
|
-
/**
|
|
79
|
-
* @generated from protobuf field: string description = 4
|
|
80
|
-
*/
|
|
81
|
-
description: string;
|
|
82
|
-
/**
|
|
83
|
-
* @generated from protobuf field: snowballr.CriterionCategory category = 5
|
|
84
|
-
*/
|
|
85
|
-
category: CriterionCategory;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Request to update a criterion.
|
|
89
|
-
*
|
|
90
|
-
* @generated from protobuf message snowballr.Criterion.Update
|
|
91
|
-
*/
|
|
92
|
-
export interface Criterion_Update {
|
|
93
|
-
/**
|
|
94
|
-
* @generated from protobuf field: snowballr.Criterion criterion = 1
|
|
95
|
-
*/
|
|
96
|
-
criterion?: Criterion;
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf field: google.protobuf.FieldMask mask = 2
|
|
99
|
-
*/
|
|
100
|
-
mask?: FieldMask;
|
|
101
|
-
}
|
|
11
|
+
import { FieldMask } from "./google/protobuf/field_mask.js";
|
|
102
12
|
/**
|
|
103
13
|
* Category of a criterion, it can only be ever one of it.
|
|
104
14
|
*
|
|
105
15
|
* @generated from protobuf enum snowballr.CriterionCategory
|
|
106
16
|
*/
|
|
107
|
-
export
|
|
17
|
+
export var CriterionCategory;
|
|
18
|
+
(function (CriterionCategory) {
|
|
108
19
|
/**
|
|
109
20
|
* Unspecified criterion category.
|
|
110
21
|
*
|
|
111
22
|
* @generated from protobuf enum value: CRITERION_CATEGORY_UNSPECIFIED = 0;
|
|
112
23
|
*/
|
|
113
|
-
UNSPECIFIED = 0
|
|
24
|
+
CriterionCategory[CriterionCategory["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
114
25
|
/**
|
|
115
26
|
* If this criterion is fulfilled, the paper should be accepted.
|
|
116
27
|
*
|
|
117
28
|
* @generated from protobuf enum value: CRITERION_CATEGORY_INCLUSION = 1;
|
|
118
29
|
*/
|
|
119
|
-
INCLUSION = 1
|
|
30
|
+
CriterionCategory[CriterionCategory["INCLUSION"] = 1] = "INCLUSION";
|
|
120
31
|
/**
|
|
121
32
|
* If this criterion is fulfilled, the paper should be declined.
|
|
122
33
|
*
|
|
123
34
|
* @generated from protobuf enum value: CRITERION_CATEGORY_EXCLUSION = 2;
|
|
124
35
|
*/
|
|
125
|
-
EXCLUSION = 2
|
|
36
|
+
CriterionCategory[CriterionCategory["EXCLUSION"] = 2] = "EXCLUSION";
|
|
126
37
|
/**
|
|
127
38
|
* If this criterion is fulfilled, the paper is definitely declined.
|
|
128
39
|
*
|
|
129
40
|
* @generated from protobuf enum value: CRITERION_CATEGORY_HARD_EXCLUSION = 3;
|
|
130
41
|
*/
|
|
131
|
-
HARD_EXCLUSION = 3
|
|
132
|
-
}
|
|
42
|
+
CriterionCategory[CriterionCategory["HARD_EXCLUSION"] = 3] = "HARD_EXCLUSION";
|
|
43
|
+
})(CriterionCategory || (CriterionCategory = {}));
|
|
133
44
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
134
|
-
class Criterion$Type extends MessageType
|
|
45
|
+
class Criterion$Type extends MessageType {
|
|
135
46
|
constructor() {
|
|
136
47
|
super("snowballr.Criterion", [
|
|
137
48
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -141,18 +52,18 @@ class Criterion$Type extends MessageType<Criterion> {
|
|
|
141
52
|
{ no: 5, name: "category", kind: "enum", T: () => ["snowballr.CriterionCategory", CriterionCategory, "CRITERION_CATEGORY_"] }
|
|
142
53
|
]);
|
|
143
54
|
}
|
|
144
|
-
create(value
|
|
145
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
55
|
+
create(value) {
|
|
56
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
146
57
|
message.id = "";
|
|
147
58
|
message.tag = "";
|
|
148
59
|
message.name = "";
|
|
149
60
|
message.description = "";
|
|
150
61
|
message.category = 0;
|
|
151
62
|
if (value !== undefined)
|
|
152
|
-
reflectionMergePartial
|
|
63
|
+
reflectionMergePartial(this, message, value);
|
|
153
64
|
return message;
|
|
154
65
|
}
|
|
155
|
-
internalBinaryRead(reader
|
|
66
|
+
internalBinaryRead(reader, length, options, target) {
|
|
156
67
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
157
68
|
while (reader.pos < end) {
|
|
158
69
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -183,7 +94,7 @@ class Criterion$Type extends MessageType<Criterion> {
|
|
|
183
94
|
}
|
|
184
95
|
return message;
|
|
185
96
|
}
|
|
186
|
-
internalBinaryWrite(message
|
|
97
|
+
internalBinaryWrite(message, writer, options) {
|
|
187
98
|
/* string id = 1; */
|
|
188
99
|
if (message.id !== "")
|
|
189
100
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
@@ -210,20 +121,20 @@ class Criterion$Type extends MessageType<Criterion> {
|
|
|
210
121
|
*/
|
|
211
122
|
export const Criterion = new Criterion$Type();
|
|
212
123
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
213
|
-
class Criterion_List$Type extends MessageType
|
|
124
|
+
class Criterion_List$Type extends MessageType {
|
|
214
125
|
constructor() {
|
|
215
126
|
super("snowballr.Criterion.List", [
|
|
216
127
|
{ no: 1, name: "criteria", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Criterion }
|
|
217
128
|
]);
|
|
218
129
|
}
|
|
219
|
-
create(value
|
|
220
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
130
|
+
create(value) {
|
|
131
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
221
132
|
message.criteria = [];
|
|
222
133
|
if (value !== undefined)
|
|
223
|
-
reflectionMergePartial
|
|
134
|
+
reflectionMergePartial(this, message, value);
|
|
224
135
|
return message;
|
|
225
136
|
}
|
|
226
|
-
internalBinaryRead(reader
|
|
137
|
+
internalBinaryRead(reader, length, options, target) {
|
|
227
138
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
228
139
|
while (reader.pos < end) {
|
|
229
140
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -242,7 +153,7 @@ class Criterion_List$Type extends MessageType<Criterion_List> {
|
|
|
242
153
|
}
|
|
243
154
|
return message;
|
|
244
155
|
}
|
|
245
|
-
internalBinaryWrite(message
|
|
156
|
+
internalBinaryWrite(message, writer, options) {
|
|
246
157
|
/* repeated snowballr.Criterion criteria = 1; */
|
|
247
158
|
for (let i = 0; i < message.criteria.length; i++)
|
|
248
159
|
Criterion.internalBinaryWrite(message.criteria[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -257,7 +168,7 @@ class Criterion_List$Type extends MessageType<Criterion_List> {
|
|
|
257
168
|
*/
|
|
258
169
|
export const Criterion_List = new Criterion_List$Type();
|
|
259
170
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
260
|
-
class Criterion_Create$Type extends MessageType
|
|
171
|
+
class Criterion_Create$Type extends MessageType {
|
|
261
172
|
constructor() {
|
|
262
173
|
super("snowballr.Criterion.Create", [
|
|
263
174
|
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -267,18 +178,18 @@ class Criterion_Create$Type extends MessageType<Criterion_Create> {
|
|
|
267
178
|
{ no: 5, name: "category", kind: "enum", T: () => ["snowballr.CriterionCategory", CriterionCategory, "CRITERION_CATEGORY_"] }
|
|
268
179
|
]);
|
|
269
180
|
}
|
|
270
|
-
create(value
|
|
271
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
181
|
+
create(value) {
|
|
182
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
272
183
|
message.projectId = "";
|
|
273
184
|
message.tag = "";
|
|
274
185
|
message.name = "";
|
|
275
186
|
message.description = "";
|
|
276
187
|
message.category = 0;
|
|
277
188
|
if (value !== undefined)
|
|
278
|
-
reflectionMergePartial
|
|
189
|
+
reflectionMergePartial(this, message, value);
|
|
279
190
|
return message;
|
|
280
191
|
}
|
|
281
|
-
internalBinaryRead(reader
|
|
192
|
+
internalBinaryRead(reader, length, options, target) {
|
|
282
193
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
283
194
|
while (reader.pos < end) {
|
|
284
195
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -309,7 +220,7 @@ class Criterion_Create$Type extends MessageType<Criterion_Create> {
|
|
|
309
220
|
}
|
|
310
221
|
return message;
|
|
311
222
|
}
|
|
312
|
-
internalBinaryWrite(message
|
|
223
|
+
internalBinaryWrite(message, writer, options) {
|
|
313
224
|
/* string project_id = 1; */
|
|
314
225
|
if (message.projectId !== "")
|
|
315
226
|
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
@@ -336,20 +247,20 @@ class Criterion_Create$Type extends MessageType<Criterion_Create> {
|
|
|
336
247
|
*/
|
|
337
248
|
export const Criterion_Create = new Criterion_Create$Type();
|
|
338
249
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
339
|
-
class Criterion_Update$Type extends MessageType
|
|
250
|
+
class Criterion_Update$Type extends MessageType {
|
|
340
251
|
constructor() {
|
|
341
252
|
super("snowballr.Criterion.Update", [
|
|
342
253
|
{ no: 1, name: "criterion", kind: "message", T: () => Criterion },
|
|
343
254
|
{ no: 2, name: "mask", kind: "message", T: () => FieldMask }
|
|
344
255
|
]);
|
|
345
256
|
}
|
|
346
|
-
create(value
|
|
347
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
257
|
+
create(value) {
|
|
258
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
348
259
|
if (value !== undefined)
|
|
349
|
-
reflectionMergePartial
|
|
260
|
+
reflectionMergePartial(this, message, value);
|
|
350
261
|
return message;
|
|
351
262
|
}
|
|
352
|
-
internalBinaryRead(reader
|
|
263
|
+
internalBinaryRead(reader, length, options, target) {
|
|
353
264
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
354
265
|
while (reader.pos < end) {
|
|
355
266
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -371,7 +282,7 @@ class Criterion_Update$Type extends MessageType<Criterion_Update> {
|
|
|
371
282
|
}
|
|
372
283
|
return message;
|
|
373
284
|
}
|
|
374
|
-
internalBinaryWrite(message
|
|
285
|
+
internalBinaryWrite(message, writer, options) {
|
|
375
286
|
/* snowballr.Criterion criterion = 1; */
|
|
376
287
|
if (message.criterion)
|
|
377
288
|
Criterion.internalBinaryWrite(message.criterion, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
package/dist/export.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
|
+
// @generated from protobuf file "export.proto" (package "snowballr", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
/// Export 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
|
+
/**
|
|
14
|
+
* Request to export a project.
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf message snowballr.ExportRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ExportRequest {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string id = 1
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: string format = 3
|
|
25
|
+
*/
|
|
26
|
+
format: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Response of the exported project.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf message snowballr.ExportResponse
|
|
32
|
+
*/
|
|
33
|
+
export interface ExportResponse {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: bytes data = 1
|
|
36
|
+
*/
|
|
37
|
+
data: Uint8Array;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: string file_name = 2
|
|
40
|
+
*/
|
|
41
|
+
fileName: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Response of available export formats.
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf message snowballr.AvailableExportFormatsResponse
|
|
47
|
+
*/
|
|
48
|
+
export interface AvailableExportFormatsResponse {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: repeated string formats = 1
|
|
51
|
+
*/
|
|
52
|
+
formats: string[];
|
|
53
|
+
}
|
|
54
|
+
declare class ExportRequest$Type extends MessageType<ExportRequest> {
|
|
55
|
+
constructor();
|
|
56
|
+
create(value?: PartialMessage<ExportRequest>): ExportRequest;
|
|
57
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportRequest): ExportRequest;
|
|
58
|
+
internalBinaryWrite(message: ExportRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @generated MessageType for protobuf message snowballr.ExportRequest
|
|
62
|
+
*/
|
|
63
|
+
export declare const ExportRequest: ExportRequest$Type;
|
|
64
|
+
declare class ExportResponse$Type extends MessageType<ExportResponse> {
|
|
65
|
+
constructor();
|
|
66
|
+
create(value?: PartialMessage<ExportResponse>): ExportResponse;
|
|
67
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportResponse): ExportResponse;
|
|
68
|
+
internalBinaryWrite(message: ExportResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated MessageType for protobuf message snowballr.ExportResponse
|
|
72
|
+
*/
|
|
73
|
+
export declare const ExportResponse: ExportResponse$Type;
|
|
74
|
+
declare class AvailableExportFormatsResponse$Type extends MessageType<AvailableExportFormatsResponse> {
|
|
75
|
+
constructor();
|
|
76
|
+
create(value?: PartialMessage<AvailableExportFormatsResponse>): AvailableExportFormatsResponse;
|
|
77
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AvailableExportFormatsResponse): AvailableExportFormatsResponse;
|
|
78
|
+
internalBinaryWrite(message: AvailableExportFormatsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated MessageType for protobuf message snowballr.AvailableExportFormatsResponse
|
|
82
|
+
*/
|
|
83
|
+
export declare const AvailableExportFormatsResponse: AvailableExportFormatsResponse$Type;
|
|
84
|
+
export {};
|
|
@@ -1,76 +1,30 @@
|
|
|
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 "export.proto" (package "snowballr", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
5
|
/// Export 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
|
-
/**
|
|
17
|
-
* Request to export a project.
|
|
18
|
-
*
|
|
19
|
-
* @generated from protobuf message snowballr.ExportRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ExportRequest {
|
|
22
|
-
/**
|
|
23
|
-
* @generated from protobuf field: string id = 1
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf field: string format = 3
|
|
28
|
-
*/
|
|
29
|
-
format: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Response of the exported project.
|
|
33
|
-
*
|
|
34
|
-
* @generated from protobuf message snowballr.ExportResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface ExportResponse {
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf field: bytes data = 1
|
|
39
|
-
*/
|
|
40
|
-
data: Uint8Array;
|
|
41
|
-
/**
|
|
42
|
-
* @generated from protobuf field: string file_name = 2
|
|
43
|
-
*/
|
|
44
|
-
fileName: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Response of available export formats.
|
|
48
|
-
*
|
|
49
|
-
* @generated from protobuf message snowballr.AvailableExportFormatsResponse
|
|
50
|
-
*/
|
|
51
|
-
export interface AvailableExportFormatsResponse {
|
|
52
|
-
/**
|
|
53
|
-
* @generated from protobuf field: repeated string formats = 1
|
|
54
|
-
*/
|
|
55
|
-
formats: string[];
|
|
56
|
-
}
|
|
57
11
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
58
|
-
class ExportRequest$Type extends MessageType
|
|
12
|
+
class ExportRequest$Type extends MessageType {
|
|
59
13
|
constructor() {
|
|
60
14
|
super("snowballr.ExportRequest", [
|
|
61
15
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
62
16
|
{ no: 3, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
63
17
|
]);
|
|
64
18
|
}
|
|
65
|
-
create(value
|
|
66
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
19
|
+
create(value) {
|
|
20
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
67
21
|
message.id = "";
|
|
68
22
|
message.format = "";
|
|
69
23
|
if (value !== undefined)
|
|
70
|
-
reflectionMergePartial
|
|
24
|
+
reflectionMergePartial(this, message, value);
|
|
71
25
|
return message;
|
|
72
26
|
}
|
|
73
|
-
internalBinaryRead(reader
|
|
27
|
+
internalBinaryRead(reader, length, options, target) {
|
|
74
28
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
75
29
|
while (reader.pos < end) {
|
|
76
30
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -92,7 +46,7 @@ class ExportRequest$Type extends MessageType<ExportRequest> {
|
|
|
92
46
|
}
|
|
93
47
|
return message;
|
|
94
48
|
}
|
|
95
|
-
internalBinaryWrite(message
|
|
49
|
+
internalBinaryWrite(message, writer, options) {
|
|
96
50
|
/* string id = 1; */
|
|
97
51
|
if (message.id !== "")
|
|
98
52
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
@@ -110,22 +64,22 @@ class ExportRequest$Type extends MessageType<ExportRequest> {
|
|
|
110
64
|
*/
|
|
111
65
|
export const ExportRequest = new ExportRequest$Type();
|
|
112
66
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
113
|
-
class ExportResponse$Type extends MessageType
|
|
67
|
+
class ExportResponse$Type extends MessageType {
|
|
114
68
|
constructor() {
|
|
115
69
|
super("snowballr.ExportResponse", [
|
|
116
70
|
{ no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
117
71
|
{ no: 2, name: "file_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
118
72
|
]);
|
|
119
73
|
}
|
|
120
|
-
create(value
|
|
121
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
74
|
+
create(value) {
|
|
75
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
122
76
|
message.data = new Uint8Array(0);
|
|
123
77
|
message.fileName = "";
|
|
124
78
|
if (value !== undefined)
|
|
125
|
-
reflectionMergePartial
|
|
79
|
+
reflectionMergePartial(this, message, value);
|
|
126
80
|
return message;
|
|
127
81
|
}
|
|
128
|
-
internalBinaryRead(reader
|
|
82
|
+
internalBinaryRead(reader, length, options, target) {
|
|
129
83
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
130
84
|
while (reader.pos < end) {
|
|
131
85
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -147,7 +101,7 @@ class ExportResponse$Type extends MessageType<ExportResponse> {
|
|
|
147
101
|
}
|
|
148
102
|
return message;
|
|
149
103
|
}
|
|
150
|
-
internalBinaryWrite(message
|
|
104
|
+
internalBinaryWrite(message, writer, options) {
|
|
151
105
|
/* bytes data = 1; */
|
|
152
106
|
if (message.data.length)
|
|
153
107
|
writer.tag(1, WireType.LengthDelimited).bytes(message.data);
|
|
@@ -165,20 +119,20 @@ class ExportResponse$Type extends MessageType<ExportResponse> {
|
|
|
165
119
|
*/
|
|
166
120
|
export const ExportResponse = new ExportResponse$Type();
|
|
167
121
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
168
|
-
class AvailableExportFormatsResponse$Type extends MessageType
|
|
122
|
+
class AvailableExportFormatsResponse$Type extends MessageType {
|
|
169
123
|
constructor() {
|
|
170
124
|
super("snowballr.AvailableExportFormatsResponse", [
|
|
171
125
|
{ no: 1, name: "formats", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
172
126
|
]);
|
|
173
127
|
}
|
|
174
|
-
create(value
|
|
175
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
128
|
+
create(value) {
|
|
129
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
176
130
|
message.formats = [];
|
|
177
131
|
if (value !== undefined)
|
|
178
|
-
reflectionMergePartial
|
|
132
|
+
reflectionMergePartial(this, message, value);
|
|
179
133
|
return message;
|
|
180
134
|
}
|
|
181
|
-
internalBinaryRead(reader
|
|
135
|
+
internalBinaryRead(reader, length, options, target) {
|
|
182
136
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
183
137
|
while (reader.pos < end) {
|
|
184
138
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -197,7 +151,7 @@ class AvailableExportFormatsResponse$Type extends MessageType<AvailableExportFor
|
|
|
197
151
|
}
|
|
198
152
|
return message;
|
|
199
153
|
}
|
|
200
|
-
internalBinaryWrite(message
|
|
154
|
+
internalBinaryWrite(message, writer, options) {
|
|
201
155
|
/* repeated string formats = 1; */
|
|
202
156
|
for (let i = 0; i < message.formats.length; i++)
|
|
203
157
|
writer.tag(1, WireType.LengthDelimited).string(message.formats[i]);
|