@fivenet-app/gen 0.9.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/package.json +15 -0
- package/perms.ts +178 -0
- package/resources/accounts/accounts.ts +195 -0
- package/resources/accounts/oauth2.ts +230 -0
- package/resources/calendar/access.ts +362 -0
- package/resources/calendar/calendar.ts +955 -0
- package/resources/centrum/access.ts +380 -0
- package/resources/centrum/dispatches.ts +854 -0
- package/resources/centrum/general.ts +231 -0
- package/resources/centrum/settings.ts +303 -0
- package/resources/centrum/units.ts +620 -0
- package/resources/common/access/dummy.ts +309 -0
- package/resources/common/content/content.ts +252 -0
- package/resources/common/cron/cron.ts +536 -0
- package/resources/common/database/database.ts +306 -0
- package/resources/common/error.ts +79 -0
- package/resources/common/grpcws/grpcws.ts +615 -0
- package/resources/common/i18n.ts +102 -0
- package/resources/common/uuid.ts +68 -0
- package/resources/documents/access.ts +388 -0
- package/resources/documents/activity.ts +803 -0
- package/resources/documents/category.ts +132 -0
- package/resources/documents/comment.ts +161 -0
- package/resources/documents/documents.ts +1124 -0
- package/resources/documents/requests.ts +196 -0
- package/resources/documents/templates.ts +949 -0
- package/resources/documents/workflow.ts +349 -0
- package/resources/filestore/file.ts +204 -0
- package/resources/internet/ads.ts +257 -0
- package/resources/internet/domain.ts +136 -0
- package/resources/internet/internet.ts +344 -0
- package/resources/internet/page.ts +236 -0
- package/resources/internet/search.ts +104 -0
- package/resources/jobs/activity.ts +600 -0
- package/resources/jobs/colleagues.ts +346 -0
- package/resources/jobs/conduct.ts +220 -0
- package/resources/jobs/labels.ts +240 -0
- package/resources/jobs/timeclock.ts +372 -0
- package/resources/laws/laws.ts +293 -0
- package/resources/livemap/livemap.ts +728 -0
- package/resources/livemap/tracker.ts +81 -0
- package/resources/mailer/access.ts +485 -0
- package/resources/mailer/email.ts +222 -0
- package/resources/mailer/events.ts +196 -0
- package/resources/mailer/message.ts +285 -0
- package/resources/mailer/settings.ts +95 -0
- package/resources/mailer/template.ts +164 -0
- package/resources/mailer/thread.ts +422 -0
- package/resources/mailer/user.ts +93 -0
- package/resources/notifications/events.ts +287 -0
- package/resources/notifications/notifications.ts +444 -0
- package/resources/permissions/permissions.ts +829 -0
- package/resources/qualifications/access.ts +275 -0
- package/resources/qualifications/exam.ts +1421 -0
- package/resources/qualifications/qualifications.ts +1289 -0
- package/resources/rector/audit.ts +226 -0
- package/resources/rector/config.ts +922 -0
- package/resources/stats/stats.ts +67 -0
- package/resources/sync/activity.ts +356 -0
- package/resources/sync/data.ts +455 -0
- package/resources/timestamp/timestamp.ts +78 -0
- package/resources/users/activity.ts +211 -0
- package/resources/users/job_props.ts +992 -0
- package/resources/users/jobs.ts +171 -0
- package/resources/users/labels.ts +161 -0
- package/resources/users/props.ts +207 -0
- package/resources/users/users.ts +570 -0
- package/resources/vehicles/vehicles.ts +114 -0
- package/resources/wiki/access.ts +362 -0
- package/resources/wiki/activity.ts +591 -0
- package/resources/wiki/page.ts +548 -0
- package/services/auth/auth.client.ts +171 -0
- package/services/auth/auth.ts +1331 -0
- package/services/calendar/calendar.client.ts +262 -0
- package/services/calendar/calendar.ts +1733 -0
- package/services/centrum/centrum.client.ts +365 -0
- package/services/centrum/centrum.ts +2619 -0
- package/services/citizenstore/citizenstore.client.ts +126 -0
- package/services/citizenstore/citizenstore.ts +847 -0
- package/services/completor/completor.client.ts +109 -0
- package/services/completor/completor.ts +616 -0
- package/services/dmv/vehicles.client.ts +41 -0
- package/services/dmv/vehicles.ts +191 -0
- package/services/docstore/docstore.client.ts +653 -0
- package/services/docstore/docstore.ts +4571 -0
- package/services/internet/ads.client.ts +41 -0
- package/services/internet/ads.ts +145 -0
- package/services/internet/internet.client.ts +58 -0
- package/services/internet/internet.ts +257 -0
- package/services/jobs/conduct.client.ts +92 -0
- package/services/jobs/conduct.ts +541 -0
- package/services/jobs/jobs.client.ts +194 -0
- package/services/jobs/jobs.ts +1301 -0
- package/services/jobs/timeclock.client.ts +75 -0
- package/services/jobs/timeclock.ts +808 -0
- package/services/livemapper/livemap.client.ts +76 -0
- package/services/livemapper/livemap.ts +552 -0
- package/services/mailer/mailer.client.ts +381 -0
- package/services/mailer/mailer.ts +2590 -0
- package/services/notificator/notificator.client.ts +76 -0
- package/services/notificator/notificator.ts +510 -0
- package/services/qualifications/qualifications.client.ts +279 -0
- package/services/qualifications/qualifications.ts +2142 -0
- package/services/rector/config.client.ts +58 -0
- package/services/rector/config.ts +216 -0
- package/services/rector/filestore.client.ts +75 -0
- package/services/rector/filestore.ts +378 -0
- package/services/rector/laws.client.ts +92 -0
- package/services/rector/laws.ts +416 -0
- package/services/rector/rector.client.ts +211 -0
- package/services/rector/rector.ts +1540 -0
- package/services/stats/stats.client.ts +37 -0
- package/services/stats/stats.ts +128 -0
- package/services/sync/sync.client.ts +110 -0
- package/services/sync/sync.ts +831 -0
- package/services/wiki/wiki.client.ts +126 -0
- package/services/wiki/wiki.ts +749 -0
- package/svcs.ts +307 -0
|
@@ -0,0 +1,1289 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/qualifications/qualifications.proto" (package "resources.qualifications", 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 { Duration } from "../../google/protobuf/duration";
|
|
14
|
+
import { ExamQuestions } from "./exam";
|
|
15
|
+
import { QualificationAccess } from "./access";
|
|
16
|
+
import { UserShort } from "../users/users";
|
|
17
|
+
import { Content } from "../common/content/content";
|
|
18
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf message resources.qualifications.Qualification
|
|
21
|
+
*/
|
|
22
|
+
export interface Qualification {
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
25
|
+
*/
|
|
26
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
29
|
+
*/
|
|
30
|
+
createdAt?: Timestamp;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
33
|
+
*/
|
|
34
|
+
updatedAt?: Timestamp;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
37
|
+
*/
|
|
38
|
+
deletedAt?: Timestamp;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: string job = 5;
|
|
41
|
+
*/
|
|
42
|
+
job: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: uint32 weight = 6;
|
|
45
|
+
*/
|
|
46
|
+
weight: number;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: bool closed = 7;
|
|
49
|
+
*/
|
|
50
|
+
closed: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @sanitize: method=StripTags
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf field: string abbreviation = 8;
|
|
55
|
+
*/
|
|
56
|
+
abbreviation: string;
|
|
57
|
+
/**
|
|
58
|
+
* @sanitize
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf field: string title = 9;
|
|
61
|
+
*/
|
|
62
|
+
title: string;
|
|
63
|
+
/**
|
|
64
|
+
* @sanitize: method=StripTags
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf field: optional string description = 10;
|
|
67
|
+
*/
|
|
68
|
+
description?: string;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: resources.common.content.Content content = 11;
|
|
71
|
+
*/
|
|
72
|
+
content?: Content;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: optional int32 creator_id = 12;
|
|
75
|
+
*/
|
|
76
|
+
creatorId?: number;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 13;
|
|
79
|
+
*/
|
|
80
|
+
creator?: UserShort; // @gotags: alias:"creator"
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf field: string creator_job = 14;
|
|
83
|
+
*/
|
|
84
|
+
creatorJob: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf field: resources.qualifications.QualificationAccess access = 15;
|
|
87
|
+
*/
|
|
88
|
+
access?: QualificationAccess;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: repeated resources.qualifications.QualificationRequirement requirements = 16;
|
|
91
|
+
*/
|
|
92
|
+
requirements: QualificationRequirement[];
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: bool discord_sync_enabled = 17;
|
|
95
|
+
*/
|
|
96
|
+
discordSyncEnabled: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationDiscordSettings discord_settings = 18;
|
|
99
|
+
*/
|
|
100
|
+
discordSettings?: QualificationDiscordSettings;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf field: resources.qualifications.QualificationExamMode exam_mode = 19;
|
|
103
|
+
*/
|
|
104
|
+
examMode: QualificationExamMode;
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationExamSettings exam_settings = 20;
|
|
107
|
+
*/
|
|
108
|
+
examSettings?: QualificationExamSettings;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf field: optional resources.qualifications.ExamQuestions exam = 21;
|
|
111
|
+
*/
|
|
112
|
+
exam?: ExamQuestions;
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationResult result = 22;
|
|
115
|
+
*/
|
|
116
|
+
result?: QualificationResult;
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationRequest request = 23;
|
|
119
|
+
*/
|
|
120
|
+
request?: QualificationRequest;
|
|
121
|
+
/**
|
|
122
|
+
* @generated from protobuf field: bool label_sync_enabled = 24;
|
|
123
|
+
*/
|
|
124
|
+
labelSyncEnabled: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* @sanitize: method=StripTags
|
|
127
|
+
*
|
|
128
|
+
* @generated from protobuf field: optional string label_sync_format = 25;
|
|
129
|
+
*/
|
|
130
|
+
labelSyncFormat?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @generated from protobuf message resources.qualifications.QualificationShort
|
|
134
|
+
*/
|
|
135
|
+
export interface QualificationShort {
|
|
136
|
+
/**
|
|
137
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
138
|
+
*/
|
|
139
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
140
|
+
/**
|
|
141
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
142
|
+
*/
|
|
143
|
+
createdAt?: Timestamp;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
146
|
+
*/
|
|
147
|
+
updatedAt?: Timestamp;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
150
|
+
*/
|
|
151
|
+
deletedAt?: Timestamp;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf field: string job = 5;
|
|
154
|
+
*/
|
|
155
|
+
job: string;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from protobuf field: uint32 weight = 6;
|
|
158
|
+
*/
|
|
159
|
+
weight: number;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from protobuf field: bool closed = 7;
|
|
162
|
+
*/
|
|
163
|
+
closed: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* @sanitize: method=StripTags
|
|
166
|
+
*
|
|
167
|
+
* @generated from protobuf field: string abbreviation = 8;
|
|
168
|
+
*/
|
|
169
|
+
abbreviation: string;
|
|
170
|
+
/**
|
|
171
|
+
* @sanitize
|
|
172
|
+
*
|
|
173
|
+
* @generated from protobuf field: string title = 9;
|
|
174
|
+
*/
|
|
175
|
+
title: string;
|
|
176
|
+
/**
|
|
177
|
+
* @sanitize: method=StripTags
|
|
178
|
+
*
|
|
179
|
+
* @generated from protobuf field: optional string description = 10;
|
|
180
|
+
*/
|
|
181
|
+
description?: string;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from protobuf field: optional int32 creator_id = 12;
|
|
184
|
+
*/
|
|
185
|
+
creatorId?: number;
|
|
186
|
+
/**
|
|
187
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 13;
|
|
188
|
+
*/
|
|
189
|
+
creator?: UserShort; // @gotags: alias:"creator"
|
|
190
|
+
/**
|
|
191
|
+
* @generated from protobuf field: string creator_job = 14;
|
|
192
|
+
*/
|
|
193
|
+
creatorJob: string;
|
|
194
|
+
/**
|
|
195
|
+
* @generated from protobuf field: repeated resources.qualifications.QualificationRequirement requirements = 16;
|
|
196
|
+
*/
|
|
197
|
+
requirements: QualificationRequirement[];
|
|
198
|
+
/**
|
|
199
|
+
* @generated from protobuf field: resources.qualifications.QualificationExamMode exam_mode = 18;
|
|
200
|
+
*/
|
|
201
|
+
examMode: QualificationExamMode;
|
|
202
|
+
/**
|
|
203
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationExamSettings exam_settings = 19;
|
|
204
|
+
*/
|
|
205
|
+
examSettings?: QualificationExamSettings;
|
|
206
|
+
/**
|
|
207
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationResult result = 21;
|
|
208
|
+
*/
|
|
209
|
+
result?: QualificationResult;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @generated from protobuf message resources.qualifications.QualificationRequirement
|
|
213
|
+
*/
|
|
214
|
+
export interface QualificationRequirement {
|
|
215
|
+
/**
|
|
216
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
217
|
+
*/
|
|
218
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
219
|
+
/**
|
|
220
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
221
|
+
*/
|
|
222
|
+
createdAt?: Timestamp;
|
|
223
|
+
/**
|
|
224
|
+
* @generated from protobuf field: uint64 qualification_id = 3 [jstype = JS_STRING];
|
|
225
|
+
*/
|
|
226
|
+
qualificationId: string;
|
|
227
|
+
/**
|
|
228
|
+
* @generated from protobuf field: uint64 target_qualification_id = 4 [jstype = JS_STRING];
|
|
229
|
+
*/
|
|
230
|
+
targetQualificationId: string;
|
|
231
|
+
/**
|
|
232
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationShort target_qualification = 5;
|
|
233
|
+
*/
|
|
234
|
+
targetQualification?: QualificationShort; // @gotags: alias:"targetqualification.*"
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* @generated from protobuf message resources.qualifications.QualificationDiscordSettings
|
|
238
|
+
*/
|
|
239
|
+
export interface QualificationDiscordSettings {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from protobuf field: optional string role_name = 1;
|
|
242
|
+
*/
|
|
243
|
+
roleName?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @generated from protobuf field: optional string role_format = 2;
|
|
246
|
+
*/
|
|
247
|
+
roleFormat?: string;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @generated from protobuf message resources.qualifications.QualificationExamSettings
|
|
251
|
+
*/
|
|
252
|
+
export interface QualificationExamSettings {
|
|
253
|
+
/**
|
|
254
|
+
* @generated from protobuf field: google.protobuf.Duration time = 1;
|
|
255
|
+
*/
|
|
256
|
+
time?: Duration;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @generated from protobuf message resources.qualifications.QualificationRequest
|
|
260
|
+
*/
|
|
261
|
+
export interface QualificationRequest {
|
|
262
|
+
/**
|
|
263
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 1;
|
|
264
|
+
*/
|
|
265
|
+
createdAt?: Timestamp;
|
|
266
|
+
/**
|
|
267
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 2;
|
|
268
|
+
*/
|
|
269
|
+
deletedAt?: Timestamp;
|
|
270
|
+
/**
|
|
271
|
+
* @generated from protobuf field: uint64 qualification_id = 3 [jstype = JS_STRING];
|
|
272
|
+
*/
|
|
273
|
+
qualificationId: string; // @gotags: sql:"primary_key" alias:"qualification_id"
|
|
274
|
+
/**
|
|
275
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 4;
|
|
276
|
+
*/
|
|
277
|
+
qualification?: QualificationShort;
|
|
278
|
+
/**
|
|
279
|
+
* @generated from protobuf field: int32 user_id = 5;
|
|
280
|
+
*/
|
|
281
|
+
userId: number; // @gotags: sql:"primary_key"
|
|
282
|
+
/**
|
|
283
|
+
* @generated from protobuf field: resources.users.UserShort user = 6;
|
|
284
|
+
*/
|
|
285
|
+
user?: UserShort; // @gotags: alias:"user"
|
|
286
|
+
/**
|
|
287
|
+
* @sanitize: method=StripTags
|
|
288
|
+
*
|
|
289
|
+
* @generated from protobuf field: optional string user_comment = 7;
|
|
290
|
+
*/
|
|
291
|
+
userComment?: string;
|
|
292
|
+
/**
|
|
293
|
+
* @generated from protobuf field: optional resources.qualifications.RequestStatus status = 8;
|
|
294
|
+
*/
|
|
295
|
+
status?: RequestStatus;
|
|
296
|
+
/**
|
|
297
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp approved_at = 9;
|
|
298
|
+
*/
|
|
299
|
+
approvedAt?: Timestamp;
|
|
300
|
+
/**
|
|
301
|
+
* @sanitize: method=StripTags
|
|
302
|
+
*
|
|
303
|
+
* @generated from protobuf field: optional string approver_comment = 10;
|
|
304
|
+
*/
|
|
305
|
+
approverComment?: string;
|
|
306
|
+
/**
|
|
307
|
+
* @generated from protobuf field: optional int32 approver_id = 11;
|
|
308
|
+
*/
|
|
309
|
+
approverId?: number;
|
|
310
|
+
/**
|
|
311
|
+
* @generated from protobuf field: optional resources.users.UserShort approver = 12;
|
|
312
|
+
*/
|
|
313
|
+
approver?: UserShort; // @gotags: alias:"approver"
|
|
314
|
+
/**
|
|
315
|
+
* @generated from protobuf field: optional string approver_job = 13;
|
|
316
|
+
*/
|
|
317
|
+
approverJob?: string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @generated from protobuf message resources.qualifications.QualificationResult
|
|
321
|
+
*/
|
|
322
|
+
export interface QualificationResult {
|
|
323
|
+
/**
|
|
324
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
325
|
+
*/
|
|
326
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
327
|
+
/**
|
|
328
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
329
|
+
*/
|
|
330
|
+
createdAt?: Timestamp;
|
|
331
|
+
/**
|
|
332
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 3;
|
|
333
|
+
*/
|
|
334
|
+
deletedAt?: Timestamp;
|
|
335
|
+
/**
|
|
336
|
+
* @generated from protobuf field: uint64 qualification_id = 4 [jstype = JS_STRING];
|
|
337
|
+
*/
|
|
338
|
+
qualificationId: string;
|
|
339
|
+
/**
|
|
340
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5;
|
|
341
|
+
*/
|
|
342
|
+
qualification?: QualificationShort;
|
|
343
|
+
/**
|
|
344
|
+
* @generated from protobuf field: int32 user_id = 6;
|
|
345
|
+
*/
|
|
346
|
+
userId: number;
|
|
347
|
+
/**
|
|
348
|
+
* @generated from protobuf field: resources.users.UserShort user = 7;
|
|
349
|
+
*/
|
|
350
|
+
user?: UserShort; // @gotags: alias:"user"
|
|
351
|
+
/**
|
|
352
|
+
* @generated from protobuf field: resources.qualifications.ResultStatus status = 8;
|
|
353
|
+
*/
|
|
354
|
+
status: ResultStatus;
|
|
355
|
+
/**
|
|
356
|
+
* @generated from protobuf field: optional uint32 score = 9;
|
|
357
|
+
*/
|
|
358
|
+
score?: number;
|
|
359
|
+
/**
|
|
360
|
+
* @sanitize: method=StripTags
|
|
361
|
+
*
|
|
362
|
+
* @generated from protobuf field: string summary = 10;
|
|
363
|
+
*/
|
|
364
|
+
summary: string;
|
|
365
|
+
/**
|
|
366
|
+
* @generated from protobuf field: int32 creator_id = 11;
|
|
367
|
+
*/
|
|
368
|
+
creatorId: number;
|
|
369
|
+
/**
|
|
370
|
+
* @generated from protobuf field: resources.users.UserShort creator = 12;
|
|
371
|
+
*/
|
|
372
|
+
creator?: UserShort; // @gotags: alias:"creator"
|
|
373
|
+
/**
|
|
374
|
+
* @generated from protobuf field: string creator_job = 13;
|
|
375
|
+
*/
|
|
376
|
+
creatorJob: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* @generated from protobuf enum resources.qualifications.QualificationExamMode
|
|
380
|
+
*/
|
|
381
|
+
export enum QualificationExamMode {
|
|
382
|
+
/**
|
|
383
|
+
* @generated from protobuf enum value: QUALIFICATION_EXAM_MODE_UNSPECIFIED = 0;
|
|
384
|
+
*/
|
|
385
|
+
UNSPECIFIED = 0,
|
|
386
|
+
/**
|
|
387
|
+
* @generated from protobuf enum value: QUALIFICATION_EXAM_MODE_DISABLED = 1;
|
|
388
|
+
*/
|
|
389
|
+
DISABLED = 1,
|
|
390
|
+
/**
|
|
391
|
+
* @generated from protobuf enum value: QUALIFICATION_EXAM_MODE_REQUEST_NEEDED = 2;
|
|
392
|
+
*/
|
|
393
|
+
REQUEST_NEEDED = 2,
|
|
394
|
+
/**
|
|
395
|
+
* @generated from protobuf enum value: QUALIFICATION_EXAM_MODE_ENABLED = 3;
|
|
396
|
+
*/
|
|
397
|
+
ENABLED = 3
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* @generated from protobuf enum resources.qualifications.RequestStatus
|
|
401
|
+
*/
|
|
402
|
+
export enum RequestStatus {
|
|
403
|
+
/**
|
|
404
|
+
* @generated from protobuf enum value: REQUEST_STATUS_UNSPECIFIED = 0;
|
|
405
|
+
*/
|
|
406
|
+
UNSPECIFIED = 0,
|
|
407
|
+
/**
|
|
408
|
+
* @generated from protobuf enum value: REQUEST_STATUS_PENDING = 1;
|
|
409
|
+
*/
|
|
410
|
+
PENDING = 1,
|
|
411
|
+
/**
|
|
412
|
+
* @generated from protobuf enum value: REQUEST_STATUS_DENIED = 2;
|
|
413
|
+
*/
|
|
414
|
+
DENIED = 2,
|
|
415
|
+
/**
|
|
416
|
+
* @generated from protobuf enum value: REQUEST_STATUS_ACCEPTED = 3;
|
|
417
|
+
*/
|
|
418
|
+
ACCEPTED = 3,
|
|
419
|
+
/**
|
|
420
|
+
* @generated from protobuf enum value: REQUEST_STATUS_EXAM_STARTED = 4;
|
|
421
|
+
*/
|
|
422
|
+
EXAM_STARTED = 4,
|
|
423
|
+
/**
|
|
424
|
+
* @generated from protobuf enum value: REQUEST_STATUS_EXAM_GRADING = 5;
|
|
425
|
+
*/
|
|
426
|
+
EXAM_GRADING = 5,
|
|
427
|
+
/**
|
|
428
|
+
* @generated from protobuf enum value: REQUEST_STATUS_COMPLETED = 6;
|
|
429
|
+
*/
|
|
430
|
+
COMPLETED = 6
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* @generated from protobuf enum resources.qualifications.ResultStatus
|
|
434
|
+
*/
|
|
435
|
+
export enum ResultStatus {
|
|
436
|
+
/**
|
|
437
|
+
* @generated from protobuf enum value: RESULT_STATUS_UNSPECIFIED = 0;
|
|
438
|
+
*/
|
|
439
|
+
UNSPECIFIED = 0,
|
|
440
|
+
/**
|
|
441
|
+
* @generated from protobuf enum value: RESULT_STATUS_PENDING = 1;
|
|
442
|
+
*/
|
|
443
|
+
PENDING = 1,
|
|
444
|
+
/**
|
|
445
|
+
* @generated from protobuf enum value: RESULT_STATUS_FAILED = 2;
|
|
446
|
+
*/
|
|
447
|
+
FAILED = 2,
|
|
448
|
+
/**
|
|
449
|
+
* @generated from protobuf enum value: RESULT_STATUS_SUCCESSFUL = 3;
|
|
450
|
+
*/
|
|
451
|
+
SUCCESSFUL = 3
|
|
452
|
+
}
|
|
453
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
454
|
+
class Qualification$Type extends MessageType<Qualification> {
|
|
455
|
+
constructor() {
|
|
456
|
+
super("resources.qualifications.Qualification", [
|
|
457
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
458
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
459
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
460
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
461
|
+
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
462
|
+
{ no: 6, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 4294967295 } } } },
|
|
463
|
+
{ no: 7, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
464
|
+
{ no: 8, name: "abbreviation", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
465
|
+
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "1024" } } } },
|
|
466
|
+
{ no: 10, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
467
|
+
{ no: 11, name: "content", kind: "message", T: () => Content },
|
|
468
|
+
{ no: 12, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
469
|
+
{ no: 13, name: "creator", kind: "message", T: () => UserShort },
|
|
470
|
+
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
471
|
+
{ no: 15, name: "access", kind: "message", T: () => QualificationAccess },
|
|
472
|
+
{ no: 16, name: "requirements", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => QualificationRequirement },
|
|
473
|
+
{ no: 17, name: "discord_sync_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
474
|
+
{ no: 18, name: "discord_settings", kind: "message", T: () => QualificationDiscordSettings },
|
|
475
|
+
{ no: 19, name: "exam_mode", kind: "enum", T: () => ["resources.qualifications.QualificationExamMode", QualificationExamMode, "QUALIFICATION_EXAM_MODE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
476
|
+
{ no: 20, name: "exam_settings", kind: "message", T: () => QualificationExamSettings },
|
|
477
|
+
{ no: 21, name: "exam", kind: "message", T: () => ExamQuestions },
|
|
478
|
+
{ no: 22, name: "result", kind: "message", T: () => QualificationResult },
|
|
479
|
+
{ no: 23, name: "request", kind: "message", T: () => QualificationRequest },
|
|
480
|
+
{ no: 24, name: "label_sync_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
481
|
+
{ no: 25, name: "label_sync_format", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } }
|
|
482
|
+
]);
|
|
483
|
+
}
|
|
484
|
+
create(value?: PartialMessage<Qualification>): Qualification {
|
|
485
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
486
|
+
message.id = "0";
|
|
487
|
+
message.job = "";
|
|
488
|
+
message.weight = 0;
|
|
489
|
+
message.closed = false;
|
|
490
|
+
message.abbreviation = "";
|
|
491
|
+
message.title = "";
|
|
492
|
+
message.creatorJob = "";
|
|
493
|
+
message.requirements = [];
|
|
494
|
+
message.discordSyncEnabled = false;
|
|
495
|
+
message.examMode = 0;
|
|
496
|
+
message.labelSyncEnabled = false;
|
|
497
|
+
if (value !== undefined)
|
|
498
|
+
reflectionMergePartial<Qualification>(this, message, value);
|
|
499
|
+
return message;
|
|
500
|
+
}
|
|
501
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Qualification): Qualification {
|
|
502
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
503
|
+
while (reader.pos < end) {
|
|
504
|
+
let [fieldNo, wireType] = reader.tag();
|
|
505
|
+
switch (fieldNo) {
|
|
506
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
507
|
+
message.id = reader.uint64().toString();
|
|
508
|
+
break;
|
|
509
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
510
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
511
|
+
break;
|
|
512
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
513
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
514
|
+
break;
|
|
515
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
516
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
517
|
+
break;
|
|
518
|
+
case /* string job */ 5:
|
|
519
|
+
message.job = reader.string();
|
|
520
|
+
break;
|
|
521
|
+
case /* uint32 weight */ 6:
|
|
522
|
+
message.weight = reader.uint32();
|
|
523
|
+
break;
|
|
524
|
+
case /* bool closed */ 7:
|
|
525
|
+
message.closed = reader.bool();
|
|
526
|
+
break;
|
|
527
|
+
case /* string abbreviation */ 8:
|
|
528
|
+
message.abbreviation = reader.string();
|
|
529
|
+
break;
|
|
530
|
+
case /* string title */ 9:
|
|
531
|
+
message.title = reader.string();
|
|
532
|
+
break;
|
|
533
|
+
case /* optional string description */ 10:
|
|
534
|
+
message.description = reader.string();
|
|
535
|
+
break;
|
|
536
|
+
case /* resources.common.content.Content content */ 11:
|
|
537
|
+
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
538
|
+
break;
|
|
539
|
+
case /* optional int32 creator_id */ 12:
|
|
540
|
+
message.creatorId = reader.int32();
|
|
541
|
+
break;
|
|
542
|
+
case /* optional resources.users.UserShort creator */ 13:
|
|
543
|
+
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
544
|
+
break;
|
|
545
|
+
case /* string creator_job */ 14:
|
|
546
|
+
message.creatorJob = reader.string();
|
|
547
|
+
break;
|
|
548
|
+
case /* resources.qualifications.QualificationAccess access */ 15:
|
|
549
|
+
message.access = QualificationAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
550
|
+
break;
|
|
551
|
+
case /* repeated resources.qualifications.QualificationRequirement requirements */ 16:
|
|
552
|
+
message.requirements.push(QualificationRequirement.internalBinaryRead(reader, reader.uint32(), options));
|
|
553
|
+
break;
|
|
554
|
+
case /* bool discord_sync_enabled */ 17:
|
|
555
|
+
message.discordSyncEnabled = reader.bool();
|
|
556
|
+
break;
|
|
557
|
+
case /* optional resources.qualifications.QualificationDiscordSettings discord_settings */ 18:
|
|
558
|
+
message.discordSettings = QualificationDiscordSettings.internalBinaryRead(reader, reader.uint32(), options, message.discordSettings);
|
|
559
|
+
break;
|
|
560
|
+
case /* resources.qualifications.QualificationExamMode exam_mode */ 19:
|
|
561
|
+
message.examMode = reader.int32();
|
|
562
|
+
break;
|
|
563
|
+
case /* optional resources.qualifications.QualificationExamSettings exam_settings */ 20:
|
|
564
|
+
message.examSettings = QualificationExamSettings.internalBinaryRead(reader, reader.uint32(), options, message.examSettings);
|
|
565
|
+
break;
|
|
566
|
+
case /* optional resources.qualifications.ExamQuestions exam */ 21:
|
|
567
|
+
message.exam = ExamQuestions.internalBinaryRead(reader, reader.uint32(), options, message.exam);
|
|
568
|
+
break;
|
|
569
|
+
case /* optional resources.qualifications.QualificationResult result */ 22:
|
|
570
|
+
message.result = QualificationResult.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
|
571
|
+
break;
|
|
572
|
+
case /* optional resources.qualifications.QualificationRequest request */ 23:
|
|
573
|
+
message.request = QualificationRequest.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
574
|
+
break;
|
|
575
|
+
case /* bool label_sync_enabled */ 24:
|
|
576
|
+
message.labelSyncEnabled = reader.bool();
|
|
577
|
+
break;
|
|
578
|
+
case /* optional string label_sync_format */ 25:
|
|
579
|
+
message.labelSyncFormat = reader.string();
|
|
580
|
+
break;
|
|
581
|
+
default:
|
|
582
|
+
let u = options.readUnknownField;
|
|
583
|
+
if (u === "throw")
|
|
584
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
585
|
+
let d = reader.skip(wireType);
|
|
586
|
+
if (u !== false)
|
|
587
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return message;
|
|
591
|
+
}
|
|
592
|
+
internalBinaryWrite(message: Qualification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
593
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
594
|
+
if (message.id !== "0")
|
|
595
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
596
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
597
|
+
if (message.createdAt)
|
|
598
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
599
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
600
|
+
if (message.updatedAt)
|
|
601
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
602
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
603
|
+
if (message.deletedAt)
|
|
604
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
605
|
+
/* string job = 5; */
|
|
606
|
+
if (message.job !== "")
|
|
607
|
+
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
608
|
+
/* uint32 weight = 6; */
|
|
609
|
+
if (message.weight !== 0)
|
|
610
|
+
writer.tag(6, WireType.Varint).uint32(message.weight);
|
|
611
|
+
/* bool closed = 7; */
|
|
612
|
+
if (message.closed !== false)
|
|
613
|
+
writer.tag(7, WireType.Varint).bool(message.closed);
|
|
614
|
+
/* string abbreviation = 8; */
|
|
615
|
+
if (message.abbreviation !== "")
|
|
616
|
+
writer.tag(8, WireType.LengthDelimited).string(message.abbreviation);
|
|
617
|
+
/* string title = 9; */
|
|
618
|
+
if (message.title !== "")
|
|
619
|
+
writer.tag(9, WireType.LengthDelimited).string(message.title);
|
|
620
|
+
/* optional string description = 10; */
|
|
621
|
+
if (message.description !== undefined)
|
|
622
|
+
writer.tag(10, WireType.LengthDelimited).string(message.description);
|
|
623
|
+
/* resources.common.content.Content content = 11; */
|
|
624
|
+
if (message.content)
|
|
625
|
+
Content.internalBinaryWrite(message.content, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
626
|
+
/* optional int32 creator_id = 12; */
|
|
627
|
+
if (message.creatorId !== undefined)
|
|
628
|
+
writer.tag(12, WireType.Varint).int32(message.creatorId);
|
|
629
|
+
/* optional resources.users.UserShort creator = 13; */
|
|
630
|
+
if (message.creator)
|
|
631
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
632
|
+
/* string creator_job = 14; */
|
|
633
|
+
if (message.creatorJob !== "")
|
|
634
|
+
writer.tag(14, WireType.LengthDelimited).string(message.creatorJob);
|
|
635
|
+
/* resources.qualifications.QualificationAccess access = 15; */
|
|
636
|
+
if (message.access)
|
|
637
|
+
QualificationAccess.internalBinaryWrite(message.access, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
638
|
+
/* repeated resources.qualifications.QualificationRequirement requirements = 16; */
|
|
639
|
+
for (let i = 0; i < message.requirements.length; i++)
|
|
640
|
+
QualificationRequirement.internalBinaryWrite(message.requirements[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
641
|
+
/* bool discord_sync_enabled = 17; */
|
|
642
|
+
if (message.discordSyncEnabled !== false)
|
|
643
|
+
writer.tag(17, WireType.Varint).bool(message.discordSyncEnabled);
|
|
644
|
+
/* optional resources.qualifications.QualificationDiscordSettings discord_settings = 18; */
|
|
645
|
+
if (message.discordSettings)
|
|
646
|
+
QualificationDiscordSettings.internalBinaryWrite(message.discordSettings, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
647
|
+
/* resources.qualifications.QualificationExamMode exam_mode = 19; */
|
|
648
|
+
if (message.examMode !== 0)
|
|
649
|
+
writer.tag(19, WireType.Varint).int32(message.examMode);
|
|
650
|
+
/* optional resources.qualifications.QualificationExamSettings exam_settings = 20; */
|
|
651
|
+
if (message.examSettings)
|
|
652
|
+
QualificationExamSettings.internalBinaryWrite(message.examSettings, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
653
|
+
/* optional resources.qualifications.ExamQuestions exam = 21; */
|
|
654
|
+
if (message.exam)
|
|
655
|
+
ExamQuestions.internalBinaryWrite(message.exam, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
656
|
+
/* optional resources.qualifications.QualificationResult result = 22; */
|
|
657
|
+
if (message.result)
|
|
658
|
+
QualificationResult.internalBinaryWrite(message.result, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
|
659
|
+
/* optional resources.qualifications.QualificationRequest request = 23; */
|
|
660
|
+
if (message.request)
|
|
661
|
+
QualificationRequest.internalBinaryWrite(message.request, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
|
|
662
|
+
/* bool label_sync_enabled = 24; */
|
|
663
|
+
if (message.labelSyncEnabled !== false)
|
|
664
|
+
writer.tag(24, WireType.Varint).bool(message.labelSyncEnabled);
|
|
665
|
+
/* optional string label_sync_format = 25; */
|
|
666
|
+
if (message.labelSyncFormat !== undefined)
|
|
667
|
+
writer.tag(25, WireType.LengthDelimited).string(message.labelSyncFormat);
|
|
668
|
+
let u = options.writeUnknownFields;
|
|
669
|
+
if (u !== false)
|
|
670
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
671
|
+
return writer;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* @generated MessageType for protobuf message resources.qualifications.Qualification
|
|
676
|
+
*/
|
|
677
|
+
export const Qualification = new Qualification$Type();
|
|
678
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
679
|
+
class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
680
|
+
constructor() {
|
|
681
|
+
super("resources.qualifications.QualificationShort", [
|
|
682
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
683
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
684
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
685
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
686
|
+
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
687
|
+
{ no: 6, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 4294967295 } } } },
|
|
688
|
+
{ no: 7, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
689
|
+
{ no: 8, name: "abbreviation", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
690
|
+
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "1024" } } } },
|
|
691
|
+
{ no: 10, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
692
|
+
{ no: 12, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
693
|
+
{ no: 13, name: "creator", kind: "message", T: () => UserShort },
|
|
694
|
+
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
695
|
+
{ no: 16, name: "requirements", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => QualificationRequirement },
|
|
696
|
+
{ no: 18, name: "exam_mode", kind: "enum", T: () => ["resources.qualifications.QualificationExamMode", QualificationExamMode, "QUALIFICATION_EXAM_MODE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
697
|
+
{ no: 19, name: "exam_settings", kind: "message", T: () => QualificationExamSettings },
|
|
698
|
+
{ no: 21, name: "result", kind: "message", T: () => QualificationResult }
|
|
699
|
+
]);
|
|
700
|
+
}
|
|
701
|
+
create(value?: PartialMessage<QualificationShort>): QualificationShort {
|
|
702
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
703
|
+
message.id = "0";
|
|
704
|
+
message.job = "";
|
|
705
|
+
message.weight = 0;
|
|
706
|
+
message.closed = false;
|
|
707
|
+
message.abbreviation = "";
|
|
708
|
+
message.title = "";
|
|
709
|
+
message.creatorJob = "";
|
|
710
|
+
message.requirements = [];
|
|
711
|
+
message.examMode = 0;
|
|
712
|
+
if (value !== undefined)
|
|
713
|
+
reflectionMergePartial<QualificationShort>(this, message, value);
|
|
714
|
+
return message;
|
|
715
|
+
}
|
|
716
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationShort): QualificationShort {
|
|
717
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
718
|
+
while (reader.pos < end) {
|
|
719
|
+
let [fieldNo, wireType] = reader.tag();
|
|
720
|
+
switch (fieldNo) {
|
|
721
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
722
|
+
message.id = reader.uint64().toString();
|
|
723
|
+
break;
|
|
724
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
725
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
726
|
+
break;
|
|
727
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
728
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
729
|
+
break;
|
|
730
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
731
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
732
|
+
break;
|
|
733
|
+
case /* string job */ 5:
|
|
734
|
+
message.job = reader.string();
|
|
735
|
+
break;
|
|
736
|
+
case /* uint32 weight */ 6:
|
|
737
|
+
message.weight = reader.uint32();
|
|
738
|
+
break;
|
|
739
|
+
case /* bool closed */ 7:
|
|
740
|
+
message.closed = reader.bool();
|
|
741
|
+
break;
|
|
742
|
+
case /* string abbreviation */ 8:
|
|
743
|
+
message.abbreviation = reader.string();
|
|
744
|
+
break;
|
|
745
|
+
case /* string title */ 9:
|
|
746
|
+
message.title = reader.string();
|
|
747
|
+
break;
|
|
748
|
+
case /* optional string description */ 10:
|
|
749
|
+
message.description = reader.string();
|
|
750
|
+
break;
|
|
751
|
+
case /* optional int32 creator_id */ 12:
|
|
752
|
+
message.creatorId = reader.int32();
|
|
753
|
+
break;
|
|
754
|
+
case /* optional resources.users.UserShort creator */ 13:
|
|
755
|
+
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
756
|
+
break;
|
|
757
|
+
case /* string creator_job */ 14:
|
|
758
|
+
message.creatorJob = reader.string();
|
|
759
|
+
break;
|
|
760
|
+
case /* repeated resources.qualifications.QualificationRequirement requirements */ 16:
|
|
761
|
+
message.requirements.push(QualificationRequirement.internalBinaryRead(reader, reader.uint32(), options));
|
|
762
|
+
break;
|
|
763
|
+
case /* resources.qualifications.QualificationExamMode exam_mode */ 18:
|
|
764
|
+
message.examMode = reader.int32();
|
|
765
|
+
break;
|
|
766
|
+
case /* optional resources.qualifications.QualificationExamSettings exam_settings */ 19:
|
|
767
|
+
message.examSettings = QualificationExamSettings.internalBinaryRead(reader, reader.uint32(), options, message.examSettings);
|
|
768
|
+
break;
|
|
769
|
+
case /* optional resources.qualifications.QualificationResult result */ 21:
|
|
770
|
+
message.result = QualificationResult.internalBinaryRead(reader, reader.uint32(), options, message.result);
|
|
771
|
+
break;
|
|
772
|
+
default:
|
|
773
|
+
let u = options.readUnknownField;
|
|
774
|
+
if (u === "throw")
|
|
775
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
776
|
+
let d = reader.skip(wireType);
|
|
777
|
+
if (u !== false)
|
|
778
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
return message;
|
|
782
|
+
}
|
|
783
|
+
internalBinaryWrite(message: QualificationShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
784
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
785
|
+
if (message.id !== "0")
|
|
786
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
787
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
788
|
+
if (message.createdAt)
|
|
789
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
790
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
791
|
+
if (message.updatedAt)
|
|
792
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
793
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
794
|
+
if (message.deletedAt)
|
|
795
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
796
|
+
/* string job = 5; */
|
|
797
|
+
if (message.job !== "")
|
|
798
|
+
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
799
|
+
/* uint32 weight = 6; */
|
|
800
|
+
if (message.weight !== 0)
|
|
801
|
+
writer.tag(6, WireType.Varint).uint32(message.weight);
|
|
802
|
+
/* bool closed = 7; */
|
|
803
|
+
if (message.closed !== false)
|
|
804
|
+
writer.tag(7, WireType.Varint).bool(message.closed);
|
|
805
|
+
/* string abbreviation = 8; */
|
|
806
|
+
if (message.abbreviation !== "")
|
|
807
|
+
writer.tag(8, WireType.LengthDelimited).string(message.abbreviation);
|
|
808
|
+
/* string title = 9; */
|
|
809
|
+
if (message.title !== "")
|
|
810
|
+
writer.tag(9, WireType.LengthDelimited).string(message.title);
|
|
811
|
+
/* optional string description = 10; */
|
|
812
|
+
if (message.description !== undefined)
|
|
813
|
+
writer.tag(10, WireType.LengthDelimited).string(message.description);
|
|
814
|
+
/* optional int32 creator_id = 12; */
|
|
815
|
+
if (message.creatorId !== undefined)
|
|
816
|
+
writer.tag(12, WireType.Varint).int32(message.creatorId);
|
|
817
|
+
/* optional resources.users.UserShort creator = 13; */
|
|
818
|
+
if (message.creator)
|
|
819
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
820
|
+
/* string creator_job = 14; */
|
|
821
|
+
if (message.creatorJob !== "")
|
|
822
|
+
writer.tag(14, WireType.LengthDelimited).string(message.creatorJob);
|
|
823
|
+
/* repeated resources.qualifications.QualificationRequirement requirements = 16; */
|
|
824
|
+
for (let i = 0; i < message.requirements.length; i++)
|
|
825
|
+
QualificationRequirement.internalBinaryWrite(message.requirements[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
826
|
+
/* resources.qualifications.QualificationExamMode exam_mode = 18; */
|
|
827
|
+
if (message.examMode !== 0)
|
|
828
|
+
writer.tag(18, WireType.Varint).int32(message.examMode);
|
|
829
|
+
/* optional resources.qualifications.QualificationExamSettings exam_settings = 19; */
|
|
830
|
+
if (message.examSettings)
|
|
831
|
+
QualificationExamSettings.internalBinaryWrite(message.examSettings, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
832
|
+
/* optional resources.qualifications.QualificationResult result = 21; */
|
|
833
|
+
if (message.result)
|
|
834
|
+
QualificationResult.internalBinaryWrite(message.result, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
835
|
+
let u = options.writeUnknownFields;
|
|
836
|
+
if (u !== false)
|
|
837
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
838
|
+
return writer;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* @generated MessageType for protobuf message resources.qualifications.QualificationShort
|
|
843
|
+
*/
|
|
844
|
+
export const QualificationShort = new QualificationShort$Type();
|
|
845
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
846
|
+
class QualificationRequirement$Type extends MessageType<QualificationRequirement> {
|
|
847
|
+
constructor() {
|
|
848
|
+
super("resources.qualifications.QualificationRequirement", [
|
|
849
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
850
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
851
|
+
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
852
|
+
{ no: 4, name: "target_qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
853
|
+
{ no: 5, name: "target_qualification", kind: "message", T: () => QualificationShort }
|
|
854
|
+
]);
|
|
855
|
+
}
|
|
856
|
+
create(value?: PartialMessage<QualificationRequirement>): QualificationRequirement {
|
|
857
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
858
|
+
message.id = "0";
|
|
859
|
+
message.qualificationId = "0";
|
|
860
|
+
message.targetQualificationId = "0";
|
|
861
|
+
if (value !== undefined)
|
|
862
|
+
reflectionMergePartial<QualificationRequirement>(this, message, value);
|
|
863
|
+
return message;
|
|
864
|
+
}
|
|
865
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationRequirement): QualificationRequirement {
|
|
866
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
867
|
+
while (reader.pos < end) {
|
|
868
|
+
let [fieldNo, wireType] = reader.tag();
|
|
869
|
+
switch (fieldNo) {
|
|
870
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
871
|
+
message.id = reader.uint64().toString();
|
|
872
|
+
break;
|
|
873
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
874
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
875
|
+
break;
|
|
876
|
+
case /* uint64 qualification_id = 3 [jstype = JS_STRING];*/ 3:
|
|
877
|
+
message.qualificationId = reader.uint64().toString();
|
|
878
|
+
break;
|
|
879
|
+
case /* uint64 target_qualification_id = 4 [jstype = JS_STRING];*/ 4:
|
|
880
|
+
message.targetQualificationId = reader.uint64().toString();
|
|
881
|
+
break;
|
|
882
|
+
case /* optional resources.qualifications.QualificationShort target_qualification */ 5:
|
|
883
|
+
message.targetQualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.targetQualification);
|
|
884
|
+
break;
|
|
885
|
+
default:
|
|
886
|
+
let u = options.readUnknownField;
|
|
887
|
+
if (u === "throw")
|
|
888
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
889
|
+
let d = reader.skip(wireType);
|
|
890
|
+
if (u !== false)
|
|
891
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
return message;
|
|
895
|
+
}
|
|
896
|
+
internalBinaryWrite(message: QualificationRequirement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
897
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
898
|
+
if (message.id !== "0")
|
|
899
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
900
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
901
|
+
if (message.createdAt)
|
|
902
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
903
|
+
/* uint64 qualification_id = 3 [jstype = JS_STRING]; */
|
|
904
|
+
if (message.qualificationId !== "0")
|
|
905
|
+
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
906
|
+
/* uint64 target_qualification_id = 4 [jstype = JS_STRING]; */
|
|
907
|
+
if (message.targetQualificationId !== "0")
|
|
908
|
+
writer.tag(4, WireType.Varint).uint64(message.targetQualificationId);
|
|
909
|
+
/* optional resources.qualifications.QualificationShort target_qualification = 5; */
|
|
910
|
+
if (message.targetQualification)
|
|
911
|
+
QualificationShort.internalBinaryWrite(message.targetQualification, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
912
|
+
let u = options.writeUnknownFields;
|
|
913
|
+
if (u !== false)
|
|
914
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
915
|
+
return writer;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* @generated MessageType for protobuf message resources.qualifications.QualificationRequirement
|
|
920
|
+
*/
|
|
921
|
+
export const QualificationRequirement = new QualificationRequirement$Type();
|
|
922
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
923
|
+
class QualificationDiscordSettings$Type extends MessageType<QualificationDiscordSettings> {
|
|
924
|
+
constructor() {
|
|
925
|
+
super("resources.qualifications.QualificationDiscordSettings", [
|
|
926
|
+
{ no: 1, name: "role_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
927
|
+
{ no: 2, name: "role_format", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } }
|
|
928
|
+
]);
|
|
929
|
+
}
|
|
930
|
+
create(value?: PartialMessage<QualificationDiscordSettings>): QualificationDiscordSettings {
|
|
931
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
932
|
+
if (value !== undefined)
|
|
933
|
+
reflectionMergePartial<QualificationDiscordSettings>(this, message, value);
|
|
934
|
+
return message;
|
|
935
|
+
}
|
|
936
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationDiscordSettings): QualificationDiscordSettings {
|
|
937
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
938
|
+
while (reader.pos < end) {
|
|
939
|
+
let [fieldNo, wireType] = reader.tag();
|
|
940
|
+
switch (fieldNo) {
|
|
941
|
+
case /* optional string role_name */ 1:
|
|
942
|
+
message.roleName = reader.string();
|
|
943
|
+
break;
|
|
944
|
+
case /* optional string role_format */ 2:
|
|
945
|
+
message.roleFormat = reader.string();
|
|
946
|
+
break;
|
|
947
|
+
default:
|
|
948
|
+
let u = options.readUnknownField;
|
|
949
|
+
if (u === "throw")
|
|
950
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
951
|
+
let d = reader.skip(wireType);
|
|
952
|
+
if (u !== false)
|
|
953
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
return message;
|
|
957
|
+
}
|
|
958
|
+
internalBinaryWrite(message: QualificationDiscordSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
959
|
+
/* optional string role_name = 1; */
|
|
960
|
+
if (message.roleName !== undefined)
|
|
961
|
+
writer.tag(1, WireType.LengthDelimited).string(message.roleName);
|
|
962
|
+
/* optional string role_format = 2; */
|
|
963
|
+
if (message.roleFormat !== undefined)
|
|
964
|
+
writer.tag(2, WireType.LengthDelimited).string(message.roleFormat);
|
|
965
|
+
let u = options.writeUnknownFields;
|
|
966
|
+
if (u !== false)
|
|
967
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
968
|
+
return writer;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* @generated MessageType for protobuf message resources.qualifications.QualificationDiscordSettings
|
|
973
|
+
*/
|
|
974
|
+
export const QualificationDiscordSettings = new QualificationDiscordSettings$Type();
|
|
975
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
976
|
+
class QualificationExamSettings$Type extends MessageType<QualificationExamSettings> {
|
|
977
|
+
constructor() {
|
|
978
|
+
super("resources.qualifications.QualificationExamSettings", [
|
|
979
|
+
{ no: 1, name: "time", kind: "message", T: () => Duration, options: { "validate.rules": { duration: { required: true, lt: { seconds: "1036800" }, gte: { seconds: "300" } } } } }
|
|
980
|
+
]);
|
|
981
|
+
}
|
|
982
|
+
create(value?: PartialMessage<QualificationExamSettings>): QualificationExamSettings {
|
|
983
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
984
|
+
if (value !== undefined)
|
|
985
|
+
reflectionMergePartial<QualificationExamSettings>(this, message, value);
|
|
986
|
+
return message;
|
|
987
|
+
}
|
|
988
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationExamSettings): QualificationExamSettings {
|
|
989
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
990
|
+
while (reader.pos < end) {
|
|
991
|
+
let [fieldNo, wireType] = reader.tag();
|
|
992
|
+
switch (fieldNo) {
|
|
993
|
+
case /* google.protobuf.Duration time */ 1:
|
|
994
|
+
message.time = Duration.internalBinaryRead(reader, reader.uint32(), options, message.time);
|
|
995
|
+
break;
|
|
996
|
+
default:
|
|
997
|
+
let u = options.readUnknownField;
|
|
998
|
+
if (u === "throw")
|
|
999
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1000
|
+
let d = reader.skip(wireType);
|
|
1001
|
+
if (u !== false)
|
|
1002
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
return message;
|
|
1006
|
+
}
|
|
1007
|
+
internalBinaryWrite(message: QualificationExamSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1008
|
+
/* google.protobuf.Duration time = 1; */
|
|
1009
|
+
if (message.time)
|
|
1010
|
+
Duration.internalBinaryWrite(message.time, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1011
|
+
let u = options.writeUnknownFields;
|
|
1012
|
+
if (u !== false)
|
|
1013
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1014
|
+
return writer;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* @generated MessageType for protobuf message resources.qualifications.QualificationExamSettings
|
|
1019
|
+
*/
|
|
1020
|
+
export const QualificationExamSettings = new QualificationExamSettings$Type();
|
|
1021
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1022
|
+
class QualificationRequest$Type extends MessageType<QualificationRequest> {
|
|
1023
|
+
constructor() {
|
|
1024
|
+
super("resources.qualifications.QualificationRequest", [
|
|
1025
|
+
{ no: 1, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1026
|
+
{ no: 2, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
1027
|
+
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1028
|
+
{ no: 4, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
1029
|
+
{ no: 5, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
1030
|
+
{ no: 6, name: "user", kind: "message", T: () => UserShort },
|
|
1031
|
+
{ no: 7, name: "user_comment", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
1032
|
+
{ no: 8, name: "status", kind: "enum", opt: true, T: () => ["resources.qualifications.RequestStatus", RequestStatus, "REQUEST_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
1033
|
+
{ no: 9, name: "approved_at", kind: "message", T: () => Timestamp },
|
|
1034
|
+
{ no: 10, name: "approver_comment", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
1035
|
+
{ no: 11, name: "approver_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
1036
|
+
{ no: 12, name: "approver", kind: "message", T: () => UserShort },
|
|
1037
|
+
{ no: 13, name: "approver_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1038
|
+
]);
|
|
1039
|
+
}
|
|
1040
|
+
create(value?: PartialMessage<QualificationRequest>): QualificationRequest {
|
|
1041
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1042
|
+
message.qualificationId = "0";
|
|
1043
|
+
message.userId = 0;
|
|
1044
|
+
if (value !== undefined)
|
|
1045
|
+
reflectionMergePartial<QualificationRequest>(this, message, value);
|
|
1046
|
+
return message;
|
|
1047
|
+
}
|
|
1048
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationRequest): QualificationRequest {
|
|
1049
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1050
|
+
while (reader.pos < end) {
|
|
1051
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1052
|
+
switch (fieldNo) {
|
|
1053
|
+
case /* optional resources.timestamp.Timestamp created_at */ 1:
|
|
1054
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1055
|
+
break;
|
|
1056
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 2:
|
|
1057
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
1058
|
+
break;
|
|
1059
|
+
case /* uint64 qualification_id = 3 [jstype = JS_STRING];*/ 3:
|
|
1060
|
+
message.qualificationId = reader.uint64().toString();
|
|
1061
|
+
break;
|
|
1062
|
+
case /* optional resources.qualifications.QualificationShort qualification */ 4:
|
|
1063
|
+
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
1064
|
+
break;
|
|
1065
|
+
case /* int32 user_id */ 5:
|
|
1066
|
+
message.userId = reader.int32();
|
|
1067
|
+
break;
|
|
1068
|
+
case /* resources.users.UserShort user */ 6:
|
|
1069
|
+
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
1070
|
+
break;
|
|
1071
|
+
case /* optional string user_comment */ 7:
|
|
1072
|
+
message.userComment = reader.string();
|
|
1073
|
+
break;
|
|
1074
|
+
case /* optional resources.qualifications.RequestStatus status */ 8:
|
|
1075
|
+
message.status = reader.int32();
|
|
1076
|
+
break;
|
|
1077
|
+
case /* optional resources.timestamp.Timestamp approved_at */ 9:
|
|
1078
|
+
message.approvedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.approvedAt);
|
|
1079
|
+
break;
|
|
1080
|
+
case /* optional string approver_comment */ 10:
|
|
1081
|
+
message.approverComment = reader.string();
|
|
1082
|
+
break;
|
|
1083
|
+
case /* optional int32 approver_id */ 11:
|
|
1084
|
+
message.approverId = reader.int32();
|
|
1085
|
+
break;
|
|
1086
|
+
case /* optional resources.users.UserShort approver */ 12:
|
|
1087
|
+
message.approver = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.approver);
|
|
1088
|
+
break;
|
|
1089
|
+
case /* optional string approver_job */ 13:
|
|
1090
|
+
message.approverJob = reader.string();
|
|
1091
|
+
break;
|
|
1092
|
+
default:
|
|
1093
|
+
let u = options.readUnknownField;
|
|
1094
|
+
if (u === "throw")
|
|
1095
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1096
|
+
let d = reader.skip(wireType);
|
|
1097
|
+
if (u !== false)
|
|
1098
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
return message;
|
|
1102
|
+
}
|
|
1103
|
+
internalBinaryWrite(message: QualificationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1104
|
+
/* optional resources.timestamp.Timestamp created_at = 1; */
|
|
1105
|
+
if (message.createdAt)
|
|
1106
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1107
|
+
/* optional resources.timestamp.Timestamp deleted_at = 2; */
|
|
1108
|
+
if (message.deletedAt)
|
|
1109
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1110
|
+
/* uint64 qualification_id = 3 [jstype = JS_STRING]; */
|
|
1111
|
+
if (message.qualificationId !== "0")
|
|
1112
|
+
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
1113
|
+
/* optional resources.qualifications.QualificationShort qualification = 4; */
|
|
1114
|
+
if (message.qualification)
|
|
1115
|
+
QualificationShort.internalBinaryWrite(message.qualification, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1116
|
+
/* int32 user_id = 5; */
|
|
1117
|
+
if (message.userId !== 0)
|
|
1118
|
+
writer.tag(5, WireType.Varint).int32(message.userId);
|
|
1119
|
+
/* resources.users.UserShort user = 6; */
|
|
1120
|
+
if (message.user)
|
|
1121
|
+
UserShort.internalBinaryWrite(message.user, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1122
|
+
/* optional string user_comment = 7; */
|
|
1123
|
+
if (message.userComment !== undefined)
|
|
1124
|
+
writer.tag(7, WireType.LengthDelimited).string(message.userComment);
|
|
1125
|
+
/* optional resources.qualifications.RequestStatus status = 8; */
|
|
1126
|
+
if (message.status !== undefined)
|
|
1127
|
+
writer.tag(8, WireType.Varint).int32(message.status);
|
|
1128
|
+
/* optional resources.timestamp.Timestamp approved_at = 9; */
|
|
1129
|
+
if (message.approvedAt)
|
|
1130
|
+
Timestamp.internalBinaryWrite(message.approvedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1131
|
+
/* optional string approver_comment = 10; */
|
|
1132
|
+
if (message.approverComment !== undefined)
|
|
1133
|
+
writer.tag(10, WireType.LengthDelimited).string(message.approverComment);
|
|
1134
|
+
/* optional int32 approver_id = 11; */
|
|
1135
|
+
if (message.approverId !== undefined)
|
|
1136
|
+
writer.tag(11, WireType.Varint).int32(message.approverId);
|
|
1137
|
+
/* optional resources.users.UserShort approver = 12; */
|
|
1138
|
+
if (message.approver)
|
|
1139
|
+
UserShort.internalBinaryWrite(message.approver, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
1140
|
+
/* optional string approver_job = 13; */
|
|
1141
|
+
if (message.approverJob !== undefined)
|
|
1142
|
+
writer.tag(13, WireType.LengthDelimited).string(message.approverJob);
|
|
1143
|
+
let u = options.writeUnknownFields;
|
|
1144
|
+
if (u !== false)
|
|
1145
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1146
|
+
return writer;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated MessageType for protobuf message resources.qualifications.QualificationRequest
|
|
1151
|
+
*/
|
|
1152
|
+
export const QualificationRequest = new QualificationRequest$Type();
|
|
1153
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1154
|
+
class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
1155
|
+
constructor() {
|
|
1156
|
+
super("resources.qualifications.QualificationResult", [
|
|
1157
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1158
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1159
|
+
{ no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
1160
|
+
{ no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1161
|
+
{ no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
1162
|
+
{ no: 6, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
1163
|
+
{ no: 7, name: "user", kind: "message", T: () => UserShort },
|
|
1164
|
+
{ no: 8, name: "status", kind: "enum", T: () => ["resources.qualifications.ResultStatus", ResultStatus, "RESULT_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
1165
|
+
{ no: 9, name: "score", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 1000 } } } },
|
|
1166
|
+
{ no: 10, name: "summary", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
1167
|
+
{ no: 11, name: "creator_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
1168
|
+
{ no: 12, name: "creator", kind: "message", T: () => UserShort },
|
|
1169
|
+
{ no: 13, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
|
|
1170
|
+
]);
|
|
1171
|
+
}
|
|
1172
|
+
create(value?: PartialMessage<QualificationResult>): QualificationResult {
|
|
1173
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1174
|
+
message.id = "0";
|
|
1175
|
+
message.qualificationId = "0";
|
|
1176
|
+
message.userId = 0;
|
|
1177
|
+
message.status = 0;
|
|
1178
|
+
message.summary = "";
|
|
1179
|
+
message.creatorId = 0;
|
|
1180
|
+
message.creatorJob = "";
|
|
1181
|
+
if (value !== undefined)
|
|
1182
|
+
reflectionMergePartial<QualificationResult>(this, message, value);
|
|
1183
|
+
return message;
|
|
1184
|
+
}
|
|
1185
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationResult): QualificationResult {
|
|
1186
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1187
|
+
while (reader.pos < end) {
|
|
1188
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1189
|
+
switch (fieldNo) {
|
|
1190
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
1191
|
+
message.id = reader.uint64().toString();
|
|
1192
|
+
break;
|
|
1193
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
1194
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1195
|
+
break;
|
|
1196
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 3:
|
|
1197
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
1198
|
+
break;
|
|
1199
|
+
case /* uint64 qualification_id = 4 [jstype = JS_STRING];*/ 4:
|
|
1200
|
+
message.qualificationId = reader.uint64().toString();
|
|
1201
|
+
break;
|
|
1202
|
+
case /* optional resources.qualifications.QualificationShort qualification */ 5:
|
|
1203
|
+
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
1204
|
+
break;
|
|
1205
|
+
case /* int32 user_id */ 6:
|
|
1206
|
+
message.userId = reader.int32();
|
|
1207
|
+
break;
|
|
1208
|
+
case /* resources.users.UserShort user */ 7:
|
|
1209
|
+
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
1210
|
+
break;
|
|
1211
|
+
case /* resources.qualifications.ResultStatus status */ 8:
|
|
1212
|
+
message.status = reader.int32();
|
|
1213
|
+
break;
|
|
1214
|
+
case /* optional uint32 score */ 9:
|
|
1215
|
+
message.score = reader.uint32();
|
|
1216
|
+
break;
|
|
1217
|
+
case /* string summary */ 10:
|
|
1218
|
+
message.summary = reader.string();
|
|
1219
|
+
break;
|
|
1220
|
+
case /* int32 creator_id */ 11:
|
|
1221
|
+
message.creatorId = reader.int32();
|
|
1222
|
+
break;
|
|
1223
|
+
case /* resources.users.UserShort creator */ 12:
|
|
1224
|
+
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
1225
|
+
break;
|
|
1226
|
+
case /* string creator_job */ 13:
|
|
1227
|
+
message.creatorJob = reader.string();
|
|
1228
|
+
break;
|
|
1229
|
+
default:
|
|
1230
|
+
let u = options.readUnknownField;
|
|
1231
|
+
if (u === "throw")
|
|
1232
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1233
|
+
let d = reader.skip(wireType);
|
|
1234
|
+
if (u !== false)
|
|
1235
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
return message;
|
|
1239
|
+
}
|
|
1240
|
+
internalBinaryWrite(message: QualificationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1241
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
1242
|
+
if (message.id !== "0")
|
|
1243
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
1244
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
1245
|
+
if (message.createdAt)
|
|
1246
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1247
|
+
/* optional resources.timestamp.Timestamp deleted_at = 3; */
|
|
1248
|
+
if (message.deletedAt)
|
|
1249
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1250
|
+
/* uint64 qualification_id = 4 [jstype = JS_STRING]; */
|
|
1251
|
+
if (message.qualificationId !== "0")
|
|
1252
|
+
writer.tag(4, WireType.Varint).uint64(message.qualificationId);
|
|
1253
|
+
/* optional resources.qualifications.QualificationShort qualification = 5; */
|
|
1254
|
+
if (message.qualification)
|
|
1255
|
+
QualificationShort.internalBinaryWrite(message.qualification, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1256
|
+
/* int32 user_id = 6; */
|
|
1257
|
+
if (message.userId !== 0)
|
|
1258
|
+
writer.tag(6, WireType.Varint).int32(message.userId);
|
|
1259
|
+
/* resources.users.UserShort user = 7; */
|
|
1260
|
+
if (message.user)
|
|
1261
|
+
UserShort.internalBinaryWrite(message.user, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1262
|
+
/* resources.qualifications.ResultStatus status = 8; */
|
|
1263
|
+
if (message.status !== 0)
|
|
1264
|
+
writer.tag(8, WireType.Varint).int32(message.status);
|
|
1265
|
+
/* optional uint32 score = 9; */
|
|
1266
|
+
if (message.score !== undefined)
|
|
1267
|
+
writer.tag(9, WireType.Varint).uint32(message.score);
|
|
1268
|
+
/* string summary = 10; */
|
|
1269
|
+
if (message.summary !== "")
|
|
1270
|
+
writer.tag(10, WireType.LengthDelimited).string(message.summary);
|
|
1271
|
+
/* int32 creator_id = 11; */
|
|
1272
|
+
if (message.creatorId !== 0)
|
|
1273
|
+
writer.tag(11, WireType.Varint).int32(message.creatorId);
|
|
1274
|
+
/* resources.users.UserShort creator = 12; */
|
|
1275
|
+
if (message.creator)
|
|
1276
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
1277
|
+
/* string creator_job = 13; */
|
|
1278
|
+
if (message.creatorJob !== "")
|
|
1279
|
+
writer.tag(13, WireType.LengthDelimited).string(message.creatorJob);
|
|
1280
|
+
let u = options.writeUnknownFields;
|
|
1281
|
+
if (u !== false)
|
|
1282
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1283
|
+
return writer;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* @generated MessageType for protobuf message resources.qualifications.QualificationResult
|
|
1288
|
+
*/
|
|
1289
|
+
export const QualificationResult = new QualificationResult$Type();
|