@fivenet-app/gen 0.9.4-0 → 0.9.5-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +2 -2
- package/perms.ts +5 -1
- package/resources/accounts/accounts.ts +1 -1
- package/resources/accounts/oauth2.ts +1 -1
- package/resources/calendar/access.ts +3 -3
- package/resources/calendar/calendar.ts +3 -1
- package/resources/centrum/access.ts +19 -4
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +11 -9
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +9 -9
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +7 -5
- package/resources/documents/activity.ts +3 -1
- package/resources/documents/category.ts +1 -1
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +3 -3
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +18 -3
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +47 -47
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +44 -11
- package/resources/internet/page.ts +194 -4
- package/resources/internet/search.ts +34 -10
- package/resources/jobs/activity.ts +3 -1
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +1 -1
- package/resources/jobs/labels.ts +1 -1
- package/resources/jobs/timeclock.ts +1 -1
- package/resources/laws/laws.ts +1 -1
- package/resources/livemap/livemap.ts +313 -294
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +4 -4
- package/resources/mailer/email.ts +1 -1
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +127 -21
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +1 -1
- package/resources/notifications/events.ts +74 -2
- package/resources/notifications/notifications.ts +3 -1
- package/resources/permissions/permissions.ts +3 -1
- package/resources/qualifications/access.ts +18 -9
- package/resources/qualifications/exam.ts +186 -4
- package/resources/qualifications/qualifications.ts +35 -7
- package/resources/rector/audit.ts +1 -1
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +1 -1
- package/resources/sync/data.ts +1 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +3 -1
- package/resources/users/job_props.ts +3 -1
- package/resources/users/job_settings.ts +47 -3
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +3 -1
- package/resources/users/licenses.ts +3 -3
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +1 -1
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +4 -8
- package/resources/wiki/activity.ts +3 -1
- package/resources/wiki/page.ts +1 -1
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +94 -17
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +43 -4
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +156 -13
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +1 -1
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +212 -17
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +13 -30
- package/services/internet/domain.ts +159 -196
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +13 -2
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +15 -2
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +29 -3
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +19 -19
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +129 -27
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +57 -5
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +15 -2
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +82 -7
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +29 -3
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +72 -7
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +7 -1
- package/services/sync/sync.ts +58 -6
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +6 -3
- package/resources/centrum/general.ts +0 -231
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
//
|
|
@@ -107,7 +107,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
107
107
|
* microsecond should be expressed in JSON format as "3.000001s".
|
|
108
108
|
*
|
|
109
109
|
*
|
|
110
|
-
*
|
|
111
110
|
* @generated from protobuf message google.protobuf.Duration
|
|
112
111
|
*/
|
|
113
112
|
export interface Duration {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
//
|
|
@@ -97,7 +97,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
97
97
|
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
98
98
|
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
99
99
|
*
|
|
100
|
-
*
|
|
101
100
|
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
102
101
|
*
|
|
103
102
|
* Instant now = Instant.now();
|
|
@@ -106,7 +105,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
106
105
|
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
107
106
|
* .setNanos(now.getNano()).build();
|
|
108
107
|
*
|
|
109
|
-
*
|
|
110
108
|
* Example 6: Compute Timestamp from current time in Python.
|
|
111
109
|
*
|
|
112
110
|
* timestamp = Timestamp()
|
|
@@ -136,11 +134,10 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
136
134
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
137
135
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
138
136
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
139
|
-
* http://
|
|
137
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
140
138
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
141
139
|
*
|
|
142
140
|
*
|
|
143
|
-
*
|
|
144
141
|
* @generated from protobuf message google.protobuf.Timestamp
|
|
145
142
|
*/
|
|
146
143
|
export interface Timestamp {
|
|
@@ -193,7 +190,7 @@ class Timestamp$Type extends MessageType<Timestamp> {
|
|
|
193
190
|
const msg = this.create();
|
|
194
191
|
const ms = date.getTime();
|
|
195
192
|
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toNumber();
|
|
196
|
-
msg.nanos = (ms % 1000) * 1000000;
|
|
193
|
+
msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
|
|
197
194
|
return msg;
|
|
198
195
|
}
|
|
199
196
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fivenet-app/gen",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.5-0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/fivenet-app/fivenet.git"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@protobuf-ts/plugin": "2.9.
|
|
12
|
+
"@protobuf-ts/plugin": "2.9.6",
|
|
13
13
|
"google-protobuf": "3.21.4"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/perms.ts
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
// source: resources/calendar/access.proto
|
|
5
5
|
// source: resources/calendar/calendar.proto
|
|
6
6
|
// source: resources/centrum/access.proto
|
|
7
|
+
// source: resources/centrum/attributes.proto
|
|
7
8
|
// source: resources/centrum/dispatches.proto
|
|
8
|
-
// source: resources/centrum/
|
|
9
|
+
// source: resources/centrum/disponents.proto
|
|
9
10
|
// source: resources/centrum/settings.proto
|
|
10
11
|
// source: resources/centrum/units.proto
|
|
12
|
+
// source: resources/centrum/user_unit.proto
|
|
11
13
|
// source: resources/common/error.proto
|
|
12
14
|
// source: resources/common/i18n.proto
|
|
13
15
|
// source: resources/common/uuid.proto
|
|
@@ -15,6 +17,7 @@
|
|
|
15
17
|
// source: resources/common/cron/cron.proto
|
|
16
18
|
// source: resources/common/database/database.proto
|
|
17
19
|
// source: resources/common/grpcws/grpcws.proto
|
|
20
|
+
// source: resources/common/tests/objects.proto
|
|
18
21
|
// source: resources/documents/access.proto
|
|
19
22
|
// source: resources/documents/activity.proto
|
|
20
23
|
// source: resources/documents/category.proto
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
// source: resources/qualifications/exam.proto
|
|
52
55
|
// source: resources/qualifications/qualifications.proto
|
|
53
56
|
// source: resources/rector/audit.proto
|
|
57
|
+
// source: resources/rector/banner.proto
|
|
54
58
|
// source: resources/rector/config.proto
|
|
55
59
|
// source: resources/stats/stats.proto
|
|
56
60
|
// source: resources/sync/activity.proto
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/accounts/accounts.proto" (package "resources.accounts", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/accounts/oauth2.proto" (package "resources.accounts", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/calendar/access.proto" (package "resources.calendar", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -40,7 +40,7 @@ export interface CalendarJobAccess {
|
|
|
40
40
|
/**
|
|
41
41
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
42
42
|
*/
|
|
43
|
-
targetId: number;
|
|
43
|
+
targetId: number;
|
|
44
44
|
/**
|
|
45
45
|
* @generated from protobuf field: string job = 4;
|
|
46
46
|
*/
|
|
@@ -77,7 +77,7 @@ export interface CalendarUserAccess {
|
|
|
77
77
|
/**
|
|
78
78
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
79
79
|
*/
|
|
80
|
-
targetId: number;
|
|
80
|
+
targetId: number;
|
|
81
81
|
/**
|
|
82
82
|
* @generated from protobuf field: int32 user_id = 4;
|
|
83
83
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/calendar/calendar.proto" (package "resources.calendar", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -239,6 +239,8 @@ export interface CalendarEntry {
|
|
|
239
239
|
rsvp?: CalendarEntryRSVP;
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
+
* @dbscanner: json
|
|
243
|
+
*
|
|
242
244
|
* @generated from protobuf message resources.calendar.CalendarEntryRecurring
|
|
243
245
|
*/
|
|
244
246
|
export interface CalendarEntryRecurring {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/centrum/access.proto" (package "resources.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -13,6 +13,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { QualificationShort } from "../qualifications/qualifications";
|
|
14
14
|
import { Timestamp } from "../timestamp/timestamp";
|
|
15
15
|
/**
|
|
16
|
+
* @dbscanner: json
|
|
17
|
+
*
|
|
16
18
|
* @generated from protobuf message resources.centrum.UnitAccess
|
|
17
19
|
*/
|
|
18
20
|
export interface UnitAccess {
|
|
@@ -40,7 +42,7 @@ export interface UnitJobAccess {
|
|
|
40
42
|
/**
|
|
41
43
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
42
44
|
*/
|
|
43
|
-
targetId: number;
|
|
45
|
+
targetId: number;
|
|
44
46
|
/**
|
|
45
47
|
* @generated from protobuf field: string job = 4;
|
|
46
48
|
*/
|
|
@@ -82,7 +84,7 @@ export interface UnitQualificationAccess {
|
|
|
82
84
|
/**
|
|
83
85
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
84
86
|
*/
|
|
85
|
-
targetId: number;
|
|
87
|
+
targetId: number;
|
|
86
88
|
/**
|
|
87
89
|
* @generated from protobuf field: uint64 qualification_id = 4;
|
|
88
90
|
*/
|
|
@@ -280,7 +282,20 @@ class UnitUserAccess$Type extends MessageType<UnitUserAccess> {
|
|
|
280
282
|
return message;
|
|
281
283
|
}
|
|
282
284
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnitUserAccess): UnitUserAccess {
|
|
283
|
-
|
|
285
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
286
|
+
while (reader.pos < end) {
|
|
287
|
+
let [fieldNo, wireType] = reader.tag();
|
|
288
|
+
switch (fieldNo) {
|
|
289
|
+
default:
|
|
290
|
+
let u = options.readUnknownField;
|
|
291
|
+
if (u === "throw")
|
|
292
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
293
|
+
let d = reader.skip(wireType);
|
|
294
|
+
if (u !== false)
|
|
295
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return message;
|
|
284
299
|
}
|
|
285
300
|
internalBinaryWrite(message: UnitUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
286
301
|
let u = options.writeUnknownFields;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/centrum/attributes.proto" (package "resources.centrum", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
/**
|
|
14
|
+
* @dbscanner: json
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf message resources.centrum.UnitAttributes
|
|
17
|
+
*/
|
|
18
|
+
export interface UnitAttributes {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: repeated resources.centrum.UnitAttribute list = 1;
|
|
21
|
+
*/
|
|
22
|
+
list: UnitAttribute[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @dbscanner: json
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf message resources.centrum.DispatchAttributes
|
|
28
|
+
*/
|
|
29
|
+
export interface DispatchAttributes {
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: repeated resources.centrum.DispatchAttribute list = 1;
|
|
32
|
+
*/
|
|
33
|
+
list: DispatchAttribute[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf enum resources.centrum.UnitAttribute
|
|
37
|
+
*/
|
|
38
|
+
export enum UnitAttribute {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf enum value: UNIT_ATTRIBUTE_UNSPECIFIED = 0;
|
|
41
|
+
*/
|
|
42
|
+
UNSPECIFIED = 0,
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf enum value: UNIT_ATTRIBUTE_STATIC = 1;
|
|
45
|
+
*/
|
|
46
|
+
STATIC = 1,
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf enum value: UNIT_ATTRIBUTE_NO_DISPATCH_AUTO_ASSIGN = 2;
|
|
49
|
+
*/
|
|
50
|
+
NO_DISPATCH_AUTO_ASSIGN = 2
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf enum resources.centrum.DispatchAttribute
|
|
54
|
+
*/
|
|
55
|
+
export enum DispatchAttribute {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf enum value: DISPATCH_ATTRIBUTE_UNSPECIFIED = 0;
|
|
58
|
+
*/
|
|
59
|
+
UNSPECIFIED = 0,
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf enum value: DISPATCH_ATTRIBUTE_MULTIPLE = 1;
|
|
62
|
+
*/
|
|
63
|
+
MULTIPLE = 1,
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf enum value: DISPATCH_ATTRIBUTE_DUPLICATE = 2;
|
|
66
|
+
*/
|
|
67
|
+
DUPLICATE = 2,
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf enum value: DISPATCH_ATTRIBUTE_TOO_OLD = 3;
|
|
70
|
+
*/
|
|
71
|
+
TOO_OLD = 3
|
|
72
|
+
}
|
|
73
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
74
|
+
class UnitAttributes$Type extends MessageType<UnitAttributes> {
|
|
75
|
+
constructor() {
|
|
76
|
+
super("resources.centrum.UnitAttributes", [
|
|
77
|
+
{ no: 1, name: "list", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.UnitAttribute", UnitAttribute, "UNIT_ATTRIBUTE_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } }
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
create(value?: PartialMessage<UnitAttributes>): UnitAttributes {
|
|
81
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
82
|
+
message.list = [];
|
|
83
|
+
if (value !== undefined)
|
|
84
|
+
reflectionMergePartial<UnitAttributes>(this, message, value);
|
|
85
|
+
return message;
|
|
86
|
+
}
|
|
87
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnitAttributes): UnitAttributes {
|
|
88
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
89
|
+
while (reader.pos < end) {
|
|
90
|
+
let [fieldNo, wireType] = reader.tag();
|
|
91
|
+
switch (fieldNo) {
|
|
92
|
+
case /* repeated resources.centrum.UnitAttribute list */ 1:
|
|
93
|
+
if (wireType === WireType.LengthDelimited)
|
|
94
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
95
|
+
message.list.push(reader.int32());
|
|
96
|
+
else
|
|
97
|
+
message.list.push(reader.int32());
|
|
98
|
+
break;
|
|
99
|
+
default:
|
|
100
|
+
let u = options.readUnknownField;
|
|
101
|
+
if (u === "throw")
|
|
102
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
103
|
+
let d = reader.skip(wireType);
|
|
104
|
+
if (u !== false)
|
|
105
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
internalBinaryWrite(message: UnitAttributes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
111
|
+
/* repeated resources.centrum.UnitAttribute list = 1; */
|
|
112
|
+
if (message.list.length) {
|
|
113
|
+
writer.tag(1, WireType.LengthDelimited).fork();
|
|
114
|
+
for (let i = 0; i < message.list.length; i++)
|
|
115
|
+
writer.int32(message.list[i]);
|
|
116
|
+
writer.join();
|
|
117
|
+
}
|
|
118
|
+
let u = options.writeUnknownFields;
|
|
119
|
+
if (u !== false)
|
|
120
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
121
|
+
return writer;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @generated MessageType for protobuf message resources.centrum.UnitAttributes
|
|
126
|
+
*/
|
|
127
|
+
export const UnitAttributes = new UnitAttributes$Type();
|
|
128
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
129
|
+
class DispatchAttributes$Type extends MessageType<DispatchAttributes> {
|
|
130
|
+
constructor() {
|
|
131
|
+
super("resources.centrum.DispatchAttributes", [
|
|
132
|
+
{ no: 1, name: "list", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.DispatchAttribute", DispatchAttribute, "DISPATCH_ATTRIBUTE_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } }
|
|
133
|
+
]);
|
|
134
|
+
}
|
|
135
|
+
create(value?: PartialMessage<DispatchAttributes>): DispatchAttributes {
|
|
136
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
137
|
+
message.list = [];
|
|
138
|
+
if (value !== undefined)
|
|
139
|
+
reflectionMergePartial<DispatchAttributes>(this, message, value);
|
|
140
|
+
return message;
|
|
141
|
+
}
|
|
142
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchAttributes): DispatchAttributes {
|
|
143
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
144
|
+
while (reader.pos < end) {
|
|
145
|
+
let [fieldNo, wireType] = reader.tag();
|
|
146
|
+
switch (fieldNo) {
|
|
147
|
+
case /* repeated resources.centrum.DispatchAttribute list */ 1:
|
|
148
|
+
if (wireType === WireType.LengthDelimited)
|
|
149
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
150
|
+
message.list.push(reader.int32());
|
|
151
|
+
else
|
|
152
|
+
message.list.push(reader.int32());
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
let u = options.readUnknownField;
|
|
156
|
+
if (u === "throw")
|
|
157
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
158
|
+
let d = reader.skip(wireType);
|
|
159
|
+
if (u !== false)
|
|
160
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return message;
|
|
164
|
+
}
|
|
165
|
+
internalBinaryWrite(message: DispatchAttributes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
166
|
+
/* repeated resources.centrum.DispatchAttribute list = 1; */
|
|
167
|
+
if (message.list.length) {
|
|
168
|
+
writer.tag(1, WireType.LengthDelimited).fork();
|
|
169
|
+
for (let i = 0; i < message.list.length; i++)
|
|
170
|
+
writer.int32(message.list[i]);
|
|
171
|
+
writer.join();
|
|
172
|
+
}
|
|
173
|
+
let u = options.writeUnknownFields;
|
|
174
|
+
if (u !== false)
|
|
175
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
176
|
+
return writer;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @generated MessageType for protobuf message resources.centrum.DispatchAttributes
|
|
181
|
+
*/
|
|
182
|
+
export const DispatchAttributes = new DispatchAttributes$Type();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/centrum/dispatches.proto" (package "resources.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -13,7 +13,7 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { Colleague } from "../jobs/colleagues";
|
|
14
14
|
import { Unit } from "./units";
|
|
15
15
|
import { User } from "../users/users";
|
|
16
|
-
import {
|
|
16
|
+
import { DispatchAttributes } from "./attributes";
|
|
17
17
|
import { Timestamp } from "../timestamp/timestamp";
|
|
18
18
|
/**
|
|
19
19
|
* @generated from protobuf message resources.centrum.Dispatch
|
|
@@ -52,9 +52,9 @@ export interface Dispatch {
|
|
|
52
52
|
*/
|
|
53
53
|
description?: string;
|
|
54
54
|
/**
|
|
55
|
-
* @generated from protobuf field: optional resources.centrum.
|
|
55
|
+
* @generated from protobuf field: optional resources.centrum.DispatchAttributes attributes = 9;
|
|
56
56
|
*/
|
|
57
|
-
attributes?:
|
|
57
|
+
attributes?: DispatchAttributes;
|
|
58
58
|
/**
|
|
59
59
|
* @generated from protobuf field: double x = 10;
|
|
60
60
|
*/
|
|
@@ -196,6 +196,8 @@ export interface DispatchStatus {
|
|
|
196
196
|
postal?: string;
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
+
* @dbscanner: json
|
|
200
|
+
*
|
|
199
201
|
* @generated from protobuf message resources.centrum.DispatchReferences
|
|
200
202
|
*/
|
|
201
203
|
export interface DispatchReferences {
|
|
@@ -331,7 +333,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
|
|
|
331
333
|
{ no: 5, name: "status", kind: "message", T: () => DispatchStatus },
|
|
332
334
|
{ no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
333
335
|
{ no: 8, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "1024" } } } },
|
|
334
|
-
{ no: 9, name: "attributes", kind: "message", T: () =>
|
|
336
|
+
{ no: 9, name: "attributes", kind: "message", T: () => DispatchAttributes },
|
|
335
337
|
{ no: 10, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
336
338
|
{ no: 11, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
337
339
|
{ no: 12, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
|
|
@@ -381,8 +383,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
|
|
|
381
383
|
case /* optional string description */ 8:
|
|
382
384
|
message.description = reader.string();
|
|
383
385
|
break;
|
|
384
|
-
case /* optional resources.centrum.
|
|
385
|
-
message.attributes =
|
|
386
|
+
case /* optional resources.centrum.DispatchAttributes attributes */ 9:
|
|
387
|
+
message.attributes = DispatchAttributes.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
386
388
|
break;
|
|
387
389
|
case /* double x */ 10:
|
|
388
390
|
message.x = reader.double();
|
|
@@ -441,9 +443,9 @@ class Dispatch$Type extends MessageType<Dispatch> {
|
|
|
441
443
|
/* optional string description = 8; */
|
|
442
444
|
if (message.description !== undefined)
|
|
443
445
|
writer.tag(8, WireType.LengthDelimited).string(message.description);
|
|
444
|
-
/* optional resources.centrum.
|
|
446
|
+
/* optional resources.centrum.DispatchAttributes attributes = 9; */
|
|
445
447
|
if (message.attributes)
|
|
446
|
-
|
|
448
|
+
DispatchAttributes.internalBinaryWrite(message.attributes, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
447
449
|
/* double x = 10; */
|
|
448
450
|
if (message.x !== 0)
|
|
449
451
|
writer.tag(10, WireType.Bit64).double(message.x);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/centrum/disponents.proto" (package "resources.centrum", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Colleague } from "../jobs/colleagues";
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message resources.centrum.Disponents
|
|
16
|
+
*/
|
|
17
|
+
export interface Disponents {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: string job = 1;
|
|
20
|
+
*/
|
|
21
|
+
job: string;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: repeated resources.jobs.Colleague disponents = 2;
|
|
24
|
+
*/
|
|
25
|
+
disponents: Colleague[];
|
|
26
|
+
}
|
|
27
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
28
|
+
class Disponents$Type extends MessageType<Disponents> {
|
|
29
|
+
constructor() {
|
|
30
|
+
super("resources.centrum.Disponents", [
|
|
31
|
+
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
32
|
+
{ no: 2, name: "disponents", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Colleague }
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
create(value?: PartialMessage<Disponents>): Disponents {
|
|
36
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
37
|
+
message.job = "";
|
|
38
|
+
message.disponents = [];
|
|
39
|
+
if (value !== undefined)
|
|
40
|
+
reflectionMergePartial<Disponents>(this, message, value);
|
|
41
|
+
return message;
|
|
42
|
+
}
|
|
43
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Disponents): Disponents {
|
|
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 /* string job */ 1:
|
|
49
|
+
message.job = reader.string();
|
|
50
|
+
break;
|
|
51
|
+
case /* repeated resources.jobs.Colleague disponents */ 2:
|
|
52
|
+
message.disponents.push(Colleague.internalBinaryRead(reader, reader.uint32(), options));
|
|
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: Disponents, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
66
|
+
/* string job = 1; */
|
|
67
|
+
if (message.job !== "")
|
|
68
|
+
writer.tag(1, WireType.LengthDelimited).string(message.job);
|
|
69
|
+
/* repeated resources.jobs.Colleague disponents = 2; */
|
|
70
|
+
for (let i = 0; i < message.disponents.length; i++)
|
|
71
|
+
Colleague.internalBinaryWrite(message.disponents[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
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.centrum.Disponents
|
|
80
|
+
*/
|
|
81
|
+
export const Disponents = new Disponents$Type();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/centrum/settings.proto" (package "resources.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -40,6 +40,8 @@ export interface Settings {
|
|
|
40
40
|
timings?: Timings;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
+
* @dbscanner: json
|
|
44
|
+
*
|
|
43
45
|
* @generated from protobuf message resources.centrum.PredefinedStatus
|
|
44
46
|
*/
|
|
45
47
|
export interface PredefinedStatus {
|
|
@@ -57,6 +59,8 @@ export interface PredefinedStatus {
|
|
|
57
59
|
dispatchStatus: string[];
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
62
|
+
* @dbscanner: json
|
|
63
|
+
*
|
|
60
64
|
* @generated from protobuf message resources.centrum.Timings
|
|
61
65
|
*/
|
|
62
66
|
export interface Timings {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/centrum/units.proto" (package "resources.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -12,7 +12,7 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Colleague } from "../jobs/colleagues";
|
|
14
14
|
import { UnitAccess } from "./access";
|
|
15
|
-
import {
|
|
15
|
+
import { UnitAttributes } from "./attributes";
|
|
16
16
|
import { Timestamp } from "../timestamp/timestamp";
|
|
17
17
|
/**
|
|
18
18
|
* @generated from protobuf message resources.centrum.Unit
|
|
@@ -67,9 +67,9 @@ export interface Unit {
|
|
|
67
67
|
*/
|
|
68
68
|
users: UnitAssignment[];
|
|
69
69
|
/**
|
|
70
|
-
* @generated from protobuf field: optional resources.centrum.
|
|
70
|
+
* @generated from protobuf field: optional resources.centrum.UnitAttributes attributes = 12;
|
|
71
71
|
*/
|
|
72
|
-
attributes?:
|
|
72
|
+
attributes?: UnitAttributes;
|
|
73
73
|
/**
|
|
74
74
|
* @generated from protobuf field: optional string home_postal = 13;
|
|
75
75
|
*/
|
|
@@ -231,7 +231,7 @@ class Unit$Type extends MessageType<Unit> {
|
|
|
231
231
|
{ no: 8, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
232
232
|
{ no: 9, name: "status", kind: "message", T: () => UnitStatus },
|
|
233
233
|
{ no: 11, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => UnitAssignment },
|
|
234
|
-
{ no: 12, name: "attributes", kind: "message", T: () =>
|
|
234
|
+
{ no: 12, name: "attributes", kind: "message", T: () => UnitAttributes },
|
|
235
235
|
{ no: 13, name: "home_postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
|
|
236
236
|
{ no: 14, name: "access", kind: "message", T: () => UnitAccess }
|
|
237
237
|
]);
|
|
@@ -283,8 +283,8 @@ class Unit$Type extends MessageType<Unit> {
|
|
|
283
283
|
case /* repeated resources.centrum.UnitAssignment users */ 11:
|
|
284
284
|
message.users.push(UnitAssignment.internalBinaryRead(reader, reader.uint32(), options));
|
|
285
285
|
break;
|
|
286
|
-
case /* optional resources.centrum.
|
|
287
|
-
message.attributes =
|
|
286
|
+
case /* optional resources.centrum.UnitAttributes attributes */ 12:
|
|
287
|
+
message.attributes = UnitAttributes.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
288
288
|
break;
|
|
289
289
|
case /* optional string home_postal */ 13:
|
|
290
290
|
message.homePostal = reader.string();
|
|
@@ -334,9 +334,9 @@ class Unit$Type extends MessageType<Unit> {
|
|
|
334
334
|
/* repeated resources.centrum.UnitAssignment users = 11; */
|
|
335
335
|
for (let i = 0; i < message.users.length; i++)
|
|
336
336
|
UnitAssignment.internalBinaryWrite(message.users[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
337
|
-
/* optional resources.centrum.
|
|
337
|
+
/* optional resources.centrum.UnitAttributes attributes = 12; */
|
|
338
338
|
if (message.attributes)
|
|
339
|
-
|
|
339
|
+
UnitAttributes.internalBinaryWrite(message.attributes, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
340
340
|
/* optional string home_postal = 13; */
|
|
341
341
|
if (message.homePostal !== undefined)
|
|
342
342
|
writer.tag(13, WireType.LengthDelimited).string(message.homePostal);
|