@fivenet-app/gen 2025.5.3 → 2026.3.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/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "services/jobs/conduct.proto" (package "services.jobs", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
7
|
import { ConductService } from "./conduct";
|
|
8
|
+
import type { UploadFileResponse } from "../../resources/file/filestore";
|
|
9
|
+
import type { UploadFileRequest } from "../../resources/file/filestore";
|
|
10
|
+
import type { ClientStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
7
11
|
import type { DeleteConductEntryResponse } from "./conduct";
|
|
8
12
|
import type { DeleteConductEntryRequest } from "./conduct";
|
|
9
13
|
import type { UpdateConductEntryResponse } from "./conduct";
|
|
10
14
|
import type { UpdateConductEntryRequest } from "./conduct";
|
|
11
15
|
import type { CreateConductEntryResponse } from "./conduct";
|
|
12
16
|
import type { CreateConductEntryRequest } from "./conduct";
|
|
17
|
+
import type { GetConductEntryResponse } from "./conduct";
|
|
18
|
+
import type { GetConductEntryRequest } from "./conduct";
|
|
13
19
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
14
20
|
import type { ListConductEntriesResponse } from "./conduct";
|
|
15
21
|
import type { ListConductEntriesRequest } from "./conduct";
|
|
@@ -20,29 +26,29 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
20
26
|
*/
|
|
21
27
|
export interface IConductServiceClient {
|
|
22
28
|
/**
|
|
23
|
-
* @
|
|
24
|
-
*
|
|
25
|
-
* @generated from protobuf rpc: ListConductEntries(services.jobs.ListConductEntriesRequest) returns (services.jobs.ListConductEntriesResponse);
|
|
29
|
+
* @generated from protobuf rpc: ListConductEntries
|
|
26
30
|
*/
|
|
27
31
|
listConductEntries(input: ListConductEntriesRequest, options?: RpcOptions): UnaryCall<ListConductEntriesRequest, ListConductEntriesResponse>;
|
|
28
32
|
/**
|
|
29
|
-
* @
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
* @generated from protobuf rpc: GetConductEntry
|
|
34
|
+
*/
|
|
35
|
+
getConductEntry(input: GetConductEntryRequest, options?: RpcOptions): UnaryCall<GetConductEntryRequest, GetConductEntryResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf rpc: CreateConductEntry
|
|
32
38
|
*/
|
|
33
39
|
createConductEntry(input: CreateConductEntryRequest, options?: RpcOptions): UnaryCall<CreateConductEntryRequest, CreateConductEntryResponse>;
|
|
34
40
|
/**
|
|
35
|
-
* @
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf rpc: UpdateConductEntry(services.jobs.UpdateConductEntryRequest) returns (services.jobs.UpdateConductEntryResponse);
|
|
41
|
+
* @generated from protobuf rpc: UpdateConductEntry
|
|
38
42
|
*/
|
|
39
43
|
updateConductEntry(input: UpdateConductEntryRequest, options?: RpcOptions): UnaryCall<UpdateConductEntryRequest, UpdateConductEntryResponse>;
|
|
40
44
|
/**
|
|
41
|
-
* @
|
|
42
|
-
*
|
|
43
|
-
* @generated from protobuf rpc: DeleteConductEntry(services.jobs.DeleteConductEntryRequest) returns (services.jobs.DeleteConductEntryResponse);
|
|
45
|
+
* @generated from protobuf rpc: DeleteConductEntry
|
|
44
46
|
*/
|
|
45
47
|
deleteConductEntry(input: DeleteConductEntryRequest, options?: RpcOptions): UnaryCall<DeleteConductEntryRequest, DeleteConductEntryResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf rpc: UploadFile
|
|
50
|
+
*/
|
|
51
|
+
uploadFile(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse>;
|
|
46
52
|
}
|
|
47
53
|
/**
|
|
48
54
|
* @generated from protobuf service services.jobs.ConductService
|
|
@@ -54,39 +60,45 @@ export class ConductServiceClient implements IConductServiceClient, ServiceInfo
|
|
|
54
60
|
constructor(private readonly _transport: RpcTransport) {
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
|
-
* @
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf rpc: ListConductEntries(services.jobs.ListConductEntriesRequest) returns (services.jobs.ListConductEntriesResponse);
|
|
63
|
+
* @generated from protobuf rpc: ListConductEntries
|
|
60
64
|
*/
|
|
61
65
|
listConductEntries(input: ListConductEntriesRequest, options?: RpcOptions): UnaryCall<ListConductEntriesRequest, ListConductEntriesResponse> {
|
|
62
66
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
63
67
|
return stackIntercept<ListConductEntriesRequest, ListConductEntriesResponse>("unary", this._transport, method, opt, input);
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
|
-
* @
|
|
67
|
-
*
|
|
68
|
-
* @generated from protobuf rpc: CreateConductEntry(services.jobs.CreateConductEntryRequest) returns (services.jobs.CreateConductEntryResponse);
|
|
70
|
+
* @generated from protobuf rpc: GetConductEntry
|
|
69
71
|
*/
|
|
70
|
-
|
|
72
|
+
getConductEntry(input: GetConductEntryRequest, options?: RpcOptions): UnaryCall<GetConductEntryRequest, GetConductEntryResponse> {
|
|
71
73
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
74
|
+
return stackIntercept<GetConductEntryRequest, GetConductEntryResponse>("unary", this._transport, method, opt, input);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf rpc: CreateConductEntry
|
|
78
|
+
*/
|
|
79
|
+
createConductEntry(input: CreateConductEntryRequest, options?: RpcOptions): UnaryCall<CreateConductEntryRequest, CreateConductEntryResponse> {
|
|
80
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
72
81
|
return stackIntercept<CreateConductEntryRequest, CreateConductEntryResponse>("unary", this._transport, method, opt, input);
|
|
73
82
|
}
|
|
74
83
|
/**
|
|
75
|
-
* @
|
|
76
|
-
*
|
|
77
|
-
* @generated from protobuf rpc: UpdateConductEntry(services.jobs.UpdateConductEntryRequest) returns (services.jobs.UpdateConductEntryResponse);
|
|
84
|
+
* @generated from protobuf rpc: UpdateConductEntry
|
|
78
85
|
*/
|
|
79
86
|
updateConductEntry(input: UpdateConductEntryRequest, options?: RpcOptions): UnaryCall<UpdateConductEntryRequest, UpdateConductEntryResponse> {
|
|
80
|
-
const method = this.methods[
|
|
87
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
81
88
|
return stackIntercept<UpdateConductEntryRequest, UpdateConductEntryResponse>("unary", this._transport, method, opt, input);
|
|
82
89
|
}
|
|
83
90
|
/**
|
|
84
|
-
* @
|
|
85
|
-
*
|
|
86
|
-
* @generated from protobuf rpc: DeleteConductEntry(services.jobs.DeleteConductEntryRequest) returns (services.jobs.DeleteConductEntryResponse);
|
|
91
|
+
* @generated from protobuf rpc: DeleteConductEntry
|
|
87
92
|
*/
|
|
88
93
|
deleteConductEntry(input: DeleteConductEntryRequest, options?: RpcOptions): UnaryCall<DeleteConductEntryRequest, DeleteConductEntryResponse> {
|
|
89
|
-
const method = this.methods[
|
|
94
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
90
95
|
return stackIntercept<DeleteConductEntryRequest, DeleteConductEntryResponse>("unary", this._transport, method, opt, input);
|
|
91
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @generated from protobuf rpc: UploadFile
|
|
99
|
+
*/
|
|
100
|
+
uploadFile(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse> {
|
|
101
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
102
|
+
return stackIntercept<UploadFileRequest, UploadFileResponse>("clientStreaming", this._transport, method, opt);
|
|
103
|
+
}
|
|
92
104
|
}
|
package/services/jobs/conduct.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "services/jobs/conduct.proto" (package "services.jobs", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
5
|
+
import { UploadFileResponse } from "../../resources/file/filestore";
|
|
6
|
+
import { UploadFileRequest } from "../../resources/file/filestore";
|
|
4
7
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
8
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
9
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -11,9 +14,9 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
11
14
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
15
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
16
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import { ConductEntry } from "../../resources/jobs/conduct";
|
|
17
|
+
import { ConductEntry } from "../../resources/jobs/conduct/conduct";
|
|
15
18
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
16
|
-
import { ConductType } from "../../resources/jobs/conduct";
|
|
19
|
+
import { ConductType } from "../../resources/jobs/conduct/conduct";
|
|
17
20
|
import { Sort } from "../../resources/common/database/database";
|
|
18
21
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
19
22
|
// Conduct Register
|
|
@@ -23,29 +26,33 @@ import { PaginationRequest } from "../../resources/common/database/database";
|
|
|
23
26
|
*/
|
|
24
27
|
export interface ListConductEntriesRequest {
|
|
25
28
|
/**
|
|
26
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
29
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
27
30
|
*/
|
|
28
31
|
pagination?: PaginationRequest;
|
|
29
32
|
/**
|
|
30
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
33
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
31
34
|
*/
|
|
32
35
|
sort?: Sort;
|
|
33
36
|
/**
|
|
34
37
|
* Search params
|
|
35
38
|
*
|
|
36
|
-
* @generated from protobuf field: repeated resources.jobs.ConductType types = 3
|
|
39
|
+
* @generated from protobuf field: repeated resources.jobs.conduct.ConductType types = 3
|
|
37
40
|
*/
|
|
38
41
|
types: ConductType[];
|
|
39
42
|
/**
|
|
40
|
-
* @generated from protobuf field: optional bool show_expired = 4
|
|
43
|
+
* @generated from protobuf field: optional bool show_expired = 4
|
|
41
44
|
*/
|
|
42
45
|
showExpired?: boolean;
|
|
43
46
|
/**
|
|
44
|
-
* @generated from protobuf field:
|
|
47
|
+
* @generated from protobuf field: optional bool show_drafts = 5
|
|
48
|
+
*/
|
|
49
|
+
showDrafts?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf field: repeated int32 user_ids = 6
|
|
45
52
|
*/
|
|
46
53
|
userIds: number[];
|
|
47
54
|
/**
|
|
48
|
-
* @generated from protobuf field: repeated
|
|
55
|
+
* @generated from protobuf field: repeated int64 ids = 7
|
|
49
56
|
*/
|
|
50
57
|
ids: number[];
|
|
51
58
|
}
|
|
@@ -54,20 +61,38 @@ export interface ListConductEntriesRequest {
|
|
|
54
61
|
*/
|
|
55
62
|
export interface ListConductEntriesResponse {
|
|
56
63
|
/**
|
|
57
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
64
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
58
65
|
*/
|
|
59
66
|
pagination?: PaginationResponse;
|
|
60
67
|
/**
|
|
61
|
-
* @generated from protobuf field: repeated resources.jobs.ConductEntry entries = 2
|
|
68
|
+
* @generated from protobuf field: repeated resources.jobs.conduct.ConductEntry entries = 2
|
|
62
69
|
*/
|
|
63
70
|
entries: ConductEntry[];
|
|
64
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf message services.jobs.GetConductEntryRequest
|
|
74
|
+
*/
|
|
75
|
+
export interface GetConductEntryRequest {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf field: int64 id = 1
|
|
78
|
+
*/
|
|
79
|
+
id: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf message services.jobs.GetConductEntryResponse
|
|
83
|
+
*/
|
|
84
|
+
export interface GetConductEntryResponse {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf field: resources.jobs.conduct.ConductEntry entry = 1
|
|
87
|
+
*/
|
|
88
|
+
entry?: ConductEntry;
|
|
89
|
+
}
|
|
65
90
|
/**
|
|
66
91
|
* @generated from protobuf message services.jobs.CreateConductEntryRequest
|
|
67
92
|
*/
|
|
68
93
|
export interface CreateConductEntryRequest {
|
|
69
94
|
/**
|
|
70
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
95
|
+
* @generated from protobuf field: resources.jobs.conduct.ConductEntry entry = 1
|
|
71
96
|
*/
|
|
72
97
|
entry?: ConductEntry;
|
|
73
98
|
}
|
|
@@ -76,7 +101,7 @@ export interface CreateConductEntryRequest {
|
|
|
76
101
|
*/
|
|
77
102
|
export interface CreateConductEntryResponse {
|
|
78
103
|
/**
|
|
79
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
104
|
+
* @generated from protobuf field: resources.jobs.conduct.ConductEntry entry = 1
|
|
80
105
|
*/
|
|
81
106
|
entry?: ConductEntry;
|
|
82
107
|
}
|
|
@@ -85,7 +110,7 @@ export interface CreateConductEntryResponse {
|
|
|
85
110
|
*/
|
|
86
111
|
export interface UpdateConductEntryRequest {
|
|
87
112
|
/**
|
|
88
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
113
|
+
* @generated from protobuf field: resources.jobs.conduct.ConductEntry entry = 1
|
|
89
114
|
*/
|
|
90
115
|
entry?: ConductEntry;
|
|
91
116
|
}
|
|
@@ -94,7 +119,7 @@ export interface UpdateConductEntryRequest {
|
|
|
94
119
|
*/
|
|
95
120
|
export interface UpdateConductEntryResponse {
|
|
96
121
|
/**
|
|
97
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
122
|
+
* @generated from protobuf field: resources.jobs.conduct.ConductEntry entry = 1
|
|
98
123
|
*/
|
|
99
124
|
entry?: ConductEntry;
|
|
100
125
|
}
|
|
@@ -103,7 +128,7 @@ export interface UpdateConductEntryResponse {
|
|
|
103
128
|
*/
|
|
104
129
|
export interface DeleteConductEntryRequest {
|
|
105
130
|
/**
|
|
106
|
-
* @generated from protobuf field:
|
|
131
|
+
* @generated from protobuf field: int64 id = 1
|
|
107
132
|
*/
|
|
108
133
|
id: number;
|
|
109
134
|
}
|
|
@@ -116,12 +141,13 @@ export interface DeleteConductEntryResponse {
|
|
|
116
141
|
class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesRequest> {
|
|
117
142
|
constructor() {
|
|
118
143
|
super("services.jobs.ListConductEntriesRequest", [
|
|
119
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
144
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
120
145
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
121
|
-
{ no: 3, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.jobs.ConductType", ConductType, "CONDUCT_TYPE_"] },
|
|
146
|
+
{ no: 3, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.jobs.conduct.ConductType", ConductType, "CONDUCT_TYPE_"] },
|
|
122
147
|
{ no: 4, name: "show_expired", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
123
|
-
{ no: 5, name: "
|
|
124
|
-
{ no: 6, name: "
|
|
148
|
+
{ no: 5, name: "show_drafts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
149
|
+
{ no: 6, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
|
|
150
|
+
{ no: 7, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
125
151
|
]);
|
|
126
152
|
}
|
|
127
153
|
create(value?: PartialMessage<ListConductEntriesRequest>): ListConductEntriesRequest {
|
|
@@ -144,7 +170,7 @@ class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesReque
|
|
|
144
170
|
case /* optional resources.common.database.Sort sort */ 2:
|
|
145
171
|
message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
|
146
172
|
break;
|
|
147
|
-
case /* repeated resources.jobs.ConductType types */ 3:
|
|
173
|
+
case /* repeated resources.jobs.conduct.ConductType types */ 3:
|
|
148
174
|
if (wireType === WireType.LengthDelimited)
|
|
149
175
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
150
176
|
message.types.push(reader.int32());
|
|
@@ -154,19 +180,22 @@ class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesReque
|
|
|
154
180
|
case /* optional bool show_expired */ 4:
|
|
155
181
|
message.showExpired = reader.bool();
|
|
156
182
|
break;
|
|
157
|
-
case /*
|
|
183
|
+
case /* optional bool show_drafts */ 5:
|
|
184
|
+
message.showDrafts = reader.bool();
|
|
185
|
+
break;
|
|
186
|
+
case /* repeated int32 user_ids */ 6:
|
|
158
187
|
if (wireType === WireType.LengthDelimited)
|
|
159
188
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
160
189
|
message.userIds.push(reader.int32());
|
|
161
190
|
else
|
|
162
191
|
message.userIds.push(reader.int32());
|
|
163
192
|
break;
|
|
164
|
-
case /* repeated
|
|
193
|
+
case /* repeated int64 ids */ 7:
|
|
165
194
|
if (wireType === WireType.LengthDelimited)
|
|
166
195
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
167
|
-
message.ids.push(reader.
|
|
196
|
+
message.ids.push(reader.int64().toNumber());
|
|
168
197
|
else
|
|
169
|
-
message.ids.push(reader.
|
|
198
|
+
message.ids.push(reader.int64().toNumber());
|
|
170
199
|
break;
|
|
171
200
|
default:
|
|
172
201
|
let u = options.readUnknownField;
|
|
@@ -186,7 +215,7 @@ class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesReque
|
|
|
186
215
|
/* optional resources.common.database.Sort sort = 2; */
|
|
187
216
|
if (message.sort)
|
|
188
217
|
Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
189
|
-
/* repeated resources.jobs.ConductType types = 3; */
|
|
218
|
+
/* repeated resources.jobs.conduct.ConductType types = 3; */
|
|
190
219
|
if (message.types.length) {
|
|
191
220
|
writer.tag(3, WireType.LengthDelimited).fork();
|
|
192
221
|
for (let i = 0; i < message.types.length; i++)
|
|
@@ -196,18 +225,21 @@ class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesReque
|
|
|
196
225
|
/* optional bool show_expired = 4; */
|
|
197
226
|
if (message.showExpired !== undefined)
|
|
198
227
|
writer.tag(4, WireType.Varint).bool(message.showExpired);
|
|
199
|
-
/*
|
|
228
|
+
/* optional bool show_drafts = 5; */
|
|
229
|
+
if (message.showDrafts !== undefined)
|
|
230
|
+
writer.tag(5, WireType.Varint).bool(message.showDrafts);
|
|
231
|
+
/* repeated int32 user_ids = 6; */
|
|
200
232
|
if (message.userIds.length) {
|
|
201
|
-
writer.tag(
|
|
233
|
+
writer.tag(6, WireType.LengthDelimited).fork();
|
|
202
234
|
for (let i = 0; i < message.userIds.length; i++)
|
|
203
235
|
writer.int32(message.userIds[i]);
|
|
204
236
|
writer.join();
|
|
205
237
|
}
|
|
206
|
-
/* repeated
|
|
238
|
+
/* repeated int64 ids = 7; */
|
|
207
239
|
if (message.ids.length) {
|
|
208
|
-
writer.tag(
|
|
240
|
+
writer.tag(7, WireType.LengthDelimited).fork();
|
|
209
241
|
for (let i = 0; i < message.ids.length; i++)
|
|
210
|
-
writer.
|
|
242
|
+
writer.int64(message.ids[i]);
|
|
211
243
|
writer.join();
|
|
212
244
|
}
|
|
213
245
|
let u = options.writeUnknownFields;
|
|
@@ -224,8 +256,8 @@ export const ListConductEntriesRequest = new ListConductEntriesRequest$Type();
|
|
|
224
256
|
class ListConductEntriesResponse$Type extends MessageType<ListConductEntriesResponse> {
|
|
225
257
|
constructor() {
|
|
226
258
|
super("services.jobs.ListConductEntriesResponse", [
|
|
227
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
228
|
-
{ no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ConductEntry }
|
|
259
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
260
|
+
{ no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ConductEntry, options: { "codegen.itemslen.enabled": true } }
|
|
229
261
|
]);
|
|
230
262
|
}
|
|
231
263
|
create(value?: PartialMessage<ListConductEntriesResponse>): ListConductEntriesResponse {
|
|
@@ -243,7 +275,7 @@ class ListConductEntriesResponse$Type extends MessageType<ListConductEntriesResp
|
|
|
243
275
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
244
276
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
245
277
|
break;
|
|
246
|
-
case /* repeated resources.jobs.ConductEntry entries */ 2:
|
|
278
|
+
case /* repeated resources.jobs.conduct.ConductEntry entries */ 2:
|
|
247
279
|
message.entries.push(ConductEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
248
280
|
break;
|
|
249
281
|
default:
|
|
@@ -261,7 +293,7 @@ class ListConductEntriesResponse$Type extends MessageType<ListConductEntriesResp
|
|
|
261
293
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
262
294
|
if (message.pagination)
|
|
263
295
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
264
|
-
/* repeated resources.jobs.ConductEntry entries = 2; */
|
|
296
|
+
/* repeated resources.jobs.conduct.ConductEntry entries = 2; */
|
|
265
297
|
for (let i = 0; i < message.entries.length; i++)
|
|
266
298
|
ConductEntry.internalBinaryWrite(message.entries[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
267
299
|
let u = options.writeUnknownFields;
|
|
@@ -275,10 +307,103 @@ class ListConductEntriesResponse$Type extends MessageType<ListConductEntriesResp
|
|
|
275
307
|
*/
|
|
276
308
|
export const ListConductEntriesResponse = new ListConductEntriesResponse$Type();
|
|
277
309
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
310
|
+
class GetConductEntryRequest$Type extends MessageType<GetConductEntryRequest> {
|
|
311
|
+
constructor() {
|
|
312
|
+
super("services.jobs.GetConductEntryRequest", [
|
|
313
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { required: true } } }
|
|
314
|
+
]);
|
|
315
|
+
}
|
|
316
|
+
create(value?: PartialMessage<GetConductEntryRequest>): GetConductEntryRequest {
|
|
317
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
318
|
+
message.id = 0;
|
|
319
|
+
if (value !== undefined)
|
|
320
|
+
reflectionMergePartial<GetConductEntryRequest>(this, message, value);
|
|
321
|
+
return message;
|
|
322
|
+
}
|
|
323
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConductEntryRequest): GetConductEntryRequest {
|
|
324
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
325
|
+
while (reader.pos < end) {
|
|
326
|
+
let [fieldNo, wireType] = reader.tag();
|
|
327
|
+
switch (fieldNo) {
|
|
328
|
+
case /* int64 id */ 1:
|
|
329
|
+
message.id = reader.int64().toNumber();
|
|
330
|
+
break;
|
|
331
|
+
default:
|
|
332
|
+
let u = options.readUnknownField;
|
|
333
|
+
if (u === "throw")
|
|
334
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
335
|
+
let d = reader.skip(wireType);
|
|
336
|
+
if (u !== false)
|
|
337
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return message;
|
|
341
|
+
}
|
|
342
|
+
internalBinaryWrite(message: GetConductEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
343
|
+
/* int64 id = 1; */
|
|
344
|
+
if (message.id !== 0)
|
|
345
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
346
|
+
let u = options.writeUnknownFields;
|
|
347
|
+
if (u !== false)
|
|
348
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
349
|
+
return writer;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @generated MessageType for protobuf message services.jobs.GetConductEntryRequest
|
|
354
|
+
*/
|
|
355
|
+
export const GetConductEntryRequest = new GetConductEntryRequest$Type();
|
|
356
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
357
|
+
class GetConductEntryResponse$Type extends MessageType<GetConductEntryResponse> {
|
|
358
|
+
constructor() {
|
|
359
|
+
super("services.jobs.GetConductEntryResponse", [
|
|
360
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
361
|
+
]);
|
|
362
|
+
}
|
|
363
|
+
create(value?: PartialMessage<GetConductEntryResponse>): GetConductEntryResponse {
|
|
364
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
365
|
+
if (value !== undefined)
|
|
366
|
+
reflectionMergePartial<GetConductEntryResponse>(this, message, value);
|
|
367
|
+
return message;
|
|
368
|
+
}
|
|
369
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConductEntryResponse): GetConductEntryResponse {
|
|
370
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
371
|
+
while (reader.pos < end) {
|
|
372
|
+
let [fieldNo, wireType] = reader.tag();
|
|
373
|
+
switch (fieldNo) {
|
|
374
|
+
case /* resources.jobs.conduct.ConductEntry entry */ 1:
|
|
375
|
+
message.entry = ConductEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
|
|
376
|
+
break;
|
|
377
|
+
default:
|
|
378
|
+
let u = options.readUnknownField;
|
|
379
|
+
if (u === "throw")
|
|
380
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
381
|
+
let d = reader.skip(wireType);
|
|
382
|
+
if (u !== false)
|
|
383
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
}
|
|
388
|
+
internalBinaryWrite(message: GetConductEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
389
|
+
/* resources.jobs.conduct.ConductEntry entry = 1; */
|
|
390
|
+
if (message.entry)
|
|
391
|
+
ConductEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
392
|
+
let u = options.writeUnknownFields;
|
|
393
|
+
if (u !== false)
|
|
394
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
395
|
+
return writer;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* @generated MessageType for protobuf message services.jobs.GetConductEntryResponse
|
|
400
|
+
*/
|
|
401
|
+
export const GetConductEntryResponse = new GetConductEntryResponse$Type();
|
|
402
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
278
403
|
class CreateConductEntryRequest$Type extends MessageType<CreateConductEntryRequest> {
|
|
279
404
|
constructor() {
|
|
280
405
|
super("services.jobs.CreateConductEntryRequest", [
|
|
281
|
-
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "validate.
|
|
406
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
282
407
|
]);
|
|
283
408
|
}
|
|
284
409
|
create(value?: PartialMessage<CreateConductEntryRequest>): CreateConductEntryRequest {
|
|
@@ -292,7 +417,7 @@ class CreateConductEntryRequest$Type extends MessageType<CreateConductEntryReque
|
|
|
292
417
|
while (reader.pos < end) {
|
|
293
418
|
let [fieldNo, wireType] = reader.tag();
|
|
294
419
|
switch (fieldNo) {
|
|
295
|
-
case /* resources.jobs.ConductEntry entry */ 1:
|
|
420
|
+
case /* resources.jobs.conduct.ConductEntry entry */ 1:
|
|
296
421
|
message.entry = ConductEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
|
|
297
422
|
break;
|
|
298
423
|
default:
|
|
@@ -307,7 +432,7 @@ class CreateConductEntryRequest$Type extends MessageType<CreateConductEntryReque
|
|
|
307
432
|
return message;
|
|
308
433
|
}
|
|
309
434
|
internalBinaryWrite(message: CreateConductEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
310
|
-
/* resources.jobs.ConductEntry entry = 1; */
|
|
435
|
+
/* resources.jobs.conduct.ConductEntry entry = 1; */
|
|
311
436
|
if (message.entry)
|
|
312
437
|
ConductEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
313
438
|
let u = options.writeUnknownFields;
|
|
@@ -338,7 +463,7 @@ class CreateConductEntryResponse$Type extends MessageType<CreateConductEntryResp
|
|
|
338
463
|
while (reader.pos < end) {
|
|
339
464
|
let [fieldNo, wireType] = reader.tag();
|
|
340
465
|
switch (fieldNo) {
|
|
341
|
-
case /* resources.jobs.ConductEntry entry */ 1:
|
|
466
|
+
case /* resources.jobs.conduct.ConductEntry entry */ 1:
|
|
342
467
|
message.entry = ConductEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
|
|
343
468
|
break;
|
|
344
469
|
default:
|
|
@@ -353,7 +478,7 @@ class CreateConductEntryResponse$Type extends MessageType<CreateConductEntryResp
|
|
|
353
478
|
return message;
|
|
354
479
|
}
|
|
355
480
|
internalBinaryWrite(message: CreateConductEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
356
|
-
/* resources.jobs.ConductEntry entry = 1; */
|
|
481
|
+
/* resources.jobs.conduct.ConductEntry entry = 1; */
|
|
357
482
|
if (message.entry)
|
|
358
483
|
ConductEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
359
484
|
let u = options.writeUnknownFields;
|
|
@@ -370,7 +495,7 @@ export const CreateConductEntryResponse = new CreateConductEntryResponse$Type();
|
|
|
370
495
|
class UpdateConductEntryRequest$Type extends MessageType<UpdateConductEntryRequest> {
|
|
371
496
|
constructor() {
|
|
372
497
|
super("services.jobs.UpdateConductEntryRequest", [
|
|
373
|
-
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "validate.
|
|
498
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
374
499
|
]);
|
|
375
500
|
}
|
|
376
501
|
create(value?: PartialMessage<UpdateConductEntryRequest>): UpdateConductEntryRequest {
|
|
@@ -384,7 +509,7 @@ class UpdateConductEntryRequest$Type extends MessageType<UpdateConductEntryReque
|
|
|
384
509
|
while (reader.pos < end) {
|
|
385
510
|
let [fieldNo, wireType] = reader.tag();
|
|
386
511
|
switch (fieldNo) {
|
|
387
|
-
case /* resources.jobs.ConductEntry entry */ 1:
|
|
512
|
+
case /* resources.jobs.conduct.ConductEntry entry */ 1:
|
|
388
513
|
message.entry = ConductEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
|
|
389
514
|
break;
|
|
390
515
|
default:
|
|
@@ -399,7 +524,7 @@ class UpdateConductEntryRequest$Type extends MessageType<UpdateConductEntryReque
|
|
|
399
524
|
return message;
|
|
400
525
|
}
|
|
401
526
|
internalBinaryWrite(message: UpdateConductEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
402
|
-
/* resources.jobs.ConductEntry entry = 1; */
|
|
527
|
+
/* resources.jobs.conduct.ConductEntry entry = 1; */
|
|
403
528
|
if (message.entry)
|
|
404
529
|
ConductEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
405
530
|
let u = options.writeUnknownFields;
|
|
@@ -416,7 +541,7 @@ export const UpdateConductEntryRequest = new UpdateConductEntryRequest$Type();
|
|
|
416
541
|
class UpdateConductEntryResponse$Type extends MessageType<UpdateConductEntryResponse> {
|
|
417
542
|
constructor() {
|
|
418
543
|
super("services.jobs.UpdateConductEntryResponse", [
|
|
419
|
-
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "validate.
|
|
544
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
420
545
|
]);
|
|
421
546
|
}
|
|
422
547
|
create(value?: PartialMessage<UpdateConductEntryResponse>): UpdateConductEntryResponse {
|
|
@@ -430,7 +555,7 @@ class UpdateConductEntryResponse$Type extends MessageType<UpdateConductEntryResp
|
|
|
430
555
|
while (reader.pos < end) {
|
|
431
556
|
let [fieldNo, wireType] = reader.tag();
|
|
432
557
|
switch (fieldNo) {
|
|
433
|
-
case /* resources.jobs.ConductEntry entry */ 1:
|
|
558
|
+
case /* resources.jobs.conduct.ConductEntry entry */ 1:
|
|
434
559
|
message.entry = ConductEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
|
|
435
560
|
break;
|
|
436
561
|
default:
|
|
@@ -445,7 +570,7 @@ class UpdateConductEntryResponse$Type extends MessageType<UpdateConductEntryResp
|
|
|
445
570
|
return message;
|
|
446
571
|
}
|
|
447
572
|
internalBinaryWrite(message: UpdateConductEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
448
|
-
/* resources.jobs.ConductEntry entry = 1; */
|
|
573
|
+
/* resources.jobs.conduct.ConductEntry entry = 1; */
|
|
449
574
|
if (message.entry)
|
|
450
575
|
ConductEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
451
576
|
let u = options.writeUnknownFields;
|
|
@@ -462,7 +587,7 @@ export const UpdateConductEntryResponse = new UpdateConductEntryResponse$Type();
|
|
|
462
587
|
class DeleteConductEntryRequest$Type extends MessageType<DeleteConductEntryRequest> {
|
|
463
588
|
constructor() {
|
|
464
589
|
super("services.jobs.DeleteConductEntryRequest", [
|
|
465
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
590
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
466
591
|
]);
|
|
467
592
|
}
|
|
468
593
|
create(value?: PartialMessage<DeleteConductEntryRequest>): DeleteConductEntryRequest {
|
|
@@ -477,8 +602,8 @@ class DeleteConductEntryRequest$Type extends MessageType<DeleteConductEntryReque
|
|
|
477
602
|
while (reader.pos < end) {
|
|
478
603
|
let [fieldNo, wireType] = reader.tag();
|
|
479
604
|
switch (fieldNo) {
|
|
480
|
-
case /*
|
|
481
|
-
message.id = reader.
|
|
605
|
+
case /* int64 id */ 1:
|
|
606
|
+
message.id = reader.int64().toNumber();
|
|
482
607
|
break;
|
|
483
608
|
default:
|
|
484
609
|
let u = options.readUnknownField;
|
|
@@ -492,9 +617,9 @@ class DeleteConductEntryRequest$Type extends MessageType<DeleteConductEntryReque
|
|
|
492
617
|
return message;
|
|
493
618
|
}
|
|
494
619
|
internalBinaryWrite(message: DeleteConductEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
495
|
-
/*
|
|
620
|
+
/* int64 id = 1; */
|
|
496
621
|
if (message.id !== 0)
|
|
497
|
-
writer.tag(1, WireType.Varint).
|
|
622
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
498
623
|
let u = options.writeUnknownFields;
|
|
499
624
|
if (u !== false)
|
|
500
625
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -547,8 +672,10 @@ export const DeleteConductEntryResponse = new DeleteConductEntryResponse$Type();
|
|
|
547
672
|
* @generated ServiceType for protobuf service services.jobs.ConductService
|
|
548
673
|
*/
|
|
549
674
|
export const ConductService = new ServiceType("services.jobs.ConductService", [
|
|
550
|
-
{ name: "ListConductEntries", options: {}, I: ListConductEntriesRequest, O: ListConductEntriesResponse },
|
|
551
|
-
{ name: "
|
|
552
|
-
{ name: "
|
|
553
|
-
{ name: "
|
|
554
|
-
|
|
675
|
+
{ name: "ListConductEntries", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "All"] }] } }, I: ListConductEntriesRequest, O: ListConductEntriesResponse },
|
|
676
|
+
{ name: "GetConductEntry", options: { "codegen.perms.perms": { enabled: true, name: "ListConductEntries" } }, I: GetConductEntryRequest, O: GetConductEntryResponse },
|
|
677
|
+
{ name: "CreateConductEntry", options: { "codegen.perms.perms": { enabled: true } }, I: CreateConductEntryRequest, O: CreateConductEntryResponse },
|
|
678
|
+
{ name: "UpdateConductEntry", options: { "codegen.perms.perms": { enabled: true } }, I: UpdateConductEntryRequest, O: UpdateConductEntryResponse },
|
|
679
|
+
{ name: "DeleteConductEntry", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteConductEntryRequest, O: DeleteConductEntryResponse },
|
|
680
|
+
{ name: "UploadFile", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, names: ["CreateConductEntry", "UpdateConductEntry"] } }, I: UploadFileRequest, O: UploadFileResponse }
|
|
681
|
+
], { "codegen.perms.perms_svc": { order: 67, icon: "i-mdi-list-status" } });
|