naijarea-ts 1.0.2
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/account.d.ts +229 -0
- package/dist/account.js +2211 -0
- package/dist/admin.d.ts +49 -0
- package/dist/admin.js +164 -0
- package/dist/auth.d.ts +242 -0
- package/dist/auth.js +1750 -0
- package/dist/chat.d.ts +49 -0
- package/dist/chat.js +163 -0
- package/dist/common.d.ts +60 -0
- package/dist/common.js +543 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +10 -0
- package/dist/google/api/field_behavior.d.ts +76 -0
- package/dist/google/api/field_behavior.js +146 -0
- package/dist/google/api/http.d.ts +379 -0
- package/dist/google/api/http.js +360 -0
- package/dist/google/api/httpbody.d.ts +78 -0
- package/dist/google/api/httpbody.js +127 -0
- package/dist/google/protobuf/any.d.ts +144 -0
- package/dist/google/protobuf/any.js +108 -0
- package/dist/google/protobuf/descriptor.d.ts +1338 -0
- package/dist/google/protobuf/descriptor.js +5427 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +190 -0
- package/dist/lookup.d.ts +876 -0
- package/dist/lookup.js +6841 -0
- package/dist/posts.d.ts +374 -0
- package/dist/posts.js +2784 -0
- package/package.json +43 -0
package/dist/common.js
ADDED
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.10.0
|
|
5
|
+
// protoc v6.33.2
|
|
6
|
+
// source: common.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.GetIDRequest = exports.BaseListRequest = exports.DeleteResponse = exports.Empty = exports.Error_DetailsEntry = exports.Error = exports.Metadata = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "pb";
|
|
12
|
+
function createBaseMetadata() {
|
|
13
|
+
return { page: 0, pageSize: 0, total: 0, totalPages: 0 };
|
|
14
|
+
}
|
|
15
|
+
exports.Metadata = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.page !== 0) {
|
|
18
|
+
writer.uint32(8).int32(message.page);
|
|
19
|
+
}
|
|
20
|
+
if (message.pageSize !== 0) {
|
|
21
|
+
writer.uint32(16).int32(message.pageSize);
|
|
22
|
+
}
|
|
23
|
+
if (message.total !== 0) {
|
|
24
|
+
writer.uint32(24).int32(message.total);
|
|
25
|
+
}
|
|
26
|
+
if (message.totalPages !== 0) {
|
|
27
|
+
writer.uint32(32).int32(message.totalPages);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
33
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseMetadata();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1: {
|
|
39
|
+
if (tag !== 8) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.page = reader.int32();
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
case 2: {
|
|
46
|
+
if (tag !== 16) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.pageSize = reader.int32();
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
case 3: {
|
|
53
|
+
if (tag !== 24) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.total = reader.int32();
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
case 4: {
|
|
60
|
+
if (tag !== 32) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
message.totalPages = reader.int32();
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
reader.skip(tag & 7);
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
fromJSON(object) {
|
|
75
|
+
return {
|
|
76
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
77
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
78
|
+
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
79
|
+
totalPages: isSet(object.totalPages) ? globalThis.Number(object.totalPages) : 0,
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
toJSON(message) {
|
|
83
|
+
const obj = {};
|
|
84
|
+
if (message.page !== 0) {
|
|
85
|
+
obj.page = Math.round(message.page);
|
|
86
|
+
}
|
|
87
|
+
if (message.pageSize !== 0) {
|
|
88
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
89
|
+
}
|
|
90
|
+
if (message.total !== 0) {
|
|
91
|
+
obj.total = Math.round(message.total);
|
|
92
|
+
}
|
|
93
|
+
if (message.totalPages !== 0) {
|
|
94
|
+
obj.totalPages = Math.round(message.totalPages);
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
},
|
|
98
|
+
create(base) {
|
|
99
|
+
return exports.Metadata.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
100
|
+
},
|
|
101
|
+
fromPartial(object) {
|
|
102
|
+
var _a, _b, _c, _d;
|
|
103
|
+
const message = createBaseMetadata();
|
|
104
|
+
message.page = (_a = object.page) !== null && _a !== void 0 ? _a : 0;
|
|
105
|
+
message.pageSize = (_b = object.pageSize) !== null && _b !== void 0 ? _b : 0;
|
|
106
|
+
message.total = (_c = object.total) !== null && _c !== void 0 ? _c : 0;
|
|
107
|
+
message.totalPages = (_d = object.totalPages) !== null && _d !== void 0 ? _d : 0;
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
function createBaseError() {
|
|
112
|
+
return { code: "", level: "", message: "", details: {} };
|
|
113
|
+
}
|
|
114
|
+
exports.Error = {
|
|
115
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
116
|
+
if (message.code !== "") {
|
|
117
|
+
writer.uint32(10).string(message.code);
|
|
118
|
+
}
|
|
119
|
+
if (message.level !== "") {
|
|
120
|
+
writer.uint32(18).string(message.level);
|
|
121
|
+
}
|
|
122
|
+
if (message.message !== "") {
|
|
123
|
+
writer.uint32(26).string(message.message);
|
|
124
|
+
}
|
|
125
|
+
Object.entries(message.details).forEach(([key, value]) => {
|
|
126
|
+
exports.Error_DetailsEntry.encode({ key: key, value }, writer.uint32(34).fork()).join();
|
|
127
|
+
});
|
|
128
|
+
return writer;
|
|
129
|
+
},
|
|
130
|
+
decode(input, length) {
|
|
131
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
132
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
133
|
+
const message = createBaseError();
|
|
134
|
+
while (reader.pos < end) {
|
|
135
|
+
const tag = reader.uint32();
|
|
136
|
+
switch (tag >>> 3) {
|
|
137
|
+
case 1: {
|
|
138
|
+
if (tag !== 10) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
message.code = reader.string();
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
case 2: {
|
|
145
|
+
if (tag !== 18) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.level = reader.string();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
case 3: {
|
|
152
|
+
if (tag !== 26) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.message = reader.string();
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
case 4: {
|
|
159
|
+
if (tag !== 34) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
const entry4 = exports.Error_DetailsEntry.decode(reader, reader.uint32());
|
|
163
|
+
if (entry4.value !== undefined) {
|
|
164
|
+
message.details[entry4.key] = entry4.value;
|
|
165
|
+
}
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
reader.skip(tag & 7);
|
|
173
|
+
}
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
fromJSON(object) {
|
|
177
|
+
return {
|
|
178
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
179
|
+
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
|
180
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
181
|
+
details: isObject(object.details)
|
|
182
|
+
? Object.entries(object.details).reduce((acc, [key, value]) => {
|
|
183
|
+
acc[key] = String(value);
|
|
184
|
+
return acc;
|
|
185
|
+
}, {})
|
|
186
|
+
: {},
|
|
187
|
+
};
|
|
188
|
+
},
|
|
189
|
+
toJSON(message) {
|
|
190
|
+
const obj = {};
|
|
191
|
+
if (message.code !== "") {
|
|
192
|
+
obj.code = message.code;
|
|
193
|
+
}
|
|
194
|
+
if (message.level !== "") {
|
|
195
|
+
obj.level = message.level;
|
|
196
|
+
}
|
|
197
|
+
if (message.message !== "") {
|
|
198
|
+
obj.message = message.message;
|
|
199
|
+
}
|
|
200
|
+
if (message.details) {
|
|
201
|
+
const entries = Object.entries(message.details);
|
|
202
|
+
if (entries.length > 0) {
|
|
203
|
+
obj.details = {};
|
|
204
|
+
entries.forEach(([k, v]) => {
|
|
205
|
+
obj.details[k] = v;
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return obj;
|
|
210
|
+
},
|
|
211
|
+
create(base) {
|
|
212
|
+
return exports.Error.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
213
|
+
},
|
|
214
|
+
fromPartial(object) {
|
|
215
|
+
var _a, _b, _c, _d;
|
|
216
|
+
const message = createBaseError();
|
|
217
|
+
message.code = (_a = object.code) !== null && _a !== void 0 ? _a : "";
|
|
218
|
+
message.level = (_b = object.level) !== null && _b !== void 0 ? _b : "";
|
|
219
|
+
message.message = (_c = object.message) !== null && _c !== void 0 ? _c : "";
|
|
220
|
+
message.details = Object.entries((_d = object.details) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
221
|
+
if (value !== undefined) {
|
|
222
|
+
acc[key] = globalThis.String(value);
|
|
223
|
+
}
|
|
224
|
+
return acc;
|
|
225
|
+
}, {});
|
|
226
|
+
return message;
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
function createBaseError_DetailsEntry() {
|
|
230
|
+
return { key: "", value: "" };
|
|
231
|
+
}
|
|
232
|
+
exports.Error_DetailsEntry = {
|
|
233
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
234
|
+
if (message.key !== "") {
|
|
235
|
+
writer.uint32(10).string(message.key);
|
|
236
|
+
}
|
|
237
|
+
if (message.value !== "") {
|
|
238
|
+
writer.uint32(18).string(message.value);
|
|
239
|
+
}
|
|
240
|
+
return writer;
|
|
241
|
+
},
|
|
242
|
+
decode(input, length) {
|
|
243
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
244
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
245
|
+
const message = createBaseError_DetailsEntry();
|
|
246
|
+
while (reader.pos < end) {
|
|
247
|
+
const tag = reader.uint32();
|
|
248
|
+
switch (tag >>> 3) {
|
|
249
|
+
case 1: {
|
|
250
|
+
if (tag !== 10) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
message.key = reader.string();
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
case 2: {
|
|
257
|
+
if (tag !== 18) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
message.value = reader.string();
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
reader.skip(tag & 7);
|
|
268
|
+
}
|
|
269
|
+
return message;
|
|
270
|
+
},
|
|
271
|
+
fromJSON(object) {
|
|
272
|
+
return {
|
|
273
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
274
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
275
|
+
};
|
|
276
|
+
},
|
|
277
|
+
toJSON(message) {
|
|
278
|
+
const obj = {};
|
|
279
|
+
if (message.key !== "") {
|
|
280
|
+
obj.key = message.key;
|
|
281
|
+
}
|
|
282
|
+
if (message.value !== "") {
|
|
283
|
+
obj.value = message.value;
|
|
284
|
+
}
|
|
285
|
+
return obj;
|
|
286
|
+
},
|
|
287
|
+
create(base) {
|
|
288
|
+
return exports.Error_DetailsEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
289
|
+
},
|
|
290
|
+
fromPartial(object) {
|
|
291
|
+
var _a, _b;
|
|
292
|
+
const message = createBaseError_DetailsEntry();
|
|
293
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
294
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
function createBaseEmpty() {
|
|
299
|
+
return {};
|
|
300
|
+
}
|
|
301
|
+
exports.Empty = {
|
|
302
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
303
|
+
return writer;
|
|
304
|
+
},
|
|
305
|
+
decode(input, length) {
|
|
306
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
307
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
308
|
+
const message = createBaseEmpty();
|
|
309
|
+
while (reader.pos < end) {
|
|
310
|
+
const tag = reader.uint32();
|
|
311
|
+
switch (tag >>> 3) {
|
|
312
|
+
}
|
|
313
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
reader.skip(tag & 7);
|
|
317
|
+
}
|
|
318
|
+
return message;
|
|
319
|
+
},
|
|
320
|
+
fromJSON(_) {
|
|
321
|
+
return {};
|
|
322
|
+
},
|
|
323
|
+
toJSON(_) {
|
|
324
|
+
const obj = {};
|
|
325
|
+
return obj;
|
|
326
|
+
},
|
|
327
|
+
create(base) {
|
|
328
|
+
return exports.Empty.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
329
|
+
},
|
|
330
|
+
fromPartial(_) {
|
|
331
|
+
const message = createBaseEmpty();
|
|
332
|
+
return message;
|
|
333
|
+
},
|
|
334
|
+
};
|
|
335
|
+
function createBaseDeleteResponse() {
|
|
336
|
+
return { message: "" };
|
|
337
|
+
}
|
|
338
|
+
exports.DeleteResponse = {
|
|
339
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
340
|
+
if (message.message !== "") {
|
|
341
|
+
writer.uint32(10).string(message.message);
|
|
342
|
+
}
|
|
343
|
+
return writer;
|
|
344
|
+
},
|
|
345
|
+
decode(input, length) {
|
|
346
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
347
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
348
|
+
const message = createBaseDeleteResponse();
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
const tag = reader.uint32();
|
|
351
|
+
switch (tag >>> 3) {
|
|
352
|
+
case 1: {
|
|
353
|
+
if (tag !== 10) {
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
message.message = reader.string();
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
reader.skip(tag & 7);
|
|
364
|
+
}
|
|
365
|
+
return message;
|
|
366
|
+
},
|
|
367
|
+
fromJSON(object) {
|
|
368
|
+
return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
|
|
369
|
+
},
|
|
370
|
+
toJSON(message) {
|
|
371
|
+
const obj = {};
|
|
372
|
+
if (message.message !== "") {
|
|
373
|
+
obj.message = message.message;
|
|
374
|
+
}
|
|
375
|
+
return obj;
|
|
376
|
+
},
|
|
377
|
+
create(base) {
|
|
378
|
+
return exports.DeleteResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
379
|
+
},
|
|
380
|
+
fromPartial(object) {
|
|
381
|
+
var _a;
|
|
382
|
+
const message = createBaseDeleteResponse();
|
|
383
|
+
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
|
|
384
|
+
return message;
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
function createBaseBaseListRequest() {
|
|
388
|
+
return { page: 0, pageSize: 0, sortBy: "", orderBy: "" };
|
|
389
|
+
}
|
|
390
|
+
exports.BaseListRequest = {
|
|
391
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
392
|
+
if (message.page !== 0) {
|
|
393
|
+
writer.uint32(8).int32(message.page);
|
|
394
|
+
}
|
|
395
|
+
if (message.pageSize !== 0) {
|
|
396
|
+
writer.uint32(16).int32(message.pageSize);
|
|
397
|
+
}
|
|
398
|
+
if (message.sortBy !== "") {
|
|
399
|
+
writer.uint32(26).string(message.sortBy);
|
|
400
|
+
}
|
|
401
|
+
if (message.orderBy !== "") {
|
|
402
|
+
writer.uint32(34).string(message.orderBy);
|
|
403
|
+
}
|
|
404
|
+
return writer;
|
|
405
|
+
},
|
|
406
|
+
decode(input, length) {
|
|
407
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
408
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
409
|
+
const message = createBaseBaseListRequest();
|
|
410
|
+
while (reader.pos < end) {
|
|
411
|
+
const tag = reader.uint32();
|
|
412
|
+
switch (tag >>> 3) {
|
|
413
|
+
case 1: {
|
|
414
|
+
if (tag !== 8) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.page = reader.int32();
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 2: {
|
|
421
|
+
if (tag !== 16) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.pageSize = reader.int32();
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
case 3: {
|
|
428
|
+
if (tag !== 26) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
message.sortBy = reader.string();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 4: {
|
|
435
|
+
if (tag !== 34) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.orderBy = reader.string();
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
reader.skip(tag & 7);
|
|
446
|
+
}
|
|
447
|
+
return message;
|
|
448
|
+
},
|
|
449
|
+
fromJSON(object) {
|
|
450
|
+
return {
|
|
451
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
452
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
|
453
|
+
sortBy: isSet(object.sortBy) ? globalThis.String(object.sortBy) : "",
|
|
454
|
+
orderBy: isSet(object.orderBy) ? globalThis.String(object.orderBy) : "",
|
|
455
|
+
};
|
|
456
|
+
},
|
|
457
|
+
toJSON(message) {
|
|
458
|
+
const obj = {};
|
|
459
|
+
if (message.page !== 0) {
|
|
460
|
+
obj.page = Math.round(message.page);
|
|
461
|
+
}
|
|
462
|
+
if (message.pageSize !== 0) {
|
|
463
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
464
|
+
}
|
|
465
|
+
if (message.sortBy !== "") {
|
|
466
|
+
obj.sortBy = message.sortBy;
|
|
467
|
+
}
|
|
468
|
+
if (message.orderBy !== "") {
|
|
469
|
+
obj.orderBy = message.orderBy;
|
|
470
|
+
}
|
|
471
|
+
return obj;
|
|
472
|
+
},
|
|
473
|
+
create(base) {
|
|
474
|
+
return exports.BaseListRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
475
|
+
},
|
|
476
|
+
fromPartial(object) {
|
|
477
|
+
var _a, _b, _c, _d;
|
|
478
|
+
const message = createBaseBaseListRequest();
|
|
479
|
+
message.page = (_a = object.page) !== null && _a !== void 0 ? _a : 0;
|
|
480
|
+
message.pageSize = (_b = object.pageSize) !== null && _b !== void 0 ? _b : 0;
|
|
481
|
+
message.sortBy = (_c = object.sortBy) !== null && _c !== void 0 ? _c : "";
|
|
482
|
+
message.orderBy = (_d = object.orderBy) !== null && _d !== void 0 ? _d : "";
|
|
483
|
+
return message;
|
|
484
|
+
},
|
|
485
|
+
};
|
|
486
|
+
function createBaseGetIDRequest() {
|
|
487
|
+
return { id: "" };
|
|
488
|
+
}
|
|
489
|
+
exports.GetIDRequest = {
|
|
490
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
491
|
+
if (message.id !== "") {
|
|
492
|
+
writer.uint32(10).string(message.id);
|
|
493
|
+
}
|
|
494
|
+
return writer;
|
|
495
|
+
},
|
|
496
|
+
decode(input, length) {
|
|
497
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
498
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
499
|
+
const message = createBaseGetIDRequest();
|
|
500
|
+
while (reader.pos < end) {
|
|
501
|
+
const tag = reader.uint32();
|
|
502
|
+
switch (tag >>> 3) {
|
|
503
|
+
case 1: {
|
|
504
|
+
if (tag !== 10) {
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
message.id = reader.string();
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
512
|
+
break;
|
|
513
|
+
}
|
|
514
|
+
reader.skip(tag & 7);
|
|
515
|
+
}
|
|
516
|
+
return message;
|
|
517
|
+
},
|
|
518
|
+
fromJSON(object) {
|
|
519
|
+
return { id: isSet(object.id) ? globalThis.String(object.id) : "" };
|
|
520
|
+
},
|
|
521
|
+
toJSON(message) {
|
|
522
|
+
const obj = {};
|
|
523
|
+
if (message.id !== "") {
|
|
524
|
+
obj.id = message.id;
|
|
525
|
+
}
|
|
526
|
+
return obj;
|
|
527
|
+
},
|
|
528
|
+
create(base) {
|
|
529
|
+
return exports.GetIDRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
530
|
+
},
|
|
531
|
+
fromPartial(object) {
|
|
532
|
+
var _a;
|
|
533
|
+
const message = createBaseGetIDRequest();
|
|
534
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
535
|
+
return message;
|
|
536
|
+
},
|
|
537
|
+
};
|
|
538
|
+
function isObject(value) {
|
|
539
|
+
return typeof value === "object" && value !== null;
|
|
540
|
+
}
|
|
541
|
+
function isSet(value) {
|
|
542
|
+
return value !== null && value !== undefined;
|
|
543
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "google.api";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.10.0
|
|
5
|
+
// protoc v6.33.2
|
|
6
|
+
// source: google/api/annotations.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
exports.protobufPackage = "google.api";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const protobufPackage = "google.api";
|
|
2
|
+
/**
|
|
3
|
+
* An indicator of the behavior of a given field (for example, that a field
|
|
4
|
+
* is required in requests, or given as output but ignored as input).
|
|
5
|
+
* This **does not** change the behavior in protocol buffers itself; it only
|
|
6
|
+
* denotes the behavior and may affect how API tooling handles the field.
|
|
7
|
+
*
|
|
8
|
+
* Note: This enum **may** receive new values in the future.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum FieldBehavior {
|
|
11
|
+
/** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */
|
|
12
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
13
|
+
/**
|
|
14
|
+
* OPTIONAL - Specifically denotes a field as optional.
|
|
15
|
+
* While all fields in protocol buffers are optional, this may be specified
|
|
16
|
+
* for emphasis if appropriate.
|
|
17
|
+
*/
|
|
18
|
+
OPTIONAL = 1,
|
|
19
|
+
/**
|
|
20
|
+
* REQUIRED - Denotes a field as required.
|
|
21
|
+
* This indicates that the field **must** be provided as part of the request,
|
|
22
|
+
* and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
|
23
|
+
*/
|
|
24
|
+
REQUIRED = 2,
|
|
25
|
+
/**
|
|
26
|
+
* OUTPUT_ONLY - Denotes a field as output only.
|
|
27
|
+
* This indicates that the field is provided in responses, but including the
|
|
28
|
+
* field in a request does nothing (the server *must* ignore it and
|
|
29
|
+
* *must not* throw an error as a result of the field's presence).
|
|
30
|
+
*/
|
|
31
|
+
OUTPUT_ONLY = 3,
|
|
32
|
+
/**
|
|
33
|
+
* INPUT_ONLY - Denotes a field as input only.
|
|
34
|
+
* This indicates that the field is provided in requests, and the
|
|
35
|
+
* corresponding field is not included in output.
|
|
36
|
+
*/
|
|
37
|
+
INPUT_ONLY = 4,
|
|
38
|
+
/**
|
|
39
|
+
* IMMUTABLE - Denotes a field as immutable.
|
|
40
|
+
* This indicates that the field may be set once in a request to create a
|
|
41
|
+
* resource, but may not be changed thereafter.
|
|
42
|
+
*/
|
|
43
|
+
IMMUTABLE = 5,
|
|
44
|
+
/**
|
|
45
|
+
* UNORDERED_LIST - Denotes that a (repeated) field is an unordered list.
|
|
46
|
+
* This indicates that the service may provide the elements of the list
|
|
47
|
+
* in any arbitrary order, rather than the order the user originally
|
|
48
|
+
* provided. Additionally, the list's order may or may not be stable.
|
|
49
|
+
*/
|
|
50
|
+
UNORDERED_LIST = 6,
|
|
51
|
+
/**
|
|
52
|
+
* NON_EMPTY_DEFAULT - Denotes that this field returns a non-empty default value if not set.
|
|
53
|
+
* This indicates that if the user provides the empty value in a request,
|
|
54
|
+
* a non-empty value will be returned. The user will not be aware of what
|
|
55
|
+
* non-empty value to expect.
|
|
56
|
+
*/
|
|
57
|
+
NON_EMPTY_DEFAULT = 7,
|
|
58
|
+
/**
|
|
59
|
+
* IDENTIFIER - Denotes that the field in a resource (a message annotated with
|
|
60
|
+
* google.api.resource) is used in the resource name to uniquely identify the
|
|
61
|
+
* resource. For AIP-compliant APIs, this should only be applied to the
|
|
62
|
+
* `name` field on the resource.
|
|
63
|
+
*
|
|
64
|
+
* This behavior should not be applied to references to other resources within
|
|
65
|
+
* the message.
|
|
66
|
+
*
|
|
67
|
+
* The identifier field of resources often have different field behavior
|
|
68
|
+
* depending on the request it is embedded in (e.g. for Create methods name
|
|
69
|
+
* is optional and unused, while for Update methods it is required). Instead
|
|
70
|
+
* of method-specific annotations, only `IDENTIFIER` is required.
|
|
71
|
+
*/
|
|
72
|
+
IDENTIFIER = 8,
|
|
73
|
+
UNRECOGNIZED = -1
|
|
74
|
+
}
|
|
75
|
+
export declare function fieldBehaviorFromJSON(object: any): FieldBehavior;
|
|
76
|
+
export declare function fieldBehaviorToJSON(object: FieldBehavior): string;
|