@fraym/proto 0.26.1 → 0.27.0
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.
|
@@ -8,6 +8,7 @@ export interface GetEntryRequest {
|
|
|
8
8
|
filter: DataFilter | undefined;
|
|
9
9
|
returnEmptyDataIfNotFound: boolean;
|
|
10
10
|
wait: DataWait | undefined;
|
|
11
|
+
useStrongConsistency: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface GetEntryListRequest {
|
|
13
14
|
type: string;
|
|
@@ -16,6 +17,7 @@ export interface GetEntryListRequest {
|
|
|
16
17
|
page: string;
|
|
17
18
|
filter: DataFilter | undefined;
|
|
18
19
|
order: DataOrder[];
|
|
20
|
+
useStrongConsistency: boolean;
|
|
19
21
|
}
|
|
20
22
|
export interface DataWait {
|
|
21
23
|
conditionFilter: DataFilter | undefined;
|
|
@@ -9,7 +9,15 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
9
9
|
const shared_1 = require("./shared");
|
|
10
10
|
exports.protobufPackage = "freym.crud.delivery";
|
|
11
11
|
function createBaseGetEntryRequest() {
|
|
12
|
-
return {
|
|
12
|
+
return {
|
|
13
|
+
type: "",
|
|
14
|
+
auth: undefined,
|
|
15
|
+
id: "",
|
|
16
|
+
filter: undefined,
|
|
17
|
+
returnEmptyDataIfNotFound: false,
|
|
18
|
+
wait: undefined,
|
|
19
|
+
useStrongConsistency: false,
|
|
20
|
+
};
|
|
13
21
|
}
|
|
14
22
|
exports.GetEntryRequest = {
|
|
15
23
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -31,6 +39,9 @@ exports.GetEntryRequest = {
|
|
|
31
39
|
if (message.wait !== undefined) {
|
|
32
40
|
exports.DataWait.encode(message.wait, writer.uint32(50).fork()).ldelim();
|
|
33
41
|
}
|
|
42
|
+
if (message.useStrongConsistency === true) {
|
|
43
|
+
writer.uint32(56).bool(message.useStrongConsistency);
|
|
44
|
+
}
|
|
34
45
|
return writer;
|
|
35
46
|
},
|
|
36
47
|
decode(input, length) {
|
|
@@ -76,6 +87,12 @@ exports.GetEntryRequest = {
|
|
|
76
87
|
}
|
|
77
88
|
message.wait = exports.DataWait.decode(reader, reader.uint32());
|
|
78
89
|
continue;
|
|
90
|
+
case 7:
|
|
91
|
+
if (tag !== 56) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.useStrongConsistency = reader.bool();
|
|
95
|
+
continue;
|
|
79
96
|
}
|
|
80
97
|
if ((tag & 7) === 4 || tag === 0) {
|
|
81
98
|
break;
|
|
@@ -94,6 +111,9 @@ exports.GetEntryRequest = {
|
|
|
94
111
|
? globalThis.Boolean(object.returnEmptyDataIfNotFound)
|
|
95
112
|
: false,
|
|
96
113
|
wait: isSet(object.wait) ? exports.DataWait.fromJSON(object.wait) : undefined,
|
|
114
|
+
useStrongConsistency: isSet(object.useStrongConsistency)
|
|
115
|
+
? globalThis.Boolean(object.useStrongConsistency)
|
|
116
|
+
: false,
|
|
97
117
|
};
|
|
98
118
|
},
|
|
99
119
|
toJSON(message) {
|
|
@@ -116,13 +136,16 @@ exports.GetEntryRequest = {
|
|
|
116
136
|
if (message.wait !== undefined) {
|
|
117
137
|
obj.wait = exports.DataWait.toJSON(message.wait);
|
|
118
138
|
}
|
|
139
|
+
if (message.useStrongConsistency === true) {
|
|
140
|
+
obj.useStrongConsistency = message.useStrongConsistency;
|
|
141
|
+
}
|
|
119
142
|
return obj;
|
|
120
143
|
},
|
|
121
144
|
create(base) {
|
|
122
145
|
return exports.GetEntryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
123
146
|
},
|
|
124
147
|
fromPartial(object) {
|
|
125
|
-
var _a, _b, _c;
|
|
148
|
+
var _a, _b, _c, _d;
|
|
126
149
|
const message = createBaseGetEntryRequest();
|
|
127
150
|
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : "";
|
|
128
151
|
message.auth = (object.auth !== undefined && object.auth !== null) ? shared_1.AuthData.fromPartial(object.auth) : undefined;
|
|
@@ -132,11 +155,20 @@ exports.GetEntryRequest = {
|
|
|
132
155
|
: undefined;
|
|
133
156
|
message.returnEmptyDataIfNotFound = (_c = object.returnEmptyDataIfNotFound) !== null && _c !== void 0 ? _c : false;
|
|
134
157
|
message.wait = (object.wait !== undefined && object.wait !== null) ? exports.DataWait.fromPartial(object.wait) : undefined;
|
|
158
|
+
message.useStrongConsistency = (_d = object.useStrongConsistency) !== null && _d !== void 0 ? _d : false;
|
|
135
159
|
return message;
|
|
136
160
|
},
|
|
137
161
|
};
|
|
138
162
|
function createBaseGetEntryListRequest() {
|
|
139
|
-
return {
|
|
163
|
+
return {
|
|
164
|
+
type: "",
|
|
165
|
+
auth: undefined,
|
|
166
|
+
limit: "0",
|
|
167
|
+
page: "0",
|
|
168
|
+
filter: undefined,
|
|
169
|
+
order: [],
|
|
170
|
+
useStrongConsistency: false,
|
|
171
|
+
};
|
|
140
172
|
}
|
|
141
173
|
exports.GetEntryListRequest = {
|
|
142
174
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -158,6 +190,9 @@ exports.GetEntryListRequest = {
|
|
|
158
190
|
for (const v of message.order) {
|
|
159
191
|
exports.DataOrder.encode(v, writer.uint32(66).fork()).ldelim();
|
|
160
192
|
}
|
|
193
|
+
if (message.useStrongConsistency === true) {
|
|
194
|
+
writer.uint32(72).bool(message.useStrongConsistency);
|
|
195
|
+
}
|
|
161
196
|
return writer;
|
|
162
197
|
},
|
|
163
198
|
decode(input, length) {
|
|
@@ -203,6 +238,12 @@ exports.GetEntryListRequest = {
|
|
|
203
238
|
}
|
|
204
239
|
message.order.push(exports.DataOrder.decode(reader, reader.uint32()));
|
|
205
240
|
continue;
|
|
241
|
+
case 9:
|
|
242
|
+
if (tag !== 72) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
message.useStrongConsistency = reader.bool();
|
|
246
|
+
continue;
|
|
206
247
|
}
|
|
207
248
|
if ((tag & 7) === 4 || tag === 0) {
|
|
208
249
|
break;
|
|
@@ -219,6 +260,9 @@ exports.GetEntryListRequest = {
|
|
|
219
260
|
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
220
261
|
filter: isSet(object.filter) ? shared_1.DataFilter.fromJSON(object.filter) : undefined,
|
|
221
262
|
order: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.order) ? object.order.map((e) => exports.DataOrder.fromJSON(e)) : [],
|
|
263
|
+
useStrongConsistency: isSet(object.useStrongConsistency)
|
|
264
|
+
? globalThis.Boolean(object.useStrongConsistency)
|
|
265
|
+
: false,
|
|
222
266
|
};
|
|
223
267
|
},
|
|
224
268
|
toJSON(message) {
|
|
@@ -242,13 +286,16 @@ exports.GetEntryListRequest = {
|
|
|
242
286
|
if ((_a = message.order) === null || _a === void 0 ? void 0 : _a.length) {
|
|
243
287
|
obj.order = message.order.map((e) => exports.DataOrder.toJSON(e));
|
|
244
288
|
}
|
|
289
|
+
if (message.useStrongConsistency === true) {
|
|
290
|
+
obj.useStrongConsistency = message.useStrongConsistency;
|
|
291
|
+
}
|
|
245
292
|
return obj;
|
|
246
293
|
},
|
|
247
294
|
create(base) {
|
|
248
295
|
return exports.GetEntryListRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
249
296
|
},
|
|
250
297
|
fromPartial(object) {
|
|
251
|
-
var _a, _b, _c, _d;
|
|
298
|
+
var _a, _b, _c, _d, _e;
|
|
252
299
|
const message = createBaseGetEntryListRequest();
|
|
253
300
|
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : "";
|
|
254
301
|
message.auth = (object.auth !== undefined && object.auth !== null) ? shared_1.AuthData.fromPartial(object.auth) : undefined;
|
|
@@ -258,6 +305,7 @@ exports.GetEntryListRequest = {
|
|
|
258
305
|
? shared_1.DataFilter.fromPartial(object.filter)
|
|
259
306
|
: undefined;
|
|
260
307
|
message.order = ((_d = object.order) === null || _d === void 0 ? void 0 : _d.map((e) => exports.DataOrder.fromPartial(e))) || [];
|
|
308
|
+
message.useStrongConsistency = (_e = object.useStrongConsistency) !== null && _e !== void 0 ? _e : false;
|
|
261
309
|
return message;
|
|
262
310
|
},
|
|
263
311
|
};
|