@fivenet-app/gen 2025.4.8 → 2025.5.3
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/README.md +7 -1
- package/clients.ts +48 -42
- package/google/protobuf/any.ts +1 -1
- package/google/protobuf/descriptor.ts +108 -50
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +3 -2
- package/perms.ts +96 -91
- package/resources/accounts/accounts.ts +39 -3
- package/resources/accounts/oauth2.ts +6 -6
- package/resources/{rector → audit}/audit.ts +22 -23
- package/resources/calendar/access.ts +4 -4
- package/resources/calendar/calendar.ts +1 -1
- package/resources/centrum/attributes.ts +6 -2
- package/resources/centrum/dispatches.ts +4 -4
- package/resources/centrum/disponents.ts +2 -2
- package/resources/centrum/settings.ts +3 -3
- package/resources/centrum/units.ts +4 -4
- package/resources/centrum/{access.ts → units_access.ts} +4 -4
- package/resources/centrum/user_unit.ts +2 -2
- package/resources/common/content/content.ts +2 -2
- package/resources/common/cron/cron.ts +53 -12
- package/resources/common/database/database.ts +1 -1
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +1 -1
- package/resources/common/i18n.ts +1 -1
- package/resources/common/tests/objects.ts +1 -1
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +4 -4
- package/resources/documents/activity.ts +7 -7
- package/resources/documents/category.ts +49 -26
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +5 -5
- package/resources/documents/workflow.ts +2 -2
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +4 -4
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +1 -1
- package/resources/internet/page.ts +3 -3
- package/resources/internet/search.ts +1 -1
- package/resources/jobs/activity.ts +114 -114
- package/resources/jobs/colleagues.ts +59 -48
- package/resources/jobs/conduct.ts +52 -41
- package/resources/{users → jobs}/job_props.ts +28 -41
- package/resources/{users → jobs}/job_settings.ts +54 -54
- package/resources/{users → jobs}/jobs.ts +12 -12
- package/resources/jobs/labels.ts +29 -17
- package/resources/jobs/timeclock.ts +7 -7
- package/resources/laws/laws.ts +2 -2
- package/resources/livemap/livemap.ts +1 -1
- package/resources/livemap/tracker.ts +3 -3
- package/resources/mailer/access.ts +5 -5
- package/resources/mailer/email.ts +11 -23
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +2 -2
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +2 -2
- package/resources/notifications/events.ts +23 -11
- package/resources/notifications/notifications.ts +1 -1
- package/resources/permissions/attributes.ts +689 -0
- package/resources/permissions/permissions.ts +4 -727
- package/resources/qualifications/access.ts +2 -2
- package/resources/qualifications/exam.ts +7 -7
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/{rector → settings}/banner.ts +5 -5
- package/resources/{rector → settings}/config.ts +83 -83
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +20 -20
- package/resources/sync/data.ts +26 -26
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +196 -196
- package/resources/users/labels.ts +28 -28
- package/resources/users/licenses.ts +12 -12
- package/resources/users/props.ts +28 -17
- package/resources/users/users.ts +2 -2
- package/resources/vehicles/vehicles.ts +4 -4
- package/resources/wiki/access.ts +4 -4
- package/resources/wiki/activity.ts +7 -7
- package/resources/wiki/page.ts +2 -2
- package/services/auth/auth.client.ts +8 -8
- package/services/auth/auth.ts +32 -32
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +6 -6
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +8 -8
- package/services/{citizenstore/citizenstore.client.ts → citizens/citizens.client.ts} +37 -37
- package/services/{citizenstore/citizenstore.ts → citizens/citizens.ts} +72 -72
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +17 -17
- package/services/{docstore/docstore.client.ts → documents/documents.client.ts} +163 -180
- package/services/{docstore/docstore.ts → documents/documents.ts} +280 -377
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +2 -2
- package/services/internet/domain.client.ts +1 -1
- package/services/internet/domain.ts +3 -3
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +2 -2
- package/services/jobs/conduct.client.ts +9 -9
- package/services/jobs/conduct.ts +4 -4
- package/services/jobs/jobs.client.ts +15 -15
- package/services/jobs/jobs.ts +77 -77
- package/services/jobs/timeclock.client.ts +9 -9
- package/services/jobs/timeclock.ts +15 -15
- package/services/{livemapper → livemap}/livemap.client.ts +16 -16
- package/services/{livemapper → livemap}/livemap.ts +63 -52
- package/services/mailer/mailer.client.ts +5 -5
- package/services/mailer/mailer.ts +6 -6
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +5 -5
- package/services/qualifications/qualifications.client.ts +1 -1
- package/services/qualifications/qualifications.ts +4 -4
- package/services/settings/accounts.client.ts +92 -0
- package/services/settings/accounts.ts +526 -0
- package/services/{rector → settings}/config.client.ts +18 -18
- package/services/{rector → settings}/config.ts +26 -26
- package/services/settings/cron.client.ts +41 -0
- package/services/settings/cron.ts +119 -0
- package/services/{rector → settings}/filestore.client.ts +22 -22
- package/services/{rector → settings}/filestore.ts +23 -23
- package/services/{rector → settings}/laws.client.ts +26 -26
- package/services/{rector → settings}/laws.ts +28 -28
- package/services/settings/settings.client.ts +262 -0
- package/services/{rector/rector.ts → settings/settings.ts} +558 -149
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +1 -1
- package/services/sync/sync.client.ts +1 -1
- package/services/sync/sync.ts +33 -33
- package/services/{dmv → vehicles}/vehicles.client.ts +12 -12
- package/services/{dmv → vehicles}/vehicles.ts +11 -11
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +3 -3
- package/svcs.ts +247 -235
- package/services/rector/rector.client.ts +0 -211
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/colleagues.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -62,9 +62,9 @@ export interface Colleague {
|
|
|
62
62
|
*/
|
|
63
63
|
avatar?: File;
|
|
64
64
|
/**
|
|
65
|
-
* @generated from protobuf field: resources.jobs.
|
|
65
|
+
* @generated from protobuf field: resources.jobs.ColleagueProps props = 18;
|
|
66
66
|
*/
|
|
67
|
-
props?:
|
|
67
|
+
props?: ColleagueProps; // @gotags: alias:"colleague_props"
|
|
68
68
|
/**
|
|
69
69
|
* @sanitize: method=StripTags
|
|
70
70
|
*
|
|
@@ -73,9 +73,9 @@ export interface Colleague {
|
|
|
73
73
|
email?: string;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
* @generated from protobuf message resources.jobs.
|
|
76
|
+
* @generated from protobuf message resources.jobs.ColleagueProps
|
|
77
77
|
*/
|
|
78
|
-
export interface
|
|
78
|
+
export interface ColleagueProps {
|
|
79
79
|
/**
|
|
80
80
|
* @generated from protobuf field: int32 user_id = 1;
|
|
81
81
|
*/
|
|
@@ -85,29 +85,33 @@ export interface JobsUserProps {
|
|
|
85
85
|
*/
|
|
86
86
|
job: string;
|
|
87
87
|
/**
|
|
88
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp
|
|
88
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 3;
|
|
89
|
+
*/
|
|
90
|
+
deletedAt?: Timestamp;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp absence_begin = 4;
|
|
89
93
|
*/
|
|
90
94
|
absenceBegin?: Timestamp;
|
|
91
95
|
/**
|
|
92
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp absence_end =
|
|
96
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp absence_end = 5;
|
|
93
97
|
*/
|
|
94
98
|
absenceEnd?: Timestamp;
|
|
95
99
|
/**
|
|
96
100
|
* @sanitize: method=StripTags
|
|
97
101
|
*
|
|
98
|
-
* @generated from protobuf field: optional string note =
|
|
102
|
+
* @generated from protobuf field: optional string note = 6;
|
|
99
103
|
*/
|
|
100
104
|
note?: string;
|
|
101
105
|
/**
|
|
102
|
-
* @generated from protobuf field: optional resources.jobs.Labels labels =
|
|
106
|
+
* @generated from protobuf field: optional resources.jobs.Labels labels = 7;
|
|
103
107
|
*/
|
|
104
108
|
labels?: Labels;
|
|
105
109
|
/**
|
|
106
|
-
* @generated from protobuf field: optional string name_prefix =
|
|
110
|
+
* @generated from protobuf field: optional string name_prefix = 8;
|
|
107
111
|
*/
|
|
108
112
|
namePrefix?: string;
|
|
109
113
|
/**
|
|
110
|
-
* @generated from protobuf field: optional string name_suffix =
|
|
114
|
+
* @generated from protobuf field: optional string name_suffix = 9;
|
|
111
115
|
*/
|
|
112
116
|
nameSuffix?: string;
|
|
113
117
|
}
|
|
@@ -126,7 +130,7 @@ class Colleague$Type extends MessageType<Colleague> {
|
|
|
126
130
|
{ no: 9, name: "dateofbirth", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "10" } } } },
|
|
127
131
|
{ no: 12, name: "phone_number", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
128
132
|
{ no: 17, name: "avatar", kind: "message", T: () => File },
|
|
129
|
-
{ no: 18, name: "props", kind: "message", T: () =>
|
|
133
|
+
{ no: 18, name: "props", kind: "message", T: () => ColleagueProps },
|
|
130
134
|
{ no: 19, name: "email", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "6", maxLen: "80" } } } }
|
|
131
135
|
]);
|
|
132
136
|
}
|
|
@@ -180,8 +184,8 @@ class Colleague$Type extends MessageType<Colleague> {
|
|
|
180
184
|
case /* optional resources.filestore.File avatar */ 17:
|
|
181
185
|
message.avatar = File.internalBinaryRead(reader, reader.uint32(), options, message.avatar);
|
|
182
186
|
break;
|
|
183
|
-
case /* resources.jobs.
|
|
184
|
-
message.props =
|
|
187
|
+
case /* resources.jobs.ColleagueProps props */ 18:
|
|
188
|
+
message.props = ColleagueProps.internalBinaryRead(reader, reader.uint32(), options, message.props);
|
|
185
189
|
break;
|
|
186
190
|
case /* optional string email */ 19:
|
|
187
191
|
message.email = reader.string();
|
|
@@ -231,9 +235,9 @@ class Colleague$Type extends MessageType<Colleague> {
|
|
|
231
235
|
/* optional resources.filestore.File avatar = 17; */
|
|
232
236
|
if (message.avatar)
|
|
233
237
|
File.internalBinaryWrite(message.avatar, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
234
|
-
/* resources.jobs.
|
|
238
|
+
/* resources.jobs.ColleagueProps props = 18; */
|
|
235
239
|
if (message.props)
|
|
236
|
-
|
|
240
|
+
ColleagueProps.internalBinaryWrite(message.props, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
237
241
|
/* optional string email = 19; */
|
|
238
242
|
if (message.email !== undefined)
|
|
239
243
|
writer.tag(19, WireType.LengthDelimited).string(message.email);
|
|
@@ -248,28 +252,29 @@ class Colleague$Type extends MessageType<Colleague> {
|
|
|
248
252
|
*/
|
|
249
253
|
export const Colleague = new Colleague$Type();
|
|
250
254
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
251
|
-
class
|
|
255
|
+
class ColleagueProps$Type extends MessageType<ColleagueProps> {
|
|
252
256
|
constructor() {
|
|
253
|
-
super("resources.jobs.
|
|
257
|
+
super("resources.jobs.ColleagueProps", [
|
|
254
258
|
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
255
259
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
256
|
-
{ no: 3, name: "
|
|
257
|
-
{ no: 4, name: "
|
|
258
|
-
{ no: 5, name: "
|
|
259
|
-
{ no: 6, name: "
|
|
260
|
-
{ no: 7, name: "
|
|
261
|
-
{ no: 8, name: "
|
|
260
|
+
{ no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
261
|
+
{ no: 4, name: "absence_begin", kind: "message", T: () => Timestamp },
|
|
262
|
+
{ no: 5, name: "absence_end", kind: "message", T: () => Timestamp },
|
|
263
|
+
{ no: 6, name: "note", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
264
|
+
{ no: 7, name: "labels", kind: "message", T: () => Labels },
|
|
265
|
+
{ no: 8, name: "name_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } },
|
|
266
|
+
{ no: 9, name: "name_suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } }
|
|
262
267
|
]);
|
|
263
268
|
}
|
|
264
|
-
create(value?: PartialMessage<
|
|
269
|
+
create(value?: PartialMessage<ColleagueProps>): ColleagueProps {
|
|
265
270
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
266
271
|
message.userId = 0;
|
|
267
272
|
message.job = "";
|
|
268
273
|
if (value !== undefined)
|
|
269
|
-
reflectionMergePartial<
|
|
274
|
+
reflectionMergePartial<ColleagueProps>(this, message, value);
|
|
270
275
|
return message;
|
|
271
276
|
}
|
|
272
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
277
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ColleagueProps): ColleagueProps {
|
|
273
278
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
274
279
|
while (reader.pos < end) {
|
|
275
280
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -280,22 +285,25 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
|
|
|
280
285
|
case /* string job */ 2:
|
|
281
286
|
message.job = reader.string();
|
|
282
287
|
break;
|
|
283
|
-
case /* optional resources.timestamp.Timestamp
|
|
288
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 3:
|
|
289
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
290
|
+
break;
|
|
291
|
+
case /* optional resources.timestamp.Timestamp absence_begin */ 4:
|
|
284
292
|
message.absenceBegin = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.absenceBegin);
|
|
285
293
|
break;
|
|
286
|
-
case /* optional resources.timestamp.Timestamp absence_end */
|
|
294
|
+
case /* optional resources.timestamp.Timestamp absence_end */ 5:
|
|
287
295
|
message.absenceEnd = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.absenceEnd);
|
|
288
296
|
break;
|
|
289
|
-
case /* optional string note */
|
|
297
|
+
case /* optional string note */ 6:
|
|
290
298
|
message.note = reader.string();
|
|
291
299
|
break;
|
|
292
|
-
case /* optional resources.jobs.Labels labels */
|
|
300
|
+
case /* optional resources.jobs.Labels labels */ 7:
|
|
293
301
|
message.labels = Labels.internalBinaryRead(reader, reader.uint32(), options, message.labels);
|
|
294
302
|
break;
|
|
295
|
-
case /* optional string name_prefix */
|
|
303
|
+
case /* optional string name_prefix */ 8:
|
|
296
304
|
message.namePrefix = reader.string();
|
|
297
305
|
break;
|
|
298
|
-
case /* optional string name_suffix */
|
|
306
|
+
case /* optional string name_suffix */ 9:
|
|
299
307
|
message.nameSuffix = reader.string();
|
|
300
308
|
break;
|
|
301
309
|
default:
|
|
@@ -309,31 +317,34 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
|
|
|
309
317
|
}
|
|
310
318
|
return message;
|
|
311
319
|
}
|
|
312
|
-
internalBinaryWrite(message:
|
|
320
|
+
internalBinaryWrite(message: ColleagueProps, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
313
321
|
/* int32 user_id = 1; */
|
|
314
322
|
if (message.userId !== 0)
|
|
315
323
|
writer.tag(1, WireType.Varint).int32(message.userId);
|
|
316
324
|
/* string job = 2; */
|
|
317
325
|
if (message.job !== "")
|
|
318
326
|
writer.tag(2, WireType.LengthDelimited).string(message.job);
|
|
319
|
-
/* optional resources.timestamp.Timestamp
|
|
327
|
+
/* optional resources.timestamp.Timestamp deleted_at = 3; */
|
|
328
|
+
if (message.deletedAt)
|
|
329
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
330
|
+
/* optional resources.timestamp.Timestamp absence_begin = 4; */
|
|
320
331
|
if (message.absenceBegin)
|
|
321
|
-
Timestamp.internalBinaryWrite(message.absenceBegin, writer.tag(
|
|
322
|
-
/* optional resources.timestamp.Timestamp absence_end =
|
|
332
|
+
Timestamp.internalBinaryWrite(message.absenceBegin, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
333
|
+
/* optional resources.timestamp.Timestamp absence_end = 5; */
|
|
323
334
|
if (message.absenceEnd)
|
|
324
|
-
Timestamp.internalBinaryWrite(message.absenceEnd, writer.tag(
|
|
325
|
-
/* optional string note =
|
|
335
|
+
Timestamp.internalBinaryWrite(message.absenceEnd, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
336
|
+
/* optional string note = 6; */
|
|
326
337
|
if (message.note !== undefined)
|
|
327
|
-
writer.tag(
|
|
328
|
-
/* optional resources.jobs.Labels labels =
|
|
338
|
+
writer.tag(6, WireType.LengthDelimited).string(message.note);
|
|
339
|
+
/* optional resources.jobs.Labels labels = 7; */
|
|
329
340
|
if (message.labels)
|
|
330
|
-
Labels.internalBinaryWrite(message.labels, writer.tag(
|
|
331
|
-
/* optional string name_prefix =
|
|
341
|
+
Labels.internalBinaryWrite(message.labels, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
342
|
+
/* optional string name_prefix = 8; */
|
|
332
343
|
if (message.namePrefix !== undefined)
|
|
333
|
-
writer.tag(
|
|
334
|
-
/* optional string name_suffix =
|
|
344
|
+
writer.tag(8, WireType.LengthDelimited).string(message.namePrefix);
|
|
345
|
+
/* optional string name_suffix = 9; */
|
|
335
346
|
if (message.nameSuffix !== undefined)
|
|
336
|
-
writer.tag(
|
|
347
|
+
writer.tag(9, WireType.LengthDelimited).string(message.nameSuffix);
|
|
337
348
|
let u = options.writeUnknownFields;
|
|
338
349
|
if (u !== false)
|
|
339
350
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -341,6 +352,6 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
|
|
|
341
352
|
}
|
|
342
353
|
}
|
|
343
354
|
/**
|
|
344
|
-
* @generated MessageType for protobuf message resources.jobs.
|
|
355
|
+
* @generated MessageType for protobuf message resources.jobs.ColleagueProps
|
|
345
356
|
*/
|
|
346
|
-
export const
|
|
357
|
+
export const ColleagueProps = new ColleagueProps$Type();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/conduct.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -29,37 +29,41 @@ export interface ConductEntry {
|
|
|
29
29
|
*/
|
|
30
30
|
updatedAt?: Timestamp;
|
|
31
31
|
/**
|
|
32
|
-
* @generated from protobuf field:
|
|
32
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
33
|
+
*/
|
|
34
|
+
deletedAt?: Timestamp;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: string job = 5;
|
|
33
37
|
*/
|
|
34
38
|
job: string;
|
|
35
39
|
/**
|
|
36
|
-
* @generated from protobuf field: resources.jobs.ConductType type =
|
|
40
|
+
* @generated from protobuf field: resources.jobs.ConductType type = 6;
|
|
37
41
|
*/
|
|
38
42
|
type: ConductType;
|
|
39
43
|
/**
|
|
40
44
|
* @sanitize
|
|
41
45
|
*
|
|
42
|
-
* @generated from protobuf field: string message =
|
|
46
|
+
* @generated from protobuf field: string message = 7;
|
|
43
47
|
*/
|
|
44
48
|
message: string;
|
|
45
49
|
/**
|
|
46
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp expires_at =
|
|
50
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 8;
|
|
47
51
|
*/
|
|
48
52
|
expiresAt?: Timestamp;
|
|
49
53
|
/**
|
|
50
|
-
* @generated from protobuf field: int32 target_user_id =
|
|
54
|
+
* @generated from protobuf field: int32 target_user_id = 9;
|
|
51
55
|
*/
|
|
52
56
|
targetUserId: number;
|
|
53
57
|
/**
|
|
54
|
-
* @generated from protobuf field: optional resources.jobs.Colleague target_user =
|
|
58
|
+
* @generated from protobuf field: optional resources.jobs.Colleague target_user = 10;
|
|
55
59
|
*/
|
|
56
60
|
targetUser?: Colleague; // @gotags: alias:"target_user"
|
|
57
61
|
/**
|
|
58
|
-
* @generated from protobuf field: int32 creator_id =
|
|
62
|
+
* @generated from protobuf field: int32 creator_id = 11;
|
|
59
63
|
*/
|
|
60
64
|
creatorId: number;
|
|
61
65
|
/**
|
|
62
|
-
* @generated from protobuf field: optional resources.jobs.Colleague creator =
|
|
66
|
+
* @generated from protobuf field: optional resources.jobs.Colleague creator = 12;
|
|
63
67
|
*/
|
|
64
68
|
creator?: Colleague; // @gotags: alias:"creator"
|
|
65
69
|
}
|
|
@@ -103,14 +107,15 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
|
103
107
|
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
104
108
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
105
109
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
106
|
-
{ no: 4, name: "
|
|
107
|
-
{ no: 5, name: "
|
|
108
|
-
{ no: 6, name: "
|
|
109
|
-
{ no: 7, name: "
|
|
110
|
-
{ no: 8, name: "
|
|
111
|
-
{ no: 9, name: "
|
|
112
|
-
{ no: 10, name: "
|
|
113
|
-
{ no: 11, name: "
|
|
110
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
111
|
+
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
112
|
+
{ no: 6, name: "type", kind: "enum", T: () => ["resources.jobs.ConductType", ConductType, "CONDUCT_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
113
|
+
{ no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "2048" } } } },
|
|
114
|
+
{ no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
115
|
+
{ no: 9, name: "target_user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
116
|
+
{ no: 10, name: "target_user", kind: "message", T: () => Colleague },
|
|
117
|
+
{ no: 11, name: "creator_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
118
|
+
{ no: 12, name: "creator", kind: "message", T: () => Colleague }
|
|
114
119
|
]);
|
|
115
120
|
}
|
|
116
121
|
create(value?: PartialMessage<ConductEntry>): ConductEntry {
|
|
@@ -139,28 +144,31 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
|
139
144
|
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
140
145
|
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
141
146
|
break;
|
|
142
|
-
case /*
|
|
147
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
148
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
149
|
+
break;
|
|
150
|
+
case /* string job */ 5:
|
|
143
151
|
message.job = reader.string();
|
|
144
152
|
break;
|
|
145
|
-
case /* resources.jobs.ConductType type */
|
|
153
|
+
case /* resources.jobs.ConductType type */ 6:
|
|
146
154
|
message.type = reader.int32();
|
|
147
155
|
break;
|
|
148
|
-
case /* string message */
|
|
156
|
+
case /* string message */ 7:
|
|
149
157
|
message.message = reader.string();
|
|
150
158
|
break;
|
|
151
|
-
case /* optional resources.timestamp.Timestamp expires_at */
|
|
159
|
+
case /* optional resources.timestamp.Timestamp expires_at */ 8:
|
|
152
160
|
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
153
161
|
break;
|
|
154
|
-
case /* int32 target_user_id */
|
|
162
|
+
case /* int32 target_user_id */ 9:
|
|
155
163
|
message.targetUserId = reader.int32();
|
|
156
164
|
break;
|
|
157
|
-
case /* optional resources.jobs.Colleague target_user */
|
|
165
|
+
case /* optional resources.jobs.Colleague target_user */ 10:
|
|
158
166
|
message.targetUser = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.targetUser);
|
|
159
167
|
break;
|
|
160
|
-
case /* int32 creator_id */
|
|
168
|
+
case /* int32 creator_id */ 11:
|
|
161
169
|
message.creatorId = reader.int32();
|
|
162
170
|
break;
|
|
163
|
-
case /* optional resources.jobs.Colleague creator */
|
|
171
|
+
case /* optional resources.jobs.Colleague creator */ 12:
|
|
164
172
|
message.creator = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
165
173
|
break;
|
|
166
174
|
default:
|
|
@@ -184,30 +192,33 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
|
184
192
|
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
185
193
|
if (message.updatedAt)
|
|
186
194
|
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
187
|
-
/*
|
|
195
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
196
|
+
if (message.deletedAt)
|
|
197
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
198
|
+
/* string job = 5; */
|
|
188
199
|
if (message.job !== "")
|
|
189
|
-
writer.tag(
|
|
190
|
-
/* resources.jobs.ConductType type =
|
|
200
|
+
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
201
|
+
/* resources.jobs.ConductType type = 6; */
|
|
191
202
|
if (message.type !== 0)
|
|
192
|
-
writer.tag(
|
|
193
|
-
/* string message =
|
|
203
|
+
writer.tag(6, WireType.Varint).int32(message.type);
|
|
204
|
+
/* string message = 7; */
|
|
194
205
|
if (message.message !== "")
|
|
195
|
-
writer.tag(
|
|
196
|
-
/* optional resources.timestamp.Timestamp expires_at =
|
|
206
|
+
writer.tag(7, WireType.LengthDelimited).string(message.message);
|
|
207
|
+
/* optional resources.timestamp.Timestamp expires_at = 8; */
|
|
197
208
|
if (message.expiresAt)
|
|
198
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(
|
|
199
|
-
/* int32 target_user_id =
|
|
209
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
210
|
+
/* int32 target_user_id = 9; */
|
|
200
211
|
if (message.targetUserId !== 0)
|
|
201
|
-
writer.tag(
|
|
202
|
-
/* optional resources.jobs.Colleague target_user =
|
|
212
|
+
writer.tag(9, WireType.Varint).int32(message.targetUserId);
|
|
213
|
+
/* optional resources.jobs.Colleague target_user = 10; */
|
|
203
214
|
if (message.targetUser)
|
|
204
|
-
Colleague.internalBinaryWrite(message.targetUser, writer.tag(
|
|
205
|
-
/* int32 creator_id =
|
|
215
|
+
Colleague.internalBinaryWrite(message.targetUser, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
216
|
+
/* int32 creator_id = 11; */
|
|
206
217
|
if (message.creatorId !== 0)
|
|
207
|
-
writer.tag(
|
|
208
|
-
/* optional resources.jobs.Colleague creator =
|
|
218
|
+
writer.tag(11, WireType.Varint).int32(message.creatorId);
|
|
219
|
+
/* optional resources.jobs.Colleague creator = 12; */
|
|
209
220
|
if (message.creator)
|
|
210
|
-
Colleague.internalBinaryWrite(message.creator, writer.tag(
|
|
221
|
+
Colleague.internalBinaryWrite(message.creator, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
211
222
|
let u = options.writeUnknownFields;
|
|
212
223
|
if (u !== false)
|
|
213
224
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "resources/
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/jobs/job_props.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
5
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -16,7 +16,7 @@ import { DiscordSyncChanges } from "./job_settings";
|
|
|
16
16
|
import { DiscordSyncSettings } from "./job_settings";
|
|
17
17
|
import { Timestamp } from "../timestamp/timestamp";
|
|
18
18
|
/**
|
|
19
|
-
* @generated from protobuf message resources.
|
|
19
|
+
* @generated from protobuf message resources.jobs.JobProps
|
|
20
20
|
*/
|
|
21
21
|
export interface JobProps {
|
|
22
22
|
/**
|
|
@@ -28,15 +28,15 @@ export interface JobProps {
|
|
|
28
28
|
*/
|
|
29
29
|
jobLabel?: string;
|
|
30
30
|
/**
|
|
31
|
-
* @generated from protobuf field:
|
|
31
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 3;
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
deletedAt?: Timestamp;
|
|
34
34
|
/**
|
|
35
35
|
* @generated from protobuf field: string livemap_marker_color = 4;
|
|
36
36
|
*/
|
|
37
37
|
livemapMarkerColor: string;
|
|
38
38
|
/**
|
|
39
|
-
* @generated from protobuf field: resources.
|
|
39
|
+
* @generated from protobuf field: resources.jobs.QuickButtons quick_buttons = 5;
|
|
40
40
|
*/
|
|
41
41
|
quickButtons?: QuickButtons;
|
|
42
42
|
/**
|
|
@@ -52,11 +52,11 @@ export interface JobProps {
|
|
|
52
52
|
*/
|
|
53
53
|
discordLastSync?: Timestamp;
|
|
54
54
|
/**
|
|
55
|
-
* @generated from protobuf field: resources.
|
|
55
|
+
* @generated from protobuf field: resources.jobs.DiscordSyncSettings discord_sync_settings = 9;
|
|
56
56
|
*/
|
|
57
57
|
discordSyncSettings?: DiscordSyncSettings;
|
|
58
58
|
/**
|
|
59
|
-
* @generated from protobuf field: optional resources.
|
|
59
|
+
* @generated from protobuf field: optional resources.jobs.DiscordSyncChanges discord_sync_changes = 10;
|
|
60
60
|
*/
|
|
61
61
|
discordSyncChanges?: DiscordSyncChanges;
|
|
62
62
|
/**
|
|
@@ -68,24 +68,20 @@ export interface JobProps {
|
|
|
68
68
|
*/
|
|
69
69
|
logoUrl?: File;
|
|
70
70
|
/**
|
|
71
|
-
* @generated from protobuf field: resources.
|
|
71
|
+
* @generated from protobuf field: resources.jobs.JobSettings settings = 13;
|
|
72
72
|
*/
|
|
73
73
|
settings?: JobSettings;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @dbscanner: json
|
|
77
77
|
*
|
|
78
|
-
* @generated from protobuf message resources.
|
|
78
|
+
* @generated from protobuf message resources.jobs.QuickButtons
|
|
79
79
|
*/
|
|
80
80
|
export interface QuickButtons {
|
|
81
81
|
/**
|
|
82
82
|
* @generated from protobuf field: bool penalty_calculator = 1;
|
|
83
83
|
*/
|
|
84
84
|
penaltyCalculator: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf field: bool body_checkup = 2;
|
|
87
|
-
*/
|
|
88
|
-
bodyCheckup: boolean;
|
|
89
85
|
/**
|
|
90
86
|
* @generated from protobuf field: bool math_calculator = 3;
|
|
91
87
|
*/
|
|
@@ -94,10 +90,10 @@ export interface QuickButtons {
|
|
|
94
90
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
95
91
|
class JobProps$Type extends MessageType<JobProps> {
|
|
96
92
|
constructor() {
|
|
97
|
-
super("resources.
|
|
93
|
+
super("resources.jobs.JobProps", [
|
|
98
94
|
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
99
95
|
{ no: 2, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
100
|
-
{ no: 3, name: "
|
|
96
|
+
{ no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
101
97
|
{ no: 4, name: "livemap_marker_color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } } } },
|
|
102
98
|
{ no: 5, name: "quick_buttons", kind: "message", T: () => QuickButtons },
|
|
103
99
|
{ no: 6, name: "radio_frequency", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "24" } } } },
|
|
@@ -113,7 +109,6 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
113
109
|
create(value?: PartialMessage<JobProps>): JobProps {
|
|
114
110
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
115
111
|
message.job = "";
|
|
116
|
-
message.theme = "";
|
|
117
112
|
message.livemapMarkerColor = "";
|
|
118
113
|
if (value !== undefined)
|
|
119
114
|
reflectionMergePartial<JobProps>(this, message, value);
|
|
@@ -130,13 +125,13 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
130
125
|
case /* optional string job_label */ 2:
|
|
131
126
|
message.jobLabel = reader.string();
|
|
132
127
|
break;
|
|
133
|
-
case /*
|
|
134
|
-
message.
|
|
128
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 3:
|
|
129
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
135
130
|
break;
|
|
136
131
|
case /* string livemap_marker_color */ 4:
|
|
137
132
|
message.livemapMarkerColor = reader.string();
|
|
138
133
|
break;
|
|
139
|
-
case /* resources.
|
|
134
|
+
case /* resources.jobs.QuickButtons quick_buttons */ 5:
|
|
140
135
|
message.quickButtons = QuickButtons.internalBinaryRead(reader, reader.uint32(), options, message.quickButtons);
|
|
141
136
|
break;
|
|
142
137
|
case /* optional string radio_frequency */ 6:
|
|
@@ -148,10 +143,10 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
148
143
|
case /* optional resources.timestamp.Timestamp discord_last_sync */ 8:
|
|
149
144
|
message.discordLastSync = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.discordLastSync);
|
|
150
145
|
break;
|
|
151
|
-
case /* resources.
|
|
146
|
+
case /* resources.jobs.DiscordSyncSettings discord_sync_settings */ 9:
|
|
152
147
|
message.discordSyncSettings = DiscordSyncSettings.internalBinaryRead(reader, reader.uint32(), options, message.discordSyncSettings);
|
|
153
148
|
break;
|
|
154
|
-
case /* optional resources.
|
|
149
|
+
case /* optional resources.jobs.DiscordSyncChanges discord_sync_changes */ 10:
|
|
155
150
|
message.discordSyncChanges = DiscordSyncChanges.internalBinaryRead(reader, reader.uint32(), options, message.discordSyncChanges);
|
|
156
151
|
break;
|
|
157
152
|
case /* optional string motd */ 11:
|
|
@@ -160,7 +155,7 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
160
155
|
case /* optional resources.filestore.File logo_url */ 12:
|
|
161
156
|
message.logoUrl = File.internalBinaryRead(reader, reader.uint32(), options, message.logoUrl);
|
|
162
157
|
break;
|
|
163
|
-
case /* resources.
|
|
158
|
+
case /* resources.jobs.JobSettings settings */ 13:
|
|
164
159
|
message.settings = JobSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
165
160
|
break;
|
|
166
161
|
default:
|
|
@@ -181,13 +176,13 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
181
176
|
/* optional string job_label = 2; */
|
|
182
177
|
if (message.jobLabel !== undefined)
|
|
183
178
|
writer.tag(2, WireType.LengthDelimited).string(message.jobLabel);
|
|
184
|
-
/*
|
|
185
|
-
if (message.
|
|
186
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
179
|
+
/* optional resources.timestamp.Timestamp deleted_at = 3; */
|
|
180
|
+
if (message.deletedAt)
|
|
181
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
187
182
|
/* string livemap_marker_color = 4; */
|
|
188
183
|
if (message.livemapMarkerColor !== "")
|
|
189
184
|
writer.tag(4, WireType.LengthDelimited).string(message.livemapMarkerColor);
|
|
190
|
-
/* resources.
|
|
185
|
+
/* resources.jobs.QuickButtons quick_buttons = 5; */
|
|
191
186
|
if (message.quickButtons)
|
|
192
187
|
QuickButtons.internalBinaryWrite(message.quickButtons, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
193
188
|
/* optional string radio_frequency = 6; */
|
|
@@ -199,10 +194,10 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
199
194
|
/* optional resources.timestamp.Timestamp discord_last_sync = 8; */
|
|
200
195
|
if (message.discordLastSync)
|
|
201
196
|
Timestamp.internalBinaryWrite(message.discordLastSync, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
202
|
-
/* resources.
|
|
197
|
+
/* resources.jobs.DiscordSyncSettings discord_sync_settings = 9; */
|
|
203
198
|
if (message.discordSyncSettings)
|
|
204
199
|
DiscordSyncSettings.internalBinaryWrite(message.discordSyncSettings, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
205
|
-
/* optional resources.
|
|
200
|
+
/* optional resources.jobs.DiscordSyncChanges discord_sync_changes = 10; */
|
|
206
201
|
if (message.discordSyncChanges)
|
|
207
202
|
DiscordSyncChanges.internalBinaryWrite(message.discordSyncChanges, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
208
203
|
/* optional string motd = 11; */
|
|
@@ -211,7 +206,7 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
211
206
|
/* optional resources.filestore.File logo_url = 12; */
|
|
212
207
|
if (message.logoUrl)
|
|
213
208
|
File.internalBinaryWrite(message.logoUrl, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
214
|
-
/* resources.
|
|
209
|
+
/* resources.jobs.JobSettings settings = 13; */
|
|
215
210
|
if (message.settings)
|
|
216
211
|
JobSettings.internalBinaryWrite(message.settings, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
217
212
|
let u = options.writeUnknownFields;
|
|
@@ -221,22 +216,20 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
221
216
|
}
|
|
222
217
|
}
|
|
223
218
|
/**
|
|
224
|
-
* @generated MessageType for protobuf message resources.
|
|
219
|
+
* @generated MessageType for protobuf message resources.jobs.JobProps
|
|
225
220
|
*/
|
|
226
221
|
export const JobProps = new JobProps$Type();
|
|
227
222
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
228
223
|
class QuickButtons$Type extends MessageType<QuickButtons> {
|
|
229
224
|
constructor() {
|
|
230
|
-
super("resources.
|
|
225
|
+
super("resources.jobs.QuickButtons", [
|
|
231
226
|
{ no: 1, name: "penalty_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
232
|
-
{ no: 2, name: "body_checkup", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
233
227
|
{ no: 3, name: "math_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
234
228
|
]);
|
|
235
229
|
}
|
|
236
230
|
create(value?: PartialMessage<QuickButtons>): QuickButtons {
|
|
237
231
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
238
232
|
message.penaltyCalculator = false;
|
|
239
|
-
message.bodyCheckup = false;
|
|
240
233
|
message.mathCalculator = false;
|
|
241
234
|
if (value !== undefined)
|
|
242
235
|
reflectionMergePartial<QuickButtons>(this, message, value);
|
|
@@ -250,9 +243,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
|
|
|
250
243
|
case /* bool penalty_calculator */ 1:
|
|
251
244
|
message.penaltyCalculator = reader.bool();
|
|
252
245
|
break;
|
|
253
|
-
case /* bool body_checkup */ 2:
|
|
254
|
-
message.bodyCheckup = reader.bool();
|
|
255
|
-
break;
|
|
256
246
|
case /* bool math_calculator */ 3:
|
|
257
247
|
message.mathCalculator = reader.bool();
|
|
258
248
|
break;
|
|
@@ -271,9 +261,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
|
|
|
271
261
|
/* bool penalty_calculator = 1; */
|
|
272
262
|
if (message.penaltyCalculator !== false)
|
|
273
263
|
writer.tag(1, WireType.Varint).bool(message.penaltyCalculator);
|
|
274
|
-
/* bool body_checkup = 2; */
|
|
275
|
-
if (message.bodyCheckup !== false)
|
|
276
|
-
writer.tag(2, WireType.Varint).bool(message.bodyCheckup);
|
|
277
264
|
/* bool math_calculator = 3; */
|
|
278
265
|
if (message.mathCalculator !== false)
|
|
279
266
|
writer.tag(3, WireType.Varint).bool(message.mathCalculator);
|
|
@@ -284,6 +271,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
|
|
|
284
271
|
}
|
|
285
272
|
}
|
|
286
273
|
/**
|
|
287
|
-
* @generated MessageType for protobuf message resources.
|
|
274
|
+
* @generated MessageType for protobuf message resources.jobs.QuickButtons
|
|
288
275
|
*/
|
|
289
276
|
export const QuickButtons = new QuickButtons$Type();
|