@fivenet-app/gen 0.9.3 → 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 +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- 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 +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- 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 +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- 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 +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- 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 +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -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,16 +13,16 @@ 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
|
|
20
20
|
*/
|
|
21
21
|
export interface Dispatch {
|
|
22
22
|
/**
|
|
23
|
-
* @generated from protobuf field: uint64 id = 1
|
|
23
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
24
24
|
*/
|
|
25
|
-
id:
|
|
25
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
26
26
|
/**
|
|
27
27
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
28
28
|
*/
|
|
@@ -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
|
*/
|
|
@@ -95,9 +95,9 @@ export interface Dispatch {
|
|
|
95
95
|
*/
|
|
96
96
|
export interface DispatchAssignments {
|
|
97
97
|
/**
|
|
98
|
-
* @generated from protobuf field: uint64 dispatch_id = 1
|
|
98
|
+
* @generated from protobuf field: uint64 dispatch_id = 1;
|
|
99
99
|
*/
|
|
100
|
-
dispatchId:
|
|
100
|
+
dispatchId: number;
|
|
101
101
|
/**
|
|
102
102
|
* @generated from protobuf field: string job = 2;
|
|
103
103
|
*/
|
|
@@ -112,13 +112,13 @@ export interface DispatchAssignments {
|
|
|
112
112
|
*/
|
|
113
113
|
export interface DispatchAssignment {
|
|
114
114
|
/**
|
|
115
|
-
* @generated from protobuf field: uint64 dispatch_id = 1
|
|
115
|
+
* @generated from protobuf field: uint64 dispatch_id = 1;
|
|
116
116
|
*/
|
|
117
|
-
dispatchId:
|
|
117
|
+
dispatchId: number; // @gotags: sql:"primary_key" alias:"dispatch_id"
|
|
118
118
|
/**
|
|
119
|
-
* @generated from protobuf field: uint64 unit_id = 2
|
|
119
|
+
* @generated from protobuf field: uint64 unit_id = 2;
|
|
120
120
|
*/
|
|
121
|
-
unitId:
|
|
121
|
+
unitId: number; // @gotags: sql:"primary_key" alias:"unit_id"
|
|
122
122
|
/**
|
|
123
123
|
* @generated from protobuf field: optional resources.centrum.Unit unit = 3;
|
|
124
124
|
*/
|
|
@@ -137,21 +137,21 @@ export interface DispatchAssignment {
|
|
|
137
137
|
*/
|
|
138
138
|
export interface DispatchStatus {
|
|
139
139
|
/**
|
|
140
|
-
* @generated from protobuf field: uint64 id = 1
|
|
140
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
141
141
|
*/
|
|
142
|
-
id:
|
|
142
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
143
143
|
/**
|
|
144
144
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
145
145
|
*/
|
|
146
146
|
createdAt?: Timestamp;
|
|
147
147
|
/**
|
|
148
|
-
* @generated from protobuf field: uint64 dispatch_id = 3
|
|
148
|
+
* @generated from protobuf field: uint64 dispatch_id = 3;
|
|
149
149
|
*/
|
|
150
|
-
dispatchId:
|
|
150
|
+
dispatchId: number;
|
|
151
151
|
/**
|
|
152
|
-
* @generated from protobuf field: optional uint64 unit_id = 4
|
|
152
|
+
* @generated from protobuf field: optional uint64 unit_id = 4;
|
|
153
153
|
*/
|
|
154
|
-
unitId?:
|
|
154
|
+
unitId?: number;
|
|
155
155
|
/**
|
|
156
156
|
* @generated from protobuf field: optional resources.centrum.Unit unit = 5;
|
|
157
157
|
*/
|
|
@@ -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 {
|
|
@@ -209,9 +211,9 @@ export interface DispatchReferences {
|
|
|
209
211
|
*/
|
|
210
212
|
export interface DispatchReference {
|
|
211
213
|
/**
|
|
212
|
-
* @generated from protobuf field: uint64 target_dispatch_id = 1
|
|
214
|
+
* @generated from protobuf field: uint64 target_dispatch_id = 1;
|
|
213
215
|
*/
|
|
214
|
-
targetDispatchId:
|
|
216
|
+
targetDispatchId: number;
|
|
215
217
|
/**
|
|
216
218
|
* @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2;
|
|
217
219
|
*/
|
|
@@ -324,14 +326,14 @@ export enum DispatchReferenceType {
|
|
|
324
326
|
class Dispatch$Type extends MessageType<Dispatch> {
|
|
325
327
|
constructor() {
|
|
326
328
|
super("resources.centrum.Dispatch", [
|
|
327
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
329
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
328
330
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
329
331
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
330
332
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
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" } } } },
|
|
@@ -344,7 +346,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
|
|
|
344
346
|
}
|
|
345
347
|
create(value?: PartialMessage<Dispatch>): Dispatch {
|
|
346
348
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
347
|
-
message.id =
|
|
349
|
+
message.id = 0;
|
|
348
350
|
message.job = "";
|
|
349
351
|
message.message = "";
|
|
350
352
|
message.x = 0;
|
|
@@ -360,8 +362,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
|
|
|
360
362
|
while (reader.pos < end) {
|
|
361
363
|
let [fieldNo, wireType] = reader.tag();
|
|
362
364
|
switch (fieldNo) {
|
|
363
|
-
case /* uint64 id
|
|
364
|
-
message.id = reader.uint64().
|
|
365
|
+
case /* uint64 id */ 1:
|
|
366
|
+
message.id = reader.uint64().toNumber();
|
|
365
367
|
break;
|
|
366
368
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
367
369
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -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();
|
|
@@ -420,8 +422,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
|
|
|
420
422
|
return message;
|
|
421
423
|
}
|
|
422
424
|
internalBinaryWrite(message: Dispatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
423
|
-
/* uint64 id = 1
|
|
424
|
-
if (message.id !==
|
|
425
|
+
/* uint64 id = 1; */
|
|
426
|
+
if (message.id !== 0)
|
|
425
427
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
426
428
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
427
429
|
if (message.createdAt)
|
|
@@ -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);
|
|
@@ -482,14 +484,14 @@ export const Dispatch = new Dispatch$Type();
|
|
|
482
484
|
class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
|
|
483
485
|
constructor() {
|
|
484
486
|
super("resources.centrum.DispatchAssignments", [
|
|
485
|
-
{ no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
487
|
+
{ no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
486
488
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
487
489
|
{ no: 3, name: "units", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DispatchAssignment }
|
|
488
490
|
]);
|
|
489
491
|
}
|
|
490
492
|
create(value?: PartialMessage<DispatchAssignments>): DispatchAssignments {
|
|
491
493
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
492
|
-
message.dispatchId =
|
|
494
|
+
message.dispatchId = 0;
|
|
493
495
|
message.job = "";
|
|
494
496
|
message.units = [];
|
|
495
497
|
if (value !== undefined)
|
|
@@ -501,8 +503,8 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
|
|
|
501
503
|
while (reader.pos < end) {
|
|
502
504
|
let [fieldNo, wireType] = reader.tag();
|
|
503
505
|
switch (fieldNo) {
|
|
504
|
-
case /* uint64 dispatch_id
|
|
505
|
-
message.dispatchId = reader.uint64().
|
|
506
|
+
case /* uint64 dispatch_id */ 1:
|
|
507
|
+
message.dispatchId = reader.uint64().toNumber();
|
|
506
508
|
break;
|
|
507
509
|
case /* string job */ 2:
|
|
508
510
|
message.job = reader.string();
|
|
@@ -522,8 +524,8 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
|
|
|
522
524
|
return message;
|
|
523
525
|
}
|
|
524
526
|
internalBinaryWrite(message: DispatchAssignments, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
525
|
-
/* uint64 dispatch_id = 1
|
|
526
|
-
if (message.dispatchId !==
|
|
527
|
+
/* uint64 dispatch_id = 1; */
|
|
528
|
+
if (message.dispatchId !== 0)
|
|
527
529
|
writer.tag(1, WireType.Varint).uint64(message.dispatchId);
|
|
528
530
|
/* string job = 2; */
|
|
529
531
|
if (message.job !== "")
|
|
@@ -545,8 +547,8 @@ export const DispatchAssignments = new DispatchAssignments$Type();
|
|
|
545
547
|
class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
|
|
546
548
|
constructor() {
|
|
547
549
|
super("resources.centrum.DispatchAssignment", [
|
|
548
|
-
{ no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
549
|
-
{ no: 2, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
550
|
+
{ no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
551
|
+
{ no: 2, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
550
552
|
{ no: 3, name: "unit", kind: "message", T: () => Unit },
|
|
551
553
|
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
552
554
|
{ no: 5, name: "expires_at", kind: "message", T: () => Timestamp }
|
|
@@ -554,8 +556,8 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
|
|
|
554
556
|
}
|
|
555
557
|
create(value?: PartialMessage<DispatchAssignment>): DispatchAssignment {
|
|
556
558
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
557
|
-
message.dispatchId =
|
|
558
|
-
message.unitId =
|
|
559
|
+
message.dispatchId = 0;
|
|
560
|
+
message.unitId = 0;
|
|
559
561
|
if (value !== undefined)
|
|
560
562
|
reflectionMergePartial<DispatchAssignment>(this, message, value);
|
|
561
563
|
return message;
|
|
@@ -565,11 +567,11 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
|
|
|
565
567
|
while (reader.pos < end) {
|
|
566
568
|
let [fieldNo, wireType] = reader.tag();
|
|
567
569
|
switch (fieldNo) {
|
|
568
|
-
case /* uint64 dispatch_id
|
|
569
|
-
message.dispatchId = reader.uint64().
|
|
570
|
+
case /* uint64 dispatch_id */ 1:
|
|
571
|
+
message.dispatchId = reader.uint64().toNumber();
|
|
570
572
|
break;
|
|
571
|
-
case /* uint64 unit_id
|
|
572
|
-
message.unitId = reader.uint64().
|
|
573
|
+
case /* uint64 unit_id */ 2:
|
|
574
|
+
message.unitId = reader.uint64().toNumber();
|
|
573
575
|
break;
|
|
574
576
|
case /* optional resources.centrum.Unit unit */ 3:
|
|
575
577
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
@@ -592,11 +594,11 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
|
|
|
592
594
|
return message;
|
|
593
595
|
}
|
|
594
596
|
internalBinaryWrite(message: DispatchAssignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
595
|
-
/* uint64 dispatch_id = 1
|
|
596
|
-
if (message.dispatchId !==
|
|
597
|
+
/* uint64 dispatch_id = 1; */
|
|
598
|
+
if (message.dispatchId !== 0)
|
|
597
599
|
writer.tag(1, WireType.Varint).uint64(message.dispatchId);
|
|
598
|
-
/* uint64 unit_id = 2
|
|
599
|
-
if (message.unitId !==
|
|
600
|
+
/* uint64 unit_id = 2; */
|
|
601
|
+
if (message.unitId !== 0)
|
|
600
602
|
writer.tag(2, WireType.Varint).uint64(message.unitId);
|
|
601
603
|
/* optional resources.centrum.Unit unit = 3; */
|
|
602
604
|
if (message.unit)
|
|
@@ -621,10 +623,10 @@ export const DispatchAssignment = new DispatchAssignment$Type();
|
|
|
621
623
|
class DispatchStatus$Type extends MessageType<DispatchStatus> {
|
|
622
624
|
constructor() {
|
|
623
625
|
super("resources.centrum.DispatchStatus", [
|
|
624
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
626
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
625
627
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
626
|
-
{ no: 3, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
627
|
-
{ no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
628
|
+
{ no: 3, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
629
|
+
{ no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
628
630
|
{ no: 5, name: "unit", kind: "message", T: () => Unit },
|
|
629
631
|
{ no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
630
632
|
{ no: 7, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
@@ -638,8 +640,8 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
|
|
|
638
640
|
}
|
|
639
641
|
create(value?: PartialMessage<DispatchStatus>): DispatchStatus {
|
|
640
642
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
641
|
-
message.id =
|
|
642
|
-
message.dispatchId =
|
|
643
|
+
message.id = 0;
|
|
644
|
+
message.dispatchId = 0;
|
|
643
645
|
message.status = 0;
|
|
644
646
|
if (value !== undefined)
|
|
645
647
|
reflectionMergePartial<DispatchStatus>(this, message, value);
|
|
@@ -650,17 +652,17 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
|
|
|
650
652
|
while (reader.pos < end) {
|
|
651
653
|
let [fieldNo, wireType] = reader.tag();
|
|
652
654
|
switch (fieldNo) {
|
|
653
|
-
case /* uint64 id
|
|
654
|
-
message.id = reader.uint64().
|
|
655
|
+
case /* uint64 id */ 1:
|
|
656
|
+
message.id = reader.uint64().toNumber();
|
|
655
657
|
break;
|
|
656
658
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
657
659
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
658
660
|
break;
|
|
659
|
-
case /* uint64 dispatch_id
|
|
660
|
-
message.dispatchId = reader.uint64().
|
|
661
|
+
case /* uint64 dispatch_id */ 3:
|
|
662
|
+
message.dispatchId = reader.uint64().toNumber();
|
|
661
663
|
break;
|
|
662
|
-
case /* optional uint64 unit_id
|
|
663
|
-
message.unitId = reader.uint64().
|
|
664
|
+
case /* optional uint64 unit_id */ 4:
|
|
665
|
+
message.unitId = reader.uint64().toNumber();
|
|
664
666
|
break;
|
|
665
667
|
case /* optional resources.centrum.Unit unit */ 5:
|
|
666
668
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
@@ -701,16 +703,16 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
|
|
|
701
703
|
return message;
|
|
702
704
|
}
|
|
703
705
|
internalBinaryWrite(message: DispatchStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
704
|
-
/* uint64 id = 1
|
|
705
|
-
if (message.id !==
|
|
706
|
+
/* uint64 id = 1; */
|
|
707
|
+
if (message.id !== 0)
|
|
706
708
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
707
709
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
708
710
|
if (message.createdAt)
|
|
709
711
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
710
|
-
/* uint64 dispatch_id = 3
|
|
711
|
-
if (message.dispatchId !==
|
|
712
|
+
/* uint64 dispatch_id = 3; */
|
|
713
|
+
if (message.dispatchId !== 0)
|
|
712
714
|
writer.tag(3, WireType.Varint).uint64(message.dispatchId);
|
|
713
|
-
/* optional uint64 unit_id = 4
|
|
715
|
+
/* optional uint64 unit_id = 4; */
|
|
714
716
|
if (message.unitId !== undefined)
|
|
715
717
|
writer.tag(4, WireType.Varint).uint64(message.unitId);
|
|
716
718
|
/* optional resources.centrum.Unit unit = 5; */
|
|
@@ -801,13 +803,13 @@ export const DispatchReferences = new DispatchReferences$Type();
|
|
|
801
803
|
class DispatchReference$Type extends MessageType<DispatchReference> {
|
|
802
804
|
constructor() {
|
|
803
805
|
super("resources.centrum.DispatchReference", [
|
|
804
|
-
{ no: 1, name: "target_dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
806
|
+
{ no: 1, name: "target_dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
805
807
|
{ no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
806
808
|
]);
|
|
807
809
|
}
|
|
808
810
|
create(value?: PartialMessage<DispatchReference>): DispatchReference {
|
|
809
811
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
810
|
-
message.targetDispatchId =
|
|
812
|
+
message.targetDispatchId = 0;
|
|
811
813
|
message.referenceType = 0;
|
|
812
814
|
if (value !== undefined)
|
|
813
815
|
reflectionMergePartial<DispatchReference>(this, message, value);
|
|
@@ -818,8 +820,8 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
|
|
|
818
820
|
while (reader.pos < end) {
|
|
819
821
|
let [fieldNo, wireType] = reader.tag();
|
|
820
822
|
switch (fieldNo) {
|
|
821
|
-
case /* uint64 target_dispatch_id
|
|
822
|
-
message.targetDispatchId = reader.uint64().
|
|
823
|
+
case /* uint64 target_dispatch_id */ 1:
|
|
824
|
+
message.targetDispatchId = reader.uint64().toNumber();
|
|
823
825
|
break;
|
|
824
826
|
case /* resources.centrum.DispatchReferenceType reference_type */ 2:
|
|
825
827
|
message.referenceType = reader.int32();
|
|
@@ -836,8 +838,8 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
|
|
|
836
838
|
return message;
|
|
837
839
|
}
|
|
838
840
|
internalBinaryWrite(message: DispatchReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
839
|
-
/* uint64 target_dispatch_id = 1
|
|
840
|
-
if (message.targetDispatchId !==
|
|
841
|
+
/* uint64 target_dispatch_id = 1; */
|
|
842
|
+
if (message.targetDispatchId !== 0)
|
|
841
843
|
writer.tag(1, WireType.Varint).uint64(message.targetDispatchId);
|
|
842
844
|
/* resources.centrum.DispatchReferenceType reference_type = 2; */
|
|
843
845
|
if (message.referenceType !== 0)
|
|
@@ -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();
|