@fivenet-app/gen 0.9.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/package.json +15 -0
- package/perms.ts +178 -0
- package/resources/accounts/accounts.ts +195 -0
- package/resources/accounts/oauth2.ts +230 -0
- package/resources/calendar/access.ts +362 -0
- package/resources/calendar/calendar.ts +955 -0
- package/resources/centrum/access.ts +380 -0
- package/resources/centrum/dispatches.ts +854 -0
- package/resources/centrum/general.ts +231 -0
- package/resources/centrum/settings.ts +303 -0
- package/resources/centrum/units.ts +620 -0
- package/resources/common/access/dummy.ts +309 -0
- package/resources/common/content/content.ts +252 -0
- package/resources/common/cron/cron.ts +536 -0
- package/resources/common/database/database.ts +306 -0
- package/resources/common/error.ts +79 -0
- package/resources/common/grpcws/grpcws.ts +615 -0
- package/resources/common/i18n.ts +102 -0
- package/resources/common/uuid.ts +68 -0
- package/resources/documents/access.ts +388 -0
- package/resources/documents/activity.ts +803 -0
- package/resources/documents/category.ts +132 -0
- package/resources/documents/comment.ts +161 -0
- package/resources/documents/documents.ts +1124 -0
- package/resources/documents/requests.ts +196 -0
- package/resources/documents/templates.ts +949 -0
- package/resources/documents/workflow.ts +349 -0
- package/resources/filestore/file.ts +204 -0
- package/resources/internet/ads.ts +257 -0
- package/resources/internet/domain.ts +136 -0
- package/resources/internet/internet.ts +344 -0
- package/resources/internet/page.ts +236 -0
- package/resources/internet/search.ts +104 -0
- package/resources/jobs/activity.ts +600 -0
- package/resources/jobs/colleagues.ts +346 -0
- package/resources/jobs/conduct.ts +220 -0
- package/resources/jobs/labels.ts +240 -0
- package/resources/jobs/timeclock.ts +372 -0
- package/resources/laws/laws.ts +293 -0
- package/resources/livemap/livemap.ts +728 -0
- package/resources/livemap/tracker.ts +81 -0
- package/resources/mailer/access.ts +485 -0
- package/resources/mailer/email.ts +222 -0
- package/resources/mailer/events.ts +196 -0
- package/resources/mailer/message.ts +285 -0
- package/resources/mailer/settings.ts +95 -0
- package/resources/mailer/template.ts +164 -0
- package/resources/mailer/thread.ts +422 -0
- package/resources/mailer/user.ts +93 -0
- package/resources/notifications/events.ts +287 -0
- package/resources/notifications/notifications.ts +444 -0
- package/resources/permissions/permissions.ts +829 -0
- package/resources/qualifications/access.ts +275 -0
- package/resources/qualifications/exam.ts +1421 -0
- package/resources/qualifications/qualifications.ts +1289 -0
- package/resources/rector/audit.ts +226 -0
- package/resources/rector/config.ts +922 -0
- package/resources/stats/stats.ts +67 -0
- package/resources/sync/activity.ts +356 -0
- package/resources/sync/data.ts +455 -0
- package/resources/timestamp/timestamp.ts +78 -0
- package/resources/users/activity.ts +211 -0
- package/resources/users/job_props.ts +992 -0
- package/resources/users/jobs.ts +171 -0
- package/resources/users/labels.ts +161 -0
- package/resources/users/props.ts +207 -0
- package/resources/users/users.ts +570 -0
- package/resources/vehicles/vehicles.ts +114 -0
- package/resources/wiki/access.ts +362 -0
- package/resources/wiki/activity.ts +591 -0
- package/resources/wiki/page.ts +548 -0
- package/services/auth/auth.client.ts +171 -0
- package/services/auth/auth.ts +1331 -0
- package/services/calendar/calendar.client.ts +262 -0
- package/services/calendar/calendar.ts +1733 -0
- package/services/centrum/centrum.client.ts +365 -0
- package/services/centrum/centrum.ts +2619 -0
- package/services/citizenstore/citizenstore.client.ts +126 -0
- package/services/citizenstore/citizenstore.ts +847 -0
- package/services/completor/completor.client.ts +109 -0
- package/services/completor/completor.ts +616 -0
- package/services/dmv/vehicles.client.ts +41 -0
- package/services/dmv/vehicles.ts +191 -0
- package/services/docstore/docstore.client.ts +653 -0
- package/services/docstore/docstore.ts +4571 -0
- package/services/internet/ads.client.ts +41 -0
- package/services/internet/ads.ts +145 -0
- package/services/internet/internet.client.ts +58 -0
- package/services/internet/internet.ts +257 -0
- package/services/jobs/conduct.client.ts +92 -0
- package/services/jobs/conduct.ts +541 -0
- package/services/jobs/jobs.client.ts +194 -0
- package/services/jobs/jobs.ts +1301 -0
- package/services/jobs/timeclock.client.ts +75 -0
- package/services/jobs/timeclock.ts +808 -0
- package/services/livemapper/livemap.client.ts +76 -0
- package/services/livemapper/livemap.ts +552 -0
- package/services/mailer/mailer.client.ts +381 -0
- package/services/mailer/mailer.ts +2590 -0
- package/services/notificator/notificator.client.ts +76 -0
- package/services/notificator/notificator.ts +510 -0
- package/services/qualifications/qualifications.client.ts +279 -0
- package/services/qualifications/qualifications.ts +2142 -0
- package/services/rector/config.client.ts +58 -0
- package/services/rector/config.ts +216 -0
- package/services/rector/filestore.client.ts +75 -0
- package/services/rector/filestore.ts +378 -0
- package/services/rector/laws.client.ts +92 -0
- package/services/rector/laws.ts +416 -0
- package/services/rector/rector.client.ts +211 -0
- package/services/rector/rector.ts +1540 -0
- package/services/stats/stats.client.ts +37 -0
- package/services/stats/stats.ts +128 -0
- package/services/sync/sync.client.ts +110 -0
- package/services/sync/sync.ts +831 -0
- package/services/wiki/wiki.client.ts +126 -0
- package/services/wiki/wiki.ts +749 -0
- package/svcs.ts +307 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "services/dmv/vehicles.proto" (package "services.dmv", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Vehicle } from "../../resources/vehicles/vehicles";
|
|
15
|
+
import { PaginationResponse } from "../../resources/common/database/database";
|
|
16
|
+
import { Sort } from "../../resources/common/database/database";
|
|
17
|
+
import { PaginationRequest } from "../../resources/common/database/database";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf message services.dmv.ListVehiclesRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ListVehiclesRequest {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1;
|
|
24
|
+
*/
|
|
25
|
+
pagination?: PaginationRequest;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2;
|
|
28
|
+
*/
|
|
29
|
+
sort?: Sort;
|
|
30
|
+
/**
|
|
31
|
+
* Search params
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf field: optional string license_plate = 3;
|
|
34
|
+
*/
|
|
35
|
+
licensePlate?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: optional string model = 4;
|
|
38
|
+
*/
|
|
39
|
+
model?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: optional int32 user_id = 5;
|
|
42
|
+
*/
|
|
43
|
+
userId?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf message services.dmv.ListVehiclesResponse
|
|
47
|
+
*/
|
|
48
|
+
export interface ListVehiclesResponse {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1;
|
|
51
|
+
*/
|
|
52
|
+
pagination?: PaginationResponse;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: repeated resources.vehicles.Vehicle vehicles = 2;
|
|
55
|
+
*/
|
|
56
|
+
vehicles: Vehicle[];
|
|
57
|
+
}
|
|
58
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
59
|
+
class ListVehiclesRequest$Type extends MessageType<ListVehiclesRequest> {
|
|
60
|
+
constructor() {
|
|
61
|
+
super("services.dmv.ListVehiclesRequest", [
|
|
62
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
63
|
+
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
64
|
+
{ no: 3, name: "license_plate", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "32" } } } },
|
|
65
|
+
{ no: 4, name: "model", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "32" } } } },
|
|
66
|
+
{ no: 5, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
|
|
67
|
+
]);
|
|
68
|
+
}
|
|
69
|
+
create(value?: PartialMessage<ListVehiclesRequest>): ListVehiclesRequest {
|
|
70
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
71
|
+
if (value !== undefined)
|
|
72
|
+
reflectionMergePartial<ListVehiclesRequest>(this, message, value);
|
|
73
|
+
return message;
|
|
74
|
+
}
|
|
75
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListVehiclesRequest): ListVehiclesRequest {
|
|
76
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
77
|
+
while (reader.pos < end) {
|
|
78
|
+
let [fieldNo, wireType] = reader.tag();
|
|
79
|
+
switch (fieldNo) {
|
|
80
|
+
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
81
|
+
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
82
|
+
break;
|
|
83
|
+
case /* optional resources.common.database.Sort sort */ 2:
|
|
84
|
+
message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
|
85
|
+
break;
|
|
86
|
+
case /* optional string license_plate */ 3:
|
|
87
|
+
message.licensePlate = reader.string();
|
|
88
|
+
break;
|
|
89
|
+
case /* optional string model */ 4:
|
|
90
|
+
message.model = reader.string();
|
|
91
|
+
break;
|
|
92
|
+
case /* optional int32 user_id */ 5:
|
|
93
|
+
message.userId = reader.int32();
|
|
94
|
+
break;
|
|
95
|
+
default:
|
|
96
|
+
let u = options.readUnknownField;
|
|
97
|
+
if (u === "throw")
|
|
98
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
99
|
+
let d = reader.skip(wireType);
|
|
100
|
+
if (u !== false)
|
|
101
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return message;
|
|
105
|
+
}
|
|
106
|
+
internalBinaryWrite(message: ListVehiclesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
107
|
+
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
108
|
+
if (message.pagination)
|
|
109
|
+
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
110
|
+
/* optional resources.common.database.Sort sort = 2; */
|
|
111
|
+
if (message.sort)
|
|
112
|
+
Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
113
|
+
/* optional string license_plate = 3; */
|
|
114
|
+
if (message.licensePlate !== undefined)
|
|
115
|
+
writer.tag(3, WireType.LengthDelimited).string(message.licensePlate);
|
|
116
|
+
/* optional string model = 4; */
|
|
117
|
+
if (message.model !== undefined)
|
|
118
|
+
writer.tag(4, WireType.LengthDelimited).string(message.model);
|
|
119
|
+
/* optional int32 user_id = 5; */
|
|
120
|
+
if (message.userId !== undefined)
|
|
121
|
+
writer.tag(5, WireType.Varint).int32(message.userId);
|
|
122
|
+
let u = options.writeUnknownFields;
|
|
123
|
+
if (u !== false)
|
|
124
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
125
|
+
return writer;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @generated MessageType for protobuf message services.dmv.ListVehiclesRequest
|
|
130
|
+
*/
|
|
131
|
+
export const ListVehiclesRequest = new ListVehiclesRequest$Type();
|
|
132
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
133
|
+
class ListVehiclesResponse$Type extends MessageType<ListVehiclesResponse> {
|
|
134
|
+
constructor() {
|
|
135
|
+
super("services.dmv.ListVehiclesResponse", [
|
|
136
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
137
|
+
{ no: 2, name: "vehicles", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Vehicle }
|
|
138
|
+
]);
|
|
139
|
+
}
|
|
140
|
+
create(value?: PartialMessage<ListVehiclesResponse>): ListVehiclesResponse {
|
|
141
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
142
|
+
message.vehicles = [];
|
|
143
|
+
if (value !== undefined)
|
|
144
|
+
reflectionMergePartial<ListVehiclesResponse>(this, message, value);
|
|
145
|
+
return message;
|
|
146
|
+
}
|
|
147
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListVehiclesResponse): ListVehiclesResponse {
|
|
148
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
149
|
+
while (reader.pos < end) {
|
|
150
|
+
let [fieldNo, wireType] = reader.tag();
|
|
151
|
+
switch (fieldNo) {
|
|
152
|
+
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
153
|
+
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
154
|
+
break;
|
|
155
|
+
case /* repeated resources.vehicles.Vehicle vehicles */ 2:
|
|
156
|
+
message.vehicles.push(Vehicle.internalBinaryRead(reader, reader.uint32(), options));
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
let u = options.readUnknownField;
|
|
160
|
+
if (u === "throw")
|
|
161
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
162
|
+
let d = reader.skip(wireType);
|
|
163
|
+
if (u !== false)
|
|
164
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
}
|
|
169
|
+
internalBinaryWrite(message: ListVehiclesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
170
|
+
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
171
|
+
if (message.pagination)
|
|
172
|
+
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
173
|
+
/* repeated resources.vehicles.Vehicle vehicles = 2; */
|
|
174
|
+
for (let i = 0; i < message.vehicles.length; i++)
|
|
175
|
+
Vehicle.internalBinaryWrite(message.vehicles[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
176
|
+
let u = options.writeUnknownFields;
|
|
177
|
+
if (u !== false)
|
|
178
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
179
|
+
return writer;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @generated MessageType for protobuf message services.dmv.ListVehiclesResponse
|
|
184
|
+
*/
|
|
185
|
+
export const ListVehiclesResponse = new ListVehiclesResponse$Type();
|
|
186
|
+
/**
|
|
187
|
+
* @generated ServiceType for protobuf service services.dmv.DMVService
|
|
188
|
+
*/
|
|
189
|
+
export const DMVService = new ServiceType("services.dmv.DMVService", [
|
|
190
|
+
{ name: "ListVehicles", options: {}, I: ListVehiclesRequest, O: ListVehiclesResponse }
|
|
191
|
+
]);
|