@fraym/proto 0.11.2 → 0.11.4
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.
|
@@ -9,21 +9,24 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
9
9
|
const event_1 = require("./event");
|
|
10
10
|
exports.protobufPackage = "freym.streams.management";
|
|
11
11
|
function createBasePaginateStreamRequest() {
|
|
12
|
-
return { tenantId: "", stream: "", page: "0", perPage: "0" };
|
|
12
|
+
return { tenantId: "", topic: "", stream: "", page: "0", perPage: "0" };
|
|
13
13
|
}
|
|
14
14
|
exports.PaginateStreamRequest = {
|
|
15
15
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
16
|
if (message.tenantId !== "") {
|
|
17
17
|
writer.uint32(10).string(message.tenantId);
|
|
18
18
|
}
|
|
19
|
+
if (message.topic !== "") {
|
|
20
|
+
writer.uint32(18).string(message.topic);
|
|
21
|
+
}
|
|
19
22
|
if (message.stream !== "") {
|
|
20
|
-
writer.uint32(
|
|
23
|
+
writer.uint32(26).string(message.stream);
|
|
21
24
|
}
|
|
22
25
|
if (message.page !== "0") {
|
|
23
|
-
writer.uint32(
|
|
26
|
+
writer.uint32(32).int64(message.page);
|
|
24
27
|
}
|
|
25
28
|
if (message.perPage !== "0") {
|
|
26
|
-
writer.uint32(
|
|
29
|
+
writer.uint32(40).int64(message.perPage);
|
|
27
30
|
}
|
|
28
31
|
return writer;
|
|
29
32
|
},
|
|
@@ -44,18 +47,24 @@ exports.PaginateStreamRequest = {
|
|
|
44
47
|
if (tag !== 18) {
|
|
45
48
|
break;
|
|
46
49
|
}
|
|
47
|
-
message.
|
|
50
|
+
message.topic = reader.string();
|
|
48
51
|
continue;
|
|
49
52
|
case 3:
|
|
50
|
-
if (tag !==
|
|
53
|
+
if (tag !== 26) {
|
|
51
54
|
break;
|
|
52
55
|
}
|
|
53
|
-
message.
|
|
56
|
+
message.stream = reader.string();
|
|
54
57
|
continue;
|
|
55
58
|
case 4:
|
|
56
59
|
if (tag !== 32) {
|
|
57
60
|
break;
|
|
58
61
|
}
|
|
62
|
+
message.page = longToString(reader.int64());
|
|
63
|
+
continue;
|
|
64
|
+
case 5:
|
|
65
|
+
if (tag !== 40) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
59
68
|
message.perPage = longToString(reader.int64());
|
|
60
69
|
continue;
|
|
61
70
|
}
|
|
@@ -69,6 +78,7 @@ exports.PaginateStreamRequest = {
|
|
|
69
78
|
fromJSON(object) {
|
|
70
79
|
return {
|
|
71
80
|
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
81
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
72
82
|
stream: isSet(object.stream) ? globalThis.String(object.stream) : "",
|
|
73
83
|
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
74
84
|
perPage: isSet(object.perPage) ? globalThis.String(object.perPage) : "0",
|
|
@@ -79,6 +89,9 @@ exports.PaginateStreamRequest = {
|
|
|
79
89
|
if (message.tenantId !== "") {
|
|
80
90
|
obj.tenantId = message.tenantId;
|
|
81
91
|
}
|
|
92
|
+
if (message.topic !== "") {
|
|
93
|
+
obj.topic = message.topic;
|
|
94
|
+
}
|
|
82
95
|
if (message.stream !== "") {
|
|
83
96
|
obj.stream = message.stream;
|
|
84
97
|
}
|
|
@@ -94,12 +107,13 @@ exports.PaginateStreamRequest = {
|
|
|
94
107
|
return exports.PaginateStreamRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
95
108
|
},
|
|
96
109
|
fromPartial(object) {
|
|
97
|
-
var _a, _b, _c, _d;
|
|
110
|
+
var _a, _b, _c, _d, _e;
|
|
98
111
|
const message = createBasePaginateStreamRequest();
|
|
99
112
|
message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
|
|
100
|
-
message.
|
|
101
|
-
message.
|
|
102
|
-
message.
|
|
113
|
+
message.topic = (_b = object.topic) !== null && _b !== void 0 ? _b : "";
|
|
114
|
+
message.stream = (_c = object.stream) !== null && _c !== void 0 ? _c : "";
|
|
115
|
+
message.page = (_d = object.page) !== null && _d !== void 0 ? _d : "0";
|
|
116
|
+
message.perPage = (_e = object.perPage) !== null && _e !== void 0 ? _e : "0";
|
|
103
117
|
return message;
|
|
104
118
|
},
|
|
105
119
|
};
|
|
@@ -7,15 +7,18 @@ exports.IsStreamEmptyResponse = exports.IsStreamEmptyRequest = exports.protobufP
|
|
|
7
7
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
8
8
|
exports.protobufPackage = "freym.streams.management";
|
|
9
9
|
function createBaseIsStreamEmptyRequest() {
|
|
10
|
-
return { tenantId: "", stream: "" };
|
|
10
|
+
return { tenantId: "", topic: "", stream: "" };
|
|
11
11
|
}
|
|
12
12
|
exports.IsStreamEmptyRequest = {
|
|
13
13
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
14
14
|
if (message.tenantId !== "") {
|
|
15
15
|
writer.uint32(10).string(message.tenantId);
|
|
16
16
|
}
|
|
17
|
+
if (message.topic !== "") {
|
|
18
|
+
writer.uint32(18).string(message.topic);
|
|
19
|
+
}
|
|
17
20
|
if (message.stream !== "") {
|
|
18
|
-
writer.uint32(
|
|
21
|
+
writer.uint32(26).string(message.stream);
|
|
19
22
|
}
|
|
20
23
|
return writer;
|
|
21
24
|
},
|
|
@@ -36,6 +39,12 @@ exports.IsStreamEmptyRequest = {
|
|
|
36
39
|
if (tag !== 18) {
|
|
37
40
|
break;
|
|
38
41
|
}
|
|
42
|
+
message.topic = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 3:
|
|
45
|
+
if (tag !== 26) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
39
48
|
message.stream = reader.string();
|
|
40
49
|
continue;
|
|
41
50
|
}
|
|
@@ -49,6 +58,7 @@ exports.IsStreamEmptyRequest = {
|
|
|
49
58
|
fromJSON(object) {
|
|
50
59
|
return {
|
|
51
60
|
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
61
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
52
62
|
stream: isSet(object.stream) ? globalThis.String(object.stream) : "",
|
|
53
63
|
};
|
|
54
64
|
},
|
|
@@ -57,6 +67,9 @@ exports.IsStreamEmptyRequest = {
|
|
|
57
67
|
if (message.tenantId !== "") {
|
|
58
68
|
obj.tenantId = message.tenantId;
|
|
59
69
|
}
|
|
70
|
+
if (message.topic !== "") {
|
|
71
|
+
obj.topic = message.topic;
|
|
72
|
+
}
|
|
60
73
|
if (message.stream !== "") {
|
|
61
74
|
obj.stream = message.stream;
|
|
62
75
|
}
|
|
@@ -66,10 +79,11 @@ exports.IsStreamEmptyRequest = {
|
|
|
66
79
|
return exports.IsStreamEmptyRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
67
80
|
},
|
|
68
81
|
fromPartial(object) {
|
|
69
|
-
var _a, _b;
|
|
82
|
+
var _a, _b, _c;
|
|
70
83
|
const message = createBaseIsStreamEmptyRequest();
|
|
71
84
|
message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
|
|
72
|
-
message.
|
|
85
|
+
message.topic = (_b = object.topic) !== null && _b !== void 0 ? _b : "";
|
|
86
|
+
message.stream = (_c = object.stream) !== null && _c !== void 0 ? _c : "";
|
|
73
87
|
return message;
|
|
74
88
|
},
|
|
75
89
|
};
|