@fivenet-app/gen 2025.5.3 → 2026.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/calendar/calendar.proto" (package "resources.calendar", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -10,78 +11,71 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { UserShort } from "../users/users";
|
|
14
|
+
import { CalendarAccess } from "./access/access";
|
|
15
|
+
import { UserShort } from "../users/short/user";
|
|
16
16
|
import { Timestamp } from "../timestamp/timestamp";
|
|
17
17
|
/**
|
|
18
18
|
* @generated from protobuf message resources.calendar.Calendar
|
|
19
19
|
*/
|
|
20
20
|
export interface Calendar {
|
|
21
21
|
/**
|
|
22
|
-
* @generated from protobuf field:
|
|
22
|
+
* @generated from protobuf field: int64 id = 1
|
|
23
23
|
*/
|
|
24
|
-
id: number;
|
|
24
|
+
id: number;
|
|
25
25
|
/**
|
|
26
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
26
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
27
27
|
*/
|
|
28
28
|
createdAt?: Timestamp;
|
|
29
29
|
/**
|
|
30
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
30
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
31
31
|
*/
|
|
32
32
|
updatedAt?: Timestamp;
|
|
33
33
|
/**
|
|
34
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
|
|
34
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
|
|
35
35
|
*/
|
|
36
36
|
deletedAt?: Timestamp;
|
|
37
37
|
/**
|
|
38
|
-
* @generated from protobuf field: optional string job = 5
|
|
38
|
+
* @generated from protobuf field: optional string job = 5
|
|
39
39
|
*/
|
|
40
40
|
job?: string;
|
|
41
41
|
/**
|
|
42
|
-
* @
|
|
43
|
-
*
|
|
44
|
-
* @generated from protobuf field: string name = 6;
|
|
42
|
+
* @generated from protobuf field: string name = 6
|
|
45
43
|
*/
|
|
46
44
|
name: string;
|
|
47
45
|
/**
|
|
48
|
-
* @
|
|
49
|
-
*
|
|
50
|
-
* @generated from protobuf field: optional string description = 7;
|
|
46
|
+
* @generated from protobuf field: optional string description = 7
|
|
51
47
|
*/
|
|
52
48
|
description?: string;
|
|
53
49
|
/**
|
|
54
|
-
* @generated from protobuf field: bool public = 8
|
|
50
|
+
* @generated from protobuf field: bool public = 8
|
|
55
51
|
*/
|
|
56
52
|
public: boolean;
|
|
57
53
|
/**
|
|
58
|
-
* @generated from protobuf field: bool closed = 9
|
|
54
|
+
* @generated from protobuf field: bool closed = 9
|
|
59
55
|
*/
|
|
60
56
|
closed: boolean;
|
|
61
57
|
/**
|
|
62
|
-
* @
|
|
63
|
-
*
|
|
64
|
-
* @generated from protobuf field: string color = 10;
|
|
58
|
+
* @generated from protobuf field: string color = 10
|
|
65
59
|
*/
|
|
66
60
|
color: string;
|
|
67
61
|
/**
|
|
68
|
-
* @generated from protobuf field: optional int32 creator_id = 11
|
|
62
|
+
* @generated from protobuf field: optional int32 creator_id = 11
|
|
69
63
|
*/
|
|
70
64
|
creatorId?: number;
|
|
71
65
|
/**
|
|
72
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 12
|
|
66
|
+
* @generated from protobuf field: optional resources.users.short.UserShort creator = 12
|
|
73
67
|
*/
|
|
74
|
-
creator?: UserShort;
|
|
68
|
+
creator?: UserShort;
|
|
75
69
|
/**
|
|
76
|
-
* @generated from protobuf field: string creator_job = 13
|
|
70
|
+
* @generated from protobuf field: string creator_job = 13
|
|
77
71
|
*/
|
|
78
72
|
creatorJob: string;
|
|
79
73
|
/**
|
|
80
|
-
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
74
|
+
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
81
75
|
*/
|
|
82
76
|
subscription?: CalendarSub;
|
|
83
77
|
/**
|
|
84
|
-
* @generated from protobuf field: resources.calendar.CalendarAccess access = 15
|
|
78
|
+
* @generated from protobuf field: resources.calendar.access.CalendarAccess access = 15
|
|
85
79
|
*/
|
|
86
80
|
access?: CalendarAccess;
|
|
87
81
|
}
|
|
@@ -90,41 +84,39 @@ export interface Calendar {
|
|
|
90
84
|
*/
|
|
91
85
|
export interface CalendarShort {
|
|
92
86
|
/**
|
|
93
|
-
* @generated from protobuf field:
|
|
87
|
+
* @generated from protobuf field: int64 id = 1
|
|
94
88
|
*/
|
|
95
|
-
id: number;
|
|
89
|
+
id: number;
|
|
96
90
|
/**
|
|
97
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
91
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
98
92
|
*/
|
|
99
93
|
createdAt?: Timestamp;
|
|
100
94
|
/**
|
|
101
|
-
* @
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
* @generated from protobuf field: optional string job = 5
|
|
96
|
+
*/
|
|
97
|
+
job?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: string name = 6
|
|
104
100
|
*/
|
|
105
101
|
name: string;
|
|
106
102
|
/**
|
|
107
|
-
* @
|
|
108
|
-
*
|
|
109
|
-
* @generated from protobuf field: optional string description = 7;
|
|
103
|
+
* @generated from protobuf field: optional string description = 7
|
|
110
104
|
*/
|
|
111
105
|
description?: string;
|
|
112
106
|
/**
|
|
113
|
-
* @generated from protobuf field: bool public = 8
|
|
107
|
+
* @generated from protobuf field: bool public = 8
|
|
114
108
|
*/
|
|
115
109
|
public: boolean;
|
|
116
110
|
/**
|
|
117
|
-
* @generated from protobuf field: bool closed = 9
|
|
111
|
+
* @generated from protobuf field: bool closed = 9
|
|
118
112
|
*/
|
|
119
113
|
closed: boolean;
|
|
120
114
|
/**
|
|
121
|
-
* @
|
|
122
|
-
*
|
|
123
|
-
* @generated from protobuf field: string color = 10;
|
|
115
|
+
* @generated from protobuf field: string color = 10
|
|
124
116
|
*/
|
|
125
117
|
color: string;
|
|
126
118
|
/**
|
|
127
|
-
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
119
|
+
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
128
120
|
*/
|
|
129
121
|
subscription?: CalendarSub;
|
|
130
122
|
}
|
|
@@ -133,201 +125,47 @@ export interface CalendarShort {
|
|
|
133
125
|
*/
|
|
134
126
|
export interface CalendarSub {
|
|
135
127
|
/**
|
|
136
|
-
* @generated from protobuf field:
|
|
128
|
+
* @generated from protobuf field: int64 calendar_id = 1
|
|
137
129
|
*/
|
|
138
130
|
calendarId: number;
|
|
139
131
|
/**
|
|
140
|
-
* @generated from protobuf field: int32 user_id = 2
|
|
132
|
+
* @generated from protobuf field: int32 user_id = 2
|
|
141
133
|
*/
|
|
142
134
|
userId: number;
|
|
143
135
|
/**
|
|
144
|
-
* @generated from protobuf field: optional resources.users.UserShort user = 3
|
|
136
|
+
* @generated from protobuf field: optional resources.users.short.UserShort user = 3
|
|
145
137
|
*/
|
|
146
138
|
user?: UserShort;
|
|
147
139
|
/**
|
|
148
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
|
|
140
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
|
|
149
141
|
*/
|
|
150
142
|
createdAt?: Timestamp;
|
|
151
143
|
/**
|
|
152
|
-
* @generated from protobuf field: bool confirmed = 5
|
|
144
|
+
* @generated from protobuf field: bool confirmed = 5
|
|
153
145
|
*/
|
|
154
146
|
confirmed: boolean;
|
|
155
147
|
/**
|
|
156
|
-
* @generated from protobuf field: bool muted = 6
|
|
148
|
+
* @generated from protobuf field: bool muted = 6
|
|
157
149
|
*/
|
|
158
150
|
muted: boolean;
|
|
159
151
|
}
|
|
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;
|
|
168
|
-
*/
|
|
169
|
-
id: number; // @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;
|
|
184
|
-
*/
|
|
185
|
-
calendarId: number;
|
|
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
|
-
* @dbscanner: json
|
|
243
|
-
*
|
|
244
|
-
* @generated from protobuf message resources.calendar.CalendarEntryRecurring
|
|
245
|
-
*/
|
|
246
|
-
export interface CalendarEntryRecurring {
|
|
247
|
-
/**
|
|
248
|
-
* @generated from protobuf field: string every = 1;
|
|
249
|
-
*/
|
|
250
|
-
every: string;
|
|
251
|
-
/**
|
|
252
|
-
* @generated from protobuf field: int32 count = 2;
|
|
253
|
-
*/
|
|
254
|
-
count: number;
|
|
255
|
-
/**
|
|
256
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp until = 3;
|
|
257
|
-
*/
|
|
258
|
-
until?: Timestamp;
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* @generated from protobuf message resources.calendar.CalendarEntryRSVP
|
|
262
|
-
*/
|
|
263
|
-
export interface CalendarEntryRSVP {
|
|
264
|
-
/**
|
|
265
|
-
* @generated from protobuf field: uint64 entry_id = 1;
|
|
266
|
-
*/
|
|
267
|
-
entryId: number;
|
|
268
|
-
/**
|
|
269
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
270
|
-
*/
|
|
271
|
-
createdAt?: Timestamp;
|
|
272
|
-
/**
|
|
273
|
-
* @generated from protobuf field: int32 user_id = 3;
|
|
274
|
-
*/
|
|
275
|
-
userId: number;
|
|
276
|
-
/**
|
|
277
|
-
* @generated from protobuf field: optional resources.users.UserShort user = 4;
|
|
278
|
-
*/
|
|
279
|
-
user?: UserShort;
|
|
280
|
-
/**
|
|
281
|
-
* @generated from protobuf field: resources.calendar.RsvpResponses response = 5;
|
|
282
|
-
*/
|
|
283
|
-
response: RsvpResponses;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* @generated from protobuf enum resources.calendar.RsvpResponses
|
|
287
|
-
*/
|
|
288
|
-
export enum RsvpResponses {
|
|
289
|
-
/**
|
|
290
|
-
* @generated from protobuf enum value: RSVP_RESPONSES_UNSPECIFIED = 0;
|
|
291
|
-
*/
|
|
292
|
-
UNSPECIFIED = 0,
|
|
293
|
-
/**
|
|
294
|
-
* @generated from protobuf enum value: RSVP_RESPONSES_HIDDEN = 1;
|
|
295
|
-
*/
|
|
296
|
-
HIDDEN = 1,
|
|
297
|
-
/**
|
|
298
|
-
* @generated from protobuf enum value: RSVP_RESPONSES_INVITED = 2;
|
|
299
|
-
*/
|
|
300
|
-
INVITED = 2,
|
|
301
|
-
/**
|
|
302
|
-
* @generated from protobuf enum value: RSVP_RESPONSES_NO = 3;
|
|
303
|
-
*/
|
|
304
|
-
NO = 3,
|
|
305
|
-
/**
|
|
306
|
-
* @generated from protobuf enum value: RSVP_RESPONSES_MAYBE = 4;
|
|
307
|
-
*/
|
|
308
|
-
MAYBE = 4,
|
|
309
|
-
/**
|
|
310
|
-
* @generated from protobuf enum value: RSVP_RESPONSES_YES = 5;
|
|
311
|
-
*/
|
|
312
|
-
YES = 5
|
|
313
|
-
}
|
|
314
152
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
315
153
|
class Calendar$Type extends MessageType<Calendar> {
|
|
316
154
|
constructor() {
|
|
317
155
|
super("resources.calendar.Calendar", [
|
|
318
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
156
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
319
157
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
320
158
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
321
159
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
322
|
-
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
323
|
-
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
324
|
-
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
160
|
+
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
161
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
162
|
+
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
325
163
|
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
326
164
|
{ no: 9, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
327
|
-
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
328
|
-
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
329
|
-
{ no: 12, name: "creator", kind: "message", T: () => UserShort },
|
|
330
|
-
{ no: 13, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
165
|
+
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
166
|
+
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
167
|
+
{ no: 12, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
168
|
+
{ no: 13, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
331
169
|
{ no: 14, name: "subscription", kind: "message", T: () => CalendarSub },
|
|
332
170
|
{ no: 15, name: "access", kind: "message", T: () => CalendarAccess }
|
|
333
171
|
]);
|
|
@@ -349,8 +187,8 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
349
187
|
while (reader.pos < end) {
|
|
350
188
|
let [fieldNo, wireType] = reader.tag();
|
|
351
189
|
switch (fieldNo) {
|
|
352
|
-
case /*
|
|
353
|
-
message.id = reader.
|
|
190
|
+
case /* int64 id */ 1:
|
|
191
|
+
message.id = reader.int64().toNumber();
|
|
354
192
|
break;
|
|
355
193
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
356
194
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -382,7 +220,7 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
382
220
|
case /* optional int32 creator_id */ 11:
|
|
383
221
|
message.creatorId = reader.int32();
|
|
384
222
|
break;
|
|
385
|
-
case /* optional resources.users.UserShort creator */ 12:
|
|
223
|
+
case /* optional resources.users.short.UserShort creator */ 12:
|
|
386
224
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
387
225
|
break;
|
|
388
226
|
case /* string creator_job */ 13:
|
|
@@ -391,7 +229,7 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
391
229
|
case /* optional resources.calendar.CalendarSub subscription */ 14:
|
|
392
230
|
message.subscription = CalendarSub.internalBinaryRead(reader, reader.uint32(), options, message.subscription);
|
|
393
231
|
break;
|
|
394
|
-
case /* resources.calendar.CalendarAccess access */ 15:
|
|
232
|
+
case /* resources.calendar.access.CalendarAccess access */ 15:
|
|
395
233
|
message.access = CalendarAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
396
234
|
break;
|
|
397
235
|
default:
|
|
@@ -406,9 +244,9 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
406
244
|
return message;
|
|
407
245
|
}
|
|
408
246
|
internalBinaryWrite(message: Calendar, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
409
|
-
/*
|
|
247
|
+
/* int64 id = 1; */
|
|
410
248
|
if (message.id !== 0)
|
|
411
|
-
writer.tag(1, WireType.Varint).
|
|
249
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
412
250
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
413
251
|
if (message.createdAt)
|
|
414
252
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -439,7 +277,7 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
439
277
|
/* optional int32 creator_id = 11; */
|
|
440
278
|
if (message.creatorId !== undefined)
|
|
441
279
|
writer.tag(11, WireType.Varint).int32(message.creatorId);
|
|
442
|
-
/* optional resources.users.UserShort creator = 12; */
|
|
280
|
+
/* optional resources.users.short.UserShort creator = 12; */
|
|
443
281
|
if (message.creator)
|
|
444
282
|
UserShort.internalBinaryWrite(message.creator, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
445
283
|
/* string creator_job = 13; */
|
|
@@ -448,7 +286,7 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
448
286
|
/* optional resources.calendar.CalendarSub subscription = 14; */
|
|
449
287
|
if (message.subscription)
|
|
450
288
|
CalendarSub.internalBinaryWrite(message.subscription, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
451
|
-
/* resources.calendar.CalendarAccess access = 15; */
|
|
289
|
+
/* resources.calendar.access.CalendarAccess access = 15; */
|
|
452
290
|
if (message.access)
|
|
453
291
|
CalendarAccess.internalBinaryWrite(message.access, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
454
292
|
let u = options.writeUnknownFields;
|
|
@@ -465,13 +303,14 @@ export const Calendar = new Calendar$Type();
|
|
|
465
303
|
class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
466
304
|
constructor() {
|
|
467
305
|
super("resources.calendar.CalendarShort", [
|
|
468
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
306
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
469
307
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
470
|
-
{ no:
|
|
471
|
-
{ no:
|
|
308
|
+
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
309
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
310
|
+
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
472
311
|
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
473
312
|
{ no: 9, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
474
|
-
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
313
|
+
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
475
314
|
{ no: 14, name: "subscription", kind: "message", T: () => CalendarSub }
|
|
476
315
|
]);
|
|
477
316
|
}
|
|
@@ -491,12 +330,15 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
491
330
|
while (reader.pos < end) {
|
|
492
331
|
let [fieldNo, wireType] = reader.tag();
|
|
493
332
|
switch (fieldNo) {
|
|
494
|
-
case /*
|
|
495
|
-
message.id = reader.
|
|
333
|
+
case /* int64 id */ 1:
|
|
334
|
+
message.id = reader.int64().toNumber();
|
|
496
335
|
break;
|
|
497
336
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
498
337
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
499
338
|
break;
|
|
339
|
+
case /* optional string job */ 5:
|
|
340
|
+
message.job = reader.string();
|
|
341
|
+
break;
|
|
500
342
|
case /* string name */ 6:
|
|
501
343
|
message.name = reader.string();
|
|
502
344
|
break;
|
|
@@ -527,12 +369,15 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
527
369
|
return message;
|
|
528
370
|
}
|
|
529
371
|
internalBinaryWrite(message: CalendarShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
530
|
-
/*
|
|
372
|
+
/* int64 id = 1; */
|
|
531
373
|
if (message.id !== 0)
|
|
532
|
-
writer.tag(1, WireType.Varint).
|
|
374
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
533
375
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
534
376
|
if (message.createdAt)
|
|
535
377
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
378
|
+
/* optional string job = 5; */
|
|
379
|
+
if (message.job !== undefined)
|
|
380
|
+
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
536
381
|
/* string name = 6; */
|
|
537
382
|
if (message.name !== "")
|
|
538
383
|
writer.tag(6, WireType.LengthDelimited).string(message.name);
|
|
@@ -565,8 +410,8 @@ export const CalendarShort = new CalendarShort$Type();
|
|
|
565
410
|
class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
566
411
|
constructor() {
|
|
567
412
|
super("resources.calendar.CalendarSub", [
|
|
568
|
-
{ no: 1, name: "calendar_id", kind: "scalar", T:
|
|
569
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
413
|
+
{ no: 1, name: "calendar_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
414
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
570
415
|
{ no: 3, name: "user", kind: "message", T: () => UserShort },
|
|
571
416
|
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
572
417
|
{ no: 5, name: "confirmed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
@@ -588,13 +433,13 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
588
433
|
while (reader.pos < end) {
|
|
589
434
|
let [fieldNo, wireType] = reader.tag();
|
|
590
435
|
switch (fieldNo) {
|
|
591
|
-
case /*
|
|
592
|
-
message.calendarId = reader.
|
|
436
|
+
case /* int64 calendar_id */ 1:
|
|
437
|
+
message.calendarId = reader.int64().toNumber();
|
|
593
438
|
break;
|
|
594
439
|
case /* int32 user_id */ 2:
|
|
595
440
|
message.userId = reader.int32();
|
|
596
441
|
break;
|
|
597
|
-
case /* optional resources.users.UserShort user */ 3:
|
|
442
|
+
case /* optional resources.users.short.UserShort user */ 3:
|
|
598
443
|
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
599
444
|
break;
|
|
600
445
|
case /* optional resources.timestamp.Timestamp created_at */ 4:
|
|
@@ -618,13 +463,13 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
618
463
|
return message;
|
|
619
464
|
}
|
|
620
465
|
internalBinaryWrite(message: CalendarSub, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
621
|
-
/*
|
|
466
|
+
/* int64 calendar_id = 1; */
|
|
622
467
|
if (message.calendarId !== 0)
|
|
623
|
-
writer.tag(1, WireType.Varint).
|
|
468
|
+
writer.tag(1, WireType.Varint).int64(message.calendarId);
|
|
624
469
|
/* int32 user_id = 2; */
|
|
625
470
|
if (message.userId !== 0)
|
|
626
471
|
writer.tag(2, WireType.Varint).int32(message.userId);
|
|
627
|
-
/* optional resources.users.UserShort user = 3; */
|
|
472
|
+
/* optional resources.users.short.UserShort user = 3; */
|
|
628
473
|
if (message.user)
|
|
629
474
|
UserShort.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
630
475
|
/* optional resources.timestamp.Timestamp created_at = 4; */
|
|
@@ -646,312 +491,3 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
646
491
|
* @generated MessageType for protobuf message resources.calendar.CalendarSub
|
|
647
492
|
*/
|
|
648
493
|
export const CalendarSub = new CalendarSub$Type();
|
|
649
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
650
|
-
class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
651
|
-
constructor() {
|
|
652
|
-
super("resources.calendar.CalendarEntry", [
|
|
653
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
654
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
655
|
-
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
656
|
-
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
657
|
-
{ no: 5, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
658
|
-
{ no: 6, name: "calendar", kind: "message", T: () => Calendar },
|
|
659
|
-
{ no: 7, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
660
|
-
{ no: 8, name: "start_time", kind: "message", T: () => Timestamp },
|
|
661
|
-
{ no: 9, name: "end_time", kind: "message", T: () => Timestamp },
|
|
662
|
-
{ no: 10, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
663
|
-
{ no: 11, name: "content", kind: "message", T: () => Content },
|
|
664
|
-
{ no: 12, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
665
|
-
{ no: 13, name: "rsvp_open", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
666
|
-
{ no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
667
|
-
{ no: 15, name: "creator", kind: "message", T: () => UserShort },
|
|
668
|
-
{ no: 16, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
669
|
-
{ no: 17, name: "recurring", kind: "message", T: () => CalendarEntryRecurring },
|
|
670
|
-
{ no: 18, name: "rsvp", kind: "message", T: () => CalendarEntryRSVP }
|
|
671
|
-
]);
|
|
672
|
-
}
|
|
673
|
-
create(value?: PartialMessage<CalendarEntry>): CalendarEntry {
|
|
674
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
675
|
-
message.id = 0;
|
|
676
|
-
message.calendarId = 0;
|
|
677
|
-
message.title = "";
|
|
678
|
-
message.closed = false;
|
|
679
|
-
message.creatorJob = "";
|
|
680
|
-
if (value !== undefined)
|
|
681
|
-
reflectionMergePartial<CalendarEntry>(this, message, value);
|
|
682
|
-
return message;
|
|
683
|
-
}
|
|
684
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarEntry): CalendarEntry {
|
|
685
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
686
|
-
while (reader.pos < end) {
|
|
687
|
-
let [fieldNo, wireType] = reader.tag();
|
|
688
|
-
switch (fieldNo) {
|
|
689
|
-
case /* uint64 id */ 1:
|
|
690
|
-
message.id = reader.uint64().toNumber();
|
|
691
|
-
break;
|
|
692
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
693
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
694
|
-
break;
|
|
695
|
-
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
696
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
697
|
-
break;
|
|
698
|
-
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
699
|
-
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
700
|
-
break;
|
|
701
|
-
case /* uint64 calendar_id */ 5:
|
|
702
|
-
message.calendarId = reader.uint64().toNumber();
|
|
703
|
-
break;
|
|
704
|
-
case /* optional resources.calendar.Calendar calendar */ 6:
|
|
705
|
-
message.calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
706
|
-
break;
|
|
707
|
-
case /* optional string job */ 7:
|
|
708
|
-
message.job = reader.string();
|
|
709
|
-
break;
|
|
710
|
-
case /* resources.timestamp.Timestamp start_time */ 8:
|
|
711
|
-
message.startTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startTime);
|
|
712
|
-
break;
|
|
713
|
-
case /* optional resources.timestamp.Timestamp end_time */ 9:
|
|
714
|
-
message.endTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.endTime);
|
|
715
|
-
break;
|
|
716
|
-
case /* string title */ 10:
|
|
717
|
-
message.title = reader.string();
|
|
718
|
-
break;
|
|
719
|
-
case /* resources.common.content.Content content */ 11:
|
|
720
|
-
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
721
|
-
break;
|
|
722
|
-
case /* bool closed */ 12:
|
|
723
|
-
message.closed = reader.bool();
|
|
724
|
-
break;
|
|
725
|
-
case /* optional bool rsvp_open */ 13:
|
|
726
|
-
message.rsvpOpen = reader.bool();
|
|
727
|
-
break;
|
|
728
|
-
case /* optional int32 creator_id */ 14:
|
|
729
|
-
message.creatorId = reader.int32();
|
|
730
|
-
break;
|
|
731
|
-
case /* optional resources.users.UserShort creator */ 15:
|
|
732
|
-
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
733
|
-
break;
|
|
734
|
-
case /* string creator_job */ 16:
|
|
735
|
-
message.creatorJob = reader.string();
|
|
736
|
-
break;
|
|
737
|
-
case /* optional resources.calendar.CalendarEntryRecurring recurring */ 17:
|
|
738
|
-
message.recurring = CalendarEntryRecurring.internalBinaryRead(reader, reader.uint32(), options, message.recurring);
|
|
739
|
-
break;
|
|
740
|
-
case /* optional resources.calendar.CalendarEntryRSVP rsvp */ 18:
|
|
741
|
-
message.rsvp = CalendarEntryRSVP.internalBinaryRead(reader, reader.uint32(), options, message.rsvp);
|
|
742
|
-
break;
|
|
743
|
-
default:
|
|
744
|
-
let u = options.readUnknownField;
|
|
745
|
-
if (u === "throw")
|
|
746
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
747
|
-
let d = reader.skip(wireType);
|
|
748
|
-
if (u !== false)
|
|
749
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
return message;
|
|
753
|
-
}
|
|
754
|
-
internalBinaryWrite(message: CalendarEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
755
|
-
/* uint64 id = 1; */
|
|
756
|
-
if (message.id !== 0)
|
|
757
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
758
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
759
|
-
if (message.createdAt)
|
|
760
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
761
|
-
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
762
|
-
if (message.updatedAt)
|
|
763
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
764
|
-
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
765
|
-
if (message.deletedAt)
|
|
766
|
-
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
767
|
-
/* uint64 calendar_id = 5; */
|
|
768
|
-
if (message.calendarId !== 0)
|
|
769
|
-
writer.tag(5, WireType.Varint).uint64(message.calendarId);
|
|
770
|
-
/* optional resources.calendar.Calendar calendar = 6; */
|
|
771
|
-
if (message.calendar)
|
|
772
|
-
Calendar.internalBinaryWrite(message.calendar, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
773
|
-
/* optional string job = 7; */
|
|
774
|
-
if (message.job !== undefined)
|
|
775
|
-
writer.tag(7, WireType.LengthDelimited).string(message.job);
|
|
776
|
-
/* resources.timestamp.Timestamp start_time = 8; */
|
|
777
|
-
if (message.startTime)
|
|
778
|
-
Timestamp.internalBinaryWrite(message.startTime, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
779
|
-
/* optional resources.timestamp.Timestamp end_time = 9; */
|
|
780
|
-
if (message.endTime)
|
|
781
|
-
Timestamp.internalBinaryWrite(message.endTime, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
782
|
-
/* string title = 10; */
|
|
783
|
-
if (message.title !== "")
|
|
784
|
-
writer.tag(10, WireType.LengthDelimited).string(message.title);
|
|
785
|
-
/* resources.common.content.Content content = 11; */
|
|
786
|
-
if (message.content)
|
|
787
|
-
Content.internalBinaryWrite(message.content, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
788
|
-
/* bool closed = 12; */
|
|
789
|
-
if (message.closed !== false)
|
|
790
|
-
writer.tag(12, WireType.Varint).bool(message.closed);
|
|
791
|
-
/* optional bool rsvp_open = 13; */
|
|
792
|
-
if (message.rsvpOpen !== undefined)
|
|
793
|
-
writer.tag(13, WireType.Varint).bool(message.rsvpOpen);
|
|
794
|
-
/* optional int32 creator_id = 14; */
|
|
795
|
-
if (message.creatorId !== undefined)
|
|
796
|
-
writer.tag(14, WireType.Varint).int32(message.creatorId);
|
|
797
|
-
/* optional resources.users.UserShort creator = 15; */
|
|
798
|
-
if (message.creator)
|
|
799
|
-
UserShort.internalBinaryWrite(message.creator, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
800
|
-
/* string creator_job = 16; */
|
|
801
|
-
if (message.creatorJob !== "")
|
|
802
|
-
writer.tag(16, WireType.LengthDelimited).string(message.creatorJob);
|
|
803
|
-
/* optional resources.calendar.CalendarEntryRecurring recurring = 17; */
|
|
804
|
-
if (message.recurring)
|
|
805
|
-
CalendarEntryRecurring.internalBinaryWrite(message.recurring, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
806
|
-
/* optional resources.calendar.CalendarEntryRSVP rsvp = 18; */
|
|
807
|
-
if (message.rsvp)
|
|
808
|
-
CalendarEntryRSVP.internalBinaryWrite(message.rsvp, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
809
|
-
let u = options.writeUnknownFields;
|
|
810
|
-
if (u !== false)
|
|
811
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
812
|
-
return writer;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* @generated MessageType for protobuf message resources.calendar.CalendarEntry
|
|
817
|
-
*/
|
|
818
|
-
export const CalendarEntry = new CalendarEntry$Type();
|
|
819
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
820
|
-
class CalendarEntryRecurring$Type extends MessageType<CalendarEntryRecurring> {
|
|
821
|
-
constructor() {
|
|
822
|
-
super("resources.calendar.CalendarEntryRecurring", [
|
|
823
|
-
{ no: 1, name: "every", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
824
|
-
{ no: 2, name: "count", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
825
|
-
{ no: 3, name: "until", kind: "message", T: () => Timestamp }
|
|
826
|
-
]);
|
|
827
|
-
}
|
|
828
|
-
create(value?: PartialMessage<CalendarEntryRecurring>): CalendarEntryRecurring {
|
|
829
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
830
|
-
message.every = "";
|
|
831
|
-
message.count = 0;
|
|
832
|
-
if (value !== undefined)
|
|
833
|
-
reflectionMergePartial<CalendarEntryRecurring>(this, message, value);
|
|
834
|
-
return message;
|
|
835
|
-
}
|
|
836
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarEntryRecurring): CalendarEntryRecurring {
|
|
837
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
838
|
-
while (reader.pos < end) {
|
|
839
|
-
let [fieldNo, wireType] = reader.tag();
|
|
840
|
-
switch (fieldNo) {
|
|
841
|
-
case /* string every */ 1:
|
|
842
|
-
message.every = reader.string();
|
|
843
|
-
break;
|
|
844
|
-
case /* int32 count */ 2:
|
|
845
|
-
message.count = reader.int32();
|
|
846
|
-
break;
|
|
847
|
-
case /* optional resources.timestamp.Timestamp until */ 3:
|
|
848
|
-
message.until = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.until);
|
|
849
|
-
break;
|
|
850
|
-
default:
|
|
851
|
-
let u = options.readUnknownField;
|
|
852
|
-
if (u === "throw")
|
|
853
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
854
|
-
let d = reader.skip(wireType);
|
|
855
|
-
if (u !== false)
|
|
856
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
return message;
|
|
860
|
-
}
|
|
861
|
-
internalBinaryWrite(message: CalendarEntryRecurring, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
862
|
-
/* string every = 1; */
|
|
863
|
-
if (message.every !== "")
|
|
864
|
-
writer.tag(1, WireType.LengthDelimited).string(message.every);
|
|
865
|
-
/* int32 count = 2; */
|
|
866
|
-
if (message.count !== 0)
|
|
867
|
-
writer.tag(2, WireType.Varint).int32(message.count);
|
|
868
|
-
/* optional resources.timestamp.Timestamp until = 3; */
|
|
869
|
-
if (message.until)
|
|
870
|
-
Timestamp.internalBinaryWrite(message.until, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
871
|
-
let u = options.writeUnknownFields;
|
|
872
|
-
if (u !== false)
|
|
873
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
874
|
-
return writer;
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* @generated MessageType for protobuf message resources.calendar.CalendarEntryRecurring
|
|
879
|
-
*/
|
|
880
|
-
export const CalendarEntryRecurring = new CalendarEntryRecurring$Type();
|
|
881
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
882
|
-
class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
883
|
-
constructor() {
|
|
884
|
-
super("resources.calendar.CalendarEntryRSVP", [
|
|
885
|
-
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
886
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
887
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
888
|
-
{ no: 4, name: "user", kind: "message", T: () => UserShort },
|
|
889
|
-
{ no: 5, name: "response", kind: "enum", T: () => ["resources.calendar.RsvpResponses", RsvpResponses, "RSVP_RESPONSES_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
890
|
-
]);
|
|
891
|
-
}
|
|
892
|
-
create(value?: PartialMessage<CalendarEntryRSVP>): CalendarEntryRSVP {
|
|
893
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
894
|
-
message.entryId = 0;
|
|
895
|
-
message.userId = 0;
|
|
896
|
-
message.response = 0;
|
|
897
|
-
if (value !== undefined)
|
|
898
|
-
reflectionMergePartial<CalendarEntryRSVP>(this, message, value);
|
|
899
|
-
return message;
|
|
900
|
-
}
|
|
901
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarEntryRSVP): CalendarEntryRSVP {
|
|
902
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
903
|
-
while (reader.pos < end) {
|
|
904
|
-
let [fieldNo, wireType] = reader.tag();
|
|
905
|
-
switch (fieldNo) {
|
|
906
|
-
case /* uint64 entry_id */ 1:
|
|
907
|
-
message.entryId = reader.uint64().toNumber();
|
|
908
|
-
break;
|
|
909
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
910
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
911
|
-
break;
|
|
912
|
-
case /* int32 user_id */ 3:
|
|
913
|
-
message.userId = reader.int32();
|
|
914
|
-
break;
|
|
915
|
-
case /* optional resources.users.UserShort user */ 4:
|
|
916
|
-
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
917
|
-
break;
|
|
918
|
-
case /* resources.calendar.RsvpResponses response */ 5:
|
|
919
|
-
message.response = reader.int32();
|
|
920
|
-
break;
|
|
921
|
-
default:
|
|
922
|
-
let u = options.readUnknownField;
|
|
923
|
-
if (u === "throw")
|
|
924
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
925
|
-
let d = reader.skip(wireType);
|
|
926
|
-
if (u !== false)
|
|
927
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
return message;
|
|
931
|
-
}
|
|
932
|
-
internalBinaryWrite(message: CalendarEntryRSVP, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
933
|
-
/* uint64 entry_id = 1; */
|
|
934
|
-
if (message.entryId !== 0)
|
|
935
|
-
writer.tag(1, WireType.Varint).uint64(message.entryId);
|
|
936
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
937
|
-
if (message.createdAt)
|
|
938
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
939
|
-
/* int32 user_id = 3; */
|
|
940
|
-
if (message.userId !== 0)
|
|
941
|
-
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
942
|
-
/* optional resources.users.UserShort user = 4; */
|
|
943
|
-
if (message.user)
|
|
944
|
-
UserShort.internalBinaryWrite(message.user, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
945
|
-
/* resources.calendar.RsvpResponses response = 5; */
|
|
946
|
-
if (message.response !== 0)
|
|
947
|
-
writer.tag(5, WireType.Varint).int32(message.response);
|
|
948
|
-
let u = options.writeUnknownFields;
|
|
949
|
-
if (u !== false)
|
|
950
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
951
|
-
return writer;
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
/**
|
|
955
|
-
* @generated MessageType for protobuf message resources.calendar.CalendarEntryRSVP
|
|
956
|
-
*/
|
|
957
|
-
export const CalendarEntryRSVP = new CalendarEntryRSVP$Type();
|