@fivenet-app/gen 2025.4.8 → 2025.5.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/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 -29
- 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 +9 -9
- 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:"jobs_user_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,14 +68,14 @@ 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
|
/**
|
|
@@ -94,10 +94,10 @@ export interface QuickButtons {
|
|
|
94
94
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
95
95
|
class JobProps$Type extends MessageType<JobProps> {
|
|
96
96
|
constructor() {
|
|
97
|
-
super("resources.
|
|
97
|
+
super("resources.jobs.JobProps", [
|
|
98
98
|
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
99
99
|
{ no: 2, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
100
|
-
{ no: 3, name: "
|
|
100
|
+
{ no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
101
101
|
{ 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
102
|
{ no: 5, name: "quick_buttons", kind: "message", T: () => QuickButtons },
|
|
103
103
|
{ no: 6, name: "radio_frequency", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "24" } } } },
|
|
@@ -113,7 +113,6 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
113
113
|
create(value?: PartialMessage<JobProps>): JobProps {
|
|
114
114
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
115
115
|
message.job = "";
|
|
116
|
-
message.theme = "";
|
|
117
116
|
message.livemapMarkerColor = "";
|
|
118
117
|
if (value !== undefined)
|
|
119
118
|
reflectionMergePartial<JobProps>(this, message, value);
|
|
@@ -130,13 +129,13 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
130
129
|
case /* optional string job_label */ 2:
|
|
131
130
|
message.jobLabel = reader.string();
|
|
132
131
|
break;
|
|
133
|
-
case /*
|
|
134
|
-
message.
|
|
132
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 3:
|
|
133
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
135
134
|
break;
|
|
136
135
|
case /* string livemap_marker_color */ 4:
|
|
137
136
|
message.livemapMarkerColor = reader.string();
|
|
138
137
|
break;
|
|
139
|
-
case /* resources.
|
|
138
|
+
case /* resources.jobs.QuickButtons quick_buttons */ 5:
|
|
140
139
|
message.quickButtons = QuickButtons.internalBinaryRead(reader, reader.uint32(), options, message.quickButtons);
|
|
141
140
|
break;
|
|
142
141
|
case /* optional string radio_frequency */ 6:
|
|
@@ -148,10 +147,10 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
148
147
|
case /* optional resources.timestamp.Timestamp discord_last_sync */ 8:
|
|
149
148
|
message.discordLastSync = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.discordLastSync);
|
|
150
149
|
break;
|
|
151
|
-
case /* resources.
|
|
150
|
+
case /* resources.jobs.DiscordSyncSettings discord_sync_settings */ 9:
|
|
152
151
|
message.discordSyncSettings = DiscordSyncSettings.internalBinaryRead(reader, reader.uint32(), options, message.discordSyncSettings);
|
|
153
152
|
break;
|
|
154
|
-
case /* optional resources.
|
|
153
|
+
case /* optional resources.jobs.DiscordSyncChanges discord_sync_changes */ 10:
|
|
155
154
|
message.discordSyncChanges = DiscordSyncChanges.internalBinaryRead(reader, reader.uint32(), options, message.discordSyncChanges);
|
|
156
155
|
break;
|
|
157
156
|
case /* optional string motd */ 11:
|
|
@@ -160,7 +159,7 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
160
159
|
case /* optional resources.filestore.File logo_url */ 12:
|
|
161
160
|
message.logoUrl = File.internalBinaryRead(reader, reader.uint32(), options, message.logoUrl);
|
|
162
161
|
break;
|
|
163
|
-
case /* resources.
|
|
162
|
+
case /* resources.jobs.JobSettings settings */ 13:
|
|
164
163
|
message.settings = JobSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
165
164
|
break;
|
|
166
165
|
default:
|
|
@@ -181,13 +180,13 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
181
180
|
/* optional string job_label = 2; */
|
|
182
181
|
if (message.jobLabel !== undefined)
|
|
183
182
|
writer.tag(2, WireType.LengthDelimited).string(message.jobLabel);
|
|
184
|
-
/*
|
|
185
|
-
if (message.
|
|
186
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
183
|
+
/* optional resources.timestamp.Timestamp deleted_at = 3; */
|
|
184
|
+
if (message.deletedAt)
|
|
185
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
187
186
|
/* string livemap_marker_color = 4; */
|
|
188
187
|
if (message.livemapMarkerColor !== "")
|
|
189
188
|
writer.tag(4, WireType.LengthDelimited).string(message.livemapMarkerColor);
|
|
190
|
-
/* resources.
|
|
189
|
+
/* resources.jobs.QuickButtons quick_buttons = 5; */
|
|
191
190
|
if (message.quickButtons)
|
|
192
191
|
QuickButtons.internalBinaryWrite(message.quickButtons, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
193
192
|
/* optional string radio_frequency = 6; */
|
|
@@ -199,10 +198,10 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
199
198
|
/* optional resources.timestamp.Timestamp discord_last_sync = 8; */
|
|
200
199
|
if (message.discordLastSync)
|
|
201
200
|
Timestamp.internalBinaryWrite(message.discordLastSync, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
202
|
-
/* resources.
|
|
201
|
+
/* resources.jobs.DiscordSyncSettings discord_sync_settings = 9; */
|
|
203
202
|
if (message.discordSyncSettings)
|
|
204
203
|
DiscordSyncSettings.internalBinaryWrite(message.discordSyncSettings, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
205
|
-
/* optional resources.
|
|
204
|
+
/* optional resources.jobs.DiscordSyncChanges discord_sync_changes = 10; */
|
|
206
205
|
if (message.discordSyncChanges)
|
|
207
206
|
DiscordSyncChanges.internalBinaryWrite(message.discordSyncChanges, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
208
207
|
/* optional string motd = 11; */
|
|
@@ -211,7 +210,7 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
211
210
|
/* optional resources.filestore.File logo_url = 12; */
|
|
212
211
|
if (message.logoUrl)
|
|
213
212
|
File.internalBinaryWrite(message.logoUrl, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
214
|
-
/* resources.
|
|
213
|
+
/* resources.jobs.JobSettings settings = 13; */
|
|
215
214
|
if (message.settings)
|
|
216
215
|
JobSettings.internalBinaryWrite(message.settings, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
217
216
|
let u = options.writeUnknownFields;
|
|
@@ -221,13 +220,13 @@ class JobProps$Type extends MessageType<JobProps> {
|
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
222
|
/**
|
|
224
|
-
* @generated MessageType for protobuf message resources.
|
|
223
|
+
* @generated MessageType for protobuf message resources.jobs.JobProps
|
|
225
224
|
*/
|
|
226
225
|
export const JobProps = new JobProps$Type();
|
|
227
226
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
228
227
|
class QuickButtons$Type extends MessageType<QuickButtons> {
|
|
229
228
|
constructor() {
|
|
230
|
-
super("resources.
|
|
229
|
+
super("resources.jobs.QuickButtons", [
|
|
231
230
|
{ no: 1, name: "penalty_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
232
231
|
{ no: 2, name: "body_checkup", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
233
232
|
{ no: 3, name: "math_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
@@ -284,6 +283,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
|
|
|
284
283
|
}
|
|
285
284
|
}
|
|
286
285
|
/**
|
|
287
|
-
* @generated MessageType for protobuf message resources.
|
|
286
|
+
* @generated MessageType for protobuf message resources.jobs.QuickButtons
|
|
288
287
|
*/
|
|
289
288
|
export const QuickButtons = new QuickButtons$Type();
|