@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,536 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/common/cron/cron.proto" (package "resources.common.cron", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Any } from "../../../google/protobuf/any";
|
|
14
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
15
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf message resources.common.cron.Cronjob
|
|
18
|
+
*/
|
|
19
|
+
export interface Cronjob {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: string name = 1;
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: string schedule = 2;
|
|
26
|
+
*/
|
|
27
|
+
schedule: string;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: resources.common.cron.CronjobState state = 3;
|
|
30
|
+
*/
|
|
31
|
+
state: CronjobState;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: resources.timestamp.Timestamp next_schedule_time = 4;
|
|
34
|
+
*/
|
|
35
|
+
nextScheduleTime?: Timestamp;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp last_attempt_time = 5;
|
|
38
|
+
*/
|
|
39
|
+
lastAttemptTime?: Timestamp;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp started_time = 6;
|
|
42
|
+
*/
|
|
43
|
+
startedTime?: Timestamp;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: optional google.protobuf.Duration timeout = 7;
|
|
46
|
+
*/
|
|
47
|
+
timeout?: Duration;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: resources.common.cron.CronjobData data = 8;
|
|
50
|
+
*/
|
|
51
|
+
data?: CronjobData;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf message resources.common.cron.CronjobData
|
|
55
|
+
*/
|
|
56
|
+
export interface CronjobData {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: resources.timestamp.Timestamp updated_at = 1;
|
|
59
|
+
*/
|
|
60
|
+
updatedAt?: Timestamp;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: optional google.protobuf.Any data = 2;
|
|
63
|
+
*/
|
|
64
|
+
data?: Any;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf message resources.common.cron.CronjobLockOwnerState
|
|
68
|
+
*/
|
|
69
|
+
export interface CronjobLockOwnerState {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf field: string hostname = 1;
|
|
72
|
+
*/
|
|
73
|
+
hostname: string;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: resources.timestamp.Timestamp updated_at = 2;
|
|
76
|
+
*/
|
|
77
|
+
updatedAt?: Timestamp;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf message resources.common.cron.CronjobSchedulerEvent
|
|
81
|
+
*/
|
|
82
|
+
export interface CronjobSchedulerEvent {
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf field: resources.common.cron.Cronjob cronjob = 1;
|
|
85
|
+
*/
|
|
86
|
+
cronjob?: Cronjob;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf message resources.common.cron.CronjobCompletedEvent
|
|
90
|
+
*/
|
|
91
|
+
export interface CronjobCompletedEvent {
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf field: string name = 1;
|
|
94
|
+
*/
|
|
95
|
+
name: string;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf field: bool sucess = 2;
|
|
98
|
+
*/
|
|
99
|
+
sucess: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @generated from protobuf field: resources.timestamp.Timestamp endDate = 3;
|
|
102
|
+
*/
|
|
103
|
+
endDate?: Timestamp;
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf field: google.protobuf.Duration elapsed = 4;
|
|
106
|
+
*/
|
|
107
|
+
elapsed?: Duration;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf field: optional resources.common.cron.CronjobData data = 5;
|
|
110
|
+
*/
|
|
111
|
+
data?: CronjobData;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf message resources.common.cron.GenericCronData
|
|
115
|
+
*/
|
|
116
|
+
export interface GenericCronData {
|
|
117
|
+
/**
|
|
118
|
+
* @sanitize: method=StripTags
|
|
119
|
+
*
|
|
120
|
+
* @generated from protobuf field: map<string, string> attributes = 1;
|
|
121
|
+
*/
|
|
122
|
+
attributes: {
|
|
123
|
+
[key: string]: string;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf enum resources.common.cron.CronjobState
|
|
128
|
+
*/
|
|
129
|
+
export enum CronjobState {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf enum value: CRONJOB_STATE_UNSPECIFIED = 0;
|
|
132
|
+
*/
|
|
133
|
+
UNSPECIFIED = 0,
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf enum value: CRONJOB_STATE_WAITING = 1;
|
|
136
|
+
*/
|
|
137
|
+
WAITING = 1,
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf enum value: CRONJOB_STATE_PENDING = 2;
|
|
140
|
+
*/
|
|
141
|
+
PENDING = 2,
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf enum value: CRONJOB_STATE_RUNNING = 3;
|
|
144
|
+
*/
|
|
145
|
+
RUNNING = 3
|
|
146
|
+
}
|
|
147
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
148
|
+
class Cronjob$Type extends MessageType<Cronjob> {
|
|
149
|
+
constructor() {
|
|
150
|
+
super("resources.common.cron.Cronjob", [
|
|
151
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
152
|
+
{ no: 2, name: "schedule", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
153
|
+
{ no: 3, name: "state", kind: "enum", T: () => ["resources.common.cron.CronjobState", CronjobState, "CRONJOB_STATE_"] },
|
|
154
|
+
{ no: 4, name: "next_schedule_time", kind: "message", T: () => Timestamp },
|
|
155
|
+
{ no: 5, name: "last_attempt_time", kind: "message", T: () => Timestamp },
|
|
156
|
+
{ no: 6, name: "started_time", kind: "message", T: () => Timestamp },
|
|
157
|
+
{ no: 7, name: "timeout", kind: "message", T: () => Duration },
|
|
158
|
+
{ no: 8, name: "data", kind: "message", T: () => CronjobData }
|
|
159
|
+
]);
|
|
160
|
+
}
|
|
161
|
+
create(value?: PartialMessage<Cronjob>): Cronjob {
|
|
162
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
163
|
+
message.name = "";
|
|
164
|
+
message.schedule = "";
|
|
165
|
+
message.state = 0;
|
|
166
|
+
if (value !== undefined)
|
|
167
|
+
reflectionMergePartial<Cronjob>(this, message, value);
|
|
168
|
+
return message;
|
|
169
|
+
}
|
|
170
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Cronjob): Cronjob {
|
|
171
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
172
|
+
while (reader.pos < end) {
|
|
173
|
+
let [fieldNo, wireType] = reader.tag();
|
|
174
|
+
switch (fieldNo) {
|
|
175
|
+
case /* string name */ 1:
|
|
176
|
+
message.name = reader.string();
|
|
177
|
+
break;
|
|
178
|
+
case /* string schedule */ 2:
|
|
179
|
+
message.schedule = reader.string();
|
|
180
|
+
break;
|
|
181
|
+
case /* resources.common.cron.CronjobState state */ 3:
|
|
182
|
+
message.state = reader.int32();
|
|
183
|
+
break;
|
|
184
|
+
case /* resources.timestamp.Timestamp next_schedule_time */ 4:
|
|
185
|
+
message.nextScheduleTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.nextScheduleTime);
|
|
186
|
+
break;
|
|
187
|
+
case /* optional resources.timestamp.Timestamp last_attempt_time */ 5:
|
|
188
|
+
message.lastAttemptTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastAttemptTime);
|
|
189
|
+
break;
|
|
190
|
+
case /* optional resources.timestamp.Timestamp started_time */ 6:
|
|
191
|
+
message.startedTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedTime);
|
|
192
|
+
break;
|
|
193
|
+
case /* optional google.protobuf.Duration timeout */ 7:
|
|
194
|
+
message.timeout = Duration.internalBinaryRead(reader, reader.uint32(), options, message.timeout);
|
|
195
|
+
break;
|
|
196
|
+
case /* resources.common.cron.CronjobData data */ 8:
|
|
197
|
+
message.data = CronjobData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
198
|
+
break;
|
|
199
|
+
default:
|
|
200
|
+
let u = options.readUnknownField;
|
|
201
|
+
if (u === "throw")
|
|
202
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
203
|
+
let d = reader.skip(wireType);
|
|
204
|
+
if (u !== false)
|
|
205
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return message;
|
|
209
|
+
}
|
|
210
|
+
internalBinaryWrite(message: Cronjob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
211
|
+
/* string name = 1; */
|
|
212
|
+
if (message.name !== "")
|
|
213
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
214
|
+
/* string schedule = 2; */
|
|
215
|
+
if (message.schedule !== "")
|
|
216
|
+
writer.tag(2, WireType.LengthDelimited).string(message.schedule);
|
|
217
|
+
/* resources.common.cron.CronjobState state = 3; */
|
|
218
|
+
if (message.state !== 0)
|
|
219
|
+
writer.tag(3, WireType.Varint).int32(message.state);
|
|
220
|
+
/* resources.timestamp.Timestamp next_schedule_time = 4; */
|
|
221
|
+
if (message.nextScheduleTime)
|
|
222
|
+
Timestamp.internalBinaryWrite(message.nextScheduleTime, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
223
|
+
/* optional resources.timestamp.Timestamp last_attempt_time = 5; */
|
|
224
|
+
if (message.lastAttemptTime)
|
|
225
|
+
Timestamp.internalBinaryWrite(message.lastAttemptTime, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
226
|
+
/* optional resources.timestamp.Timestamp started_time = 6; */
|
|
227
|
+
if (message.startedTime)
|
|
228
|
+
Timestamp.internalBinaryWrite(message.startedTime, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
229
|
+
/* optional google.protobuf.Duration timeout = 7; */
|
|
230
|
+
if (message.timeout)
|
|
231
|
+
Duration.internalBinaryWrite(message.timeout, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
+
/* resources.common.cron.CronjobData data = 8; */
|
|
233
|
+
if (message.data)
|
|
234
|
+
CronjobData.internalBinaryWrite(message.data, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
+
let u = options.writeUnknownFields;
|
|
236
|
+
if (u !== false)
|
|
237
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
238
|
+
return writer;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated MessageType for protobuf message resources.common.cron.Cronjob
|
|
243
|
+
*/
|
|
244
|
+
export const Cronjob = new Cronjob$Type();
|
|
245
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
246
|
+
class CronjobData$Type extends MessageType<CronjobData> {
|
|
247
|
+
constructor() {
|
|
248
|
+
super("resources.common.cron.CronjobData", [
|
|
249
|
+
{ no: 1, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
250
|
+
{ no: 2, name: "data", kind: "message", T: () => Any }
|
|
251
|
+
]);
|
|
252
|
+
}
|
|
253
|
+
create(value?: PartialMessage<CronjobData>): CronjobData {
|
|
254
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
255
|
+
if (value !== undefined)
|
|
256
|
+
reflectionMergePartial<CronjobData>(this, message, value);
|
|
257
|
+
return message;
|
|
258
|
+
}
|
|
259
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CronjobData): CronjobData {
|
|
260
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
261
|
+
while (reader.pos < end) {
|
|
262
|
+
let [fieldNo, wireType] = reader.tag();
|
|
263
|
+
switch (fieldNo) {
|
|
264
|
+
case /* resources.timestamp.Timestamp updated_at */ 1:
|
|
265
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
266
|
+
break;
|
|
267
|
+
case /* optional google.protobuf.Any data */ 2:
|
|
268
|
+
message.data = Any.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
269
|
+
break;
|
|
270
|
+
default:
|
|
271
|
+
let u = options.readUnknownField;
|
|
272
|
+
if (u === "throw")
|
|
273
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
274
|
+
let d = reader.skip(wireType);
|
|
275
|
+
if (u !== false)
|
|
276
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
return message;
|
|
280
|
+
}
|
|
281
|
+
internalBinaryWrite(message: CronjobData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
282
|
+
/* resources.timestamp.Timestamp updated_at = 1; */
|
|
283
|
+
if (message.updatedAt)
|
|
284
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
285
|
+
/* optional google.protobuf.Any data = 2; */
|
|
286
|
+
if (message.data)
|
|
287
|
+
Any.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
288
|
+
let u = options.writeUnknownFields;
|
|
289
|
+
if (u !== false)
|
|
290
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
291
|
+
return writer;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @generated MessageType for protobuf message resources.common.cron.CronjobData
|
|
296
|
+
*/
|
|
297
|
+
export const CronjobData = new CronjobData$Type();
|
|
298
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
299
|
+
class CronjobLockOwnerState$Type extends MessageType<CronjobLockOwnerState> {
|
|
300
|
+
constructor() {
|
|
301
|
+
super("resources.common.cron.CronjobLockOwnerState", [
|
|
302
|
+
{ no: 1, name: "hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
303
|
+
{ no: 2, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
304
|
+
]);
|
|
305
|
+
}
|
|
306
|
+
create(value?: PartialMessage<CronjobLockOwnerState>): CronjobLockOwnerState {
|
|
307
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
308
|
+
message.hostname = "";
|
|
309
|
+
if (value !== undefined)
|
|
310
|
+
reflectionMergePartial<CronjobLockOwnerState>(this, message, value);
|
|
311
|
+
return message;
|
|
312
|
+
}
|
|
313
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CronjobLockOwnerState): CronjobLockOwnerState {
|
|
314
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
315
|
+
while (reader.pos < end) {
|
|
316
|
+
let [fieldNo, wireType] = reader.tag();
|
|
317
|
+
switch (fieldNo) {
|
|
318
|
+
case /* string hostname */ 1:
|
|
319
|
+
message.hostname = reader.string();
|
|
320
|
+
break;
|
|
321
|
+
case /* resources.timestamp.Timestamp updated_at */ 2:
|
|
322
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
323
|
+
break;
|
|
324
|
+
default:
|
|
325
|
+
let u = options.readUnknownField;
|
|
326
|
+
if (u === "throw")
|
|
327
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
328
|
+
let d = reader.skip(wireType);
|
|
329
|
+
if (u !== false)
|
|
330
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return message;
|
|
334
|
+
}
|
|
335
|
+
internalBinaryWrite(message: CronjobLockOwnerState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
336
|
+
/* string hostname = 1; */
|
|
337
|
+
if (message.hostname !== "")
|
|
338
|
+
writer.tag(1, WireType.LengthDelimited).string(message.hostname);
|
|
339
|
+
/* resources.timestamp.Timestamp updated_at = 2; */
|
|
340
|
+
if (message.updatedAt)
|
|
341
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
342
|
+
let u = options.writeUnknownFields;
|
|
343
|
+
if (u !== false)
|
|
344
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
345
|
+
return writer;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @generated MessageType for protobuf message resources.common.cron.CronjobLockOwnerState
|
|
350
|
+
*/
|
|
351
|
+
export const CronjobLockOwnerState = new CronjobLockOwnerState$Type();
|
|
352
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
353
|
+
class CronjobSchedulerEvent$Type extends MessageType<CronjobSchedulerEvent> {
|
|
354
|
+
constructor() {
|
|
355
|
+
super("resources.common.cron.CronjobSchedulerEvent", [
|
|
356
|
+
{ no: 1, name: "cronjob", kind: "message", T: () => Cronjob }
|
|
357
|
+
]);
|
|
358
|
+
}
|
|
359
|
+
create(value?: PartialMessage<CronjobSchedulerEvent>): CronjobSchedulerEvent {
|
|
360
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
361
|
+
if (value !== undefined)
|
|
362
|
+
reflectionMergePartial<CronjobSchedulerEvent>(this, message, value);
|
|
363
|
+
return message;
|
|
364
|
+
}
|
|
365
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CronjobSchedulerEvent): CronjobSchedulerEvent {
|
|
366
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
367
|
+
while (reader.pos < end) {
|
|
368
|
+
let [fieldNo, wireType] = reader.tag();
|
|
369
|
+
switch (fieldNo) {
|
|
370
|
+
case /* resources.common.cron.Cronjob cronjob */ 1:
|
|
371
|
+
message.cronjob = Cronjob.internalBinaryRead(reader, reader.uint32(), options, message.cronjob);
|
|
372
|
+
break;
|
|
373
|
+
default:
|
|
374
|
+
let u = options.readUnknownField;
|
|
375
|
+
if (u === "throw")
|
|
376
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
377
|
+
let d = reader.skip(wireType);
|
|
378
|
+
if (u !== false)
|
|
379
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
}
|
|
384
|
+
internalBinaryWrite(message: CronjobSchedulerEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
385
|
+
/* resources.common.cron.Cronjob cronjob = 1; */
|
|
386
|
+
if (message.cronjob)
|
|
387
|
+
Cronjob.internalBinaryWrite(message.cronjob, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
388
|
+
let u = options.writeUnknownFields;
|
|
389
|
+
if (u !== false)
|
|
390
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
391
|
+
return writer;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @generated MessageType for protobuf message resources.common.cron.CronjobSchedulerEvent
|
|
396
|
+
*/
|
|
397
|
+
export const CronjobSchedulerEvent = new CronjobSchedulerEvent$Type();
|
|
398
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
399
|
+
class CronjobCompletedEvent$Type extends MessageType<CronjobCompletedEvent> {
|
|
400
|
+
constructor() {
|
|
401
|
+
super("resources.common.cron.CronjobCompletedEvent", [
|
|
402
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
403
|
+
{ no: 2, name: "sucess", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
404
|
+
{ no: 3, name: "endDate", kind: "message", T: () => Timestamp },
|
|
405
|
+
{ no: 4, name: "elapsed", kind: "message", T: () => Duration },
|
|
406
|
+
{ no: 5, name: "data", kind: "message", T: () => CronjobData }
|
|
407
|
+
]);
|
|
408
|
+
}
|
|
409
|
+
create(value?: PartialMessage<CronjobCompletedEvent>): CronjobCompletedEvent {
|
|
410
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
411
|
+
message.name = "";
|
|
412
|
+
message.sucess = false;
|
|
413
|
+
if (value !== undefined)
|
|
414
|
+
reflectionMergePartial<CronjobCompletedEvent>(this, message, value);
|
|
415
|
+
return message;
|
|
416
|
+
}
|
|
417
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CronjobCompletedEvent): CronjobCompletedEvent {
|
|
418
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
419
|
+
while (reader.pos < end) {
|
|
420
|
+
let [fieldNo, wireType] = reader.tag();
|
|
421
|
+
switch (fieldNo) {
|
|
422
|
+
case /* string name */ 1:
|
|
423
|
+
message.name = reader.string();
|
|
424
|
+
break;
|
|
425
|
+
case /* bool sucess */ 2:
|
|
426
|
+
message.sucess = reader.bool();
|
|
427
|
+
break;
|
|
428
|
+
case /* resources.timestamp.Timestamp endDate */ 3:
|
|
429
|
+
message.endDate = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.endDate);
|
|
430
|
+
break;
|
|
431
|
+
case /* google.protobuf.Duration elapsed */ 4:
|
|
432
|
+
message.elapsed = Duration.internalBinaryRead(reader, reader.uint32(), options, message.elapsed);
|
|
433
|
+
break;
|
|
434
|
+
case /* optional resources.common.cron.CronjobData data */ 5:
|
|
435
|
+
message.data = CronjobData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
436
|
+
break;
|
|
437
|
+
default:
|
|
438
|
+
let u = options.readUnknownField;
|
|
439
|
+
if (u === "throw")
|
|
440
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
441
|
+
let d = reader.skip(wireType);
|
|
442
|
+
if (u !== false)
|
|
443
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return message;
|
|
447
|
+
}
|
|
448
|
+
internalBinaryWrite(message: CronjobCompletedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
449
|
+
/* string name = 1; */
|
|
450
|
+
if (message.name !== "")
|
|
451
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
452
|
+
/* bool sucess = 2; */
|
|
453
|
+
if (message.sucess !== false)
|
|
454
|
+
writer.tag(2, WireType.Varint).bool(message.sucess);
|
|
455
|
+
/* resources.timestamp.Timestamp endDate = 3; */
|
|
456
|
+
if (message.endDate)
|
|
457
|
+
Timestamp.internalBinaryWrite(message.endDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
458
|
+
/* google.protobuf.Duration elapsed = 4; */
|
|
459
|
+
if (message.elapsed)
|
|
460
|
+
Duration.internalBinaryWrite(message.elapsed, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
461
|
+
/* optional resources.common.cron.CronjobData data = 5; */
|
|
462
|
+
if (message.data)
|
|
463
|
+
CronjobData.internalBinaryWrite(message.data, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
464
|
+
let u = options.writeUnknownFields;
|
|
465
|
+
if (u !== false)
|
|
466
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
467
|
+
return writer;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* @generated MessageType for protobuf message resources.common.cron.CronjobCompletedEvent
|
|
472
|
+
*/
|
|
473
|
+
export const CronjobCompletedEvent = new CronjobCompletedEvent$Type();
|
|
474
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
475
|
+
class GenericCronData$Type extends MessageType<GenericCronData> {
|
|
476
|
+
constructor() {
|
|
477
|
+
super("resources.common.cron.GenericCronData", [
|
|
478
|
+
{ no: 1, name: "attributes", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
479
|
+
]);
|
|
480
|
+
}
|
|
481
|
+
create(value?: PartialMessage<GenericCronData>): GenericCronData {
|
|
482
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
483
|
+
message.attributes = {};
|
|
484
|
+
if (value !== undefined)
|
|
485
|
+
reflectionMergePartial<GenericCronData>(this, message, value);
|
|
486
|
+
return message;
|
|
487
|
+
}
|
|
488
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenericCronData): GenericCronData {
|
|
489
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
490
|
+
while (reader.pos < end) {
|
|
491
|
+
let [fieldNo, wireType] = reader.tag();
|
|
492
|
+
switch (fieldNo) {
|
|
493
|
+
case /* map<string, string> attributes */ 1:
|
|
494
|
+
this.binaryReadMap1(message.attributes, reader, options);
|
|
495
|
+
break;
|
|
496
|
+
default:
|
|
497
|
+
let u = options.readUnknownField;
|
|
498
|
+
if (u === "throw")
|
|
499
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
500
|
+
let d = reader.skip(wireType);
|
|
501
|
+
if (u !== false)
|
|
502
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return message;
|
|
506
|
+
}
|
|
507
|
+
private binaryReadMap1(map: GenericCronData["attributes"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
508
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof GenericCronData["attributes"] | undefined, val: GenericCronData["attributes"][any] | undefined;
|
|
509
|
+
while (reader.pos < end) {
|
|
510
|
+
let [fieldNo, wireType] = reader.tag();
|
|
511
|
+
switch (fieldNo) {
|
|
512
|
+
case 1:
|
|
513
|
+
key = reader.string();
|
|
514
|
+
break;
|
|
515
|
+
case 2:
|
|
516
|
+
val = reader.string();
|
|
517
|
+
break;
|
|
518
|
+
default: throw new globalThis.Error("unknown map entry field for field resources.common.cron.GenericCronData.attributes");
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
map[key ?? ""] = val ?? "";
|
|
522
|
+
}
|
|
523
|
+
internalBinaryWrite(message: GenericCronData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
524
|
+
/* map<string, string> attributes = 1; */
|
|
525
|
+
for (let k of globalThis.Object.keys(message.attributes))
|
|
526
|
+
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.attributes[k]).join();
|
|
527
|
+
let u = options.writeUnknownFields;
|
|
528
|
+
if (u !== false)
|
|
529
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
530
|
+
return writer;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @generated MessageType for protobuf message resources.common.cron.GenericCronData
|
|
535
|
+
*/
|
|
536
|
+
export const GenericCronData = new GenericCronData$Type();
|