@fivenet-app/gen 2025.5.2 → 2025.9.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/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -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 +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- 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/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- 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/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- 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 +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- 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 +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- 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 +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- 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/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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "services/filestore/filestore.proto" (package "services.filestore", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
|
+
import { FilestoreService } from "./filestore";
|
|
8
|
+
import type { DeleteFileByPathResponse } from "./filestore";
|
|
9
|
+
import type { DeleteFileByPathRequest } from "./filestore";
|
|
10
|
+
import type { DeleteFileResponse } from "../../resources/file/filestore";
|
|
11
|
+
import type { DeleteFileRequest } from "../../resources/file/filestore";
|
|
12
|
+
import type { ListFilesResponse } from "./filestore";
|
|
13
|
+
import type { ListFilesRequest } from "./filestore";
|
|
14
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
15
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
16
|
+
import type { UploadFileResponse } from "../../resources/file/filestore";
|
|
17
|
+
import type { UploadFileRequest } from "../../resources/file/filestore";
|
|
18
|
+
import type { ClientStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
19
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf service services.filestore.FilestoreService
|
|
22
|
+
*/
|
|
23
|
+
export interface IFilestoreServiceClient {
|
|
24
|
+
/**
|
|
25
|
+
* buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
|
|
26
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
27
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf rpc: Upload
|
|
30
|
+
*/
|
|
31
|
+
upload(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf rpc: ListFiles
|
|
34
|
+
*/
|
|
35
|
+
listFiles(input: ListFilesRequest, options?: RpcOptions): UnaryCall<ListFilesRequest, ListFilesResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf rpc: DeleteFile
|
|
38
|
+
*/
|
|
39
|
+
deleteFile(input: DeleteFileRequest, options?: RpcOptions): UnaryCall<DeleteFileRequest, DeleteFileResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf rpc: DeleteFileByPath
|
|
42
|
+
*/
|
|
43
|
+
deleteFileByPath(input: DeleteFileByPathRequest, options?: RpcOptions): UnaryCall<DeleteFileByPathRequest, DeleteFileByPathResponse>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf service services.filestore.FilestoreService
|
|
47
|
+
*/
|
|
48
|
+
export class FilestoreServiceClient implements IFilestoreServiceClient, ServiceInfo {
|
|
49
|
+
typeName = FilestoreService.typeName;
|
|
50
|
+
methods = FilestoreService.methods;
|
|
51
|
+
options = FilestoreService.options;
|
|
52
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
|
|
56
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
57
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf rpc: Upload
|
|
60
|
+
*/
|
|
61
|
+
upload(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse> {
|
|
62
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
63
|
+
return stackIntercept<UploadFileRequest, UploadFileResponse>("clientStreaming", this._transport, method, opt);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf rpc: ListFiles
|
|
67
|
+
*/
|
|
68
|
+
listFiles(input: ListFilesRequest, options?: RpcOptions): UnaryCall<ListFilesRequest, ListFilesResponse> {
|
|
69
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
70
|
+
return stackIntercept<ListFilesRequest, ListFilesResponse>("unary", this._transport, method, opt, input);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf rpc: DeleteFile
|
|
74
|
+
*/
|
|
75
|
+
deleteFile(input: DeleteFileRequest, options?: RpcOptions): UnaryCall<DeleteFileRequest, DeleteFileResponse> {
|
|
76
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
77
|
+
return stackIntercept<DeleteFileRequest, DeleteFileResponse>("unary", this._transport, method, opt, input);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf rpc: DeleteFileByPath
|
|
81
|
+
*/
|
|
82
|
+
deleteFileByPath(input: DeleteFileByPathRequest, options?: RpcOptions): UnaryCall<DeleteFileByPathRequest, DeleteFileByPathResponse> {
|
|
83
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
84
|
+
return stackIntercept<DeleteFileByPathRequest, DeleteFileByPathResponse>("unary", this._transport, method, opt, input);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "services/filestore/filestore.proto" (package "services.filestore", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { DeleteFileResponse } from "../../resources/file/filestore";
|
|
6
|
+
import { DeleteFileRequest } from "../../resources/file/filestore";
|
|
7
|
+
import { UploadFileResponse } from "../../resources/file/filestore";
|
|
8
|
+
import { UploadFileRequest } from "../../resources/file/filestore";
|
|
9
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
10
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
12
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
13
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
14
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
15
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
16
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
17
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
18
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
19
|
+
import { File } from "../../resources/file/file";
|
|
20
|
+
import { PaginationResponse } from "../../resources/common/database/database";
|
|
21
|
+
import { PaginationRequest } from "../../resources/common/database/database";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf message services.filestore.ListFilesRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface ListFilesRequest {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
28
|
+
*/
|
|
29
|
+
pagination?: PaginationRequest;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: optional string path = 2
|
|
32
|
+
*/
|
|
33
|
+
path?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf message services.filestore.ListFilesResponse
|
|
37
|
+
*/
|
|
38
|
+
export interface ListFilesResponse {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
41
|
+
*/
|
|
42
|
+
pagination?: PaginationResponse;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: repeated resources.file.File files = 2
|
|
45
|
+
*/
|
|
46
|
+
files: File[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf message services.filestore.DeleteFileByPathRequest
|
|
50
|
+
*/
|
|
51
|
+
export interface DeleteFileByPathRequest {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: string path = 1
|
|
54
|
+
*/
|
|
55
|
+
path: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf message services.filestore.DeleteFileByPathResponse
|
|
59
|
+
*/
|
|
60
|
+
export interface DeleteFileByPathResponse {
|
|
61
|
+
}
|
|
62
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
63
|
+
class ListFilesRequest$Type extends MessageType<ListFilesRequest> {
|
|
64
|
+
constructor() {
|
|
65
|
+
super("services.filestore.ListFilesRequest", [
|
|
66
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
67
|
+
{ no: 2, name: "path", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
|
|
68
|
+
]);
|
|
69
|
+
}
|
|
70
|
+
create(value?: PartialMessage<ListFilesRequest>): ListFilesRequest {
|
|
71
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
72
|
+
if (value !== undefined)
|
|
73
|
+
reflectionMergePartial<ListFilesRequest>(this, message, value);
|
|
74
|
+
return message;
|
|
75
|
+
}
|
|
76
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFilesRequest): ListFilesRequest {
|
|
77
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
78
|
+
while (reader.pos < end) {
|
|
79
|
+
let [fieldNo, wireType] = reader.tag();
|
|
80
|
+
switch (fieldNo) {
|
|
81
|
+
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
82
|
+
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
83
|
+
break;
|
|
84
|
+
case /* optional string path */ 2:
|
|
85
|
+
message.path = reader.string();
|
|
86
|
+
break;
|
|
87
|
+
default:
|
|
88
|
+
let u = options.readUnknownField;
|
|
89
|
+
if (u === "throw")
|
|
90
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
91
|
+
let d = reader.skip(wireType);
|
|
92
|
+
if (u !== false)
|
|
93
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
}
|
|
98
|
+
internalBinaryWrite(message: ListFilesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
99
|
+
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
100
|
+
if (message.pagination)
|
|
101
|
+
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
102
|
+
/* optional string path = 2; */
|
|
103
|
+
if (message.path !== undefined)
|
|
104
|
+
writer.tag(2, WireType.LengthDelimited).string(message.path);
|
|
105
|
+
let u = options.writeUnknownFields;
|
|
106
|
+
if (u !== false)
|
|
107
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
108
|
+
return writer;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @generated MessageType for protobuf message services.filestore.ListFilesRequest
|
|
113
|
+
*/
|
|
114
|
+
export const ListFilesRequest = new ListFilesRequest$Type();
|
|
115
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
116
|
+
class ListFilesResponse$Type extends MessageType<ListFilesResponse> {
|
|
117
|
+
constructor() {
|
|
118
|
+
super("services.filestore.ListFilesResponse", [
|
|
119
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
120
|
+
{ no: 2, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "codegen.itemslen.enabled": true } }
|
|
121
|
+
]);
|
|
122
|
+
}
|
|
123
|
+
create(value?: PartialMessage<ListFilesResponse>): ListFilesResponse {
|
|
124
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
125
|
+
message.files = [];
|
|
126
|
+
if (value !== undefined)
|
|
127
|
+
reflectionMergePartial<ListFilesResponse>(this, message, value);
|
|
128
|
+
return message;
|
|
129
|
+
}
|
|
130
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFilesResponse): ListFilesResponse {
|
|
131
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
132
|
+
while (reader.pos < end) {
|
|
133
|
+
let [fieldNo, wireType] = reader.tag();
|
|
134
|
+
switch (fieldNo) {
|
|
135
|
+
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
136
|
+
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
137
|
+
break;
|
|
138
|
+
case /* repeated resources.file.File files */ 2:
|
|
139
|
+
message.files.push(File.internalBinaryRead(reader, reader.uint32(), options));
|
|
140
|
+
break;
|
|
141
|
+
default:
|
|
142
|
+
let u = options.readUnknownField;
|
|
143
|
+
if (u === "throw")
|
|
144
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
145
|
+
let d = reader.skip(wireType);
|
|
146
|
+
if (u !== false)
|
|
147
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return message;
|
|
151
|
+
}
|
|
152
|
+
internalBinaryWrite(message: ListFilesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
153
|
+
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
154
|
+
if (message.pagination)
|
|
155
|
+
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
156
|
+
/* repeated resources.file.File files = 2; */
|
|
157
|
+
for (let i = 0; i < message.files.length; i++)
|
|
158
|
+
File.internalBinaryWrite(message.files[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
159
|
+
let u = options.writeUnknownFields;
|
|
160
|
+
if (u !== false)
|
|
161
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
162
|
+
return writer;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @generated MessageType for protobuf message services.filestore.ListFilesResponse
|
|
167
|
+
*/
|
|
168
|
+
export const ListFilesResponse = new ListFilesResponse$Type();
|
|
169
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
170
|
+
class DeleteFileByPathRequest$Type extends MessageType<DeleteFileByPathRequest> {
|
|
171
|
+
constructor() {
|
|
172
|
+
super("services.filestore.DeleteFileByPathRequest", [
|
|
173
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
|
|
174
|
+
]);
|
|
175
|
+
}
|
|
176
|
+
create(value?: PartialMessage<DeleteFileByPathRequest>): DeleteFileByPathRequest {
|
|
177
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
178
|
+
message.path = "";
|
|
179
|
+
if (value !== undefined)
|
|
180
|
+
reflectionMergePartial<DeleteFileByPathRequest>(this, message, value);
|
|
181
|
+
return message;
|
|
182
|
+
}
|
|
183
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFileByPathRequest): DeleteFileByPathRequest {
|
|
184
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
185
|
+
while (reader.pos < end) {
|
|
186
|
+
let [fieldNo, wireType] = reader.tag();
|
|
187
|
+
switch (fieldNo) {
|
|
188
|
+
case /* string path */ 1:
|
|
189
|
+
message.path = reader.string();
|
|
190
|
+
break;
|
|
191
|
+
default:
|
|
192
|
+
let u = options.readUnknownField;
|
|
193
|
+
if (u === "throw")
|
|
194
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
195
|
+
let d = reader.skip(wireType);
|
|
196
|
+
if (u !== false)
|
|
197
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return message;
|
|
201
|
+
}
|
|
202
|
+
internalBinaryWrite(message: DeleteFileByPathRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
203
|
+
/* string path = 1; */
|
|
204
|
+
if (message.path !== "")
|
|
205
|
+
writer.tag(1, WireType.LengthDelimited).string(message.path);
|
|
206
|
+
let u = options.writeUnknownFields;
|
|
207
|
+
if (u !== false)
|
|
208
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
209
|
+
return writer;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @generated MessageType for protobuf message services.filestore.DeleteFileByPathRequest
|
|
214
|
+
*/
|
|
215
|
+
export const DeleteFileByPathRequest = new DeleteFileByPathRequest$Type();
|
|
216
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
217
|
+
class DeleteFileByPathResponse$Type extends MessageType<DeleteFileByPathResponse> {
|
|
218
|
+
constructor() {
|
|
219
|
+
super("services.filestore.DeleteFileByPathResponse", []);
|
|
220
|
+
}
|
|
221
|
+
create(value?: PartialMessage<DeleteFileByPathResponse>): DeleteFileByPathResponse {
|
|
222
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
223
|
+
if (value !== undefined)
|
|
224
|
+
reflectionMergePartial<DeleteFileByPathResponse>(this, message, value);
|
|
225
|
+
return message;
|
|
226
|
+
}
|
|
227
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFileByPathResponse): DeleteFileByPathResponse {
|
|
228
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
229
|
+
while (reader.pos < end) {
|
|
230
|
+
let [fieldNo, wireType] = reader.tag();
|
|
231
|
+
switch (fieldNo) {
|
|
232
|
+
default:
|
|
233
|
+
let u = options.readUnknownField;
|
|
234
|
+
if (u === "throw")
|
|
235
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
236
|
+
let d = reader.skip(wireType);
|
|
237
|
+
if (u !== false)
|
|
238
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return message;
|
|
242
|
+
}
|
|
243
|
+
internalBinaryWrite(message: DeleteFileByPathResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
244
|
+
let u = options.writeUnknownFields;
|
|
245
|
+
if (u !== false)
|
|
246
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
247
|
+
return writer;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @generated MessageType for protobuf message services.filestore.DeleteFileByPathResponse
|
|
252
|
+
*/
|
|
253
|
+
export const DeleteFileByPathResponse = new DeleteFileByPathResponse$Type();
|
|
254
|
+
/**
|
|
255
|
+
* @generated ServiceType for protobuf service services.filestore.FilestoreService
|
|
256
|
+
*/
|
|
257
|
+
export const FilestoreService = new ServiceType("services.filestore.FilestoreService", [
|
|
258
|
+
{ name: "Upload", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: UploadFileRequest, O: UploadFileResponse },
|
|
259
|
+
{ name: "ListFiles", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListFilesRequest, O: ListFilesResponse },
|
|
260
|
+
{ name: "DeleteFile", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: DeleteFileRequest, O: DeleteFileResponse },
|
|
261
|
+
{ name: "DeleteFileByPath", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: DeleteFileByPathRequest, O: DeleteFileByPathResponse }
|
|
262
|
+
]);
|
|
@@ -1,5 +1,6 @@
|
|
|
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";
|
|
@@ -20,27 +21,19 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
20
21
|
*/
|
|
21
22
|
export interface IConductServiceClient {
|
|
22
23
|
/**
|
|
23
|
-
* @
|
|
24
|
-
*
|
|
25
|
-
* @generated from protobuf rpc: ListConductEntries(services.jobs.ListConductEntriesRequest) returns (services.jobs.ListConductEntriesResponse);
|
|
24
|
+
* @generated from protobuf rpc: ListConductEntries
|
|
26
25
|
*/
|
|
27
26
|
listConductEntries(input: ListConductEntriesRequest, options?: RpcOptions): UnaryCall<ListConductEntriesRequest, ListConductEntriesResponse>;
|
|
28
27
|
/**
|
|
29
|
-
* @
|
|
30
|
-
*
|
|
31
|
-
* @generated from protobuf rpc: CreateConductEntry(services.jobs.CreateConductEntryRequest) returns (services.jobs.CreateConductEntryResponse);
|
|
28
|
+
* @generated from protobuf rpc: CreateConductEntry
|
|
32
29
|
*/
|
|
33
30
|
createConductEntry(input: CreateConductEntryRequest, options?: RpcOptions): UnaryCall<CreateConductEntryRequest, CreateConductEntryResponse>;
|
|
34
31
|
/**
|
|
35
|
-
* @
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf rpc: UpdateConductEntry(services.jobs.UpdateConductEntryRequest) returns (services.jobs.UpdateConductEntryResponse);
|
|
32
|
+
* @generated from protobuf rpc: UpdateConductEntry
|
|
38
33
|
*/
|
|
39
34
|
updateConductEntry(input: UpdateConductEntryRequest, options?: RpcOptions): UnaryCall<UpdateConductEntryRequest, UpdateConductEntryResponse>;
|
|
40
35
|
/**
|
|
41
|
-
* @
|
|
42
|
-
*
|
|
43
|
-
* @generated from protobuf rpc: DeleteConductEntry(services.jobs.DeleteConductEntryRequest) returns (services.jobs.DeleteConductEntryResponse);
|
|
36
|
+
* @generated from protobuf rpc: DeleteConductEntry
|
|
44
37
|
*/
|
|
45
38
|
deleteConductEntry(input: DeleteConductEntryRequest, options?: RpcOptions): UnaryCall<DeleteConductEntryRequest, DeleteConductEntryResponse>;
|
|
46
39
|
}
|
|
@@ -54,36 +47,28 @@ export class ConductServiceClient implements IConductServiceClient, ServiceInfo
|
|
|
54
47
|
constructor(private readonly _transport: RpcTransport) {
|
|
55
48
|
}
|
|
56
49
|
/**
|
|
57
|
-
* @
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf rpc: ListConductEntries(services.jobs.ListConductEntriesRequest) returns (services.jobs.ListConductEntriesResponse);
|
|
50
|
+
* @generated from protobuf rpc: ListConductEntries
|
|
60
51
|
*/
|
|
61
52
|
listConductEntries(input: ListConductEntriesRequest, options?: RpcOptions): UnaryCall<ListConductEntriesRequest, ListConductEntriesResponse> {
|
|
62
53
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
63
54
|
return stackIntercept<ListConductEntriesRequest, ListConductEntriesResponse>("unary", this._transport, method, opt, input);
|
|
64
55
|
}
|
|
65
56
|
/**
|
|
66
|
-
* @
|
|
67
|
-
*
|
|
68
|
-
* @generated from protobuf rpc: CreateConductEntry(services.jobs.CreateConductEntryRequest) returns (services.jobs.CreateConductEntryResponse);
|
|
57
|
+
* @generated from protobuf rpc: CreateConductEntry
|
|
69
58
|
*/
|
|
70
59
|
createConductEntry(input: CreateConductEntryRequest, options?: RpcOptions): UnaryCall<CreateConductEntryRequest, CreateConductEntryResponse> {
|
|
71
60
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
72
61
|
return stackIntercept<CreateConductEntryRequest, CreateConductEntryResponse>("unary", this._transport, method, opt, input);
|
|
73
62
|
}
|
|
74
63
|
/**
|
|
75
|
-
* @
|
|
76
|
-
*
|
|
77
|
-
* @generated from protobuf rpc: UpdateConductEntry(services.jobs.UpdateConductEntryRequest) returns (services.jobs.UpdateConductEntryResponse);
|
|
64
|
+
* @generated from protobuf rpc: UpdateConductEntry
|
|
78
65
|
*/
|
|
79
66
|
updateConductEntry(input: UpdateConductEntryRequest, options?: RpcOptions): UnaryCall<UpdateConductEntryRequest, UpdateConductEntryResponse> {
|
|
80
67
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
81
68
|
return stackIntercept<UpdateConductEntryRequest, UpdateConductEntryResponse>("unary", this._transport, method, opt, input);
|
|
82
69
|
}
|
|
83
70
|
/**
|
|
84
|
-
* @
|
|
85
|
-
*
|
|
86
|
-
* @generated from protobuf rpc: DeleteConductEntry(services.jobs.DeleteConductEntryRequest) returns (services.jobs.DeleteConductEntryResponse);
|
|
71
|
+
* @generated from protobuf rpc: DeleteConductEntry
|
|
87
72
|
*/
|
|
88
73
|
deleteConductEntry(input: DeleteConductEntryRequest, options?: RpcOptions): UnaryCall<DeleteConductEntryRequest, DeleteConductEntryResponse> {
|
|
89
74
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
package/services/jobs/conduct.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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 { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -23,29 +24,29 @@ import { PaginationRequest } from "../../resources/common/database/database";
|
|
|
23
24
|
*/
|
|
24
25
|
export interface ListConductEntriesRequest {
|
|
25
26
|
/**
|
|
26
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
27
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
27
28
|
*/
|
|
28
29
|
pagination?: PaginationRequest;
|
|
29
30
|
/**
|
|
30
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
31
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
31
32
|
*/
|
|
32
33
|
sort?: Sort;
|
|
33
34
|
/**
|
|
34
35
|
* Search params
|
|
35
36
|
*
|
|
36
|
-
* @generated from protobuf field: repeated resources.jobs.ConductType types = 3
|
|
37
|
+
* @generated from protobuf field: repeated resources.jobs.ConductType types = 3
|
|
37
38
|
*/
|
|
38
39
|
types: ConductType[];
|
|
39
40
|
/**
|
|
40
|
-
* @generated from protobuf field: optional bool show_expired = 4
|
|
41
|
+
* @generated from protobuf field: optional bool show_expired = 4
|
|
41
42
|
*/
|
|
42
43
|
showExpired?: boolean;
|
|
43
44
|
/**
|
|
44
|
-
* @generated from protobuf field: repeated int32 user_ids = 5
|
|
45
|
+
* @generated from protobuf field: repeated int32 user_ids = 5
|
|
45
46
|
*/
|
|
46
47
|
userIds: number[];
|
|
47
48
|
/**
|
|
48
|
-
* @generated from protobuf field: repeated
|
|
49
|
+
* @generated from protobuf field: repeated int64 ids = 6
|
|
49
50
|
*/
|
|
50
51
|
ids: number[];
|
|
51
52
|
}
|
|
@@ -54,11 +55,11 @@ export interface ListConductEntriesRequest {
|
|
|
54
55
|
*/
|
|
55
56
|
export interface ListConductEntriesResponse {
|
|
56
57
|
/**
|
|
57
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
58
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
58
59
|
*/
|
|
59
60
|
pagination?: PaginationResponse;
|
|
60
61
|
/**
|
|
61
|
-
* @generated from protobuf field: repeated resources.jobs.ConductEntry entries = 2
|
|
62
|
+
* @generated from protobuf field: repeated resources.jobs.ConductEntry entries = 2
|
|
62
63
|
*/
|
|
63
64
|
entries: ConductEntry[];
|
|
64
65
|
}
|
|
@@ -67,7 +68,7 @@ export interface ListConductEntriesResponse {
|
|
|
67
68
|
*/
|
|
68
69
|
export interface CreateConductEntryRequest {
|
|
69
70
|
/**
|
|
70
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
71
|
+
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
71
72
|
*/
|
|
72
73
|
entry?: ConductEntry;
|
|
73
74
|
}
|
|
@@ -76,7 +77,7 @@ export interface CreateConductEntryRequest {
|
|
|
76
77
|
*/
|
|
77
78
|
export interface CreateConductEntryResponse {
|
|
78
79
|
/**
|
|
79
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
80
|
+
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
80
81
|
*/
|
|
81
82
|
entry?: ConductEntry;
|
|
82
83
|
}
|
|
@@ -85,7 +86,7 @@ export interface CreateConductEntryResponse {
|
|
|
85
86
|
*/
|
|
86
87
|
export interface UpdateConductEntryRequest {
|
|
87
88
|
/**
|
|
88
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
89
|
+
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
89
90
|
*/
|
|
90
91
|
entry?: ConductEntry;
|
|
91
92
|
}
|
|
@@ -94,7 +95,7 @@ export interface UpdateConductEntryRequest {
|
|
|
94
95
|
*/
|
|
95
96
|
export interface UpdateConductEntryResponse {
|
|
96
97
|
/**
|
|
97
|
-
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
98
|
+
* @generated from protobuf field: resources.jobs.ConductEntry entry = 1
|
|
98
99
|
*/
|
|
99
100
|
entry?: ConductEntry;
|
|
100
101
|
}
|
|
@@ -103,7 +104,7 @@ export interface UpdateConductEntryResponse {
|
|
|
103
104
|
*/
|
|
104
105
|
export interface DeleteConductEntryRequest {
|
|
105
106
|
/**
|
|
106
|
-
* @generated from protobuf field:
|
|
107
|
+
* @generated from protobuf field: int64 id = 1
|
|
107
108
|
*/
|
|
108
109
|
id: number;
|
|
109
110
|
}
|
|
@@ -116,12 +117,12 @@ export interface DeleteConductEntryResponse {
|
|
|
116
117
|
class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesRequest> {
|
|
117
118
|
constructor() {
|
|
118
119
|
super("services.jobs.ListConductEntriesRequest", [
|
|
119
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
120
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
120
121
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
121
122
|
{ no: 3, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.jobs.ConductType", ConductType, "CONDUCT_TYPE_"] },
|
|
122
123
|
{ no: 4, name: "show_expired", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
123
124
|
{ no: 5, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
|
|
124
|
-
{ no: 6, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T:
|
|
125
|
+
{ no: 6, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
125
126
|
]);
|
|
126
127
|
}
|
|
127
128
|
create(value?: PartialMessage<ListConductEntriesRequest>): ListConductEntriesRequest {
|
|
@@ -161,12 +162,12 @@ class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesReque
|
|
|
161
162
|
else
|
|
162
163
|
message.userIds.push(reader.int32());
|
|
163
164
|
break;
|
|
164
|
-
case /* repeated
|
|
165
|
+
case /* repeated int64 ids */ 6:
|
|
165
166
|
if (wireType === WireType.LengthDelimited)
|
|
166
167
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
167
|
-
message.ids.push(reader.
|
|
168
|
+
message.ids.push(reader.int64().toNumber());
|
|
168
169
|
else
|
|
169
|
-
message.ids.push(reader.
|
|
170
|
+
message.ids.push(reader.int64().toNumber());
|
|
170
171
|
break;
|
|
171
172
|
default:
|
|
172
173
|
let u = options.readUnknownField;
|
|
@@ -203,11 +204,11 @@ class ListConductEntriesRequest$Type extends MessageType<ListConductEntriesReque
|
|
|
203
204
|
writer.int32(message.userIds[i]);
|
|
204
205
|
writer.join();
|
|
205
206
|
}
|
|
206
|
-
/* repeated
|
|
207
|
+
/* repeated int64 ids = 6; */
|
|
207
208
|
if (message.ids.length) {
|
|
208
209
|
writer.tag(6, WireType.LengthDelimited).fork();
|
|
209
210
|
for (let i = 0; i < message.ids.length; i++)
|
|
210
|
-
writer.
|
|
211
|
+
writer.int64(message.ids[i]);
|
|
211
212
|
writer.join();
|
|
212
213
|
}
|
|
213
214
|
let u = options.writeUnknownFields;
|
|
@@ -224,8 +225,8 @@ export const ListConductEntriesRequest = new ListConductEntriesRequest$Type();
|
|
|
224
225
|
class ListConductEntriesResponse$Type extends MessageType<ListConductEntriesResponse> {
|
|
225
226
|
constructor() {
|
|
226
227
|
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 }
|
|
228
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
229
|
+
{ no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ConductEntry, options: { "codegen.itemslen.enabled": true } }
|
|
229
230
|
]);
|
|
230
231
|
}
|
|
231
232
|
create(value?: PartialMessage<ListConductEntriesResponse>): ListConductEntriesResponse {
|
|
@@ -278,7 +279,7 @@ export const ListConductEntriesResponse = new ListConductEntriesResponse$Type();
|
|
|
278
279
|
class CreateConductEntryRequest$Type extends MessageType<CreateConductEntryRequest> {
|
|
279
280
|
constructor() {
|
|
280
281
|
super("services.jobs.CreateConductEntryRequest", [
|
|
281
|
-
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "validate.
|
|
282
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
282
283
|
]);
|
|
283
284
|
}
|
|
284
285
|
create(value?: PartialMessage<CreateConductEntryRequest>): CreateConductEntryRequest {
|
|
@@ -370,7 +371,7 @@ export const CreateConductEntryResponse = new CreateConductEntryResponse$Type();
|
|
|
370
371
|
class UpdateConductEntryRequest$Type extends MessageType<UpdateConductEntryRequest> {
|
|
371
372
|
constructor() {
|
|
372
373
|
super("services.jobs.UpdateConductEntryRequest", [
|
|
373
|
-
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "validate.
|
|
374
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
374
375
|
]);
|
|
375
376
|
}
|
|
376
377
|
create(value?: PartialMessage<UpdateConductEntryRequest>): UpdateConductEntryRequest {
|
|
@@ -416,7 +417,7 @@ export const UpdateConductEntryRequest = new UpdateConductEntryRequest$Type();
|
|
|
416
417
|
class UpdateConductEntryResponse$Type extends MessageType<UpdateConductEntryResponse> {
|
|
417
418
|
constructor() {
|
|
418
419
|
super("services.jobs.UpdateConductEntryResponse", [
|
|
419
|
-
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "validate.
|
|
420
|
+
{ no: 1, name: "entry", kind: "message", T: () => ConductEntry, options: { "buf.validate.field": { required: true } } }
|
|
420
421
|
]);
|
|
421
422
|
}
|
|
422
423
|
create(value?: PartialMessage<UpdateConductEntryResponse>): UpdateConductEntryResponse {
|
|
@@ -462,7 +463,7 @@ export const UpdateConductEntryResponse = new UpdateConductEntryResponse$Type();
|
|
|
462
463
|
class DeleteConductEntryRequest$Type extends MessageType<DeleteConductEntryRequest> {
|
|
463
464
|
constructor() {
|
|
464
465
|
super("services.jobs.DeleteConductEntryRequest", [
|
|
465
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
466
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
466
467
|
]);
|
|
467
468
|
}
|
|
468
469
|
create(value?: PartialMessage<DeleteConductEntryRequest>): DeleteConductEntryRequest {
|
|
@@ -477,8 +478,8 @@ class DeleteConductEntryRequest$Type extends MessageType<DeleteConductEntryReque
|
|
|
477
478
|
while (reader.pos < end) {
|
|
478
479
|
let [fieldNo, wireType] = reader.tag();
|
|
479
480
|
switch (fieldNo) {
|
|
480
|
-
case /*
|
|
481
|
-
message.id = reader.
|
|
481
|
+
case /* int64 id */ 1:
|
|
482
|
+
message.id = reader.int64().toNumber();
|
|
482
483
|
break;
|
|
483
484
|
default:
|
|
484
485
|
let u = options.readUnknownField;
|
|
@@ -492,9 +493,9 @@ class DeleteConductEntryRequest$Type extends MessageType<DeleteConductEntryReque
|
|
|
492
493
|
return message;
|
|
493
494
|
}
|
|
494
495
|
internalBinaryWrite(message: DeleteConductEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
495
|
-
/*
|
|
496
|
+
/* int64 id = 1; */
|
|
496
497
|
if (message.id !== 0)
|
|
497
|
-
writer.tag(1, WireType.Varint).
|
|
498
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
498
499
|
let u = options.writeUnknownFields;
|
|
499
500
|
if (u !== false)
|
|
500
501
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -547,8 +548,8 @@ export const DeleteConductEntryResponse = new DeleteConductEntryResponse$Type();
|
|
|
547
548
|
* @generated ServiceType for protobuf service services.jobs.ConductService
|
|
548
549
|
*/
|
|
549
550
|
export const ConductService = new ServiceType("services.jobs.ConductService", [
|
|
550
|
-
{ name: "ListConductEntries", options: {}, I: ListConductEntriesRequest, O: ListConductEntriesResponse },
|
|
551
|
-
{ name: "CreateConductEntry", options: {}, I: CreateConductEntryRequest, O: CreateConductEntryResponse },
|
|
552
|
-
{ name: "UpdateConductEntry", options: {}, I: UpdateConductEntryRequest, O: UpdateConductEntryResponse },
|
|
553
|
-
{ name: "DeleteConductEntry", options: {}, I: DeleteConductEntryRequest, O: DeleteConductEntryResponse }
|
|
551
|
+
{ name: "ListConductEntries", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "All"] }] } }, I: ListConductEntriesRequest, O: ListConductEntriesResponse },
|
|
552
|
+
{ name: "CreateConductEntry", options: { "codegen.perms.perms": { enabled: true } }, I: CreateConductEntryRequest, O: CreateConductEntryResponse },
|
|
553
|
+
{ name: "UpdateConductEntry", options: { "codegen.perms.perms": { enabled: true } }, I: UpdateConductEntryRequest, O: UpdateConductEntryResponse },
|
|
554
|
+
{ name: "DeleteConductEntry", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteConductEntryRequest, O: DeleteConductEntryResponse }
|
|
554
555
|
]);
|