geniebox-shared-lib 2.3.0 → 2.4.1
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/agent.client.d.ts +11 -0
- package/dist/agent.client.js +45 -0
- package/dist/agent.interface.d.ts +144 -0
- package/dist/agent.interface.js +561 -0
- package/dist/google/protobuf/struct.interface.d.ts +91 -0
- package/dist/google/protobuf/struct.interface.js +300 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +85 -4
- package/dist/library.client.d.ts +12 -0
- package/dist/library.client.js +43 -0
- package/dist/library.interface.d.ts +233 -0
- package/dist/library.interface.js +928 -0
- package/dist/mcp.client.d.ts +12 -0
- package/dist/mcp.client.js +42 -0
- package/dist/mcp.interface.d.ts +210 -0
- package/dist/mcp.interface.js +952 -0
- package/dist/shared.module.d.ts +16 -0
- package/dist/shared.module.js +124 -0
- package/dist/workflow.client.d.ts +12 -0
- package/dist/workflow.client.js +43 -0
- package/dist/workflow.interface.d.ts +289 -0
- package/dist/workflow.interface.js +1222 -0
- package/package.json +1 -1
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
|
+
// protoc v5.28.2
|
|
6
|
+
// source: library.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.LibraryServiceService = exports.LIBRARY_SERVICE_NAME = exports.ArchivesResponse = exports.BookmarksResponse = exports.RemoveItemFromArchiveRequest = exports.AddItemToArchiveRequest = exports.ListArchivesRequest = exports.DeleteArchiveRequest = exports.UpdateArchiveRequest = exports.CreateArchiveRequest = exports.ListBookmarksRequest = exports.DeleteBookmarkRequest = exports.CreateBookmarkRequest = exports.ArchiveItem = exports.Archive = exports.Bookmark = exports.LIBRARY_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.LibraryServiceControllerMethods = LibraryServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
13
|
+
const empty_interface_1 = require("./google/protobuf/empty.interface");
|
|
14
|
+
exports.protobufPackage = "library";
|
|
15
|
+
exports.LIBRARY_PACKAGE_NAME = "library";
|
|
16
|
+
function createBaseBookmark() {
|
|
17
|
+
return { id: "", userId: "", itemId: "", itemType: "", createdAt: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.Bookmark = {
|
|
20
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
21
|
+
if (message.id !== "") {
|
|
22
|
+
writer.uint32(10).string(message.id);
|
|
23
|
+
}
|
|
24
|
+
if (message.userId !== "") {
|
|
25
|
+
writer.uint32(18).string(message.userId);
|
|
26
|
+
}
|
|
27
|
+
if (message.itemId !== "") {
|
|
28
|
+
writer.uint32(26).string(message.itemId);
|
|
29
|
+
}
|
|
30
|
+
if (message.itemType !== "") {
|
|
31
|
+
writer.uint32(34).string(message.itemType);
|
|
32
|
+
}
|
|
33
|
+
if (message.createdAt !== "") {
|
|
34
|
+
writer.uint32(42).string(message.createdAt);
|
|
35
|
+
}
|
|
36
|
+
return writer;
|
|
37
|
+
},
|
|
38
|
+
decode(input, length) {
|
|
39
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
40
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
41
|
+
const message = createBaseBookmark();
|
|
42
|
+
while (reader.pos < end) {
|
|
43
|
+
const tag = reader.uint32();
|
|
44
|
+
switch (tag >>> 3) {
|
|
45
|
+
case 1: {
|
|
46
|
+
if (tag !== 10) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.id = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
case 2: {
|
|
53
|
+
if (tag !== 18) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.userId = reader.string();
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
case 3: {
|
|
60
|
+
if (tag !== 26) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
message.itemId = reader.string();
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
case 4: {
|
|
67
|
+
if (tag !== 34) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
message.itemType = reader.string();
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
case 5: {
|
|
74
|
+
if (tag !== 42) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
message.createdAt = reader.string();
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
reader.skip(tag & 7);
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
function createBaseArchive() {
|
|
90
|
+
return { id: "", name: "", description: "", userId: "", createdAt: "", updatedAt: "" };
|
|
91
|
+
}
|
|
92
|
+
exports.Archive = {
|
|
93
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
94
|
+
if (message.id !== "") {
|
|
95
|
+
writer.uint32(10).string(message.id);
|
|
96
|
+
}
|
|
97
|
+
if (message.name !== "") {
|
|
98
|
+
writer.uint32(18).string(message.name);
|
|
99
|
+
}
|
|
100
|
+
if (message.description !== "") {
|
|
101
|
+
writer.uint32(26).string(message.description);
|
|
102
|
+
}
|
|
103
|
+
if (message.userId !== "") {
|
|
104
|
+
writer.uint32(34).string(message.userId);
|
|
105
|
+
}
|
|
106
|
+
if (message.createdAt !== "") {
|
|
107
|
+
writer.uint32(42).string(message.createdAt);
|
|
108
|
+
}
|
|
109
|
+
if (message.updatedAt !== "") {
|
|
110
|
+
writer.uint32(50).string(message.updatedAt);
|
|
111
|
+
}
|
|
112
|
+
return writer;
|
|
113
|
+
},
|
|
114
|
+
decode(input, length) {
|
|
115
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
116
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
117
|
+
const message = createBaseArchive();
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
const tag = reader.uint32();
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
case 1: {
|
|
122
|
+
if (tag !== 10) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
message.id = reader.string();
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
case 2: {
|
|
129
|
+
if (tag !== 18) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.name = reader.string();
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
case 3: {
|
|
136
|
+
if (tag !== 26) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.description = reader.string();
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
case 4: {
|
|
143
|
+
if (tag !== 34) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
message.userId = reader.string();
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
case 5: {
|
|
150
|
+
if (tag !== 42) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.createdAt = reader.string();
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
case 6: {
|
|
157
|
+
if (tag !== 50) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
message.updatedAt = reader.string();
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
reader.skip(tag & 7);
|
|
168
|
+
}
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
function createBaseArchiveItem() {
|
|
173
|
+
return { id: "", archiveId: "", itemId: "", userId: "", addedAt: "" };
|
|
174
|
+
}
|
|
175
|
+
exports.ArchiveItem = {
|
|
176
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
177
|
+
if (message.id !== "") {
|
|
178
|
+
writer.uint32(10).string(message.id);
|
|
179
|
+
}
|
|
180
|
+
if (message.archiveId !== "") {
|
|
181
|
+
writer.uint32(18).string(message.archiveId);
|
|
182
|
+
}
|
|
183
|
+
if (message.itemId !== "") {
|
|
184
|
+
writer.uint32(26).string(message.itemId);
|
|
185
|
+
}
|
|
186
|
+
if (message.userId !== "") {
|
|
187
|
+
writer.uint32(34).string(message.userId);
|
|
188
|
+
}
|
|
189
|
+
if (message.addedAt !== "") {
|
|
190
|
+
writer.uint32(42).string(message.addedAt);
|
|
191
|
+
}
|
|
192
|
+
return writer;
|
|
193
|
+
},
|
|
194
|
+
decode(input, length) {
|
|
195
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
196
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
197
|
+
const message = createBaseArchiveItem();
|
|
198
|
+
while (reader.pos < end) {
|
|
199
|
+
const tag = reader.uint32();
|
|
200
|
+
switch (tag >>> 3) {
|
|
201
|
+
case 1: {
|
|
202
|
+
if (tag !== 10) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.id = reader.string();
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
case 2: {
|
|
209
|
+
if (tag !== 18) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.archiveId = reader.string();
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
case 3: {
|
|
216
|
+
if (tag !== 26) {
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
message.itemId = reader.string();
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
case 4: {
|
|
223
|
+
if (tag !== 34) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
message.userId = reader.string();
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
case 5: {
|
|
230
|
+
if (tag !== 42) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
message.addedAt = reader.string();
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
reader.skip(tag & 7);
|
|
241
|
+
}
|
|
242
|
+
return message;
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
function createBaseCreateBookmarkRequest() {
|
|
246
|
+
return { userId: "", itemId: "", itemType: "" };
|
|
247
|
+
}
|
|
248
|
+
exports.CreateBookmarkRequest = {
|
|
249
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
250
|
+
if (message.userId !== "") {
|
|
251
|
+
writer.uint32(10).string(message.userId);
|
|
252
|
+
}
|
|
253
|
+
if (message.itemId !== "") {
|
|
254
|
+
writer.uint32(18).string(message.itemId);
|
|
255
|
+
}
|
|
256
|
+
if (message.itemType !== "") {
|
|
257
|
+
writer.uint32(26).string(message.itemType);
|
|
258
|
+
}
|
|
259
|
+
return writer;
|
|
260
|
+
},
|
|
261
|
+
decode(input, length) {
|
|
262
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
263
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
264
|
+
const message = createBaseCreateBookmarkRequest();
|
|
265
|
+
while (reader.pos < end) {
|
|
266
|
+
const tag = reader.uint32();
|
|
267
|
+
switch (tag >>> 3) {
|
|
268
|
+
case 1: {
|
|
269
|
+
if (tag !== 10) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
message.userId = reader.string();
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
case 2: {
|
|
276
|
+
if (tag !== 18) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
message.itemId = reader.string();
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
case 3: {
|
|
283
|
+
if (tag !== 26) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.itemType = reader.string();
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
reader.skip(tag & 7);
|
|
294
|
+
}
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
function createBaseDeleteBookmarkRequest() {
|
|
299
|
+
return { userId: "", itemId: "", itemType: "" };
|
|
300
|
+
}
|
|
301
|
+
exports.DeleteBookmarkRequest = {
|
|
302
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
303
|
+
if (message.userId !== "") {
|
|
304
|
+
writer.uint32(10).string(message.userId);
|
|
305
|
+
}
|
|
306
|
+
if (message.itemId !== "") {
|
|
307
|
+
writer.uint32(18).string(message.itemId);
|
|
308
|
+
}
|
|
309
|
+
if (message.itemType !== "") {
|
|
310
|
+
writer.uint32(26).string(message.itemType);
|
|
311
|
+
}
|
|
312
|
+
return writer;
|
|
313
|
+
},
|
|
314
|
+
decode(input, length) {
|
|
315
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
316
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
317
|
+
const message = createBaseDeleteBookmarkRequest();
|
|
318
|
+
while (reader.pos < end) {
|
|
319
|
+
const tag = reader.uint32();
|
|
320
|
+
switch (tag >>> 3) {
|
|
321
|
+
case 1: {
|
|
322
|
+
if (tag !== 10) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
message.userId = reader.string();
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
case 2: {
|
|
329
|
+
if (tag !== 18) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
message.itemId = reader.string();
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
335
|
+
case 3: {
|
|
336
|
+
if (tag !== 26) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
message.itemType = reader.string();
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
reader.skip(tag & 7);
|
|
347
|
+
}
|
|
348
|
+
return message;
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
function createBaseListBookmarksRequest() {
|
|
352
|
+
return { userId: "", limit: 0, offset: 0 };
|
|
353
|
+
}
|
|
354
|
+
exports.ListBookmarksRequest = {
|
|
355
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
356
|
+
if (message.userId !== "") {
|
|
357
|
+
writer.uint32(10).string(message.userId);
|
|
358
|
+
}
|
|
359
|
+
if (message.itemType !== undefined) {
|
|
360
|
+
writer.uint32(18).string(message.itemType);
|
|
361
|
+
}
|
|
362
|
+
if (message.limit !== 0) {
|
|
363
|
+
writer.uint32(24).int32(message.limit);
|
|
364
|
+
}
|
|
365
|
+
if (message.offset !== 0) {
|
|
366
|
+
writer.uint32(32).int32(message.offset);
|
|
367
|
+
}
|
|
368
|
+
return writer;
|
|
369
|
+
},
|
|
370
|
+
decode(input, length) {
|
|
371
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
372
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
373
|
+
const message = createBaseListBookmarksRequest();
|
|
374
|
+
while (reader.pos < end) {
|
|
375
|
+
const tag = reader.uint32();
|
|
376
|
+
switch (tag >>> 3) {
|
|
377
|
+
case 1: {
|
|
378
|
+
if (tag !== 10) {
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
message.userId = reader.string();
|
|
382
|
+
continue;
|
|
383
|
+
}
|
|
384
|
+
case 2: {
|
|
385
|
+
if (tag !== 18) {
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
message.itemType = reader.string();
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
case 3: {
|
|
392
|
+
if (tag !== 24) {
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
message.limit = reader.int32();
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
case 4: {
|
|
399
|
+
if (tag !== 32) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
message.offset = reader.int32();
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
reader.skip(tag & 7);
|
|
410
|
+
}
|
|
411
|
+
return message;
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
function createBaseCreateArchiveRequest() {
|
|
415
|
+
return { userId: "", name: "", description: "" };
|
|
416
|
+
}
|
|
417
|
+
exports.CreateArchiveRequest = {
|
|
418
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
419
|
+
if (message.userId !== "") {
|
|
420
|
+
writer.uint32(10).string(message.userId);
|
|
421
|
+
}
|
|
422
|
+
if (message.name !== "") {
|
|
423
|
+
writer.uint32(18).string(message.name);
|
|
424
|
+
}
|
|
425
|
+
if (message.description !== "") {
|
|
426
|
+
writer.uint32(26).string(message.description);
|
|
427
|
+
}
|
|
428
|
+
return writer;
|
|
429
|
+
},
|
|
430
|
+
decode(input, length) {
|
|
431
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
432
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
433
|
+
const message = createBaseCreateArchiveRequest();
|
|
434
|
+
while (reader.pos < end) {
|
|
435
|
+
const tag = reader.uint32();
|
|
436
|
+
switch (tag >>> 3) {
|
|
437
|
+
case 1: {
|
|
438
|
+
if (tag !== 10) {
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
message.userId = reader.string();
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
444
|
+
case 2: {
|
|
445
|
+
if (tag !== 18) {
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
message.name = reader.string();
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
case 3: {
|
|
452
|
+
if (tag !== 26) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
message.description = reader.string();
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
reader.skip(tag & 7);
|
|
463
|
+
}
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
};
|
|
467
|
+
function createBaseUpdateArchiveRequest() {
|
|
468
|
+
return { id: "", userId: "" };
|
|
469
|
+
}
|
|
470
|
+
exports.UpdateArchiveRequest = {
|
|
471
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
472
|
+
if (message.id !== "") {
|
|
473
|
+
writer.uint32(10).string(message.id);
|
|
474
|
+
}
|
|
475
|
+
if (message.userId !== "") {
|
|
476
|
+
writer.uint32(18).string(message.userId);
|
|
477
|
+
}
|
|
478
|
+
if (message.name !== undefined) {
|
|
479
|
+
writer.uint32(26).string(message.name);
|
|
480
|
+
}
|
|
481
|
+
if (message.description !== undefined) {
|
|
482
|
+
writer.uint32(34).string(message.description);
|
|
483
|
+
}
|
|
484
|
+
return writer;
|
|
485
|
+
},
|
|
486
|
+
decode(input, length) {
|
|
487
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
488
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
489
|
+
const message = createBaseUpdateArchiveRequest();
|
|
490
|
+
while (reader.pos < end) {
|
|
491
|
+
const tag = reader.uint32();
|
|
492
|
+
switch (tag >>> 3) {
|
|
493
|
+
case 1: {
|
|
494
|
+
if (tag !== 10) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
message.id = reader.string();
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
case 2: {
|
|
501
|
+
if (tag !== 18) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.userId = reader.string();
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
case 3: {
|
|
508
|
+
if (tag !== 26) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
message.name = reader.string();
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
case 4: {
|
|
515
|
+
if (tag !== 34) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.description = reader.string();
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
reader.skip(tag & 7);
|
|
526
|
+
}
|
|
527
|
+
return message;
|
|
528
|
+
},
|
|
529
|
+
};
|
|
530
|
+
function createBaseDeleteArchiveRequest() {
|
|
531
|
+
return { id: "", userId: "" };
|
|
532
|
+
}
|
|
533
|
+
exports.DeleteArchiveRequest = {
|
|
534
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
535
|
+
if (message.id !== "") {
|
|
536
|
+
writer.uint32(10).string(message.id);
|
|
537
|
+
}
|
|
538
|
+
if (message.userId !== "") {
|
|
539
|
+
writer.uint32(18).string(message.userId);
|
|
540
|
+
}
|
|
541
|
+
return writer;
|
|
542
|
+
},
|
|
543
|
+
decode(input, length) {
|
|
544
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
545
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
546
|
+
const message = createBaseDeleteArchiveRequest();
|
|
547
|
+
while (reader.pos < end) {
|
|
548
|
+
const tag = reader.uint32();
|
|
549
|
+
switch (tag >>> 3) {
|
|
550
|
+
case 1: {
|
|
551
|
+
if (tag !== 10) {
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
message.id = reader.string();
|
|
555
|
+
continue;
|
|
556
|
+
}
|
|
557
|
+
case 2: {
|
|
558
|
+
if (tag !== 18) {
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
message.userId = reader.string();
|
|
562
|
+
continue;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
reader.skip(tag & 7);
|
|
569
|
+
}
|
|
570
|
+
return message;
|
|
571
|
+
},
|
|
572
|
+
};
|
|
573
|
+
function createBaseListArchivesRequest() {
|
|
574
|
+
return { userId: "", limit: 0, offset: 0 };
|
|
575
|
+
}
|
|
576
|
+
exports.ListArchivesRequest = {
|
|
577
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
578
|
+
if (message.userId !== "") {
|
|
579
|
+
writer.uint32(10).string(message.userId);
|
|
580
|
+
}
|
|
581
|
+
if (message.limit !== 0) {
|
|
582
|
+
writer.uint32(16).int32(message.limit);
|
|
583
|
+
}
|
|
584
|
+
if (message.offset !== 0) {
|
|
585
|
+
writer.uint32(24).int32(message.offset);
|
|
586
|
+
}
|
|
587
|
+
return writer;
|
|
588
|
+
},
|
|
589
|
+
decode(input, length) {
|
|
590
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
591
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
+
const message = createBaseListArchivesRequest();
|
|
593
|
+
while (reader.pos < end) {
|
|
594
|
+
const tag = reader.uint32();
|
|
595
|
+
switch (tag >>> 3) {
|
|
596
|
+
case 1: {
|
|
597
|
+
if (tag !== 10) {
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
message.userId = reader.string();
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
case 2: {
|
|
604
|
+
if (tag !== 16) {
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
message.limit = reader.int32();
|
|
608
|
+
continue;
|
|
609
|
+
}
|
|
610
|
+
case 3: {
|
|
611
|
+
if (tag !== 24) {
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
message.offset = reader.int32();
|
|
615
|
+
continue;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
reader.skip(tag & 7);
|
|
622
|
+
}
|
|
623
|
+
return message;
|
|
624
|
+
},
|
|
625
|
+
};
|
|
626
|
+
function createBaseAddItemToArchiveRequest() {
|
|
627
|
+
return { userId: "", archiveId: "", itemId: "" };
|
|
628
|
+
}
|
|
629
|
+
exports.AddItemToArchiveRequest = {
|
|
630
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
631
|
+
if (message.userId !== "") {
|
|
632
|
+
writer.uint32(10).string(message.userId);
|
|
633
|
+
}
|
|
634
|
+
if (message.archiveId !== "") {
|
|
635
|
+
writer.uint32(18).string(message.archiveId);
|
|
636
|
+
}
|
|
637
|
+
if (message.itemId !== "") {
|
|
638
|
+
writer.uint32(26).string(message.itemId);
|
|
639
|
+
}
|
|
640
|
+
return writer;
|
|
641
|
+
},
|
|
642
|
+
decode(input, length) {
|
|
643
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
644
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
645
|
+
const message = createBaseAddItemToArchiveRequest();
|
|
646
|
+
while (reader.pos < end) {
|
|
647
|
+
const tag = reader.uint32();
|
|
648
|
+
switch (tag >>> 3) {
|
|
649
|
+
case 1: {
|
|
650
|
+
if (tag !== 10) {
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
message.userId = reader.string();
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
case 2: {
|
|
657
|
+
if (tag !== 18) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.archiveId = reader.string();
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
case 3: {
|
|
664
|
+
if (tag !== 26) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
message.itemId = reader.string();
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
reader.skip(tag & 7);
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
};
|
|
679
|
+
function createBaseRemoveItemFromArchiveRequest() {
|
|
680
|
+
return { userId: "", archiveId: "", itemId: "" };
|
|
681
|
+
}
|
|
682
|
+
exports.RemoveItemFromArchiveRequest = {
|
|
683
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
684
|
+
if (message.userId !== "") {
|
|
685
|
+
writer.uint32(10).string(message.userId);
|
|
686
|
+
}
|
|
687
|
+
if (message.archiveId !== "") {
|
|
688
|
+
writer.uint32(18).string(message.archiveId);
|
|
689
|
+
}
|
|
690
|
+
if (message.itemId !== "") {
|
|
691
|
+
writer.uint32(26).string(message.itemId);
|
|
692
|
+
}
|
|
693
|
+
return writer;
|
|
694
|
+
},
|
|
695
|
+
decode(input, length) {
|
|
696
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
697
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
698
|
+
const message = createBaseRemoveItemFromArchiveRequest();
|
|
699
|
+
while (reader.pos < end) {
|
|
700
|
+
const tag = reader.uint32();
|
|
701
|
+
switch (tag >>> 3) {
|
|
702
|
+
case 1: {
|
|
703
|
+
if (tag !== 10) {
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
message.userId = reader.string();
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
709
|
+
case 2: {
|
|
710
|
+
if (tag !== 18) {
|
|
711
|
+
break;
|
|
712
|
+
}
|
|
713
|
+
message.archiveId = reader.string();
|
|
714
|
+
continue;
|
|
715
|
+
}
|
|
716
|
+
case 3: {
|
|
717
|
+
if (tag !== 26) {
|
|
718
|
+
break;
|
|
719
|
+
}
|
|
720
|
+
message.itemId = reader.string();
|
|
721
|
+
continue;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
reader.skip(tag & 7);
|
|
728
|
+
}
|
|
729
|
+
return message;
|
|
730
|
+
},
|
|
731
|
+
};
|
|
732
|
+
function createBaseBookmarksResponse() {
|
|
733
|
+
return { bookmarks: [], total: 0 };
|
|
734
|
+
}
|
|
735
|
+
exports.BookmarksResponse = {
|
|
736
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
737
|
+
for (const v of message.bookmarks) {
|
|
738
|
+
exports.Bookmark.encode(v, writer.uint32(10).fork()).join();
|
|
739
|
+
}
|
|
740
|
+
if (message.total !== 0) {
|
|
741
|
+
writer.uint32(16).int32(message.total);
|
|
742
|
+
}
|
|
743
|
+
return writer;
|
|
744
|
+
},
|
|
745
|
+
decode(input, length) {
|
|
746
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
747
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
748
|
+
const message = createBaseBookmarksResponse();
|
|
749
|
+
while (reader.pos < end) {
|
|
750
|
+
const tag = reader.uint32();
|
|
751
|
+
switch (tag >>> 3) {
|
|
752
|
+
case 1: {
|
|
753
|
+
if (tag !== 10) {
|
|
754
|
+
break;
|
|
755
|
+
}
|
|
756
|
+
message.bookmarks.push(exports.Bookmark.decode(reader, reader.uint32()));
|
|
757
|
+
continue;
|
|
758
|
+
}
|
|
759
|
+
case 2: {
|
|
760
|
+
if (tag !== 16) {
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
message.total = reader.int32();
|
|
764
|
+
continue;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
reader.skip(tag & 7);
|
|
771
|
+
}
|
|
772
|
+
return message;
|
|
773
|
+
},
|
|
774
|
+
};
|
|
775
|
+
function createBaseArchivesResponse() {
|
|
776
|
+
return { archives: [], total: 0 };
|
|
777
|
+
}
|
|
778
|
+
exports.ArchivesResponse = {
|
|
779
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
780
|
+
for (const v of message.archives) {
|
|
781
|
+
exports.Archive.encode(v, writer.uint32(10).fork()).join();
|
|
782
|
+
}
|
|
783
|
+
if (message.total !== 0) {
|
|
784
|
+
writer.uint32(16).int32(message.total);
|
|
785
|
+
}
|
|
786
|
+
return writer;
|
|
787
|
+
},
|
|
788
|
+
decode(input, length) {
|
|
789
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
790
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
791
|
+
const message = createBaseArchivesResponse();
|
|
792
|
+
while (reader.pos < end) {
|
|
793
|
+
const tag = reader.uint32();
|
|
794
|
+
switch (tag >>> 3) {
|
|
795
|
+
case 1: {
|
|
796
|
+
if (tag !== 10) {
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
message.archives.push(exports.Archive.decode(reader, reader.uint32()));
|
|
800
|
+
continue;
|
|
801
|
+
}
|
|
802
|
+
case 2: {
|
|
803
|
+
if (tag !== 16) {
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
message.total = reader.int32();
|
|
807
|
+
continue;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
reader.skip(tag & 7);
|
|
814
|
+
}
|
|
815
|
+
return message;
|
|
816
|
+
},
|
|
817
|
+
};
|
|
818
|
+
function LibraryServiceControllerMethods() {
|
|
819
|
+
return function (constructor) {
|
|
820
|
+
const grpcMethods = [
|
|
821
|
+
"createBookmark",
|
|
822
|
+
"deleteBookmark",
|
|
823
|
+
"listBookmarks",
|
|
824
|
+
"createArchive",
|
|
825
|
+
"updateArchive",
|
|
826
|
+
"deleteArchive",
|
|
827
|
+
"listArchives",
|
|
828
|
+
"addItemToArchive",
|
|
829
|
+
"removeItemFromArchive",
|
|
830
|
+
];
|
|
831
|
+
for (const method of grpcMethods) {
|
|
832
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
833
|
+
(0, microservices_1.GrpcMethod)("LibraryService", method)(constructor.prototype[method], method, descriptor);
|
|
834
|
+
}
|
|
835
|
+
const grpcStreamMethods = [];
|
|
836
|
+
for (const method of grpcStreamMethods) {
|
|
837
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
838
|
+
(0, microservices_1.GrpcStreamMethod)("LibraryService", method)(constructor.prototype[method], method, descriptor);
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
exports.LIBRARY_SERVICE_NAME = "LibraryService";
|
|
843
|
+
exports.LibraryServiceService = {
|
|
844
|
+
/** Bookmarks */
|
|
845
|
+
createBookmark: {
|
|
846
|
+
path: "/library.LibraryService/createBookmark",
|
|
847
|
+
requestStream: false,
|
|
848
|
+
responseStream: false,
|
|
849
|
+
requestSerialize: (value) => Buffer.from(exports.CreateBookmarkRequest.encode(value).finish()),
|
|
850
|
+
requestDeserialize: (value) => exports.CreateBookmarkRequest.decode(value),
|
|
851
|
+
responseSerialize: (value) => Buffer.from(exports.Bookmark.encode(value).finish()),
|
|
852
|
+
responseDeserialize: (value) => exports.Bookmark.decode(value),
|
|
853
|
+
},
|
|
854
|
+
deleteBookmark: {
|
|
855
|
+
path: "/library.LibraryService/deleteBookmark",
|
|
856
|
+
requestStream: false,
|
|
857
|
+
responseStream: false,
|
|
858
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteBookmarkRequest.encode(value).finish()),
|
|
859
|
+
requestDeserialize: (value) => exports.DeleteBookmarkRequest.decode(value),
|
|
860
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
861
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
862
|
+
},
|
|
863
|
+
listBookmarks: {
|
|
864
|
+
path: "/library.LibraryService/listBookmarks",
|
|
865
|
+
requestStream: false,
|
|
866
|
+
responseStream: false,
|
|
867
|
+
requestSerialize: (value) => Buffer.from(exports.ListBookmarksRequest.encode(value).finish()),
|
|
868
|
+
requestDeserialize: (value) => exports.ListBookmarksRequest.decode(value),
|
|
869
|
+
responseSerialize: (value) => Buffer.from(exports.BookmarksResponse.encode(value).finish()),
|
|
870
|
+
responseDeserialize: (value) => exports.BookmarksResponse.decode(value),
|
|
871
|
+
},
|
|
872
|
+
/** Archives */
|
|
873
|
+
createArchive: {
|
|
874
|
+
path: "/library.LibraryService/createArchive",
|
|
875
|
+
requestStream: false,
|
|
876
|
+
responseStream: false,
|
|
877
|
+
requestSerialize: (value) => Buffer.from(exports.CreateArchiveRequest.encode(value).finish()),
|
|
878
|
+
requestDeserialize: (value) => exports.CreateArchiveRequest.decode(value),
|
|
879
|
+
responseSerialize: (value) => Buffer.from(exports.Archive.encode(value).finish()),
|
|
880
|
+
responseDeserialize: (value) => exports.Archive.decode(value),
|
|
881
|
+
},
|
|
882
|
+
updateArchive: {
|
|
883
|
+
path: "/library.LibraryService/updateArchive",
|
|
884
|
+
requestStream: false,
|
|
885
|
+
responseStream: false,
|
|
886
|
+
requestSerialize: (value) => Buffer.from(exports.UpdateArchiveRequest.encode(value).finish()),
|
|
887
|
+
requestDeserialize: (value) => exports.UpdateArchiveRequest.decode(value),
|
|
888
|
+
responseSerialize: (value) => Buffer.from(exports.Archive.encode(value).finish()),
|
|
889
|
+
responseDeserialize: (value) => exports.Archive.decode(value),
|
|
890
|
+
},
|
|
891
|
+
deleteArchive: {
|
|
892
|
+
path: "/library.LibraryService/deleteArchive",
|
|
893
|
+
requestStream: false,
|
|
894
|
+
responseStream: false,
|
|
895
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteArchiveRequest.encode(value).finish()),
|
|
896
|
+
requestDeserialize: (value) => exports.DeleteArchiveRequest.decode(value),
|
|
897
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
898
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
899
|
+
},
|
|
900
|
+
listArchives: {
|
|
901
|
+
path: "/library.LibraryService/listArchives",
|
|
902
|
+
requestStream: false,
|
|
903
|
+
responseStream: false,
|
|
904
|
+
requestSerialize: (value) => Buffer.from(exports.ListArchivesRequest.encode(value).finish()),
|
|
905
|
+
requestDeserialize: (value) => exports.ListArchivesRequest.decode(value),
|
|
906
|
+
responseSerialize: (value) => Buffer.from(exports.ArchivesResponse.encode(value).finish()),
|
|
907
|
+
responseDeserialize: (value) => exports.ArchivesResponse.decode(value),
|
|
908
|
+
},
|
|
909
|
+
/** Archive Items */
|
|
910
|
+
addItemToArchive: {
|
|
911
|
+
path: "/library.LibraryService/addItemToArchive",
|
|
912
|
+
requestStream: false,
|
|
913
|
+
responseStream: false,
|
|
914
|
+
requestSerialize: (value) => Buffer.from(exports.AddItemToArchiveRequest.encode(value).finish()),
|
|
915
|
+
requestDeserialize: (value) => exports.AddItemToArchiveRequest.decode(value),
|
|
916
|
+
responseSerialize: (value) => Buffer.from(exports.ArchiveItem.encode(value).finish()),
|
|
917
|
+
responseDeserialize: (value) => exports.ArchiveItem.decode(value),
|
|
918
|
+
},
|
|
919
|
+
removeItemFromArchive: {
|
|
920
|
+
path: "/library.LibraryService/removeItemFromArchive",
|
|
921
|
+
requestStream: false,
|
|
922
|
+
responseStream: false,
|
|
923
|
+
requestSerialize: (value) => Buffer.from(exports.RemoveItemFromArchiveRequest.encode(value).finish()),
|
|
924
|
+
requestDeserialize: (value) => exports.RemoveItemFromArchiveRequest.decode(value),
|
|
925
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
926
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
927
|
+
},
|
|
928
|
+
};
|