@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,955 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/calendar/calendar.proto" (package "resources.calendar", 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 { Content } from "../common/content/content";
|
|
14
|
+
import { CalendarAccess } from "./access";
|
|
15
|
+
import { UserShort } from "../users/users";
|
|
16
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf message resources.calendar.Calendar
|
|
19
|
+
*/
|
|
20
|
+
export interface Calendar {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
23
|
+
*/
|
|
24
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
27
|
+
*/
|
|
28
|
+
createdAt?: Timestamp;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
31
|
+
*/
|
|
32
|
+
updatedAt?: Timestamp;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
35
|
+
*/
|
|
36
|
+
deletedAt?: Timestamp;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: optional string job = 5;
|
|
39
|
+
*/
|
|
40
|
+
job?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @sanitize: method=StripTags
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf field: string name = 6;
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* @sanitize: method=StripTags
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf field: optional string description = 7;
|
|
51
|
+
*/
|
|
52
|
+
description?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: bool public = 8;
|
|
55
|
+
*/
|
|
56
|
+
public: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: bool closed = 9;
|
|
59
|
+
*/
|
|
60
|
+
closed: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @sanitize: method=StripTags
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf field: string color = 10;
|
|
65
|
+
*/
|
|
66
|
+
color: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: optional int32 creator_id = 11;
|
|
69
|
+
*/
|
|
70
|
+
creatorId?: number;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 12;
|
|
73
|
+
*/
|
|
74
|
+
creator?: UserShort; // @gotags: alias:"creator"
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: string creator_job = 13;
|
|
77
|
+
*/
|
|
78
|
+
creatorJob: string;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14;
|
|
81
|
+
*/
|
|
82
|
+
subscription?: CalendarSub;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf field: resources.calendar.CalendarAccess access = 15;
|
|
85
|
+
*/
|
|
86
|
+
access?: CalendarAccess;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf message resources.calendar.CalendarShort
|
|
90
|
+
*/
|
|
91
|
+
export interface CalendarShort {
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
94
|
+
*/
|
|
95
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
98
|
+
*/
|
|
99
|
+
createdAt?: Timestamp;
|
|
100
|
+
/**
|
|
101
|
+
* @sanitize: method=StripTags
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf field: string name = 6;
|
|
104
|
+
*/
|
|
105
|
+
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* @sanitize: method=StripTags
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: optional string description = 7;
|
|
110
|
+
*/
|
|
111
|
+
description?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf field: bool public = 8;
|
|
114
|
+
*/
|
|
115
|
+
public: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf field: bool closed = 9;
|
|
118
|
+
*/
|
|
119
|
+
closed: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* @sanitize: method=StripTags
|
|
122
|
+
*
|
|
123
|
+
* @generated from protobuf field: string color = 10;
|
|
124
|
+
*/
|
|
125
|
+
color: string;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14;
|
|
128
|
+
*/
|
|
129
|
+
subscription?: CalendarSub;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @generated from protobuf message resources.calendar.CalendarSub
|
|
133
|
+
*/
|
|
134
|
+
export interface CalendarSub {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from protobuf field: uint64 calendar_id = 1 [jstype = JS_STRING];
|
|
137
|
+
*/
|
|
138
|
+
calendarId: string;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from protobuf field: int32 user_id = 2;
|
|
141
|
+
*/
|
|
142
|
+
userId: number;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf field: optional resources.users.UserShort user = 3;
|
|
145
|
+
*/
|
|
146
|
+
user?: UserShort;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4;
|
|
149
|
+
*/
|
|
150
|
+
createdAt?: Timestamp;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf field: bool confirmed = 5;
|
|
153
|
+
*/
|
|
154
|
+
confirmed: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf field: bool muted = 6;
|
|
157
|
+
*/
|
|
158
|
+
muted: boolean;
|
|
159
|
+
}
|
|
160
|
+
// Entry
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf message resources.calendar.CalendarEntry
|
|
164
|
+
*/
|
|
165
|
+
export interface CalendarEntry {
|
|
166
|
+
/**
|
|
167
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
168
|
+
*/
|
|
169
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
170
|
+
/**
|
|
171
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
172
|
+
*/
|
|
173
|
+
createdAt?: Timestamp;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
176
|
+
*/
|
|
177
|
+
updatedAt?: Timestamp;
|
|
178
|
+
/**
|
|
179
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
180
|
+
*/
|
|
181
|
+
deletedAt?: Timestamp;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from protobuf field: uint64 calendar_id = 5 [jstype = JS_STRING];
|
|
184
|
+
*/
|
|
185
|
+
calendarId: string;
|
|
186
|
+
/**
|
|
187
|
+
* @generated from protobuf field: optional resources.calendar.Calendar calendar = 6;
|
|
188
|
+
*/
|
|
189
|
+
calendar?: Calendar;
|
|
190
|
+
/**
|
|
191
|
+
* @generated from protobuf field: optional string job = 7;
|
|
192
|
+
*/
|
|
193
|
+
job?: string;
|
|
194
|
+
/**
|
|
195
|
+
* @generated from protobuf field: resources.timestamp.Timestamp start_time = 8;
|
|
196
|
+
*/
|
|
197
|
+
startTime?: Timestamp;
|
|
198
|
+
/**
|
|
199
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp end_time = 9;
|
|
200
|
+
*/
|
|
201
|
+
endTime?: Timestamp;
|
|
202
|
+
/**
|
|
203
|
+
* @sanitize: method=StripTags
|
|
204
|
+
*
|
|
205
|
+
* @generated from protobuf field: string title = 10;
|
|
206
|
+
*/
|
|
207
|
+
title: string;
|
|
208
|
+
/**
|
|
209
|
+
* @generated from protobuf field: resources.common.content.Content content = 11;
|
|
210
|
+
*/
|
|
211
|
+
content?: Content;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from protobuf field: bool closed = 12;
|
|
214
|
+
*/
|
|
215
|
+
closed: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* @generated from protobuf field: optional bool rsvp_open = 13;
|
|
218
|
+
*/
|
|
219
|
+
rsvpOpen?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* @generated from protobuf field: optional int32 creator_id = 14;
|
|
222
|
+
*/
|
|
223
|
+
creatorId?: number;
|
|
224
|
+
/**
|
|
225
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 15;
|
|
226
|
+
*/
|
|
227
|
+
creator?: UserShort; // @gotags: alias:"creator"
|
|
228
|
+
/**
|
|
229
|
+
* @generated from protobuf field: string creator_job = 16;
|
|
230
|
+
*/
|
|
231
|
+
creatorJob: string;
|
|
232
|
+
/**
|
|
233
|
+
* @generated from protobuf field: optional resources.calendar.CalendarEntryRecurring recurring = 17;
|
|
234
|
+
*/
|
|
235
|
+
recurring?: CalendarEntryRecurring;
|
|
236
|
+
/**
|
|
237
|
+
* @generated from protobuf field: optional resources.calendar.CalendarEntryRSVP rsvp = 18;
|
|
238
|
+
*/
|
|
239
|
+
rsvp?: CalendarEntryRSVP;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated from protobuf message resources.calendar.CalendarEntryRecurring
|
|
243
|
+
*/
|
|
244
|
+
export interface CalendarEntryRecurring {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from protobuf field: string every = 1;
|
|
247
|
+
*/
|
|
248
|
+
every: string;
|
|
249
|
+
/**
|
|
250
|
+
* @generated from protobuf field: int32 count = 2;
|
|
251
|
+
*/
|
|
252
|
+
count: number;
|
|
253
|
+
/**
|
|
254
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp until = 3;
|
|
255
|
+
*/
|
|
256
|
+
until?: Timestamp;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @generated from protobuf message resources.calendar.CalendarEntryRSVP
|
|
260
|
+
*/
|
|
261
|
+
export interface CalendarEntryRSVP {
|
|
262
|
+
/**
|
|
263
|
+
* @generated from protobuf field: uint64 entry_id = 1 [jstype = JS_STRING];
|
|
264
|
+
*/
|
|
265
|
+
entryId: string;
|
|
266
|
+
/**
|
|
267
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
268
|
+
*/
|
|
269
|
+
createdAt?: Timestamp;
|
|
270
|
+
/**
|
|
271
|
+
* @generated from protobuf field: int32 user_id = 3;
|
|
272
|
+
*/
|
|
273
|
+
userId: number;
|
|
274
|
+
/**
|
|
275
|
+
* @generated from protobuf field: optional resources.users.UserShort user = 4;
|
|
276
|
+
*/
|
|
277
|
+
user?: UserShort;
|
|
278
|
+
/**
|
|
279
|
+
* @generated from protobuf field: resources.calendar.RsvpResponses response = 5;
|
|
280
|
+
*/
|
|
281
|
+
response: RsvpResponses;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @generated from protobuf enum resources.calendar.RsvpResponses
|
|
285
|
+
*/
|
|
286
|
+
export enum RsvpResponses {
|
|
287
|
+
/**
|
|
288
|
+
* @generated from protobuf enum value: RSVP_RESPONSES_UNSPECIFIED = 0;
|
|
289
|
+
*/
|
|
290
|
+
UNSPECIFIED = 0,
|
|
291
|
+
/**
|
|
292
|
+
* @generated from protobuf enum value: RSVP_RESPONSES_HIDDEN = 1;
|
|
293
|
+
*/
|
|
294
|
+
HIDDEN = 1,
|
|
295
|
+
/**
|
|
296
|
+
* @generated from protobuf enum value: RSVP_RESPONSES_INVITED = 2;
|
|
297
|
+
*/
|
|
298
|
+
INVITED = 2,
|
|
299
|
+
/**
|
|
300
|
+
* @generated from protobuf enum value: RSVP_RESPONSES_NO = 3;
|
|
301
|
+
*/
|
|
302
|
+
NO = 3,
|
|
303
|
+
/**
|
|
304
|
+
* @generated from protobuf enum value: RSVP_RESPONSES_MAYBE = 4;
|
|
305
|
+
*/
|
|
306
|
+
MAYBE = 4,
|
|
307
|
+
/**
|
|
308
|
+
* @generated from protobuf enum value: RSVP_RESPONSES_YES = 5;
|
|
309
|
+
*/
|
|
310
|
+
YES = 5
|
|
311
|
+
}
|
|
312
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
313
|
+
class Calendar$Type extends MessageType<Calendar> {
|
|
314
|
+
constructor() {
|
|
315
|
+
super("resources.calendar.Calendar", [
|
|
316
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
317
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
318
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
319
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
320
|
+
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
321
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "255" } } } },
|
|
322
|
+
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
323
|
+
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
324
|
+
{ no: 9, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
325
|
+
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } },
|
|
326
|
+
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
327
|
+
{ no: 12, name: "creator", kind: "message", T: () => UserShort },
|
|
328
|
+
{ no: 13, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
329
|
+
{ no: 14, name: "subscription", kind: "message", T: () => CalendarSub },
|
|
330
|
+
{ no: 15, name: "access", kind: "message", T: () => CalendarAccess }
|
|
331
|
+
]);
|
|
332
|
+
}
|
|
333
|
+
create(value?: PartialMessage<Calendar>): Calendar {
|
|
334
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
335
|
+
message.id = "0";
|
|
336
|
+
message.name = "";
|
|
337
|
+
message.public = false;
|
|
338
|
+
message.closed = false;
|
|
339
|
+
message.color = "";
|
|
340
|
+
message.creatorJob = "";
|
|
341
|
+
if (value !== undefined)
|
|
342
|
+
reflectionMergePartial<Calendar>(this, message, value);
|
|
343
|
+
return message;
|
|
344
|
+
}
|
|
345
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Calendar): Calendar {
|
|
346
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
347
|
+
while (reader.pos < end) {
|
|
348
|
+
let [fieldNo, wireType] = reader.tag();
|
|
349
|
+
switch (fieldNo) {
|
|
350
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
351
|
+
message.id = reader.uint64().toString();
|
|
352
|
+
break;
|
|
353
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
354
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
355
|
+
break;
|
|
356
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
357
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
358
|
+
break;
|
|
359
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
360
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
361
|
+
break;
|
|
362
|
+
case /* optional string job */ 5:
|
|
363
|
+
message.job = reader.string();
|
|
364
|
+
break;
|
|
365
|
+
case /* string name */ 6:
|
|
366
|
+
message.name = reader.string();
|
|
367
|
+
break;
|
|
368
|
+
case /* optional string description */ 7:
|
|
369
|
+
message.description = reader.string();
|
|
370
|
+
break;
|
|
371
|
+
case /* bool public */ 8:
|
|
372
|
+
message.public = reader.bool();
|
|
373
|
+
break;
|
|
374
|
+
case /* bool closed */ 9:
|
|
375
|
+
message.closed = reader.bool();
|
|
376
|
+
break;
|
|
377
|
+
case /* string color */ 10:
|
|
378
|
+
message.color = reader.string();
|
|
379
|
+
break;
|
|
380
|
+
case /* optional int32 creator_id */ 11:
|
|
381
|
+
message.creatorId = reader.int32();
|
|
382
|
+
break;
|
|
383
|
+
case /* optional resources.users.UserShort creator */ 12:
|
|
384
|
+
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
385
|
+
break;
|
|
386
|
+
case /* string creator_job */ 13:
|
|
387
|
+
message.creatorJob = reader.string();
|
|
388
|
+
break;
|
|
389
|
+
case /* optional resources.calendar.CalendarSub subscription */ 14:
|
|
390
|
+
message.subscription = CalendarSub.internalBinaryRead(reader, reader.uint32(), options, message.subscription);
|
|
391
|
+
break;
|
|
392
|
+
case /* resources.calendar.CalendarAccess access */ 15:
|
|
393
|
+
message.access = CalendarAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
394
|
+
break;
|
|
395
|
+
default:
|
|
396
|
+
let u = options.readUnknownField;
|
|
397
|
+
if (u === "throw")
|
|
398
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
399
|
+
let d = reader.skip(wireType);
|
|
400
|
+
if (u !== false)
|
|
401
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
return message;
|
|
405
|
+
}
|
|
406
|
+
internalBinaryWrite(message: Calendar, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
407
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
408
|
+
if (message.id !== "0")
|
|
409
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
410
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
411
|
+
if (message.createdAt)
|
|
412
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
413
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
414
|
+
if (message.updatedAt)
|
|
415
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
416
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
417
|
+
if (message.deletedAt)
|
|
418
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
419
|
+
/* optional string job = 5; */
|
|
420
|
+
if (message.job !== undefined)
|
|
421
|
+
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
422
|
+
/* string name = 6; */
|
|
423
|
+
if (message.name !== "")
|
|
424
|
+
writer.tag(6, WireType.LengthDelimited).string(message.name);
|
|
425
|
+
/* optional string description = 7; */
|
|
426
|
+
if (message.description !== undefined)
|
|
427
|
+
writer.tag(7, WireType.LengthDelimited).string(message.description);
|
|
428
|
+
/* bool public = 8; */
|
|
429
|
+
if (message.public !== false)
|
|
430
|
+
writer.tag(8, WireType.Varint).bool(message.public);
|
|
431
|
+
/* bool closed = 9; */
|
|
432
|
+
if (message.closed !== false)
|
|
433
|
+
writer.tag(9, WireType.Varint).bool(message.closed);
|
|
434
|
+
/* string color = 10; */
|
|
435
|
+
if (message.color !== "")
|
|
436
|
+
writer.tag(10, WireType.LengthDelimited).string(message.color);
|
|
437
|
+
/* optional int32 creator_id = 11; */
|
|
438
|
+
if (message.creatorId !== undefined)
|
|
439
|
+
writer.tag(11, WireType.Varint).int32(message.creatorId);
|
|
440
|
+
/* optional resources.users.UserShort creator = 12; */
|
|
441
|
+
if (message.creator)
|
|
442
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
443
|
+
/* string creator_job = 13; */
|
|
444
|
+
if (message.creatorJob !== "")
|
|
445
|
+
writer.tag(13, WireType.LengthDelimited).string(message.creatorJob);
|
|
446
|
+
/* optional resources.calendar.CalendarSub subscription = 14; */
|
|
447
|
+
if (message.subscription)
|
|
448
|
+
CalendarSub.internalBinaryWrite(message.subscription, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
449
|
+
/* resources.calendar.CalendarAccess access = 15; */
|
|
450
|
+
if (message.access)
|
|
451
|
+
CalendarAccess.internalBinaryWrite(message.access, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
452
|
+
let u = options.writeUnknownFields;
|
|
453
|
+
if (u !== false)
|
|
454
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
455
|
+
return writer;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @generated MessageType for protobuf message resources.calendar.Calendar
|
|
460
|
+
*/
|
|
461
|
+
export const Calendar = new Calendar$Type();
|
|
462
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
463
|
+
class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
464
|
+
constructor() {
|
|
465
|
+
super("resources.calendar.CalendarShort", [
|
|
466
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
467
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
468
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "255" } } } },
|
|
469
|
+
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
470
|
+
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
471
|
+
{ no: 9, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
472
|
+
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } },
|
|
473
|
+
{ no: 14, name: "subscription", kind: "message", T: () => CalendarSub }
|
|
474
|
+
]);
|
|
475
|
+
}
|
|
476
|
+
create(value?: PartialMessage<CalendarShort>): CalendarShort {
|
|
477
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
478
|
+
message.id = "0";
|
|
479
|
+
message.name = "";
|
|
480
|
+
message.public = false;
|
|
481
|
+
message.closed = false;
|
|
482
|
+
message.color = "";
|
|
483
|
+
if (value !== undefined)
|
|
484
|
+
reflectionMergePartial<CalendarShort>(this, message, value);
|
|
485
|
+
return message;
|
|
486
|
+
}
|
|
487
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarShort): CalendarShort {
|
|
488
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
489
|
+
while (reader.pos < end) {
|
|
490
|
+
let [fieldNo, wireType] = reader.tag();
|
|
491
|
+
switch (fieldNo) {
|
|
492
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
493
|
+
message.id = reader.uint64().toString();
|
|
494
|
+
break;
|
|
495
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
496
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
497
|
+
break;
|
|
498
|
+
case /* string name */ 6:
|
|
499
|
+
message.name = reader.string();
|
|
500
|
+
break;
|
|
501
|
+
case /* optional string description */ 7:
|
|
502
|
+
message.description = reader.string();
|
|
503
|
+
break;
|
|
504
|
+
case /* bool public */ 8:
|
|
505
|
+
message.public = reader.bool();
|
|
506
|
+
break;
|
|
507
|
+
case /* bool closed */ 9:
|
|
508
|
+
message.closed = reader.bool();
|
|
509
|
+
break;
|
|
510
|
+
case /* string color */ 10:
|
|
511
|
+
message.color = reader.string();
|
|
512
|
+
break;
|
|
513
|
+
case /* optional resources.calendar.CalendarSub subscription */ 14:
|
|
514
|
+
message.subscription = CalendarSub.internalBinaryRead(reader, reader.uint32(), options, message.subscription);
|
|
515
|
+
break;
|
|
516
|
+
default:
|
|
517
|
+
let u = options.readUnknownField;
|
|
518
|
+
if (u === "throw")
|
|
519
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
520
|
+
let d = reader.skip(wireType);
|
|
521
|
+
if (u !== false)
|
|
522
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return message;
|
|
526
|
+
}
|
|
527
|
+
internalBinaryWrite(message: CalendarShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
528
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
529
|
+
if (message.id !== "0")
|
|
530
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
531
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
532
|
+
if (message.createdAt)
|
|
533
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
534
|
+
/* string name = 6; */
|
|
535
|
+
if (message.name !== "")
|
|
536
|
+
writer.tag(6, WireType.LengthDelimited).string(message.name);
|
|
537
|
+
/* optional string description = 7; */
|
|
538
|
+
if (message.description !== undefined)
|
|
539
|
+
writer.tag(7, WireType.LengthDelimited).string(message.description);
|
|
540
|
+
/* bool public = 8; */
|
|
541
|
+
if (message.public !== false)
|
|
542
|
+
writer.tag(8, WireType.Varint).bool(message.public);
|
|
543
|
+
/* bool closed = 9; */
|
|
544
|
+
if (message.closed !== false)
|
|
545
|
+
writer.tag(9, WireType.Varint).bool(message.closed);
|
|
546
|
+
/* string color = 10; */
|
|
547
|
+
if (message.color !== "")
|
|
548
|
+
writer.tag(10, WireType.LengthDelimited).string(message.color);
|
|
549
|
+
/* optional resources.calendar.CalendarSub subscription = 14; */
|
|
550
|
+
if (message.subscription)
|
|
551
|
+
CalendarSub.internalBinaryWrite(message.subscription, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
552
|
+
let u = options.writeUnknownFields;
|
|
553
|
+
if (u !== false)
|
|
554
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
555
|
+
return writer;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @generated MessageType for protobuf message resources.calendar.CalendarShort
|
|
560
|
+
*/
|
|
561
|
+
export const CalendarShort = new CalendarShort$Type();
|
|
562
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
563
|
+
class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
564
|
+
constructor() {
|
|
565
|
+
super("resources.calendar.CalendarSub", [
|
|
566
|
+
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
567
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
568
|
+
{ no: 3, name: "user", kind: "message", T: () => UserShort },
|
|
569
|
+
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
570
|
+
{ no: 5, name: "confirmed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
571
|
+
{ no: 6, name: "muted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
572
|
+
]);
|
|
573
|
+
}
|
|
574
|
+
create(value?: PartialMessage<CalendarSub>): CalendarSub {
|
|
575
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
576
|
+
message.calendarId = "0";
|
|
577
|
+
message.userId = 0;
|
|
578
|
+
message.confirmed = false;
|
|
579
|
+
message.muted = false;
|
|
580
|
+
if (value !== undefined)
|
|
581
|
+
reflectionMergePartial<CalendarSub>(this, message, value);
|
|
582
|
+
return message;
|
|
583
|
+
}
|
|
584
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarSub): CalendarSub {
|
|
585
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
586
|
+
while (reader.pos < end) {
|
|
587
|
+
let [fieldNo, wireType] = reader.tag();
|
|
588
|
+
switch (fieldNo) {
|
|
589
|
+
case /* uint64 calendar_id = 1 [jstype = JS_STRING];*/ 1:
|
|
590
|
+
message.calendarId = reader.uint64().toString();
|
|
591
|
+
break;
|
|
592
|
+
case /* int32 user_id */ 2:
|
|
593
|
+
message.userId = reader.int32();
|
|
594
|
+
break;
|
|
595
|
+
case /* optional resources.users.UserShort user */ 3:
|
|
596
|
+
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
597
|
+
break;
|
|
598
|
+
case /* optional resources.timestamp.Timestamp created_at */ 4:
|
|
599
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
600
|
+
break;
|
|
601
|
+
case /* bool confirmed */ 5:
|
|
602
|
+
message.confirmed = reader.bool();
|
|
603
|
+
break;
|
|
604
|
+
case /* bool muted */ 6:
|
|
605
|
+
message.muted = reader.bool();
|
|
606
|
+
break;
|
|
607
|
+
default:
|
|
608
|
+
let u = options.readUnknownField;
|
|
609
|
+
if (u === "throw")
|
|
610
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
611
|
+
let d = reader.skip(wireType);
|
|
612
|
+
if (u !== false)
|
|
613
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return message;
|
|
617
|
+
}
|
|
618
|
+
internalBinaryWrite(message: CalendarSub, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
619
|
+
/* uint64 calendar_id = 1 [jstype = JS_STRING]; */
|
|
620
|
+
if (message.calendarId !== "0")
|
|
621
|
+
writer.tag(1, WireType.Varint).uint64(message.calendarId);
|
|
622
|
+
/* int32 user_id = 2; */
|
|
623
|
+
if (message.userId !== 0)
|
|
624
|
+
writer.tag(2, WireType.Varint).int32(message.userId);
|
|
625
|
+
/* optional resources.users.UserShort user = 3; */
|
|
626
|
+
if (message.user)
|
|
627
|
+
UserShort.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
628
|
+
/* optional resources.timestamp.Timestamp created_at = 4; */
|
|
629
|
+
if (message.createdAt)
|
|
630
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
631
|
+
/* bool confirmed = 5; */
|
|
632
|
+
if (message.confirmed !== false)
|
|
633
|
+
writer.tag(5, WireType.Varint).bool(message.confirmed);
|
|
634
|
+
/* bool muted = 6; */
|
|
635
|
+
if (message.muted !== false)
|
|
636
|
+
writer.tag(6, WireType.Varint).bool(message.muted);
|
|
637
|
+
let u = options.writeUnknownFields;
|
|
638
|
+
if (u !== false)
|
|
639
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
640
|
+
return writer;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @generated MessageType for protobuf message resources.calendar.CalendarSub
|
|
645
|
+
*/
|
|
646
|
+
export const CalendarSub = new CalendarSub$Type();
|
|
647
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
648
|
+
class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
649
|
+
constructor() {
|
|
650
|
+
super("resources.calendar.CalendarEntry", [
|
|
651
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
652
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
653
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
654
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
655
|
+
{ no: 5, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
656
|
+
{ no: 6, name: "calendar", kind: "message", T: () => Calendar },
|
|
657
|
+
{ no: 7, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
658
|
+
{ no: 8, name: "start_time", kind: "message", T: () => Timestamp },
|
|
659
|
+
{ no: 9, name: "end_time", kind: "message", T: () => Timestamp },
|
|
660
|
+
{ no: 10, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
661
|
+
{ no: 11, name: "content", kind: "message", T: () => Content },
|
|
662
|
+
{ no: 12, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
663
|
+
{ no: 13, name: "rsvp_open", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
664
|
+
{ no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
665
|
+
{ no: 15, name: "creator", kind: "message", T: () => UserShort },
|
|
666
|
+
{ no: 16, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
667
|
+
{ no: 17, name: "recurring", kind: "message", T: () => CalendarEntryRecurring },
|
|
668
|
+
{ no: 18, name: "rsvp", kind: "message", T: () => CalendarEntryRSVP }
|
|
669
|
+
]);
|
|
670
|
+
}
|
|
671
|
+
create(value?: PartialMessage<CalendarEntry>): CalendarEntry {
|
|
672
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
673
|
+
message.id = "0";
|
|
674
|
+
message.calendarId = "0";
|
|
675
|
+
message.title = "";
|
|
676
|
+
message.closed = false;
|
|
677
|
+
message.creatorJob = "";
|
|
678
|
+
if (value !== undefined)
|
|
679
|
+
reflectionMergePartial<CalendarEntry>(this, message, value);
|
|
680
|
+
return message;
|
|
681
|
+
}
|
|
682
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarEntry): CalendarEntry {
|
|
683
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
684
|
+
while (reader.pos < end) {
|
|
685
|
+
let [fieldNo, wireType] = reader.tag();
|
|
686
|
+
switch (fieldNo) {
|
|
687
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
688
|
+
message.id = reader.uint64().toString();
|
|
689
|
+
break;
|
|
690
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
691
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
692
|
+
break;
|
|
693
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
694
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
695
|
+
break;
|
|
696
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
697
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
698
|
+
break;
|
|
699
|
+
case /* uint64 calendar_id = 5 [jstype = JS_STRING];*/ 5:
|
|
700
|
+
message.calendarId = reader.uint64().toString();
|
|
701
|
+
break;
|
|
702
|
+
case /* optional resources.calendar.Calendar calendar */ 6:
|
|
703
|
+
message.calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
704
|
+
break;
|
|
705
|
+
case /* optional string job */ 7:
|
|
706
|
+
message.job = reader.string();
|
|
707
|
+
break;
|
|
708
|
+
case /* resources.timestamp.Timestamp start_time */ 8:
|
|
709
|
+
message.startTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startTime);
|
|
710
|
+
break;
|
|
711
|
+
case /* optional resources.timestamp.Timestamp end_time */ 9:
|
|
712
|
+
message.endTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.endTime);
|
|
713
|
+
break;
|
|
714
|
+
case /* string title */ 10:
|
|
715
|
+
message.title = reader.string();
|
|
716
|
+
break;
|
|
717
|
+
case /* resources.common.content.Content content */ 11:
|
|
718
|
+
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
719
|
+
break;
|
|
720
|
+
case /* bool closed */ 12:
|
|
721
|
+
message.closed = reader.bool();
|
|
722
|
+
break;
|
|
723
|
+
case /* optional bool rsvp_open */ 13:
|
|
724
|
+
message.rsvpOpen = reader.bool();
|
|
725
|
+
break;
|
|
726
|
+
case /* optional int32 creator_id */ 14:
|
|
727
|
+
message.creatorId = reader.int32();
|
|
728
|
+
break;
|
|
729
|
+
case /* optional resources.users.UserShort creator */ 15:
|
|
730
|
+
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
731
|
+
break;
|
|
732
|
+
case /* string creator_job */ 16:
|
|
733
|
+
message.creatorJob = reader.string();
|
|
734
|
+
break;
|
|
735
|
+
case /* optional resources.calendar.CalendarEntryRecurring recurring */ 17:
|
|
736
|
+
message.recurring = CalendarEntryRecurring.internalBinaryRead(reader, reader.uint32(), options, message.recurring);
|
|
737
|
+
break;
|
|
738
|
+
case /* optional resources.calendar.CalendarEntryRSVP rsvp */ 18:
|
|
739
|
+
message.rsvp = CalendarEntryRSVP.internalBinaryRead(reader, reader.uint32(), options, message.rsvp);
|
|
740
|
+
break;
|
|
741
|
+
default:
|
|
742
|
+
let u = options.readUnknownField;
|
|
743
|
+
if (u === "throw")
|
|
744
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
745
|
+
let d = reader.skip(wireType);
|
|
746
|
+
if (u !== false)
|
|
747
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return message;
|
|
751
|
+
}
|
|
752
|
+
internalBinaryWrite(message: CalendarEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
753
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
754
|
+
if (message.id !== "0")
|
|
755
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
756
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
757
|
+
if (message.createdAt)
|
|
758
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
759
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
760
|
+
if (message.updatedAt)
|
|
761
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
762
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
763
|
+
if (message.deletedAt)
|
|
764
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
765
|
+
/* uint64 calendar_id = 5 [jstype = JS_STRING]; */
|
|
766
|
+
if (message.calendarId !== "0")
|
|
767
|
+
writer.tag(5, WireType.Varint).uint64(message.calendarId);
|
|
768
|
+
/* optional resources.calendar.Calendar calendar = 6; */
|
|
769
|
+
if (message.calendar)
|
|
770
|
+
Calendar.internalBinaryWrite(message.calendar, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
771
|
+
/* optional string job = 7; */
|
|
772
|
+
if (message.job !== undefined)
|
|
773
|
+
writer.tag(7, WireType.LengthDelimited).string(message.job);
|
|
774
|
+
/* resources.timestamp.Timestamp start_time = 8; */
|
|
775
|
+
if (message.startTime)
|
|
776
|
+
Timestamp.internalBinaryWrite(message.startTime, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
777
|
+
/* optional resources.timestamp.Timestamp end_time = 9; */
|
|
778
|
+
if (message.endTime)
|
|
779
|
+
Timestamp.internalBinaryWrite(message.endTime, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
780
|
+
/* string title = 10; */
|
|
781
|
+
if (message.title !== "")
|
|
782
|
+
writer.tag(10, WireType.LengthDelimited).string(message.title);
|
|
783
|
+
/* resources.common.content.Content content = 11; */
|
|
784
|
+
if (message.content)
|
|
785
|
+
Content.internalBinaryWrite(message.content, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
786
|
+
/* bool closed = 12; */
|
|
787
|
+
if (message.closed !== false)
|
|
788
|
+
writer.tag(12, WireType.Varint).bool(message.closed);
|
|
789
|
+
/* optional bool rsvp_open = 13; */
|
|
790
|
+
if (message.rsvpOpen !== undefined)
|
|
791
|
+
writer.tag(13, WireType.Varint).bool(message.rsvpOpen);
|
|
792
|
+
/* optional int32 creator_id = 14; */
|
|
793
|
+
if (message.creatorId !== undefined)
|
|
794
|
+
writer.tag(14, WireType.Varint).int32(message.creatorId);
|
|
795
|
+
/* optional resources.users.UserShort creator = 15; */
|
|
796
|
+
if (message.creator)
|
|
797
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
798
|
+
/* string creator_job = 16; */
|
|
799
|
+
if (message.creatorJob !== "")
|
|
800
|
+
writer.tag(16, WireType.LengthDelimited).string(message.creatorJob);
|
|
801
|
+
/* optional resources.calendar.CalendarEntryRecurring recurring = 17; */
|
|
802
|
+
if (message.recurring)
|
|
803
|
+
CalendarEntryRecurring.internalBinaryWrite(message.recurring, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
804
|
+
/* optional resources.calendar.CalendarEntryRSVP rsvp = 18; */
|
|
805
|
+
if (message.rsvp)
|
|
806
|
+
CalendarEntryRSVP.internalBinaryWrite(message.rsvp, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
807
|
+
let u = options.writeUnknownFields;
|
|
808
|
+
if (u !== false)
|
|
809
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
810
|
+
return writer;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* @generated MessageType for protobuf message resources.calendar.CalendarEntry
|
|
815
|
+
*/
|
|
816
|
+
export const CalendarEntry = new CalendarEntry$Type();
|
|
817
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
818
|
+
class CalendarEntryRecurring$Type extends MessageType<CalendarEntryRecurring> {
|
|
819
|
+
constructor() {
|
|
820
|
+
super("resources.calendar.CalendarEntryRecurring", [
|
|
821
|
+
{ no: 1, name: "every", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
822
|
+
{ no: 2, name: "count", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
823
|
+
{ no: 3, name: "until", kind: "message", T: () => Timestamp }
|
|
824
|
+
]);
|
|
825
|
+
}
|
|
826
|
+
create(value?: PartialMessage<CalendarEntryRecurring>): CalendarEntryRecurring {
|
|
827
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
828
|
+
message.every = "";
|
|
829
|
+
message.count = 0;
|
|
830
|
+
if (value !== undefined)
|
|
831
|
+
reflectionMergePartial<CalendarEntryRecurring>(this, message, value);
|
|
832
|
+
return message;
|
|
833
|
+
}
|
|
834
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarEntryRecurring): CalendarEntryRecurring {
|
|
835
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
836
|
+
while (reader.pos < end) {
|
|
837
|
+
let [fieldNo, wireType] = reader.tag();
|
|
838
|
+
switch (fieldNo) {
|
|
839
|
+
case /* string every */ 1:
|
|
840
|
+
message.every = reader.string();
|
|
841
|
+
break;
|
|
842
|
+
case /* int32 count */ 2:
|
|
843
|
+
message.count = reader.int32();
|
|
844
|
+
break;
|
|
845
|
+
case /* optional resources.timestamp.Timestamp until */ 3:
|
|
846
|
+
message.until = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.until);
|
|
847
|
+
break;
|
|
848
|
+
default:
|
|
849
|
+
let u = options.readUnknownField;
|
|
850
|
+
if (u === "throw")
|
|
851
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
852
|
+
let d = reader.skip(wireType);
|
|
853
|
+
if (u !== false)
|
|
854
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
return message;
|
|
858
|
+
}
|
|
859
|
+
internalBinaryWrite(message: CalendarEntryRecurring, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
860
|
+
/* string every = 1; */
|
|
861
|
+
if (message.every !== "")
|
|
862
|
+
writer.tag(1, WireType.LengthDelimited).string(message.every);
|
|
863
|
+
/* int32 count = 2; */
|
|
864
|
+
if (message.count !== 0)
|
|
865
|
+
writer.tag(2, WireType.Varint).int32(message.count);
|
|
866
|
+
/* optional resources.timestamp.Timestamp until = 3; */
|
|
867
|
+
if (message.until)
|
|
868
|
+
Timestamp.internalBinaryWrite(message.until, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
869
|
+
let u = options.writeUnknownFields;
|
|
870
|
+
if (u !== false)
|
|
871
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
872
|
+
return writer;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* @generated MessageType for protobuf message resources.calendar.CalendarEntryRecurring
|
|
877
|
+
*/
|
|
878
|
+
export const CalendarEntryRecurring = new CalendarEntryRecurring$Type();
|
|
879
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
880
|
+
class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
881
|
+
constructor() {
|
|
882
|
+
super("resources.calendar.CalendarEntryRSVP", [
|
|
883
|
+
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
884
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
885
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
886
|
+
{ no: 4, name: "user", kind: "message", T: () => UserShort },
|
|
887
|
+
{ no: 5, name: "response", kind: "enum", T: () => ["resources.calendar.RsvpResponses", RsvpResponses, "RSVP_RESPONSES_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
888
|
+
]);
|
|
889
|
+
}
|
|
890
|
+
create(value?: PartialMessage<CalendarEntryRSVP>): CalendarEntryRSVP {
|
|
891
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
892
|
+
message.entryId = "0";
|
|
893
|
+
message.userId = 0;
|
|
894
|
+
message.response = 0;
|
|
895
|
+
if (value !== undefined)
|
|
896
|
+
reflectionMergePartial<CalendarEntryRSVP>(this, message, value);
|
|
897
|
+
return message;
|
|
898
|
+
}
|
|
899
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarEntryRSVP): CalendarEntryRSVP {
|
|
900
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
901
|
+
while (reader.pos < end) {
|
|
902
|
+
let [fieldNo, wireType] = reader.tag();
|
|
903
|
+
switch (fieldNo) {
|
|
904
|
+
case /* uint64 entry_id = 1 [jstype = JS_STRING];*/ 1:
|
|
905
|
+
message.entryId = reader.uint64().toString();
|
|
906
|
+
break;
|
|
907
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
908
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
909
|
+
break;
|
|
910
|
+
case /* int32 user_id */ 3:
|
|
911
|
+
message.userId = reader.int32();
|
|
912
|
+
break;
|
|
913
|
+
case /* optional resources.users.UserShort user */ 4:
|
|
914
|
+
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
915
|
+
break;
|
|
916
|
+
case /* resources.calendar.RsvpResponses response */ 5:
|
|
917
|
+
message.response = reader.int32();
|
|
918
|
+
break;
|
|
919
|
+
default:
|
|
920
|
+
let u = options.readUnknownField;
|
|
921
|
+
if (u === "throw")
|
|
922
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
923
|
+
let d = reader.skip(wireType);
|
|
924
|
+
if (u !== false)
|
|
925
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
return message;
|
|
929
|
+
}
|
|
930
|
+
internalBinaryWrite(message: CalendarEntryRSVP, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
931
|
+
/* uint64 entry_id = 1 [jstype = JS_STRING]; */
|
|
932
|
+
if (message.entryId !== "0")
|
|
933
|
+
writer.tag(1, WireType.Varint).uint64(message.entryId);
|
|
934
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
935
|
+
if (message.createdAt)
|
|
936
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
937
|
+
/* int32 user_id = 3; */
|
|
938
|
+
if (message.userId !== 0)
|
|
939
|
+
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
940
|
+
/* optional resources.users.UserShort user = 4; */
|
|
941
|
+
if (message.user)
|
|
942
|
+
UserShort.internalBinaryWrite(message.user, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
943
|
+
/* resources.calendar.RsvpResponses response = 5; */
|
|
944
|
+
if (message.response !== 0)
|
|
945
|
+
writer.tag(5, WireType.Varint).int32(message.response);
|
|
946
|
+
let u = options.writeUnknownFields;
|
|
947
|
+
if (u !== false)
|
|
948
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
949
|
+
return writer;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* @generated MessageType for protobuf message resources.calendar.CalendarEntryRSVP
|
|
954
|
+
*/
|
|
955
|
+
export const CalendarEntryRSVP = new CalendarEntryRSVP$Type();
|