@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
package/svcs.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
|
|
@@ -24,6 +27,7 @@
|
|
|
24
27
|
// source: resources/documents/templates.proto
|
|
25
28
|
// source: resources/documents/workflow.proto
|
|
26
29
|
// source: resources/filestore/file.proto
|
|
30
|
+
// source: resources/internet/access.proto
|
|
27
31
|
// source: resources/internet/ads.proto
|
|
28
32
|
// source: resources/internet/domain.proto
|
|
29
33
|
// source: resources/internet/page.proto
|
|
@@ -50,6 +54,7 @@
|
|
|
50
54
|
// source: resources/qualifications/exam.proto
|
|
51
55
|
// source: resources/qualifications/qualifications.proto
|
|
52
56
|
// source: resources/rector/audit.proto
|
|
57
|
+
// source: resources/rector/banner.proto
|
|
53
58
|
// source: resources/rector/config.proto
|
|
54
59
|
// source: resources/stats/stats.proto
|
|
55
60
|
// source: resources/sync/activity.proto
|
|
@@ -57,8 +62,10 @@
|
|
|
57
62
|
// source: resources/timestamp/timestamp.proto
|
|
58
63
|
// source: resources/users/activity.proto
|
|
59
64
|
// source: resources/users/job_props.proto
|
|
65
|
+
// source: resources/users/job_settings.proto
|
|
60
66
|
// source: resources/users/jobs.proto
|
|
61
67
|
// source: resources/users/labels.proto
|
|
68
|
+
// source: resources/users/licenses.proto
|
|
62
69
|
// source: resources/users/props.proto
|
|
63
70
|
// source: resources/users/users.proto
|
|
64
71
|
// source: resources/vehicles/vehicles.proto
|
|
@@ -73,6 +80,7 @@
|
|
|
73
80
|
// source: services/dmv/vehicles.proto
|
|
74
81
|
// source: services/docstore/docstore.proto
|
|
75
82
|
// source: services/internet/ads.proto
|
|
83
|
+
// source: services/internet/domain.proto
|
|
76
84
|
// source: services/internet/internet.proto
|
|
77
85
|
// source: services/jobs/conduct.proto
|
|
78
86
|
// source: services/jobs/jobs.proto
|
|
@@ -98,6 +106,7 @@ export const grpcServices = [
|
|
|
98
106
|
'CompletorService',
|
|
99
107
|
'DMVService',
|
|
100
108
|
'DocStoreService',
|
|
109
|
+
'DomainService',
|
|
101
110
|
'InternetService',
|
|
102
111
|
'JobsConductService',
|
|
103
112
|
'JobsService',
|
|
@@ -211,6 +220,11 @@ export const grpcMethods = [
|
|
|
211
220
|
'DocStoreService/ListDocumentPins',
|
|
212
221
|
'DocStoreService/ToggleDocumentPin',
|
|
213
222
|
'DocStoreService/SetDocumentReminder',
|
|
223
|
+
'DomainService/ListTLDs',
|
|
224
|
+
'DomainService/CheckDomainAvailability',
|
|
225
|
+
'DomainService/RegisterDomain',
|
|
226
|
+
'DomainService/ListDomains',
|
|
227
|
+
'DomainService/UpdateDomain',
|
|
214
228
|
'InternetService/Search',
|
|
215
229
|
'InternetService/GetPage',
|
|
216
230
|
'JobsConductService/ListConductEntries',
|
|
@@ -296,7 +310,9 @@ export const grpcMethods = [
|
|
|
296
310
|
'SyncService/GetStatus',
|
|
297
311
|
'SyncService/AddActivity',
|
|
298
312
|
'SyncService/RegisterAccount',
|
|
313
|
+
'SyncService/TransferAccount',
|
|
299
314
|
'SyncService/SendData',
|
|
315
|
+
'SyncService/DeleteData',
|
|
300
316
|
'SyncService/Stream',
|
|
301
317
|
'WikiService/ListPages',
|
|
302
318
|
'WikiService/GetPage',
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/centrum/general.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 { Timestamp } from "../timestamp/timestamp";
|
|
14
|
-
import { Colleague } from "../jobs/colleagues";
|
|
15
|
-
/**
|
|
16
|
-
* @generated from protobuf message resources.centrum.Attributes
|
|
17
|
-
*/
|
|
18
|
-
export interface Attributes {
|
|
19
|
-
/**
|
|
20
|
-
* @sanitize: method=StripTags
|
|
21
|
-
*
|
|
22
|
-
* @generated from protobuf field: repeated string list = 1;
|
|
23
|
-
*/
|
|
24
|
-
list: string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf message resources.centrum.Disponents
|
|
28
|
-
*/
|
|
29
|
-
export interface Disponents {
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf field: string job = 1;
|
|
32
|
-
*/
|
|
33
|
-
job: string;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf field: repeated resources.jobs.Colleague disponents = 2;
|
|
36
|
-
*/
|
|
37
|
-
disponents: Colleague[];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf message resources.centrum.UserUnitMapping
|
|
41
|
-
*/
|
|
42
|
-
export interface UserUnitMapping {
|
|
43
|
-
/**
|
|
44
|
-
* @generated from protobuf field: uint64 unit_id = 1 [jstype = JS_STRING];
|
|
45
|
-
*/
|
|
46
|
-
unitId: string;
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: string job = 2;
|
|
49
|
-
*/
|
|
50
|
-
job: string;
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf field: int32 user_id = 3;
|
|
53
|
-
*/
|
|
54
|
-
userId: number;
|
|
55
|
-
/**
|
|
56
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 4;
|
|
57
|
-
*/
|
|
58
|
-
createdAt?: Timestamp;
|
|
59
|
-
}
|
|
60
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
61
|
-
class Attributes$Type extends MessageType<Attributes> {
|
|
62
|
-
constructor() {
|
|
63
|
-
super("resources.centrum.Attributes", [
|
|
64
|
-
{ no: 1, name: "list", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
65
|
-
]);
|
|
66
|
-
}
|
|
67
|
-
create(value?: PartialMessage<Attributes>): Attributes {
|
|
68
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
69
|
-
message.list = [];
|
|
70
|
-
if (value !== undefined)
|
|
71
|
-
reflectionMergePartial<Attributes>(this, message, value);
|
|
72
|
-
return message;
|
|
73
|
-
}
|
|
74
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Attributes): Attributes {
|
|
75
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
76
|
-
while (reader.pos < end) {
|
|
77
|
-
let [fieldNo, wireType] = reader.tag();
|
|
78
|
-
switch (fieldNo) {
|
|
79
|
-
case /* repeated string list */ 1:
|
|
80
|
-
message.list.push(reader.string());
|
|
81
|
-
break;
|
|
82
|
-
default:
|
|
83
|
-
let u = options.readUnknownField;
|
|
84
|
-
if (u === "throw")
|
|
85
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
86
|
-
let d = reader.skip(wireType);
|
|
87
|
-
if (u !== false)
|
|
88
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return message;
|
|
92
|
-
}
|
|
93
|
-
internalBinaryWrite(message: Attributes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
94
|
-
/* repeated string list = 1; */
|
|
95
|
-
for (let i = 0; i < message.list.length; i++)
|
|
96
|
-
writer.tag(1, WireType.LengthDelimited).string(message.list[i]);
|
|
97
|
-
let u = options.writeUnknownFields;
|
|
98
|
-
if (u !== false)
|
|
99
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
100
|
-
return writer;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @generated MessageType for protobuf message resources.centrum.Attributes
|
|
105
|
-
*/
|
|
106
|
-
export const Attributes = new Attributes$Type();
|
|
107
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
108
|
-
class Disponents$Type extends MessageType<Disponents> {
|
|
109
|
-
constructor() {
|
|
110
|
-
super("resources.centrum.Disponents", [
|
|
111
|
-
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
112
|
-
{ no: 2, name: "disponents", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Colleague }
|
|
113
|
-
]);
|
|
114
|
-
}
|
|
115
|
-
create(value?: PartialMessage<Disponents>): Disponents {
|
|
116
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
117
|
-
message.job = "";
|
|
118
|
-
message.disponents = [];
|
|
119
|
-
if (value !== undefined)
|
|
120
|
-
reflectionMergePartial<Disponents>(this, message, value);
|
|
121
|
-
return message;
|
|
122
|
-
}
|
|
123
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Disponents): Disponents {
|
|
124
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
125
|
-
while (reader.pos < end) {
|
|
126
|
-
let [fieldNo, wireType] = reader.tag();
|
|
127
|
-
switch (fieldNo) {
|
|
128
|
-
case /* string job */ 1:
|
|
129
|
-
message.job = reader.string();
|
|
130
|
-
break;
|
|
131
|
-
case /* repeated resources.jobs.Colleague disponents */ 2:
|
|
132
|
-
message.disponents.push(Colleague.internalBinaryRead(reader, reader.uint32(), options));
|
|
133
|
-
break;
|
|
134
|
-
default:
|
|
135
|
-
let u = options.readUnknownField;
|
|
136
|
-
if (u === "throw")
|
|
137
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
138
|
-
let d = reader.skip(wireType);
|
|
139
|
-
if (u !== false)
|
|
140
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return message;
|
|
144
|
-
}
|
|
145
|
-
internalBinaryWrite(message: Disponents, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
146
|
-
/* string job = 1; */
|
|
147
|
-
if (message.job !== "")
|
|
148
|
-
writer.tag(1, WireType.LengthDelimited).string(message.job);
|
|
149
|
-
/* repeated resources.jobs.Colleague disponents = 2; */
|
|
150
|
-
for (let i = 0; i < message.disponents.length; i++)
|
|
151
|
-
Colleague.internalBinaryWrite(message.disponents[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
152
|
-
let u = options.writeUnknownFields;
|
|
153
|
-
if (u !== false)
|
|
154
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
155
|
-
return writer;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* @generated MessageType for protobuf message resources.centrum.Disponents
|
|
160
|
-
*/
|
|
161
|
-
export const Disponents = new Disponents$Type();
|
|
162
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
163
|
-
class UserUnitMapping$Type extends MessageType<UserUnitMapping> {
|
|
164
|
-
constructor() {
|
|
165
|
-
super("resources.centrum.UserUnitMapping", [
|
|
166
|
-
{ no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
167
|
-
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
168
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
169
|
-
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp }
|
|
170
|
-
]);
|
|
171
|
-
}
|
|
172
|
-
create(value?: PartialMessage<UserUnitMapping>): UserUnitMapping {
|
|
173
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
174
|
-
message.unitId = "0";
|
|
175
|
-
message.job = "";
|
|
176
|
-
message.userId = 0;
|
|
177
|
-
if (value !== undefined)
|
|
178
|
-
reflectionMergePartial<UserUnitMapping>(this, message, value);
|
|
179
|
-
return message;
|
|
180
|
-
}
|
|
181
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserUnitMapping): UserUnitMapping {
|
|
182
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
183
|
-
while (reader.pos < end) {
|
|
184
|
-
let [fieldNo, wireType] = reader.tag();
|
|
185
|
-
switch (fieldNo) {
|
|
186
|
-
case /* uint64 unit_id = 1 [jstype = JS_STRING];*/ 1:
|
|
187
|
-
message.unitId = reader.uint64().toString();
|
|
188
|
-
break;
|
|
189
|
-
case /* string job */ 2:
|
|
190
|
-
message.job = reader.string();
|
|
191
|
-
break;
|
|
192
|
-
case /* int32 user_id */ 3:
|
|
193
|
-
message.userId = reader.int32();
|
|
194
|
-
break;
|
|
195
|
-
case /* resources.timestamp.Timestamp created_at */ 4:
|
|
196
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
197
|
-
break;
|
|
198
|
-
default:
|
|
199
|
-
let u = options.readUnknownField;
|
|
200
|
-
if (u === "throw")
|
|
201
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
202
|
-
let d = reader.skip(wireType);
|
|
203
|
-
if (u !== false)
|
|
204
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return message;
|
|
208
|
-
}
|
|
209
|
-
internalBinaryWrite(message: UserUnitMapping, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
210
|
-
/* uint64 unit_id = 1 [jstype = JS_STRING]; */
|
|
211
|
-
if (message.unitId !== "0")
|
|
212
|
-
writer.tag(1, WireType.Varint).uint64(message.unitId);
|
|
213
|
-
/* string job = 2; */
|
|
214
|
-
if (message.job !== "")
|
|
215
|
-
writer.tag(2, WireType.LengthDelimited).string(message.job);
|
|
216
|
-
/* int32 user_id = 3; */
|
|
217
|
-
if (message.userId !== 0)
|
|
218
|
-
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
219
|
-
/* resources.timestamp.Timestamp created_at = 4; */
|
|
220
|
-
if (message.createdAt)
|
|
221
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
222
|
-
let u = options.writeUnknownFields;
|
|
223
|
-
if (u !== false)
|
|
224
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
225
|
-
return writer;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* @generated MessageType for protobuf message resources.centrum.UserUnitMapping
|
|
230
|
-
*/
|
|
231
|
-
export const UserUnitMapping = new UserUnitMapping$Type();
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/common/access/dummy.proto" (package "resources.common.access", 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
|
-
/**
|
|
14
|
-
* @generated from protobuf message resources.common.access.DummyJobAccess
|
|
15
|
-
*/
|
|
16
|
-
export interface DummyJobAccess {
|
|
17
|
-
/**
|
|
18
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf field: uint64 target_id = 2 [jstype = JS_STRING];
|
|
23
|
-
*/
|
|
24
|
-
targetId: string;
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: string job = 3;
|
|
27
|
-
*/
|
|
28
|
-
job: string;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: int32 minimum_grade = 4;
|
|
31
|
-
*/
|
|
32
|
-
minimumGrade: number;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: resources.common.access.AccessLevel access = 5;
|
|
35
|
-
*/
|
|
36
|
-
access: AccessLevel;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf message resources.common.access.DummyUserAccess
|
|
40
|
-
*/
|
|
41
|
-
export interface DummyUserAccess {
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
44
|
-
*/
|
|
45
|
-
id: string;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf field: uint64 target_id = 2 [jstype = JS_STRING];
|
|
48
|
-
*/
|
|
49
|
-
targetId: string;
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf field: int32 user_id = 3;
|
|
52
|
-
*/
|
|
53
|
-
userId: number;
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf field: resources.common.access.AccessLevel access = 4;
|
|
56
|
-
*/
|
|
57
|
-
access: AccessLevel;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @generated from protobuf message resources.common.access.DummyQualificationAccess
|
|
61
|
-
*/
|
|
62
|
-
export interface DummyQualificationAccess {
|
|
63
|
-
/**
|
|
64
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
65
|
-
*/
|
|
66
|
-
id: string;
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf field: uint64 target_id = 2 [jstype = JS_STRING];
|
|
69
|
-
*/
|
|
70
|
-
targetId: string;
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf field: uint64 qualification_id = 3 [jstype = JS_STRING];
|
|
73
|
-
*/
|
|
74
|
-
qualificationId: string;
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf field: resources.common.access.AccessLevel access = 4;
|
|
77
|
-
*/
|
|
78
|
-
access: AccessLevel;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf enum resources.common.access.AccessLevel
|
|
82
|
-
*/
|
|
83
|
-
export enum AccessLevel {
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf enum value: ACCESS_LEVEL_UNSPECIFIED = 0;
|
|
86
|
-
*/
|
|
87
|
-
UNSPECIFIED = 0
|
|
88
|
-
}
|
|
89
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
90
|
-
class DummyJobAccess$Type extends MessageType<DummyJobAccess> {
|
|
91
|
-
constructor() {
|
|
92
|
-
super("resources.common.access.DummyJobAccess", [
|
|
93
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
94
|
-
{ no: 2, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
95
|
-
{ no: 3, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
96
|
-
{ no: 4, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
97
|
-
{ no: 5, name: "access", kind: "enum", T: () => ["resources.common.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
98
|
-
]);
|
|
99
|
-
}
|
|
100
|
-
create(value?: PartialMessage<DummyJobAccess>): DummyJobAccess {
|
|
101
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
102
|
-
message.id = "0";
|
|
103
|
-
message.targetId = "0";
|
|
104
|
-
message.job = "";
|
|
105
|
-
message.minimumGrade = 0;
|
|
106
|
-
message.access = 0;
|
|
107
|
-
if (value !== undefined)
|
|
108
|
-
reflectionMergePartial<DummyJobAccess>(this, message, value);
|
|
109
|
-
return message;
|
|
110
|
-
}
|
|
111
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DummyJobAccess): DummyJobAccess {
|
|
112
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
113
|
-
while (reader.pos < end) {
|
|
114
|
-
let [fieldNo, wireType] = reader.tag();
|
|
115
|
-
switch (fieldNo) {
|
|
116
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
117
|
-
message.id = reader.uint64().toString();
|
|
118
|
-
break;
|
|
119
|
-
case /* uint64 target_id = 2 [jstype = JS_STRING];*/ 2:
|
|
120
|
-
message.targetId = reader.uint64().toString();
|
|
121
|
-
break;
|
|
122
|
-
case /* string job */ 3:
|
|
123
|
-
message.job = reader.string();
|
|
124
|
-
break;
|
|
125
|
-
case /* int32 minimum_grade */ 4:
|
|
126
|
-
message.minimumGrade = reader.int32();
|
|
127
|
-
break;
|
|
128
|
-
case /* resources.common.access.AccessLevel access */ 5:
|
|
129
|
-
message.access = reader.int32();
|
|
130
|
-
break;
|
|
131
|
-
default:
|
|
132
|
-
let u = options.readUnknownField;
|
|
133
|
-
if (u === "throw")
|
|
134
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
135
|
-
let d = reader.skip(wireType);
|
|
136
|
-
if (u !== false)
|
|
137
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return message;
|
|
141
|
-
}
|
|
142
|
-
internalBinaryWrite(message: DummyJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
143
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
144
|
-
if (message.id !== "0")
|
|
145
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
146
|
-
/* uint64 target_id = 2 [jstype = JS_STRING]; */
|
|
147
|
-
if (message.targetId !== "0")
|
|
148
|
-
writer.tag(2, WireType.Varint).uint64(message.targetId);
|
|
149
|
-
/* string job = 3; */
|
|
150
|
-
if (message.job !== "")
|
|
151
|
-
writer.tag(3, WireType.LengthDelimited).string(message.job);
|
|
152
|
-
/* int32 minimum_grade = 4; */
|
|
153
|
-
if (message.minimumGrade !== 0)
|
|
154
|
-
writer.tag(4, WireType.Varint).int32(message.minimumGrade);
|
|
155
|
-
/* resources.common.access.AccessLevel access = 5; */
|
|
156
|
-
if (message.access !== 0)
|
|
157
|
-
writer.tag(5, WireType.Varint).int32(message.access);
|
|
158
|
-
let u = options.writeUnknownFields;
|
|
159
|
-
if (u !== false)
|
|
160
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
161
|
-
return writer;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @generated MessageType for protobuf message resources.common.access.DummyJobAccess
|
|
166
|
-
*/
|
|
167
|
-
export const DummyJobAccess = new DummyJobAccess$Type();
|
|
168
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
169
|
-
class DummyUserAccess$Type extends MessageType<DummyUserAccess> {
|
|
170
|
-
constructor() {
|
|
171
|
-
super("resources.common.access.DummyUserAccess", [
|
|
172
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
173
|
-
{ no: 2, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
174
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
175
|
-
{ no: 4, name: "access", kind: "enum", T: () => ["resources.common.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
176
|
-
]);
|
|
177
|
-
}
|
|
178
|
-
create(value?: PartialMessage<DummyUserAccess>): DummyUserAccess {
|
|
179
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
180
|
-
message.id = "0";
|
|
181
|
-
message.targetId = "0";
|
|
182
|
-
message.userId = 0;
|
|
183
|
-
message.access = 0;
|
|
184
|
-
if (value !== undefined)
|
|
185
|
-
reflectionMergePartial<DummyUserAccess>(this, message, value);
|
|
186
|
-
return message;
|
|
187
|
-
}
|
|
188
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DummyUserAccess): DummyUserAccess {
|
|
189
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
190
|
-
while (reader.pos < end) {
|
|
191
|
-
let [fieldNo, wireType] = reader.tag();
|
|
192
|
-
switch (fieldNo) {
|
|
193
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
194
|
-
message.id = reader.uint64().toString();
|
|
195
|
-
break;
|
|
196
|
-
case /* uint64 target_id = 2 [jstype = JS_STRING];*/ 2:
|
|
197
|
-
message.targetId = reader.uint64().toString();
|
|
198
|
-
break;
|
|
199
|
-
case /* int32 user_id */ 3:
|
|
200
|
-
message.userId = reader.int32();
|
|
201
|
-
break;
|
|
202
|
-
case /* resources.common.access.AccessLevel access */ 4:
|
|
203
|
-
message.access = reader.int32();
|
|
204
|
-
break;
|
|
205
|
-
default:
|
|
206
|
-
let u = options.readUnknownField;
|
|
207
|
-
if (u === "throw")
|
|
208
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
209
|
-
let d = reader.skip(wireType);
|
|
210
|
-
if (u !== false)
|
|
211
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return message;
|
|
215
|
-
}
|
|
216
|
-
internalBinaryWrite(message: DummyUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
217
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
218
|
-
if (message.id !== "0")
|
|
219
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
220
|
-
/* uint64 target_id = 2 [jstype = JS_STRING]; */
|
|
221
|
-
if (message.targetId !== "0")
|
|
222
|
-
writer.tag(2, WireType.Varint).uint64(message.targetId);
|
|
223
|
-
/* int32 user_id = 3; */
|
|
224
|
-
if (message.userId !== 0)
|
|
225
|
-
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
226
|
-
/* resources.common.access.AccessLevel access = 4; */
|
|
227
|
-
if (message.access !== 0)
|
|
228
|
-
writer.tag(4, WireType.Varint).int32(message.access);
|
|
229
|
-
let u = options.writeUnknownFields;
|
|
230
|
-
if (u !== false)
|
|
231
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
232
|
-
return writer;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* @generated MessageType for protobuf message resources.common.access.DummyUserAccess
|
|
237
|
-
*/
|
|
238
|
-
export const DummyUserAccess = new DummyUserAccess$Type();
|
|
239
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
240
|
-
class DummyQualificationAccess$Type extends MessageType<DummyQualificationAccess> {
|
|
241
|
-
constructor() {
|
|
242
|
-
super("resources.common.access.DummyQualificationAccess", [
|
|
243
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
244
|
-
{ no: 2, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
245
|
-
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
246
|
-
{ no: 4, name: "access", kind: "enum", T: () => ["resources.common.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
247
|
-
]);
|
|
248
|
-
}
|
|
249
|
-
create(value?: PartialMessage<DummyQualificationAccess>): DummyQualificationAccess {
|
|
250
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
251
|
-
message.id = "0";
|
|
252
|
-
message.targetId = "0";
|
|
253
|
-
message.qualificationId = "0";
|
|
254
|
-
message.access = 0;
|
|
255
|
-
if (value !== undefined)
|
|
256
|
-
reflectionMergePartial<DummyQualificationAccess>(this, message, value);
|
|
257
|
-
return message;
|
|
258
|
-
}
|
|
259
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DummyQualificationAccess): DummyQualificationAccess {
|
|
260
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
261
|
-
while (reader.pos < end) {
|
|
262
|
-
let [fieldNo, wireType] = reader.tag();
|
|
263
|
-
switch (fieldNo) {
|
|
264
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
265
|
-
message.id = reader.uint64().toString();
|
|
266
|
-
break;
|
|
267
|
-
case /* uint64 target_id = 2 [jstype = JS_STRING];*/ 2:
|
|
268
|
-
message.targetId = reader.uint64().toString();
|
|
269
|
-
break;
|
|
270
|
-
case /* uint64 qualification_id = 3 [jstype = JS_STRING];*/ 3:
|
|
271
|
-
message.qualificationId = reader.uint64().toString();
|
|
272
|
-
break;
|
|
273
|
-
case /* resources.common.access.AccessLevel access */ 4:
|
|
274
|
-
message.access = reader.int32();
|
|
275
|
-
break;
|
|
276
|
-
default:
|
|
277
|
-
let u = options.readUnknownField;
|
|
278
|
-
if (u === "throw")
|
|
279
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
280
|
-
let d = reader.skip(wireType);
|
|
281
|
-
if (u !== false)
|
|
282
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return message;
|
|
286
|
-
}
|
|
287
|
-
internalBinaryWrite(message: DummyQualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
288
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
289
|
-
if (message.id !== "0")
|
|
290
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
291
|
-
/* uint64 target_id = 2 [jstype = JS_STRING]; */
|
|
292
|
-
if (message.targetId !== "0")
|
|
293
|
-
writer.tag(2, WireType.Varint).uint64(message.targetId);
|
|
294
|
-
/* uint64 qualification_id = 3 [jstype = JS_STRING]; */
|
|
295
|
-
if (message.qualificationId !== "0")
|
|
296
|
-
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
297
|
-
/* resources.common.access.AccessLevel access = 4; */
|
|
298
|
-
if (message.access !== 0)
|
|
299
|
-
writer.tag(4, WireType.Varint).int32(message.access);
|
|
300
|
-
let u = options.writeUnknownFields;
|
|
301
|
-
if (u !== false)
|
|
302
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
303
|
-
return writer;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* @generated MessageType for protobuf message resources.common.access.DummyQualificationAccess
|
|
308
|
-
*/
|
|
309
|
-
export const DummyQualificationAccess = new DummyQualificationAccess$Type();
|