@fivenet-app/gen 2025.5.2 → 2025.9.1
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/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
package/resources/jobs/jobs.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/jobs/jobs.proto" (package "resources.jobs", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -15,15 +16,15 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
15
16
|
*/
|
|
16
17
|
export interface Job {
|
|
17
18
|
/**
|
|
18
|
-
* @generated from protobuf field: string name = 1
|
|
19
|
+
* @generated from protobuf field: string name = 1
|
|
19
20
|
*/
|
|
20
|
-
name: string;
|
|
21
|
+
name: string;
|
|
21
22
|
/**
|
|
22
|
-
* @generated from protobuf field: string label = 2
|
|
23
|
+
* @generated from protobuf field: string label = 2
|
|
23
24
|
*/
|
|
24
25
|
label: string;
|
|
25
26
|
/**
|
|
26
|
-
* @generated from protobuf field: repeated resources.jobs.JobGrade grades = 3
|
|
27
|
+
* @generated from protobuf field: repeated resources.jobs.JobGrade grades = 3
|
|
27
28
|
*/
|
|
28
29
|
grades: JobGrade[];
|
|
29
30
|
}
|
|
@@ -32,15 +33,15 @@ export interface Job {
|
|
|
32
33
|
*/
|
|
33
34
|
export interface JobGrade {
|
|
34
35
|
/**
|
|
35
|
-
* @generated from protobuf field: optional string job_name = 1
|
|
36
|
+
* @generated from protobuf field: optional string job_name = 1
|
|
36
37
|
*/
|
|
37
38
|
jobName?: string;
|
|
38
39
|
/**
|
|
39
|
-
* @generated from protobuf field: int32 grade = 2
|
|
40
|
+
* @generated from protobuf field: int32 grade = 2
|
|
40
41
|
*/
|
|
41
42
|
grade: number;
|
|
42
43
|
/**
|
|
43
|
-
* @generated from protobuf field: string label = 3
|
|
44
|
+
* @generated from protobuf field: string label = 3
|
|
44
45
|
*/
|
|
45
46
|
label: string;
|
|
46
47
|
}
|
|
@@ -48,8 +49,8 @@ export interface JobGrade {
|
|
|
48
49
|
class Job$Type extends MessageType<Job> {
|
|
49
50
|
constructor() {
|
|
50
51
|
super("resources.jobs.Job", [
|
|
51
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
52
|
-
{ no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
52
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } }, "tagger.tags": "sql:\"primary_key\" alias:\"name\"" } },
|
|
53
|
+
{ no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
53
54
|
{ no: 3, name: "grades", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobGrade }
|
|
54
55
|
]);
|
|
55
56
|
}
|
|
@@ -111,9 +112,9 @@ export const Job = new Job$Type();
|
|
|
111
112
|
class JobGrade$Type extends MessageType<JobGrade> {
|
|
112
113
|
constructor() {
|
|
113
114
|
super("resources.jobs.JobGrade", [
|
|
114
|
-
{ no: 1, name: "job_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
115
|
-
{ no: 2, name: "grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
116
|
-
{ no: 3, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
115
|
+
{ no: 1, name: "job_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
116
|
+
{ no: 2, name: "grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
117
|
+
{ no: 3, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } }
|
|
117
118
|
]);
|
|
118
119
|
}
|
|
119
120
|
create(value?: PartialMessage<JobGrade>): JobGrade {
|
package/resources/jobs/labels.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/jobs/labels.proto" (package "resources.jobs", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -16,7 +17,7 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
16
17
|
*/
|
|
17
18
|
export interface Labels {
|
|
18
19
|
/**
|
|
19
|
-
* @generated from protobuf field: repeated resources.jobs.Label list = 1
|
|
20
|
+
* @generated from protobuf field: repeated resources.jobs.Label list = 1
|
|
20
21
|
*/
|
|
21
22
|
list: Label[];
|
|
22
23
|
}
|
|
@@ -25,29 +26,27 @@ export interface Labels {
|
|
|
25
26
|
*/
|
|
26
27
|
export interface Label {
|
|
27
28
|
/**
|
|
28
|
-
* @generated from protobuf field:
|
|
29
|
+
* @generated from protobuf field: int64 id = 1
|
|
29
30
|
*/
|
|
30
|
-
id: number;
|
|
31
|
+
id: number;
|
|
31
32
|
/**
|
|
32
|
-
* @generated from protobuf field: optional string job = 2
|
|
33
|
+
* @generated from protobuf field: optional string job = 2
|
|
33
34
|
*/
|
|
34
35
|
job?: string;
|
|
35
36
|
/**
|
|
36
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 3
|
|
37
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 3
|
|
37
38
|
*/
|
|
38
39
|
deletedAt?: Timestamp;
|
|
39
40
|
/**
|
|
40
|
-
* @generated from protobuf field: string name = 4
|
|
41
|
+
* @generated from protobuf field: string name = 4
|
|
41
42
|
*/
|
|
42
43
|
name: string;
|
|
43
44
|
/**
|
|
44
|
-
* @
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf field: string color = 5;
|
|
45
|
+
* @generated from protobuf field: string color = 5
|
|
47
46
|
*/
|
|
48
47
|
color: string;
|
|
49
48
|
/**
|
|
50
|
-
* @generated from protobuf field: int32 order = 6
|
|
49
|
+
* @generated from protobuf field: int32 order = 6
|
|
51
50
|
*/
|
|
52
51
|
order: number;
|
|
53
52
|
}
|
|
@@ -56,11 +55,11 @@ export interface Label {
|
|
|
56
55
|
*/
|
|
57
56
|
export interface LabelCount {
|
|
58
57
|
/**
|
|
59
|
-
* @generated from protobuf field: resources.jobs.Label label = 1
|
|
58
|
+
* @generated from protobuf field: resources.jobs.Label label = 1
|
|
60
59
|
*/
|
|
61
60
|
label?: Label;
|
|
62
61
|
/**
|
|
63
|
-
* @generated from protobuf field: int64 count = 2
|
|
62
|
+
* @generated from protobuf field: int64 count = 2
|
|
64
63
|
*/
|
|
65
64
|
count: number;
|
|
66
65
|
}
|
|
@@ -68,7 +67,7 @@ export interface LabelCount {
|
|
|
68
67
|
class Labels$Type extends MessageType<Labels> {
|
|
69
68
|
constructor() {
|
|
70
69
|
super("resources.jobs.Labels", [
|
|
71
|
-
{ no: 1, name: "list", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label, options: { "validate.
|
|
70
|
+
{ no: 1, name: "list", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } }
|
|
72
71
|
]);
|
|
73
72
|
}
|
|
74
73
|
create(value?: PartialMessage<Labels>): Labels {
|
|
@@ -115,11 +114,11 @@ export const Labels = new Labels$Type();
|
|
|
115
114
|
class Label$Type extends MessageType<Label> {
|
|
116
115
|
constructor() {
|
|
117
116
|
super("resources.jobs.Label", [
|
|
118
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
119
|
-
{ no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
117
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
118
|
+
{ no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
120
119
|
{ no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
121
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
122
|
-
{ no: 5, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
120
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } } } },
|
|
121
|
+
{ no: 5, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
123
122
|
{ no: 6, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
124
123
|
]);
|
|
125
124
|
}
|
|
@@ -138,8 +137,8 @@ class Label$Type extends MessageType<Label> {
|
|
|
138
137
|
while (reader.pos < end) {
|
|
139
138
|
let [fieldNo, wireType] = reader.tag();
|
|
140
139
|
switch (fieldNo) {
|
|
141
|
-
case /*
|
|
142
|
-
message.id = reader.
|
|
140
|
+
case /* int64 id */ 1:
|
|
141
|
+
message.id = reader.int64().toNumber();
|
|
143
142
|
break;
|
|
144
143
|
case /* optional string job */ 2:
|
|
145
144
|
message.job = reader.string();
|
|
@@ -168,9 +167,9 @@ class Label$Type extends MessageType<Label> {
|
|
|
168
167
|
return message;
|
|
169
168
|
}
|
|
170
169
|
internalBinaryWrite(message: Label, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
171
|
-
/*
|
|
170
|
+
/* int64 id = 1; */
|
|
172
171
|
if (message.id !== 0)
|
|
173
|
-
writer.tag(1, WireType.Varint).
|
|
172
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
174
173
|
/* optional string job = 2; */
|
|
175
174
|
if (message.job !== undefined)
|
|
176
175
|
writer.tag(2, WireType.LengthDelimited).string(message.job);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/jobs/timeclock.proto" (package "resources.jobs", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -17,31 +18,31 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
17
18
|
*/
|
|
18
19
|
export interface TimeclockEntry {
|
|
19
20
|
/**
|
|
20
|
-
* @generated from protobuf field: int32 user_id = 1
|
|
21
|
+
* @generated from protobuf field: int32 user_id = 1
|
|
21
22
|
*/
|
|
22
|
-
userId: number;
|
|
23
|
+
userId: number;
|
|
23
24
|
/**
|
|
24
|
-
* @generated from protobuf field: string job = 2
|
|
25
|
+
* @generated from protobuf field: string job = 2
|
|
25
26
|
*/
|
|
26
27
|
job: string;
|
|
27
28
|
/**
|
|
28
|
-
* @generated from protobuf field: resources.timestamp.Timestamp date = 3
|
|
29
|
+
* @generated from protobuf field: resources.timestamp.Timestamp date = 3
|
|
29
30
|
*/
|
|
30
|
-
date?: Timestamp;
|
|
31
|
+
date?: Timestamp;
|
|
31
32
|
/**
|
|
32
|
-
* @generated from protobuf field: optional resources.jobs.Colleague user = 4
|
|
33
|
+
* @generated from protobuf field: optional resources.jobs.Colleague user = 4
|
|
33
34
|
*/
|
|
34
35
|
user?: Colleague;
|
|
35
36
|
/**
|
|
36
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp start_time = 5
|
|
37
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp start_time = 5
|
|
37
38
|
*/
|
|
38
|
-
startTime?: Timestamp;
|
|
39
|
+
startTime?: Timestamp;
|
|
39
40
|
/**
|
|
40
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp end_time = 6
|
|
41
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp end_time = 6
|
|
41
42
|
*/
|
|
42
43
|
endTime?: Timestamp;
|
|
43
44
|
/**
|
|
44
|
-
* @generated from protobuf field: float spent_time = 7
|
|
45
|
+
* @generated from protobuf field: float spent_time = 7
|
|
45
46
|
*/
|
|
46
47
|
spentTime: number;
|
|
47
48
|
}
|
|
@@ -50,19 +51,19 @@ export interface TimeclockEntry {
|
|
|
50
51
|
*/
|
|
51
52
|
export interface TimeclockStats {
|
|
52
53
|
/**
|
|
53
|
-
* @generated from protobuf field: string job = 1
|
|
54
|
+
* @generated from protobuf field: string job = 1
|
|
54
55
|
*/
|
|
55
56
|
job: string;
|
|
56
57
|
/**
|
|
57
|
-
* @generated from protobuf field: float spent_time_sum = 2
|
|
58
|
+
* @generated from protobuf field: float spent_time_sum = 2
|
|
58
59
|
*/
|
|
59
60
|
spentTimeSum: number;
|
|
60
61
|
/**
|
|
61
|
-
* @generated from protobuf field: float spent_time_avg = 3
|
|
62
|
+
* @generated from protobuf field: float spent_time_avg = 3
|
|
62
63
|
*/
|
|
63
64
|
spentTimeAvg: number;
|
|
64
65
|
/**
|
|
65
|
-
* @generated from protobuf field: float spent_time_max = 4
|
|
66
|
+
* @generated from protobuf field: float spent_time_max = 4
|
|
66
67
|
*/
|
|
67
68
|
spentTimeMax: number;
|
|
68
69
|
}
|
|
@@ -71,23 +72,23 @@ export interface TimeclockStats {
|
|
|
71
72
|
*/
|
|
72
73
|
export interface TimeclockWeeklyStats {
|
|
73
74
|
/**
|
|
74
|
-
* @generated from protobuf field: int32 year = 1
|
|
75
|
+
* @generated from protobuf field: int32 year = 1
|
|
75
76
|
*/
|
|
76
77
|
year: number;
|
|
77
78
|
/**
|
|
78
|
-
* @generated from protobuf field: int32 calendar_week = 2
|
|
79
|
+
* @generated from protobuf field: int32 calendar_week = 2
|
|
79
80
|
*/
|
|
80
81
|
calendarWeek: number;
|
|
81
82
|
/**
|
|
82
|
-
* @generated from protobuf field: float sum = 3
|
|
83
|
+
* @generated from protobuf field: float sum = 3
|
|
83
84
|
*/
|
|
84
85
|
sum: number;
|
|
85
86
|
/**
|
|
86
|
-
* @generated from protobuf field: float avg = 4
|
|
87
|
+
* @generated from protobuf field: float avg = 4
|
|
87
88
|
*/
|
|
88
89
|
avg: number;
|
|
89
90
|
/**
|
|
90
|
-
* @generated from protobuf field: float max = 5
|
|
91
|
+
* @generated from protobuf field: float max = 5
|
|
91
92
|
*/
|
|
92
93
|
max: number;
|
|
93
94
|
}
|
|
@@ -137,11 +138,11 @@ export enum TimeclockViewMode {
|
|
|
137
138
|
class TimeclockEntry$Type extends MessageType<TimeclockEntry> {
|
|
138
139
|
constructor() {
|
|
139
140
|
super("resources.jobs.TimeclockEntry", [
|
|
140
|
-
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
141
|
-
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
142
|
-
{ no: 3, name: "date", kind: "message", T: () => Timestamp },
|
|
141
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } }, "tagger.tags": "sql:\"primary_key\"" } },
|
|
142
|
+
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
143
|
+
{ no: 3, name: "date", kind: "message", T: () => Timestamp, options: { "tagger.tags": "sql:\"primary_key\"" } },
|
|
143
144
|
{ no: 4, name: "user", kind: "message", T: () => Colleague },
|
|
144
|
-
{ no: 5, name: "start_time", kind: "message", T: () => Timestamp },
|
|
145
|
+
{ no: 5, name: "start_time", kind: "message", T: () => Timestamp, options: { "tagger.tags": "sql:\"primary_key\"" } },
|
|
145
146
|
{ no: 6, name: "end_time", kind: "message", T: () => Timestamp },
|
|
146
147
|
{ no: 7, name: "spent_time", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
|
147
148
|
]);
|
|
@@ -228,7 +229,7 @@ export const TimeclockEntry = new TimeclockEntry$Type();
|
|
|
228
229
|
class TimeclockStats$Type extends MessageType<TimeclockStats> {
|
|
229
230
|
constructor() {
|
|
230
231
|
super("resources.jobs.TimeclockStats", [
|
|
231
|
-
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
232
|
+
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
232
233
|
{ no: 2, name: "spent_time_sum", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
233
234
|
{ no: 3, name: "spent_time_avg", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
234
235
|
{ no: 4, name: "spent_time_max", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
package/resources/laws/laws.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/laws/laws.proto" (package "resources.laws", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -16,31 +17,27 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
16
17
|
*/
|
|
17
18
|
export interface LawBook {
|
|
18
19
|
/**
|
|
19
|
-
* @generated from protobuf field:
|
|
20
|
+
* @generated from protobuf field: int64 id = 1
|
|
20
21
|
*/
|
|
21
|
-
id: number;
|
|
22
|
+
id: number;
|
|
22
23
|
/**
|
|
23
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
24
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
24
25
|
*/
|
|
25
26
|
createdAt?: Timestamp;
|
|
26
27
|
/**
|
|
27
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
28
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
28
29
|
*/
|
|
29
30
|
updatedAt?: Timestamp;
|
|
30
31
|
/**
|
|
31
|
-
* @
|
|
32
|
-
*
|
|
33
|
-
* @generated from protobuf field: string name = 4;
|
|
32
|
+
* @generated from protobuf field: string name = 4
|
|
34
33
|
*/
|
|
35
34
|
name: string;
|
|
36
35
|
/**
|
|
37
|
-
* @
|
|
38
|
-
*
|
|
39
|
-
* @generated from protobuf field: optional string description = 5;
|
|
36
|
+
* @generated from protobuf field: optional string description = 5
|
|
40
37
|
*/
|
|
41
38
|
description?: string;
|
|
42
39
|
/**
|
|
43
|
-
* @generated from protobuf field: repeated resources.laws.Law laws = 6
|
|
40
|
+
* @generated from protobuf field: repeated resources.laws.Law laws = 6
|
|
44
41
|
*/
|
|
45
42
|
laws: Law[];
|
|
46
43
|
}
|
|
@@ -49,49 +46,43 @@ export interface LawBook {
|
|
|
49
46
|
*/
|
|
50
47
|
export interface Law {
|
|
51
48
|
/**
|
|
52
|
-
* @generated from protobuf field:
|
|
49
|
+
* @generated from protobuf field: int64 id = 1
|
|
53
50
|
*/
|
|
54
|
-
id: number;
|
|
51
|
+
id: number;
|
|
55
52
|
/**
|
|
56
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
53
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
57
54
|
*/
|
|
58
55
|
createdAt?: Timestamp;
|
|
59
56
|
/**
|
|
60
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
57
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
61
58
|
*/
|
|
62
59
|
updatedAt?: Timestamp;
|
|
63
60
|
/**
|
|
64
|
-
* @generated from protobuf field:
|
|
61
|
+
* @generated from protobuf field: int64 lawbook_id = 4
|
|
65
62
|
*/
|
|
66
63
|
lawbookId: number;
|
|
67
64
|
/**
|
|
68
|
-
* @
|
|
69
|
-
*
|
|
70
|
-
* @generated from protobuf field: string name = 5;
|
|
65
|
+
* @generated from protobuf field: string name = 5
|
|
71
66
|
*/
|
|
72
67
|
name: string;
|
|
73
68
|
/**
|
|
74
|
-
* @
|
|
75
|
-
*
|
|
76
|
-
* @generated from protobuf field: optional string description = 6;
|
|
69
|
+
* @generated from protobuf field: optional string description = 6
|
|
77
70
|
*/
|
|
78
71
|
description?: string;
|
|
79
72
|
/**
|
|
80
|
-
* @
|
|
81
|
-
*
|
|
82
|
-
* @generated from protobuf field: optional string hint = 7;
|
|
73
|
+
* @generated from protobuf field: optional string hint = 7
|
|
83
74
|
*/
|
|
84
75
|
hint?: string;
|
|
85
76
|
/**
|
|
86
|
-
* @generated from protobuf field: optional uint32 fine = 8
|
|
77
|
+
* @generated from protobuf field: optional uint32 fine = 8
|
|
87
78
|
*/
|
|
88
79
|
fine?: number;
|
|
89
80
|
/**
|
|
90
|
-
* @generated from protobuf field: optional uint32 detention_time = 9
|
|
81
|
+
* @generated from protobuf field: optional uint32 detention_time = 9
|
|
91
82
|
*/
|
|
92
83
|
detentionTime?: number;
|
|
93
84
|
/**
|
|
94
|
-
* @generated from protobuf field: optional uint32 stvo_points = 10
|
|
85
|
+
* @generated from protobuf field: optional uint32 stvo_points = 10
|
|
95
86
|
*/
|
|
96
87
|
stvoPoints?: number;
|
|
97
88
|
}
|
|
@@ -99,11 +90,11 @@ export interface Law {
|
|
|
99
90
|
class LawBook$Type extends MessageType<LawBook> {
|
|
100
91
|
constructor() {
|
|
101
92
|
super("resources.laws.LawBook", [
|
|
102
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
93
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
103
94
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
104
95
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
105
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
106
|
-
{ no: 5, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
96
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
97
|
+
{ no: 5, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
107
98
|
{ no: 6, name: "laws", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Law }
|
|
108
99
|
]);
|
|
109
100
|
}
|
|
@@ -121,8 +112,8 @@ class LawBook$Type extends MessageType<LawBook> {
|
|
|
121
112
|
while (reader.pos < end) {
|
|
122
113
|
let [fieldNo, wireType] = reader.tag();
|
|
123
114
|
switch (fieldNo) {
|
|
124
|
-
case /*
|
|
125
|
-
message.id = reader.
|
|
115
|
+
case /* int64 id */ 1:
|
|
116
|
+
message.id = reader.int64().toNumber();
|
|
126
117
|
break;
|
|
127
118
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
128
119
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -151,9 +142,9 @@ class LawBook$Type extends MessageType<LawBook> {
|
|
|
151
142
|
return message;
|
|
152
143
|
}
|
|
153
144
|
internalBinaryWrite(message: LawBook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
154
|
-
/*
|
|
145
|
+
/* int64 id = 1; */
|
|
155
146
|
if (message.id !== 0)
|
|
156
|
-
writer.tag(1, WireType.Varint).
|
|
147
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
157
148
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
158
149
|
if (message.createdAt)
|
|
159
150
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -183,13 +174,13 @@ export const LawBook = new LawBook$Type();
|
|
|
183
174
|
class Law$Type extends MessageType<Law> {
|
|
184
175
|
constructor() {
|
|
185
176
|
super("resources.laws.Law", [
|
|
186
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
177
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"law.id\"" } },
|
|
187
178
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
188
179
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
189
|
-
{ no: 4, name: "lawbook_id", kind: "scalar", T:
|
|
190
|
-
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
191
|
-
{ no: 6, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
192
|
-
{ no: 7, name: "hint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
180
|
+
{ no: 4, name: "lawbook_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
181
|
+
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
182
|
+
{ no: 6, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
183
|
+
{ no: 7, name: "hint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
193
184
|
{ no: 8, name: "fine", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
194
185
|
{ no: 9, name: "detention_time", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
195
186
|
{ no: 10, name: "stvo_points", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
|
|
@@ -209,8 +200,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
209
200
|
while (reader.pos < end) {
|
|
210
201
|
let [fieldNo, wireType] = reader.tag();
|
|
211
202
|
switch (fieldNo) {
|
|
212
|
-
case /*
|
|
213
|
-
message.id = reader.
|
|
203
|
+
case /* int64 id */ 1:
|
|
204
|
+
message.id = reader.int64().toNumber();
|
|
214
205
|
break;
|
|
215
206
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
216
207
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -218,8 +209,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
218
209
|
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
219
210
|
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
220
211
|
break;
|
|
221
|
-
case /*
|
|
222
|
-
message.lawbookId = reader.
|
|
212
|
+
case /* int64 lawbook_id */ 4:
|
|
213
|
+
message.lawbookId = reader.int64().toNumber();
|
|
223
214
|
break;
|
|
224
215
|
case /* string name */ 5:
|
|
225
216
|
message.name = reader.string();
|
|
@@ -251,18 +242,18 @@ class Law$Type extends MessageType<Law> {
|
|
|
251
242
|
return message;
|
|
252
243
|
}
|
|
253
244
|
internalBinaryWrite(message: Law, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
254
|
-
/*
|
|
245
|
+
/* int64 id = 1; */
|
|
255
246
|
if (message.id !== 0)
|
|
256
|
-
writer.tag(1, WireType.Varint).
|
|
247
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
257
248
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
258
249
|
if (message.createdAt)
|
|
259
250
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
260
251
|
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
261
252
|
if (message.updatedAt)
|
|
262
253
|
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
263
|
-
/*
|
|
254
|
+
/* int64 lawbook_id = 4; */
|
|
264
255
|
if (message.lawbookId !== 0)
|
|
265
|
-
writer.tag(4, WireType.Varint).
|
|
256
|
+
writer.tag(4, WireType.Varint).int64(message.lawbookId);
|
|
266
257
|
/* string name = 5; */
|
|
267
258
|
if (message.name !== "")
|
|
268
259
|
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "resources/livemap/coords.proto" (package "resources.livemap", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message resources.livemap.Coords
|
|
16
|
+
*/
|
|
17
|
+
export interface Coords {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: double x = 1
|
|
20
|
+
*/
|
|
21
|
+
x: number;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: double y = 2
|
|
24
|
+
*/
|
|
25
|
+
y: number;
|
|
26
|
+
}
|
|
27
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
28
|
+
class Coords$Type extends MessageType<Coords> {
|
|
29
|
+
constructor() {
|
|
30
|
+
super("resources.livemap.Coords", [
|
|
31
|
+
{ no: 1, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
32
|
+
{ no: 2, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
create(value?: PartialMessage<Coords>): Coords {
|
|
36
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
37
|
+
message.x = 0;
|
|
38
|
+
message.y = 0;
|
|
39
|
+
if (value !== undefined)
|
|
40
|
+
reflectionMergePartial<Coords>(this, message, value);
|
|
41
|
+
return message;
|
|
42
|
+
}
|
|
43
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Coords): Coords {
|
|
44
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
45
|
+
while (reader.pos < end) {
|
|
46
|
+
let [fieldNo, wireType] = reader.tag();
|
|
47
|
+
switch (fieldNo) {
|
|
48
|
+
case /* double x */ 1:
|
|
49
|
+
message.x = reader.double();
|
|
50
|
+
break;
|
|
51
|
+
case /* double y */ 2:
|
|
52
|
+
message.y = reader.double();
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
let u = options.readUnknownField;
|
|
56
|
+
if (u === "throw")
|
|
57
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
58
|
+
let d = reader.skip(wireType);
|
|
59
|
+
if (u !== false)
|
|
60
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
}
|
|
65
|
+
internalBinaryWrite(message: Coords, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
66
|
+
/* double x = 1; */
|
|
67
|
+
if (message.x !== 0)
|
|
68
|
+
writer.tag(1, WireType.Bit64).double(message.x);
|
|
69
|
+
/* double y = 2; */
|
|
70
|
+
if (message.y !== 0)
|
|
71
|
+
writer.tag(2, WireType.Bit64).double(message.y);
|
|
72
|
+
let u = options.writeUnknownFields;
|
|
73
|
+
if (u !== false)
|
|
74
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
75
|
+
return writer;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated MessageType for protobuf message resources.livemap.Coords
|
|
80
|
+
*/
|
|
81
|
+
export const Coords = new Coords$Type();
|