@fraym/proto 0.29.0 → 0.30.0-alpha.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.
Files changed (109) hide show
  1. package/package.json +12 -18
  2. package/freym/auth/management/migration.d.ts +0 -68
  3. package/freym/auth/management/migration.js +0 -509
  4. package/freym/auth/management/role_delete.d.ts +0 -31
  5. package/freym/auth/management/role_delete.js +0 -132
  6. package/freym/auth/management/role_upsert.d.ts +0 -33
  7. package/freym/auth/management/role_upsert.js +0 -165
  8. package/freym/auth/management/roles_get.d.ts +0 -35
  9. package/freym/auth/management/roles_get.js +0 -186
  10. package/freym/auth/management/service.d.ts +0 -165
  11. package/freym/auth/management/service.js +0 -115
  12. package/freym/auth/management/shared.d.ts +0 -33
  13. package/freym/auth/management/shared.js +0 -176
  14. package/freym/auth/management/user_create.d.ts +0 -39
  15. package/freym/auth/management/user_create.js +0 -269
  16. package/freym/auth/management/user_delete.d.ts +0 -31
  17. package/freym/auth/management/user_delete.js +0 -132
  18. package/freym/auth/management/user_update.d.ts +0 -38
  19. package/freym/auth/management/user_update.js +0 -251
  20. package/freym/auth/management/users_get.d.ts +0 -41
  21. package/freym/auth/management/users_get.js +0 -300
  22. package/freym/auth/management.d.ts +0 -10
  23. package/freym/auth/management.js +0 -43
  24. package/freym/crud/delivery/clone.d.ts +0 -58
  25. package/freym/crud/delivery/clone.js +0 -494
  26. package/freym/crud/delivery/create.d.ts +0 -57
  27. package/freym/crud/delivery/create.js +0 -479
  28. package/freym/crud/delivery/delete.d.ts +0 -34
  29. package/freym/crud/delivery/delete.js +0 -183
  30. package/freym/crud/delivery/get_data.d.ts +0 -74
  31. package/freym/crud/delivery/get_data.js +0 -762
  32. package/freym/crud/delivery/service.d.ts +0 -97
  33. package/freym/crud/delivery/service.js +0 -67
  34. package/freym/crud/delivery/shared.d.ts +0 -60
  35. package/freym/crud/delivery/shared.js +0 -542
  36. package/freym/crud/delivery/update.d.ts +0 -57
  37. package/freym/crud/delivery/update.js +0 -479
  38. package/freym/crud/delivery.d.ts +0 -7
  39. package/freym/crud/delivery.js +0 -43
  40. package/freym/crud/management/migration.d.ts +0 -98
  41. package/freym/crud/management/migration.js +0 -945
  42. package/freym/crud/management/service.d.ts +0 -67
  43. package/freym/crud/management/service.js +0 -45
  44. package/freym/crud/management.d.ts +0 -2
  45. package/freym/crud/management.js +0 -21
  46. package/freym/index.d.ts +0 -0
  47. package/freym/index.js +0 -1
  48. package/freym/migrations/management/confirm.d.ts +0 -28
  49. package/freym/migrations/management/confirm.js +0 -97
  50. package/freym/migrations/management/create.d.ts +0 -88
  51. package/freym/migrations/management/create.js +0 -858
  52. package/freym/migrations/management/deployment.d.ts +0 -34
  53. package/freym/migrations/management/deployment.js +0 -186
  54. package/freym/migrations/management/rollback.d.ts +0 -28
  55. package/freym/migrations/management/rollback.js +0 -97
  56. package/freym/migrations/management/service.d.ts +0 -70
  57. package/freym/migrations/management/service.js +0 -48
  58. package/freym/migrations/management.d.ts +0 -5
  59. package/freym/migrations/management.js +0 -27
  60. package/freym/projections/delivery/delete.d.ts +0 -34
  61. package/freym/projections/delivery/delete.js +0 -183
  62. package/freym/projections/delivery/get_data.d.ts +0 -58
  63. package/freym/projections/delivery/get_data.js +0 -548
  64. package/freym/projections/delivery/get_view_data.d.ts +0 -50
  65. package/freym/projections/delivery/get_view_data.js +0 -422
  66. package/freym/projections/delivery/service.d.ts +0 -96
  67. package/freym/projections/delivery/service.js +0 -66
  68. package/freym/projections/delivery/shared.d.ts +0 -76
  69. package/freym/projections/delivery/shared.js +0 -753
  70. package/freym/projections/delivery/upsert.d.ts +0 -58
  71. package/freym/projections/delivery/upsert.js +0 -494
  72. package/freym/projections/delivery.d.ts +0 -6
  73. package/freym/projections/delivery.js +0 -36
  74. package/freym/projections/management/migration.d.ts +0 -107
  75. package/freym/projections/management/migration.js +0 -1089
  76. package/freym/projections/management/service.d.ts +0 -67
  77. package/freym/projections/management/service.js +0 -45
  78. package/freym/projections/management.d.ts +0 -2
  79. package/freym/projections/management.js +0 -23
  80. package/freym/streams/management/backchannel.d.ts +0 -35
  81. package/freym/streams/management/backchannel.js +0 -134
  82. package/freym/streams/management/event.d.ts +0 -80
  83. package/freym/streams/management/event.js +0 -849
  84. package/freym/streams/management/gdpr.d.ts +0 -43
  85. package/freym/streams/management/gdpr.js +0 -310
  86. package/freym/streams/management/paginate.d.ts +0 -72
  87. package/freym/streams/management/paginate.js +0 -709
  88. package/freym/streams/management/publish.d.ts +0 -59
  89. package/freym/streams/management/publish.js +0 -536
  90. package/freym/streams/management/service.d.ts +0 -204
  91. package/freym/streams/management/service.js +0 -142
  92. package/freym/streams/management/snapshot.d.ts +0 -34
  93. package/freym/streams/management/snapshot.js +0 -186
  94. package/freym/streams/management/stream.d.ts +0 -31
  95. package/freym/streams/management/stream.js +0 -144
  96. package/freym/streams/management/subscribe.d.ts +0 -70
  97. package/freym/streams/management/subscribe.js +0 -550
  98. package/freym/streams/management.d.ts +0 -9
  99. package/freym/streams/management.js +0 -54
  100. package/freym/sync/management/lease.d.ts +0 -62
  101. package/freym/sync/management/lease.js +0 -574
  102. package/freym/sync/management/lock.d.ts +0 -59
  103. package/freym/sync/management/lock.js +0 -522
  104. package/freym/sync/management/peer_nodes.d.ts +0 -29
  105. package/freym/sync/management/peer_nodes.js +0 -117
  106. package/freym/sync/management/service.d.ts +0 -120
  107. package/freym/sync/management/service.js +0 -83
  108. package/freym/sync/management.d.ts +0 -4
  109. package/freym/sync/management.js +0 -27
