@fivenet-app/gen 0.9.3 → 0.9.4-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/package.json +5 -1
- package/perms.ts +4 -0
- package/resources/accounts/accounts.ts +8 -8
- package/resources/accounts/oauth2.ts +16 -16
- package/resources/calendar/access.ts +32 -32
- package/resources/calendar/calendar.ts +48 -48
- package/resources/centrum/access.ts +40 -40
- package/resources/centrum/dispatches.ts +62 -62
- package/resources/centrum/general.ts +8 -8
- package/resources/centrum/units.ts +40 -40
- package/resources/documents/access.ts +32 -32
- package/resources/documents/activity.ts +16 -16
- package/resources/documents/category.ts +8 -8
- package/resources/documents/comment.ts +16 -16
- package/resources/documents/documents.ts +86 -86
- package/resources/documents/requests.ts +16 -16
- package/resources/documents/templates.ts +32 -32
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +8 -8
- package/resources/internet/domain.ts +182 -23
- package/resources/internet/page.ts +22 -20
- package/resources/internet/search.ts +8 -8
- package/resources/jobs/activity.ts +8 -8
- package/resources/jobs/conduct.ts +8 -8
- package/resources/jobs/labels.ts +8 -8
- package/resources/jobs/timeclock.ts +6 -2
- package/resources/laws/laws.ts +24 -24
- package/resources/livemap/livemap.ts +14 -14
- package/resources/mailer/access.ts +56 -56
- package/resources/mailer/email.ts +8 -8
- package/resources/mailer/events.ts +18 -18
- package/resources/mailer/message.ts +24 -24
- package/resources/mailer/settings.ts +8 -8
- package/resources/mailer/template.ts +16 -16
- package/resources/mailer/thread.ts +56 -56
- package/resources/notifications/events.ts +39 -2
- package/resources/notifications/notifications.ts +20 -20
- package/resources/permissions/permissions.ts +64 -64
- package/resources/qualifications/access.ts +16 -16
- package/resources/qualifications/exam.ts +40 -40
- package/resources/qualifications/qualifications.ts +64 -64
- package/resources/rector/audit.ts +16 -16
- package/resources/sync/activity.ts +92 -14
- package/resources/sync/data.ts +142 -10
- package/resources/users/activity.ts +992 -36
- package/resources/users/job_props.ts +3 -708
- package/resources/users/job_settings.ts +721 -0
- package/resources/users/labels.ts +8 -8
- package/resources/users/licenses.ts +148 -0
- package/resources/users/users.ts +1 -136
- package/resources/wiki/access.ts +32 -32
- package/resources/wiki/activity.ts +16 -16
- package/resources/wiki/page.ts +28 -28
- package/services/auth/auth.ts +16 -16
- package/services/calendar/calendar.ts +55 -55
- package/services/centrum/centrum.ts +112 -112
- package/services/citizenstore/citizenstore.ts +24 -1
- package/services/docstore/docstore.ts +280 -280
- package/services/internet/domain.client.ts +126 -0
- package/services/internet/domain.ts +695 -0
- package/services/internet/internet.ts +3 -3
- package/services/jobs/conduct.ts +15 -15
- package/services/jobs/jobs.ts +14 -14
- package/services/jobs/timeclock.ts +1 -1
- package/services/livemapper/livemap.ts +8 -8
- package/services/mailer/mailer.ts +159 -159
- package/services/notificator/notificator.ts +15 -15
- package/services/qualifications/qualifications.ts +108 -108
- package/services/rector/laws.ts +16 -16
- package/services/rector/rector.ts +63 -63
- package/services/sync/sync.client.ts +36 -2
- package/services/sync/sync.ts +259 -44
- package/services/wiki/wiki.ts +24 -24
- package/svcs.ts +13 -0
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -66,9 +66,9 @@ export interface ListQualificationsResponse {
|
|
|
66
66
|
*/
|
|
67
67
|
export interface GetQualificationRequest {
|
|
68
68
|
/**
|
|
69
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
69
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
70
70
|
*/
|
|
71
|
-
qualificationId:
|
|
71
|
+
qualificationId: number;
|
|
72
72
|
/**
|
|
73
73
|
* @generated from protobuf field: optional bool with_exam = 2;
|
|
74
74
|
*/
|
|
@@ -97,9 +97,9 @@ export interface CreateQualificationRequest {
|
|
|
97
97
|
*/
|
|
98
98
|
export interface CreateQualificationResponse {
|
|
99
99
|
/**
|
|
100
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
100
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
101
101
|
*/
|
|
102
|
-
qualificationId:
|
|
102
|
+
qualificationId: number;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* @generated from protobuf message services.qualifications.UpdateQualificationRequest
|
|
@@ -115,18 +115,18 @@ export interface UpdateQualificationRequest {
|
|
|
115
115
|
*/
|
|
116
116
|
export interface UpdateQualificationResponse {
|
|
117
117
|
/**
|
|
118
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
118
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
119
119
|
*/
|
|
120
|
-
qualificationId:
|
|
120
|
+
qualificationId: number;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* @generated from protobuf message services.qualifications.DeleteQualificationRequest
|
|
124
124
|
*/
|
|
125
125
|
export interface DeleteQualificationRequest {
|
|
126
126
|
/**
|
|
127
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
127
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
128
128
|
*/
|
|
129
|
-
qualificationId:
|
|
129
|
+
qualificationId: number;
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* @generated from protobuf message services.qualifications.DeleteQualificationResponse
|
|
@@ -140,9 +140,9 @@ export interface DeleteQualificationResponse {
|
|
|
140
140
|
*/
|
|
141
141
|
export interface GetQualificationAccessRequest {
|
|
142
142
|
/**
|
|
143
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
143
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
144
144
|
*/
|
|
145
|
-
qualificationId:
|
|
145
|
+
qualificationId: number;
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
148
|
* @generated from protobuf message services.qualifications.GetQualificationAccessResponse
|
|
@@ -158,9 +158,9 @@ export interface GetQualificationAccessResponse {
|
|
|
158
158
|
*/
|
|
159
159
|
export interface SetQualificationAccessRequest {
|
|
160
160
|
/**
|
|
161
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
161
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
162
162
|
*/
|
|
163
|
-
qualificationId:
|
|
163
|
+
qualificationId: number;
|
|
164
164
|
/**
|
|
165
165
|
* @generated from protobuf field: resources.qualifications.QualificationAccess access = 2;
|
|
166
166
|
*/
|
|
@@ -188,9 +188,9 @@ export interface ListQualificationRequestsRequest {
|
|
|
188
188
|
/**
|
|
189
189
|
* Search params
|
|
190
190
|
*
|
|
191
|
-
* @generated from protobuf field: optional uint64 qualification_id = 3
|
|
191
|
+
* @generated from protobuf field: optional uint64 qualification_id = 3;
|
|
192
192
|
*/
|
|
193
|
-
qualificationId?:
|
|
193
|
+
qualificationId?: number;
|
|
194
194
|
/**
|
|
195
195
|
* @generated from protobuf field: repeated resources.qualifications.RequestStatus status = 4;
|
|
196
196
|
*/
|
|
@@ -236,9 +236,9 @@ export interface CreateOrUpdateQualificationRequestResponse {
|
|
|
236
236
|
*/
|
|
237
237
|
export interface DeleteQualificationReqRequest {
|
|
238
238
|
/**
|
|
239
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
239
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
240
240
|
*/
|
|
241
|
-
qualificationId:
|
|
241
|
+
qualificationId: number;
|
|
242
242
|
/**
|
|
243
243
|
* @generated from protobuf field: int32 user_id = 2;
|
|
244
244
|
*/
|
|
@@ -266,9 +266,9 @@ export interface ListQualificationsResultsRequest {
|
|
|
266
266
|
/**
|
|
267
267
|
* Search params
|
|
268
268
|
*
|
|
269
|
-
* @generated from protobuf field: optional uint64 qualification_id = 3
|
|
269
|
+
* @generated from protobuf field: optional uint64 qualification_id = 3;
|
|
270
270
|
*/
|
|
271
|
-
qualificationId?:
|
|
271
|
+
qualificationId?: number;
|
|
272
272
|
/**
|
|
273
273
|
* @generated from protobuf field: repeated resources.qualifications.ResultStatus status = 4;
|
|
274
274
|
*/
|
|
@@ -314,9 +314,9 @@ export interface CreateOrUpdateQualificationResultResponse {
|
|
|
314
314
|
*/
|
|
315
315
|
export interface DeleteQualificationResultRequest {
|
|
316
316
|
/**
|
|
317
|
-
* @generated from protobuf field: uint64 result_id = 1
|
|
317
|
+
* @generated from protobuf field: uint64 result_id = 1;
|
|
318
318
|
*/
|
|
319
|
-
resultId:
|
|
319
|
+
resultId: number;
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
322
322
|
* @generated from protobuf message services.qualifications.DeleteQualificationResultResponse
|
|
@@ -330,9 +330,9 @@ export interface DeleteQualificationResultResponse {
|
|
|
330
330
|
*/
|
|
331
331
|
export interface GetExamInfoRequest {
|
|
332
332
|
/**
|
|
333
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
333
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
334
334
|
*/
|
|
335
|
-
qualificationId:
|
|
335
|
+
qualificationId: number;
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
338
|
* @generated from protobuf message services.qualifications.GetExamInfoResponse
|
|
@@ -356,9 +356,9 @@ export interface GetExamInfoResponse {
|
|
|
356
356
|
*/
|
|
357
357
|
export interface TakeExamRequest {
|
|
358
358
|
/**
|
|
359
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
359
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
360
360
|
*/
|
|
361
|
-
qualificationId:
|
|
361
|
+
qualificationId: number;
|
|
362
362
|
/**
|
|
363
363
|
* @generated from protobuf field: optional bool cancel = 2;
|
|
364
364
|
*/
|
|
@@ -382,9 +382,9 @@ export interface TakeExamResponse {
|
|
|
382
382
|
*/
|
|
383
383
|
export interface SubmitExamRequest {
|
|
384
384
|
/**
|
|
385
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
385
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
386
386
|
*/
|
|
387
|
-
qualificationId:
|
|
387
|
+
qualificationId: number;
|
|
388
388
|
/**
|
|
389
389
|
* @generated from protobuf field: resources.qualifications.ExamResponses responses = 2;
|
|
390
390
|
*/
|
|
@@ -404,9 +404,9 @@ export interface SubmitExamResponse {
|
|
|
404
404
|
*/
|
|
405
405
|
export interface GetUserExamRequest {
|
|
406
406
|
/**
|
|
407
|
-
* @generated from protobuf field: uint64 qualification_id = 1
|
|
407
|
+
* @generated from protobuf field: uint64 qualification_id = 1;
|
|
408
408
|
*/
|
|
409
|
-
qualificationId:
|
|
409
|
+
qualificationId: number;
|
|
410
410
|
/**
|
|
411
411
|
* @generated from protobuf field: int32 user_id = 2;
|
|
412
412
|
*/
|
|
@@ -554,13 +554,13 @@ export const ListQualificationsResponse = new ListQualificationsResponse$Type();
|
|
|
554
554
|
class GetQualificationRequest$Type extends MessageType<GetQualificationRequest> {
|
|
555
555
|
constructor() {
|
|
556
556
|
super("services.qualifications.GetQualificationRequest", [
|
|
557
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
557
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
558
558
|
{ no: 2, name: "with_exam", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
559
559
|
]);
|
|
560
560
|
}
|
|
561
561
|
create(value?: PartialMessage<GetQualificationRequest>): GetQualificationRequest {
|
|
562
562
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
563
|
-
message.qualificationId =
|
|
563
|
+
message.qualificationId = 0;
|
|
564
564
|
if (value !== undefined)
|
|
565
565
|
reflectionMergePartial<GetQualificationRequest>(this, message, value);
|
|
566
566
|
return message;
|
|
@@ -570,8 +570,8 @@ class GetQualificationRequest$Type extends MessageType<GetQualificationRequest>
|
|
|
570
570
|
while (reader.pos < end) {
|
|
571
571
|
let [fieldNo, wireType] = reader.tag();
|
|
572
572
|
switch (fieldNo) {
|
|
573
|
-
case /* uint64 qualification_id
|
|
574
|
-
message.qualificationId = reader.uint64().
|
|
573
|
+
case /* uint64 qualification_id */ 1:
|
|
574
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
575
575
|
break;
|
|
576
576
|
case /* optional bool with_exam */ 2:
|
|
577
577
|
message.withExam = reader.bool();
|
|
@@ -588,8 +588,8 @@ class GetQualificationRequest$Type extends MessageType<GetQualificationRequest>
|
|
|
588
588
|
return message;
|
|
589
589
|
}
|
|
590
590
|
internalBinaryWrite(message: GetQualificationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
591
|
-
/* uint64 qualification_id = 1
|
|
592
|
-
if (message.qualificationId !==
|
|
591
|
+
/* uint64 qualification_id = 1; */
|
|
592
|
+
if (message.qualificationId !== 0)
|
|
593
593
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
594
594
|
/* optional bool with_exam = 2; */
|
|
595
595
|
if (message.withExam !== undefined)
|
|
@@ -700,12 +700,12 @@ export const CreateQualificationRequest = new CreateQualificationRequest$Type();
|
|
|
700
700
|
class CreateQualificationResponse$Type extends MessageType<CreateQualificationResponse> {
|
|
701
701
|
constructor() {
|
|
702
702
|
super("services.qualifications.CreateQualificationResponse", [
|
|
703
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
703
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
704
704
|
]);
|
|
705
705
|
}
|
|
706
706
|
create(value?: PartialMessage<CreateQualificationResponse>): CreateQualificationResponse {
|
|
707
707
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
708
|
-
message.qualificationId =
|
|
708
|
+
message.qualificationId = 0;
|
|
709
709
|
if (value !== undefined)
|
|
710
710
|
reflectionMergePartial<CreateQualificationResponse>(this, message, value);
|
|
711
711
|
return message;
|
|
@@ -715,8 +715,8 @@ class CreateQualificationResponse$Type extends MessageType<CreateQualificationRe
|
|
|
715
715
|
while (reader.pos < end) {
|
|
716
716
|
let [fieldNo, wireType] = reader.tag();
|
|
717
717
|
switch (fieldNo) {
|
|
718
|
-
case /* uint64 qualification_id
|
|
719
|
-
message.qualificationId = reader.uint64().
|
|
718
|
+
case /* uint64 qualification_id */ 1:
|
|
719
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
720
720
|
break;
|
|
721
721
|
default:
|
|
722
722
|
let u = options.readUnknownField;
|
|
@@ -730,8 +730,8 @@ class CreateQualificationResponse$Type extends MessageType<CreateQualificationRe
|
|
|
730
730
|
return message;
|
|
731
731
|
}
|
|
732
732
|
internalBinaryWrite(message: CreateQualificationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
733
|
-
/* uint64 qualification_id = 1
|
|
734
|
-
if (message.qualificationId !==
|
|
733
|
+
/* uint64 qualification_id = 1; */
|
|
734
|
+
if (message.qualificationId !== 0)
|
|
735
735
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
736
736
|
let u = options.writeUnknownFields;
|
|
737
737
|
if (u !== false)
|
|
@@ -793,12 +793,12 @@ export const UpdateQualificationRequest = new UpdateQualificationRequest$Type();
|
|
|
793
793
|
class UpdateQualificationResponse$Type extends MessageType<UpdateQualificationResponse> {
|
|
794
794
|
constructor() {
|
|
795
795
|
super("services.qualifications.UpdateQualificationResponse", [
|
|
796
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
796
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
797
797
|
]);
|
|
798
798
|
}
|
|
799
799
|
create(value?: PartialMessage<UpdateQualificationResponse>): UpdateQualificationResponse {
|
|
800
800
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
801
|
-
message.qualificationId =
|
|
801
|
+
message.qualificationId = 0;
|
|
802
802
|
if (value !== undefined)
|
|
803
803
|
reflectionMergePartial<UpdateQualificationResponse>(this, message, value);
|
|
804
804
|
return message;
|
|
@@ -808,8 +808,8 @@ class UpdateQualificationResponse$Type extends MessageType<UpdateQualificationRe
|
|
|
808
808
|
while (reader.pos < end) {
|
|
809
809
|
let [fieldNo, wireType] = reader.tag();
|
|
810
810
|
switch (fieldNo) {
|
|
811
|
-
case /* uint64 qualification_id
|
|
812
|
-
message.qualificationId = reader.uint64().
|
|
811
|
+
case /* uint64 qualification_id */ 1:
|
|
812
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
813
813
|
break;
|
|
814
814
|
default:
|
|
815
815
|
let u = options.readUnknownField;
|
|
@@ -823,8 +823,8 @@ class UpdateQualificationResponse$Type extends MessageType<UpdateQualificationRe
|
|
|
823
823
|
return message;
|
|
824
824
|
}
|
|
825
825
|
internalBinaryWrite(message: UpdateQualificationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
826
|
-
/* uint64 qualification_id = 1
|
|
827
|
-
if (message.qualificationId !==
|
|
826
|
+
/* uint64 qualification_id = 1; */
|
|
827
|
+
if (message.qualificationId !== 0)
|
|
828
828
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
829
829
|
let u = options.writeUnknownFields;
|
|
830
830
|
if (u !== false)
|
|
@@ -840,12 +840,12 @@ export const UpdateQualificationResponse = new UpdateQualificationResponse$Type(
|
|
|
840
840
|
class DeleteQualificationRequest$Type extends MessageType<DeleteQualificationRequest> {
|
|
841
841
|
constructor() {
|
|
842
842
|
super("services.qualifications.DeleteQualificationRequest", [
|
|
843
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
843
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
844
844
|
]);
|
|
845
845
|
}
|
|
846
846
|
create(value?: PartialMessage<DeleteQualificationRequest>): DeleteQualificationRequest {
|
|
847
847
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
848
|
-
message.qualificationId =
|
|
848
|
+
message.qualificationId = 0;
|
|
849
849
|
if (value !== undefined)
|
|
850
850
|
reflectionMergePartial<DeleteQualificationRequest>(this, message, value);
|
|
851
851
|
return message;
|
|
@@ -855,8 +855,8 @@ class DeleteQualificationRequest$Type extends MessageType<DeleteQualificationReq
|
|
|
855
855
|
while (reader.pos < end) {
|
|
856
856
|
let [fieldNo, wireType] = reader.tag();
|
|
857
857
|
switch (fieldNo) {
|
|
858
|
-
case /* uint64 qualification_id
|
|
859
|
-
message.qualificationId = reader.uint64().
|
|
858
|
+
case /* uint64 qualification_id */ 1:
|
|
859
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
860
860
|
break;
|
|
861
861
|
default:
|
|
862
862
|
let u = options.readUnknownField;
|
|
@@ -870,8 +870,8 @@ class DeleteQualificationRequest$Type extends MessageType<DeleteQualificationReq
|
|
|
870
870
|
return message;
|
|
871
871
|
}
|
|
872
872
|
internalBinaryWrite(message: DeleteQualificationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
873
|
-
/* uint64 qualification_id = 1
|
|
874
|
-
if (message.qualificationId !==
|
|
873
|
+
/* uint64 qualification_id = 1; */
|
|
874
|
+
if (message.qualificationId !== 0)
|
|
875
875
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
876
876
|
let u = options.writeUnknownFields;
|
|
877
877
|
if (u !== false)
|
|
@@ -912,12 +912,12 @@ export const DeleteQualificationResponse = new DeleteQualificationResponse$Type(
|
|
|
912
912
|
class GetQualificationAccessRequest$Type extends MessageType<GetQualificationAccessRequest> {
|
|
913
913
|
constructor() {
|
|
914
914
|
super("services.qualifications.GetQualificationAccessRequest", [
|
|
915
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
915
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
916
916
|
]);
|
|
917
917
|
}
|
|
918
918
|
create(value?: PartialMessage<GetQualificationAccessRequest>): GetQualificationAccessRequest {
|
|
919
919
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
920
|
-
message.qualificationId =
|
|
920
|
+
message.qualificationId = 0;
|
|
921
921
|
if (value !== undefined)
|
|
922
922
|
reflectionMergePartial<GetQualificationAccessRequest>(this, message, value);
|
|
923
923
|
return message;
|
|
@@ -927,8 +927,8 @@ class GetQualificationAccessRequest$Type extends MessageType<GetQualificationAcc
|
|
|
927
927
|
while (reader.pos < end) {
|
|
928
928
|
let [fieldNo, wireType] = reader.tag();
|
|
929
929
|
switch (fieldNo) {
|
|
930
|
-
case /* uint64 qualification_id
|
|
931
|
-
message.qualificationId = reader.uint64().
|
|
930
|
+
case /* uint64 qualification_id */ 1:
|
|
931
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
932
932
|
break;
|
|
933
933
|
default:
|
|
934
934
|
let u = options.readUnknownField;
|
|
@@ -942,8 +942,8 @@ class GetQualificationAccessRequest$Type extends MessageType<GetQualificationAcc
|
|
|
942
942
|
return message;
|
|
943
943
|
}
|
|
944
944
|
internalBinaryWrite(message: GetQualificationAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
945
|
-
/* uint64 qualification_id = 1
|
|
946
|
-
if (message.qualificationId !==
|
|
945
|
+
/* uint64 qualification_id = 1; */
|
|
946
|
+
if (message.qualificationId !== 0)
|
|
947
947
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
948
948
|
let u = options.writeUnknownFields;
|
|
949
949
|
if (u !== false)
|
|
@@ -1005,13 +1005,13 @@ export const GetQualificationAccessResponse = new GetQualificationAccessResponse
|
|
|
1005
1005
|
class SetQualificationAccessRequest$Type extends MessageType<SetQualificationAccessRequest> {
|
|
1006
1006
|
constructor() {
|
|
1007
1007
|
super("services.qualifications.SetQualificationAccessRequest", [
|
|
1008
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1008
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1009
1009
|
{ no: 2, name: "access", kind: "message", T: () => QualificationAccess, options: { "validate.rules": { message: { required: true } } } }
|
|
1010
1010
|
]);
|
|
1011
1011
|
}
|
|
1012
1012
|
create(value?: PartialMessage<SetQualificationAccessRequest>): SetQualificationAccessRequest {
|
|
1013
1013
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1014
|
-
message.qualificationId =
|
|
1014
|
+
message.qualificationId = 0;
|
|
1015
1015
|
if (value !== undefined)
|
|
1016
1016
|
reflectionMergePartial<SetQualificationAccessRequest>(this, message, value);
|
|
1017
1017
|
return message;
|
|
@@ -1021,8 +1021,8 @@ class SetQualificationAccessRequest$Type extends MessageType<SetQualificationAcc
|
|
|
1021
1021
|
while (reader.pos < end) {
|
|
1022
1022
|
let [fieldNo, wireType] = reader.tag();
|
|
1023
1023
|
switch (fieldNo) {
|
|
1024
|
-
case /* uint64 qualification_id
|
|
1025
|
-
message.qualificationId = reader.uint64().
|
|
1024
|
+
case /* uint64 qualification_id */ 1:
|
|
1025
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1026
1026
|
break;
|
|
1027
1027
|
case /* resources.qualifications.QualificationAccess access */ 2:
|
|
1028
1028
|
message.access = QualificationAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
@@ -1039,8 +1039,8 @@ class SetQualificationAccessRequest$Type extends MessageType<SetQualificationAcc
|
|
|
1039
1039
|
return message;
|
|
1040
1040
|
}
|
|
1041
1041
|
internalBinaryWrite(message: SetQualificationAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1042
|
-
/* uint64 qualification_id = 1
|
|
1043
|
-
if (message.qualificationId !==
|
|
1042
|
+
/* uint64 qualification_id = 1; */
|
|
1043
|
+
if (message.qualificationId !== 0)
|
|
1044
1044
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
1045
1045
|
/* resources.qualifications.QualificationAccess access = 2; */
|
|
1046
1046
|
if (message.access)
|
|
@@ -1086,7 +1086,7 @@ class ListQualificationRequestsRequest$Type extends MessageType<ListQualificatio
|
|
|
1086
1086
|
super("services.qualifications.ListQualificationRequestsRequest", [
|
|
1087
1087
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
1088
1088
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
1089
|
-
{ no: 3, name: "qualification_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
1089
|
+
{ no: 3, name: "qualification_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1090
1090
|
{ no: 4, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.qualifications.RequestStatus", RequestStatus, "REQUEST_STATUS_"] },
|
|
1091
1091
|
{ no: 5, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
|
|
1092
1092
|
]);
|
|
@@ -1109,8 +1109,8 @@ class ListQualificationRequestsRequest$Type extends MessageType<ListQualificatio
|
|
|
1109
1109
|
case /* optional resources.common.database.Sort sort */ 2:
|
|
1110
1110
|
message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
|
1111
1111
|
break;
|
|
1112
|
-
case /* optional uint64 qualification_id
|
|
1113
|
-
message.qualificationId = reader.uint64().
|
|
1112
|
+
case /* optional uint64 qualification_id */ 3:
|
|
1113
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1114
1114
|
break;
|
|
1115
1115
|
case /* repeated resources.qualifications.RequestStatus status */ 4:
|
|
1116
1116
|
if (wireType === WireType.LengthDelimited)
|
|
@@ -1140,7 +1140,7 @@ class ListQualificationRequestsRequest$Type extends MessageType<ListQualificatio
|
|
|
1140
1140
|
/* optional resources.common.database.Sort sort = 2; */
|
|
1141
1141
|
if (message.sort)
|
|
1142
1142
|
Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1143
|
-
/* optional uint64 qualification_id = 3
|
|
1143
|
+
/* optional uint64 qualification_id = 3; */
|
|
1144
1144
|
if (message.qualificationId !== undefined)
|
|
1145
1145
|
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
1146
1146
|
/* repeated resources.qualifications.RequestStatus status = 4; */
|
|
@@ -1313,13 +1313,13 @@ export const CreateOrUpdateQualificationRequestResponse = new CreateOrUpdateQual
|
|
|
1313
1313
|
class DeleteQualificationReqRequest$Type extends MessageType<DeleteQualificationReqRequest> {
|
|
1314
1314
|
constructor() {
|
|
1315
1315
|
super("services.qualifications.DeleteQualificationReqRequest", [
|
|
1316
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1316
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1317
1317
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
|
|
1318
1318
|
]);
|
|
1319
1319
|
}
|
|
1320
1320
|
create(value?: PartialMessage<DeleteQualificationReqRequest>): DeleteQualificationReqRequest {
|
|
1321
1321
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1322
|
-
message.qualificationId =
|
|
1322
|
+
message.qualificationId = 0;
|
|
1323
1323
|
message.userId = 0;
|
|
1324
1324
|
if (value !== undefined)
|
|
1325
1325
|
reflectionMergePartial<DeleteQualificationReqRequest>(this, message, value);
|
|
@@ -1330,8 +1330,8 @@ class DeleteQualificationReqRequest$Type extends MessageType<DeleteQualification
|
|
|
1330
1330
|
while (reader.pos < end) {
|
|
1331
1331
|
let [fieldNo, wireType] = reader.tag();
|
|
1332
1332
|
switch (fieldNo) {
|
|
1333
|
-
case /* uint64 qualification_id
|
|
1334
|
-
message.qualificationId = reader.uint64().
|
|
1333
|
+
case /* uint64 qualification_id */ 1:
|
|
1334
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1335
1335
|
break;
|
|
1336
1336
|
case /* int32 user_id */ 2:
|
|
1337
1337
|
message.userId = reader.int32();
|
|
@@ -1348,8 +1348,8 @@ class DeleteQualificationReqRequest$Type extends MessageType<DeleteQualification
|
|
|
1348
1348
|
return message;
|
|
1349
1349
|
}
|
|
1350
1350
|
internalBinaryWrite(message: DeleteQualificationReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1351
|
-
/* uint64 qualification_id = 1
|
|
1352
|
-
if (message.qualificationId !==
|
|
1351
|
+
/* uint64 qualification_id = 1; */
|
|
1352
|
+
if (message.qualificationId !== 0)
|
|
1353
1353
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
1354
1354
|
/* int32 user_id = 2; */
|
|
1355
1355
|
if (message.userId !== 0)
|
|
@@ -1395,7 +1395,7 @@ class ListQualificationsResultsRequest$Type extends MessageType<ListQualificatio
|
|
|
1395
1395
|
super("services.qualifications.ListQualificationsResultsRequest", [
|
|
1396
1396
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
1397
1397
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
1398
|
-
{ no: 3, name: "qualification_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
1398
|
+
{ no: 3, name: "qualification_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1399
1399
|
{ no: 4, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.qualifications.ResultStatus", ResultStatus, "RESULT_STATUS_"] },
|
|
1400
1400
|
{ no: 5, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
|
|
1401
1401
|
]);
|
|
@@ -1418,8 +1418,8 @@ class ListQualificationsResultsRequest$Type extends MessageType<ListQualificatio
|
|
|
1418
1418
|
case /* optional resources.common.database.Sort sort */ 2:
|
|
1419
1419
|
message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
|
1420
1420
|
break;
|
|
1421
|
-
case /* optional uint64 qualification_id
|
|
1422
|
-
message.qualificationId = reader.uint64().
|
|
1421
|
+
case /* optional uint64 qualification_id */ 3:
|
|
1422
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1423
1423
|
break;
|
|
1424
1424
|
case /* repeated resources.qualifications.ResultStatus status */ 4:
|
|
1425
1425
|
if (wireType === WireType.LengthDelimited)
|
|
@@ -1449,7 +1449,7 @@ class ListQualificationsResultsRequest$Type extends MessageType<ListQualificatio
|
|
|
1449
1449
|
/* optional resources.common.database.Sort sort = 2; */
|
|
1450
1450
|
if (message.sort)
|
|
1451
1451
|
Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1452
|
-
/* optional uint64 qualification_id = 3
|
|
1452
|
+
/* optional uint64 qualification_id = 3; */
|
|
1453
1453
|
if (message.qualificationId !== undefined)
|
|
1454
1454
|
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
1455
1455
|
/* repeated resources.qualifications.ResultStatus status = 4; */
|
|
@@ -1622,12 +1622,12 @@ export const CreateOrUpdateQualificationResultResponse = new CreateOrUpdateQuali
|
|
|
1622
1622
|
class DeleteQualificationResultRequest$Type extends MessageType<DeleteQualificationResultRequest> {
|
|
1623
1623
|
constructor() {
|
|
1624
1624
|
super("services.qualifications.DeleteQualificationResultRequest", [
|
|
1625
|
-
{ no: 1, name: "result_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
1625
|
+
{ no: 1, name: "result_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1626
1626
|
]);
|
|
1627
1627
|
}
|
|
1628
1628
|
create(value?: PartialMessage<DeleteQualificationResultRequest>): DeleteQualificationResultRequest {
|
|
1629
1629
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1630
|
-
message.resultId =
|
|
1630
|
+
message.resultId = 0;
|
|
1631
1631
|
if (value !== undefined)
|
|
1632
1632
|
reflectionMergePartial<DeleteQualificationResultRequest>(this, message, value);
|
|
1633
1633
|
return message;
|
|
@@ -1637,8 +1637,8 @@ class DeleteQualificationResultRequest$Type extends MessageType<DeleteQualificat
|
|
|
1637
1637
|
while (reader.pos < end) {
|
|
1638
1638
|
let [fieldNo, wireType] = reader.tag();
|
|
1639
1639
|
switch (fieldNo) {
|
|
1640
|
-
case /* uint64 result_id
|
|
1641
|
-
message.resultId = reader.uint64().
|
|
1640
|
+
case /* uint64 result_id */ 1:
|
|
1641
|
+
message.resultId = reader.uint64().toNumber();
|
|
1642
1642
|
break;
|
|
1643
1643
|
default:
|
|
1644
1644
|
let u = options.readUnknownField;
|
|
@@ -1652,8 +1652,8 @@ class DeleteQualificationResultRequest$Type extends MessageType<DeleteQualificat
|
|
|
1652
1652
|
return message;
|
|
1653
1653
|
}
|
|
1654
1654
|
internalBinaryWrite(message: DeleteQualificationResultRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1655
|
-
/* uint64 result_id = 1
|
|
1656
|
-
if (message.resultId !==
|
|
1655
|
+
/* uint64 result_id = 1; */
|
|
1656
|
+
if (message.resultId !== 0)
|
|
1657
1657
|
writer.tag(1, WireType.Varint).uint64(message.resultId);
|
|
1658
1658
|
let u = options.writeUnknownFields;
|
|
1659
1659
|
if (u !== false)
|
|
@@ -1694,12 +1694,12 @@ export const DeleteQualificationResultResponse = new DeleteQualificationResultRe
|
|
|
1694
1694
|
class GetExamInfoRequest$Type extends MessageType<GetExamInfoRequest> {
|
|
1695
1695
|
constructor() {
|
|
1696
1696
|
super("services.qualifications.GetExamInfoRequest", [
|
|
1697
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
1697
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1698
1698
|
]);
|
|
1699
1699
|
}
|
|
1700
1700
|
create(value?: PartialMessage<GetExamInfoRequest>): GetExamInfoRequest {
|
|
1701
1701
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1702
|
-
message.qualificationId =
|
|
1702
|
+
message.qualificationId = 0;
|
|
1703
1703
|
if (value !== undefined)
|
|
1704
1704
|
reflectionMergePartial<GetExamInfoRequest>(this, message, value);
|
|
1705
1705
|
return message;
|
|
@@ -1709,8 +1709,8 @@ class GetExamInfoRequest$Type extends MessageType<GetExamInfoRequest> {
|
|
|
1709
1709
|
while (reader.pos < end) {
|
|
1710
1710
|
let [fieldNo, wireType] = reader.tag();
|
|
1711
1711
|
switch (fieldNo) {
|
|
1712
|
-
case /* uint64 qualification_id
|
|
1713
|
-
message.qualificationId = reader.uint64().
|
|
1712
|
+
case /* uint64 qualification_id */ 1:
|
|
1713
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1714
1714
|
break;
|
|
1715
1715
|
default:
|
|
1716
1716
|
let u = options.readUnknownField;
|
|
@@ -1724,8 +1724,8 @@ class GetExamInfoRequest$Type extends MessageType<GetExamInfoRequest> {
|
|
|
1724
1724
|
return message;
|
|
1725
1725
|
}
|
|
1726
1726
|
internalBinaryWrite(message: GetExamInfoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1727
|
-
/* uint64 qualification_id = 1
|
|
1728
|
-
if (message.qualificationId !==
|
|
1727
|
+
/* uint64 qualification_id = 1; */
|
|
1728
|
+
if (message.qualificationId !== 0)
|
|
1729
1729
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
1730
1730
|
let u = options.writeUnknownFields;
|
|
1731
1731
|
if (u !== false)
|
|
@@ -1802,13 +1802,13 @@ export const GetExamInfoResponse = new GetExamInfoResponse$Type();
|
|
|
1802
1802
|
class TakeExamRequest$Type extends MessageType<TakeExamRequest> {
|
|
1803
1803
|
constructor() {
|
|
1804
1804
|
super("services.qualifications.TakeExamRequest", [
|
|
1805
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1805
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1806
1806
|
{ no: 2, name: "cancel", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1807
1807
|
]);
|
|
1808
1808
|
}
|
|
1809
1809
|
create(value?: PartialMessage<TakeExamRequest>): TakeExamRequest {
|
|
1810
1810
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1811
|
-
message.qualificationId =
|
|
1811
|
+
message.qualificationId = 0;
|
|
1812
1812
|
if (value !== undefined)
|
|
1813
1813
|
reflectionMergePartial<TakeExamRequest>(this, message, value);
|
|
1814
1814
|
return message;
|
|
@@ -1818,8 +1818,8 @@ class TakeExamRequest$Type extends MessageType<TakeExamRequest> {
|
|
|
1818
1818
|
while (reader.pos < end) {
|
|
1819
1819
|
let [fieldNo, wireType] = reader.tag();
|
|
1820
1820
|
switch (fieldNo) {
|
|
1821
|
-
case /* uint64 qualification_id
|
|
1822
|
-
message.qualificationId = reader.uint64().
|
|
1821
|
+
case /* uint64 qualification_id */ 1:
|
|
1822
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1823
1823
|
break;
|
|
1824
1824
|
case /* optional bool cancel */ 2:
|
|
1825
1825
|
message.cancel = reader.bool();
|
|
@@ -1836,8 +1836,8 @@ class TakeExamRequest$Type extends MessageType<TakeExamRequest> {
|
|
|
1836
1836
|
return message;
|
|
1837
1837
|
}
|
|
1838
1838
|
internalBinaryWrite(message: TakeExamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1839
|
-
/* uint64 qualification_id = 1
|
|
1840
|
-
if (message.qualificationId !==
|
|
1839
|
+
/* uint64 qualification_id = 1; */
|
|
1840
|
+
if (message.qualificationId !== 0)
|
|
1841
1841
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
1842
1842
|
/* optional bool cancel = 2; */
|
|
1843
1843
|
if (message.cancel !== undefined)
|
|
@@ -1909,13 +1909,13 @@ export const TakeExamResponse = new TakeExamResponse$Type();
|
|
|
1909
1909
|
class SubmitExamRequest$Type extends MessageType<SubmitExamRequest> {
|
|
1910
1910
|
constructor() {
|
|
1911
1911
|
super("services.qualifications.SubmitExamRequest", [
|
|
1912
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1912
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1913
1913
|
{ no: 2, name: "responses", kind: "message", T: () => ExamResponses }
|
|
1914
1914
|
]);
|
|
1915
1915
|
}
|
|
1916
1916
|
create(value?: PartialMessage<SubmitExamRequest>): SubmitExamRequest {
|
|
1917
1917
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1918
|
-
message.qualificationId =
|
|
1918
|
+
message.qualificationId = 0;
|
|
1919
1919
|
if (value !== undefined)
|
|
1920
1920
|
reflectionMergePartial<SubmitExamRequest>(this, message, value);
|
|
1921
1921
|
return message;
|
|
@@ -1925,8 +1925,8 @@ class SubmitExamRequest$Type extends MessageType<SubmitExamRequest> {
|
|
|
1925
1925
|
while (reader.pos < end) {
|
|
1926
1926
|
let [fieldNo, wireType] = reader.tag();
|
|
1927
1927
|
switch (fieldNo) {
|
|
1928
|
-
case /* uint64 qualification_id
|
|
1929
|
-
message.qualificationId = reader.uint64().
|
|
1928
|
+
case /* uint64 qualification_id */ 1:
|
|
1929
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1930
1930
|
break;
|
|
1931
1931
|
case /* resources.qualifications.ExamResponses responses */ 2:
|
|
1932
1932
|
message.responses = ExamResponses.internalBinaryRead(reader, reader.uint32(), options, message.responses);
|
|
@@ -1943,8 +1943,8 @@ class SubmitExamRequest$Type extends MessageType<SubmitExamRequest> {
|
|
|
1943
1943
|
return message;
|
|
1944
1944
|
}
|
|
1945
1945
|
internalBinaryWrite(message: SubmitExamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1946
|
-
/* uint64 qualification_id = 1
|
|
1947
|
-
if (message.qualificationId !==
|
|
1946
|
+
/* uint64 qualification_id = 1; */
|
|
1947
|
+
if (message.qualificationId !== 0)
|
|
1948
1948
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
1949
1949
|
/* resources.qualifications.ExamResponses responses = 2; */
|
|
1950
1950
|
if (message.responses)
|
|
@@ -2009,13 +2009,13 @@ export const SubmitExamResponse = new SubmitExamResponse$Type();
|
|
|
2009
2009
|
class GetUserExamRequest$Type extends MessageType<GetUserExamRequest> {
|
|
2010
2010
|
constructor() {
|
|
2011
2011
|
super("services.qualifications.GetUserExamRequest", [
|
|
2012
|
-
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
2012
|
+
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2013
2013
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
|
|
2014
2014
|
]);
|
|
2015
2015
|
}
|
|
2016
2016
|
create(value?: PartialMessage<GetUserExamRequest>): GetUserExamRequest {
|
|
2017
2017
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2018
|
-
message.qualificationId =
|
|
2018
|
+
message.qualificationId = 0;
|
|
2019
2019
|
message.userId = 0;
|
|
2020
2020
|
if (value !== undefined)
|
|
2021
2021
|
reflectionMergePartial<GetUserExamRequest>(this, message, value);
|
|
@@ -2026,8 +2026,8 @@ class GetUserExamRequest$Type extends MessageType<GetUserExamRequest> {
|
|
|
2026
2026
|
while (reader.pos < end) {
|
|
2027
2027
|
let [fieldNo, wireType] = reader.tag();
|
|
2028
2028
|
switch (fieldNo) {
|
|
2029
|
-
case /* uint64 qualification_id
|
|
2030
|
-
message.qualificationId = reader.uint64().
|
|
2029
|
+
case /* uint64 qualification_id */ 1:
|
|
2030
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
2031
2031
|
break;
|
|
2032
2032
|
case /* int32 user_id */ 2:
|
|
2033
2033
|
message.userId = reader.int32();
|
|
@@ -2044,8 +2044,8 @@ class GetUserExamRequest$Type extends MessageType<GetUserExamRequest> {
|
|
|
2044
2044
|
return message;
|
|
2045
2045
|
}
|
|
2046
2046
|
internalBinaryWrite(message: GetUserExamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2047
|
-
/* uint64 qualification_id = 1
|
|
2048
|
-
if (message.qualificationId !==
|
|
2047
|
+
/* uint64 qualification_id = 1; */
|
|
2048
|
+
if (message.qualificationId !== 0)
|
|
2049
2049
|
writer.tag(1, WireType.Varint).uint64(message.qualificationId);
|
|
2050
2050
|
/* int32 user_id = 2; */
|
|
2051
2051
|
if (message.userId !== 0)
|