@@ -1,522 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlobalUnlockResponse = exports.GlobalUnlockRequest = exports.GlobalLockResponse = exports.GlobalLockRequest = exports.LocalUnlockResponse = exports.LocalUnlockRequest = exports.LocalLockResponse = exports.LocalLockRequest = exports.protobufPackage = void 0;
4
- const wire_1 = require("@bufbuild/protobuf/wire");
5
- exports.protobufPackage = "freym.sync.management";
6
- function createBaseLocalLockRequest() {
7
- return { leaseId: "", tenantId: "", globalConcern: "", localConcern: "" };
8
- }
9
- exports.LocalLockRequest = {
10
- encode(message, writer = new wire_1.BinaryWriter()) {
11
- if (message.leaseId !== "") {
12
- writer.uint32(10).string(message.leaseId);
13
- }
14
- if (message.tenantId !== "") {
15
- writer.uint32(18).string(message.tenantId);
16
- }
17
- if (message.globalConcern !== "") {
18
- writer.uint32(26).string(message.globalConcern);
19
- }
20
- if (message.localConcern !== "") {
21
- writer.uint32(34).string(message.localConcern);
22
- }
23
- return writer;
24
- },
25
- decode(input, length) {
26
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
28
- const message = createBaseLocalLockRequest();
29
- while (reader.pos < end) {
30
- const tag = reader.uint32();
31
- switch (tag >>> 3) {
32
- case 1: {
33
- if (tag !== 10) {
34
- break;
35
- }
36
- message.leaseId = reader.string();
37
- continue;
38
- }
39
- case 2: {
40
- if (tag !== 18) {
41
- break;
42
- }
43
- message.tenantId = reader.string();
44
- continue;
45
- }
46
- case 3: {
47
- if (tag !== 26) {
48
- break;
49
- }
50
- message.globalConcern = reader.string();
51
- continue;
52
- }
53
- case 4: {
54
- if (tag !== 34) {
55
- break;
56
- }
57
- message.localConcern = reader.string();
58
- continue;
59
- }
60
- }
61
- if ((tag & 7) === 4 || tag === 0) {
62
- break;
63
- }
64
- reader.skip(tag & 7);
65
- }
66
- return message;
67
- },
68
- fromJSON(object) {
69
- return {
70
- leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
71
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
72
- globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
73
- localConcern: isSet(object.localConcern) ? globalThis.String(object.localConcern) : "",
74
- };
75
- },
76
- toJSON(message) {
77
- const obj = {};
78
- if (message.leaseId !== "") {
79
- obj.leaseId = message.leaseId;
80
- }
81
- if (message.tenantId !== "") {
82
- obj.tenantId = message.tenantId;
83
- }
84
- if (message.globalConcern !== "") {
85
- obj.globalConcern = message.globalConcern;
86
- }
87
- if (message.localConcern !== "") {
88
- obj.localConcern = message.localConcern;
89
- }
90
- return obj;
91
- },
92
- create(base) {
93
- return exports.LocalLockRequest.fromPartial(base !== null && base !== void 0 ? base : {});
94
- },
95
- fromPartial(object) {
96
- var _a, _b, _c, _d;
97
- const message = createBaseLocalLockRequest();
98
- message.leaseId = (_a = object.leaseId) !== null && _a !== void 0 ? _a : "";
99
- message.tenantId = (_b = object.tenantId) !== null && _b !== void 0 ? _b : "";
100
- message.globalConcern = (_c = object.globalConcern) !== null && _c !== void 0 ? _c : "";
101
- message.localConcern = (_d = object.localConcern) !== null && _d !== void 0 ? _d : "";
102
- return message;
103
- },
104
- };
105
- function createBaseLocalLockResponse() {
106
- return {};
107
- }
108
- exports.LocalLockResponse = {
109
- encode(_, writer = new wire_1.BinaryWriter()) {
110
- return writer;
111
- },
112
- decode(input, length) {
113
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
114
- let end = length === undefined ? reader.len : reader.pos + length;
115
- const message = createBaseLocalLockResponse();
116
- while (reader.pos < end) {
117
- const tag = reader.uint32();
118
- switch (tag >>> 3) {
119
- }
120
- if ((tag & 7) === 4 || tag === 0) {
121
- break;
122
- }
123
- reader.skip(tag & 7);
124
- }
125
- return message;
126
- },
127
- fromJSON(_) {
128
- return {};
129
- },
130
- toJSON(_) {
131
- const obj = {};
132
- return obj;
133
- },
134
- create(base) {
135
- return exports.LocalLockResponse.fromPartial(base !== null && base !== void 0 ? base : {});
136
- },
137
- fromPartial(_) {
138
- const message = createBaseLocalLockResponse();
139
- return message;
140
- },
141
- };
142
- function createBaseLocalUnlockRequest() {
143
- return { leaseId: "", tenantId: "", globalConcern: "", localConcern: "" };
144
- }
145
- exports.LocalUnlockRequest = {
146
- encode(message, writer = new wire_1.BinaryWriter()) {
147
- if (message.leaseId !== "") {
148
- writer.uint32(10).string(message.leaseId);
149
- }
150
- if (message.tenantId !== "") {
151
- writer.uint32(18).string(message.tenantId);
152
- }
153
- if (message.globalConcern !== "") {
154
- writer.uint32(26).string(message.globalConcern);
155
- }
156
- if (message.localConcern !== "") {
157
- writer.uint32(34).string(message.localConcern);
158
- }
159
- return writer;
160
- },
161
- decode(input, length) {
162
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
163
- let end = length === undefined ? reader.len : reader.pos + length;
164
- const message = createBaseLocalUnlockRequest();
165
- while (reader.pos < end) {
166
- const tag = reader.uint32();
167
- switch (tag >>> 3) {
168
- case 1: {
169
- if (tag !== 10) {
170
- break;
171
- }
172
- message.leaseId = reader.string();
173
- continue;
174
- }
175
- case 2: {
176
- if (tag !== 18) {
177
- break;
178
- }
179
- message.tenantId = reader.string();
180
- continue;
181
- }
182
- case 3: {
183
- if (tag !== 26) {
184
- break;
185
- }
186
- message.globalConcern = reader.string();
187
- continue;
188
- }
189
- case 4: {
190
- if (tag !== 34) {
191
- break;
192
- }
193
- message.localConcern = reader.string();
194
- continue;
195
- }
196
- }
197
- if ((tag & 7) === 4 || tag === 0) {
198
- break;
199
- }
200
- reader.skip(tag & 7);
201
- }
202
- return message;
203
- },
204
- fromJSON(object) {
205
- return {
206
- leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
207
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
208
- globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
209
- localConcern: isSet(object.localConcern) ? globalThis.String(object.localConcern) : "",
210
- };
211
- },
212
- toJSON(message) {
213
- const obj = {};
214
- if (message.leaseId !== "") {
215
- obj.leaseId = message.leaseId;
216
- }
217
- if (message.tenantId !== "") {
218
- obj.tenantId = message.tenantId;
219
- }
220
- if (message.globalConcern !== "") {
221
- obj.globalConcern = message.globalConcern;
222
- }
223
- if (message.localConcern !== "") {
224
- obj.localConcern = message.localConcern;
225
- }
226
- return obj;
227
- },
228
- create(base) {
229
- return exports.LocalUnlockRequest.fromPartial(base !== null && base !== void 0 ? base : {});
230
- },
231
- fromPartial(object) {
232
- var _a, _b, _c, _d;
233
- const message = createBaseLocalUnlockRequest();
234
- message.leaseId = (_a = object.leaseId) !== null && _a !== void 0 ? _a : "";
235
- message.tenantId = (_b = object.tenantId) !== null && _b !== void 0 ? _b : "";
236
- message.globalConcern = (_c = object.globalConcern) !== null && _c !== void 0 ? _c : "";
237
- message.localConcern = (_d = object.localConcern) !== null && _d !== void 0 ? _d : "";
238
- return message;
239
- },
240
- };
241
- function createBaseLocalUnlockResponse() {
242
- return {};
243
- }
244
- exports.LocalUnlockResponse = {
245
- encode(_, writer = new wire_1.BinaryWriter()) {
246
- return writer;
247
- },
248
- decode(input, length) {
249
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
250
- let end = length === undefined ? reader.len : reader.pos + length;
251
- const message = createBaseLocalUnlockResponse();
252
- while (reader.pos < end) {
253
- const tag = reader.uint32();
254
- switch (tag >>> 3) {
255
- }
256
- if ((tag & 7) === 4 || tag === 0) {
257
- break;
258
- }
259
- reader.skip(tag & 7);
260
- }
261
- return message;
262
- },
263
- fromJSON(_) {
264
- return {};
265
- },
266
- toJSON(_) {
267
- const obj = {};
268
- return obj;
269
- },
270
- create(base) {
271
- return exports.LocalUnlockResponse.fromPartial(base !== null && base !== void 0 ? base : {});
272
- },
273
- fromPartial(_) {
274
- const message = createBaseLocalUnlockResponse();
275
- return message;
276
- },
277
- };
278
- function createBaseGlobalLockRequest() {
279
- return { leaseId: "", tenantId: "", globalConcern: "" };
280
- }
281
- exports.GlobalLockRequest = {
282
- encode(message, writer = new wire_1.BinaryWriter()) {
283
- if (message.leaseId !== "") {
284
- writer.uint32(10).string(message.leaseId);
285
- }
286
- if (message.tenantId !== "") {
287
- writer.uint32(18).string(message.tenantId);
288
- }
289
- if (message.globalConcern !== "") {
290
- writer.uint32(26).string(message.globalConcern);
291
- }
292
- return writer;
293
- },
294
- decode(input, length) {
295
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
296
- let end = length === undefined ? reader.len : reader.pos + length;
297
- const message = createBaseGlobalLockRequest();
298
- while (reader.pos < end) {
299
- const tag = reader.uint32();
300
- switch (tag >>> 3) {
301
- case 1: {
302
- if (tag !== 10) {
303
- break;
304
- }
305
- message.leaseId = reader.string();
306
- continue;
307
- }
308
- case 2: {
309
- if (tag !== 18) {
310
- break;
311
- }
312
- message.tenantId = reader.string();
313
- continue;
314
- }
315
- case 3: {
316
- if (tag !== 26) {
317
- break;
318
- }
319
- message.globalConcern = reader.string();
320
- continue;
321
- }
322
- }
323
- if ((tag & 7) === 4 || tag === 0) {
324
- break;
325
- }
326
- reader.skip(tag & 7);
327
- }
328
- return message;
329
- },
330
- fromJSON(object) {
331
- return {
332
- leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
333
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
334
- globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
335
- };
336
- },
337
- toJSON(message) {
338
- const obj = {};
339
- if (message.leaseId !== "") {
340
- obj.leaseId = message.leaseId;
341
- }
342
- if (message.tenantId !== "") {
343
- obj.tenantId = message.tenantId;
344
- }
345
- if (message.globalConcern !== "") {
346
- obj.globalConcern = message.globalConcern;
347
- }
348
- return obj;
349
- },
350
- create(base) {
351
- return exports.GlobalLockRequest.fromPartial(base !== null && base !== void 0 ? base : {});
352
- },
353
- fromPartial(object) {
354
- var _a, _b, _c;
355
- const message = createBaseGlobalLockRequest();
356
- message.leaseId = (_a = object.leaseId) !== null && _a !== void 0 ? _a : "";
357
- message.tenantId = (_b = object.tenantId) !== null && _b !== void 0 ? _b : "";
358
- message.globalConcern = (_c = object.globalConcern) !== null && _c !== void 0 ? _c : "";
359
- return message;
360
- },
361
- };
362
- function createBaseGlobalLockResponse() {
363
- return {};
364
- }
365
- exports.GlobalLockResponse = {
366
- encode(_, writer = new wire_1.BinaryWriter()) {
367
- return writer;
368
- },
369
- decode(input, length) {
370
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
371
- let end = length === undefined ? reader.len : reader.pos + length;
372
- const message = createBaseGlobalLockResponse();
373
- while (reader.pos < end) {
374
- const tag = reader.uint32();
375
- switch (tag >>> 3) {
376
- }
377
- if ((tag & 7) === 4 || tag === 0) {
378
- break;
379
- }
380
- reader.skip(tag & 7);
381
- }
382
- return message;
383
- },
384
- fromJSON(_) {
385
- return {};
386
- },
387
- toJSON(_) {
388
- const obj = {};
389
- return obj;
390
- },
391
- create(base) {
392
- return exports.GlobalLockResponse.fromPartial(base !== null && base !== void 0 ? base : {});
393
- },
394
- fromPartial(_) {
395
- const message = createBaseGlobalLockResponse();
396
- return message;
397
- },
398
- };
399
- function createBaseGlobalUnlockRequest() {
400
- return { leaseId: "", tenantId: "", globalConcern: "" };
401
- }
402
- exports.GlobalUnlockRequest = {
403
- encode(message, writer = new wire_1.BinaryWriter()) {
404
- if (message.leaseId !== "") {
405
- writer.uint32(10).string(message.leaseId);
406
- }
407
- if (message.tenantId !== "") {
408
- writer.uint32(18).string(message.tenantId);
409
- }
410
- if (message.globalConcern !== "") {
411
- writer.uint32(26).string(message.globalConcern);
412
- }
413
- return writer;
414
- },
415
- decode(input, length) {
416
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
417
- let end = length === undefined ? reader.len : reader.pos + length;
418
- const message = createBaseGlobalUnlockRequest();
419
- while (reader.pos < end) {
420
- const tag = reader.uint32();
421
- switch (tag >>> 3) {
422
- case 1: {
423
- if (tag !== 10) {
424
- break;
425
- }
426
- message.leaseId = reader.string();
427
- continue;
428
- }
429
- case 2: {
430
- if (tag !== 18) {
431
- break;
432
- }
433
- message.tenantId = reader.string();
434
- continue;
435
- }
436
- case 3: {
437
- if (tag !== 26) {
438
- break;
439
- }
440
- message.globalConcern = reader.string();
441
- continue;
442
- }
443
- }
444
- if ((tag & 7) === 4 || tag === 0) {
445
- break;
446
- }
447
- reader.skip(tag & 7);
448
- }
449
- return message;
450
- },
451
- fromJSON(object) {
452
- return {
453
- leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
454
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
455
- globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
456
- };
457
- },
458
- toJSON(message) {
459
- const obj = {};
460
- if (message.leaseId !== "") {
461
- obj.leaseId = message.leaseId;
462
- }
463
- if (message.tenantId !== "") {
464
- obj.tenantId = message.tenantId;
465
- }
466
- if (message.globalConcern !== "") {
467
- obj.globalConcern = message.globalConcern;
468
- }
469
- return obj;
470
- },
471
- create(base) {
472
- return exports.GlobalUnlockRequest.fromPartial(base !== null && base !== void 0 ? base : {});
473
- },
474
- fromPartial(object) {
475
- var _a, _b, _c;
476
- const message = createBaseGlobalUnlockRequest();
477
- message.leaseId = (_a = object.leaseId) !== null && _a !== void 0 ? _a : "";
478
- message.tenantId = (_b = object.tenantId) !== null && _b !== void 0 ? _b : "";
479
- message.globalConcern = (_c = object.globalConcern) !== null && _c !== void 0 ? _c : "";
480
- return message;
481
- },
482
- };
483
- function createBaseGlobalUnlockResponse() {
484
- return {};
485
- }
486
- exports.GlobalUnlockResponse = {
487
- encode(_, writer = new wire_1.BinaryWriter()) {
488
- return writer;
489
- },
490
- decode(input, length) {
491
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
492
- let end = length === undefined ? reader.len : reader.pos + length;
493
- const message = createBaseGlobalUnlockResponse();
494
- while (reader.pos < end) {
495
- const tag = reader.uint32();
496
- switch (tag >>> 3) {
497
- }
498
- if ((tag & 7) === 4 || tag === 0) {
499
- break;
500
- }
501
- reader.skip(tag & 7);
502
- }
503
- return message;
504
- },
505
- fromJSON(_) {
506
- return {};
507
- },
508
- toJSON(_) {
509
- const obj = {};
510
- return obj;
511
- },
512
- create(base) {
513
- return exports.GlobalUnlockResponse.fromPartial(base !== null && base !== void 0 ? base : {});
514
- },
515
- fromPartial(_) {
516
- const message = createBaseGlobalUnlockResponse();
517
- return message;
518
- },
519
- };
520
- function isSet(value) {
521
- return value !== null && value !== undefined;
522
- }
@@ -1,29 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "freym.sync.management";
3
- export interface GetPeerNodesRequest {
4
- app: string;
5
- }
6
- export interface GetPeerNodesResponse {
7
- peerNodeIp: string[];
8
- }
9
- export declare const GetPeerNodesRequest: MessageFns<GetPeerNodesRequest>;
10
- export declare const GetPeerNodesResponse: MessageFns<GetPeerNodesResponse>;
11
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
12
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
13
- $case: string;
14
- } ? {
15
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
16
- } & {
17
- $case: T["$case"];
18
- } : T extends {} ? {
19
- [K in keyof T]?: DeepPartial<T[K]>;
20
- } : Partial<T>;
21
- export interface MessageFns<T> {
22
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
23
- decode(input: BinaryReader | Uint8Array, length?: number): T;
24
- fromJSON(object: any): T;
25
- toJSON(message: T): unknown;
26
- create(base?: DeepPartial<T>): T;
27
- fromPartial(object: DeepPartial<T>): T;
28
- }
29
- export {};
@@ -1,117 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPeerNodesResponse = exports.GetPeerNodesRequest = exports.protobufPackage = void 0;
4
- const wire_1 = require("@bufbuild/protobuf/wire");
5
- exports.protobufPackage = "freym.sync.management";
6
- function createBaseGetPeerNodesRequest() {
7
- return { app: "" };
8
- }
9
- exports.GetPeerNodesRequest = {
10
- encode(message, writer = new wire_1.BinaryWriter()) {
11
- if (message.app !== "") {
12
- writer.uint32(10).string(message.app);
13
- }
14
- return writer;
15
- },
16
- decode(input, length) {
17
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
18
- let end = length === undefined ? reader.len : reader.pos + length;
19
- const message = createBaseGetPeerNodesRequest();
20
- while (reader.pos < end) {
21
- const tag = reader.uint32();
22
- switch (tag >>> 3) {
23
- case 1: {
24
- if (tag !== 10) {
25
- break;
26
- }
27
- message.app = reader.string();
28
- continue;
29
- }
30
- }
31
- if ((tag & 7) === 4 || tag === 0) {
32
- break;
33
- }
34
- reader.skip(tag & 7);
35
- }
36
- return message;
37
- },
38
- fromJSON(object) {
39
- return { app: isSet(object.app) ? globalThis.String(object.app) : "" };
40
- },
41
- toJSON(message) {
42
- const obj = {};
43
- if (message.app !== "") {
44
- obj.app = message.app;
45
- }
46
- return obj;
47
- },
48
- create(base) {
49
- return exports.GetPeerNodesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
50
- },
51
- fromPartial(object) {
52
- var _a;
53
- const message = createBaseGetPeerNodesRequest();
54
- message.app = (_a = object.app) !== null && _a !== void 0 ? _a : "";
55
- return message;
56
- },
57
- };
58
- function createBaseGetPeerNodesResponse() {
59
- return { peerNodeIp: [] };
60
- }
61
- exports.GetPeerNodesResponse = {
62
- encode(message, writer = new wire_1.BinaryWriter()) {
63
- for (const v of message.peerNodeIp) {
64
- writer.uint32(10).string(v);
65
- }
66
- return writer;
67
- },
68
- decode(input, length) {
69
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
70
- let end = length === undefined ? reader.len : reader.pos + length;
71
- const message = createBaseGetPeerNodesResponse();
72
- while (reader.pos < end) {
73
- const tag = reader.uint32();
74
- switch (tag >>> 3) {
75
- case 1: {
76
- if (tag !== 10) {
77
- break;
78
- }
79
- message.peerNodeIp.push(reader.string());
80
- continue;
81
- }
82
- }
83
- if ((tag & 7) === 4 || tag === 0) {
84
- break;
85
- }
86
- reader.skip(tag & 7);
87
- }
88
- return message;
89
- },
90
- fromJSON(object) {
91
- return {
92
- peerNodeIp: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.peerNodeIp)
93
- ? object.peerNodeIp.map((e) => globalThis.String(e))
94
- : [],
95
- };
96
- },
97
- toJSON(message) {
98
- var _a;
99
- const obj = {};
100
- if ((_a = message.peerNodeIp) === null || _a === void 0 ? void 0 : _a.length) {
101
- obj.peerNodeIp = message.peerNodeIp;
102
- }
103
- return obj;
104
- },
105
- create(base) {
106
- return exports.GetPeerNodesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
107
- },
108
- fromPartial(object) {
109
- var _a;
110
- const message = createBaseGetPeerNodesResponse();
111
- message.peerNodeIp = ((_a = object.peerNodeIp) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
112
- return message;
113
- },
114
- };
115
- function isSet(value) {
116
- return value !== null && value !== undefined;
117
- }