@fivenet-app/gen 2025.5.2 → 2025.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -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";
|
|
@@ -19,69 +20,63 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
19
20
|
*/
|
|
20
21
|
export interface Calendar {
|
|
21
22
|
/**
|
|
22
|
-
* @generated from protobuf field:
|
|
23
|
+
* @generated from protobuf field: int64 id = 1
|
|
23
24
|
*/
|
|
24
|
-
id: number;
|
|
25
|
+
id: number;
|
|
25
26
|
/**
|
|
26
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
27
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
27
28
|
*/
|
|
28
29
|
createdAt?: Timestamp;
|
|
29
30
|
/**
|
|
30
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
31
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
31
32
|
*/
|
|
32
33
|
updatedAt?: Timestamp;
|
|
33
34
|
/**
|
|
34
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
|
|
35
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
|
|
35
36
|
*/
|
|
36
37
|
deletedAt?: Timestamp;
|
|
37
38
|
/**
|
|
38
|
-
* @generated from protobuf field: optional string job = 5
|
|
39
|
+
* @generated from protobuf field: optional string job = 5
|
|
39
40
|
*/
|
|
40
41
|
job?: string;
|
|
41
42
|
/**
|
|
42
|
-
* @
|
|
43
|
-
*
|
|
44
|
-
* @generated from protobuf field: string name = 6;
|
|
43
|
+
* @generated from protobuf field: string name = 6
|
|
45
44
|
*/
|
|
46
45
|
name: string;
|
|
47
46
|
/**
|
|
48
|
-
* @
|
|
49
|
-
*
|
|
50
|
-
* @generated from protobuf field: optional string description = 7;
|
|
47
|
+
* @generated from protobuf field: optional string description = 7
|
|
51
48
|
*/
|
|
52
49
|
description?: string;
|
|
53
50
|
/**
|
|
54
|
-
* @generated from protobuf field: bool public = 8
|
|
51
|
+
* @generated from protobuf field: bool public = 8
|
|
55
52
|
*/
|
|
56
53
|
public: boolean;
|
|
57
54
|
/**
|
|
58
|
-
* @generated from protobuf field: bool closed = 9
|
|
55
|
+
* @generated from protobuf field: bool closed = 9
|
|
59
56
|
*/
|
|
60
57
|
closed: boolean;
|
|
61
58
|
/**
|
|
62
|
-
* @
|
|
63
|
-
*
|
|
64
|
-
* @generated from protobuf field: string color = 10;
|
|
59
|
+
* @generated from protobuf field: string color = 10
|
|
65
60
|
*/
|
|
66
61
|
color: string;
|
|
67
62
|
/**
|
|
68
|
-
* @generated from protobuf field: optional int32 creator_id = 11
|
|
63
|
+
* @generated from protobuf field: optional int32 creator_id = 11
|
|
69
64
|
*/
|
|
70
65
|
creatorId?: number;
|
|
71
66
|
/**
|
|
72
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 12
|
|
67
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 12
|
|
73
68
|
*/
|
|
74
|
-
creator?: UserShort;
|
|
69
|
+
creator?: UserShort;
|
|
75
70
|
/**
|
|
76
|
-
* @generated from protobuf field: string creator_job = 13
|
|
71
|
+
* @generated from protobuf field: string creator_job = 13
|
|
77
72
|
*/
|
|
78
73
|
creatorJob: string;
|
|
79
74
|
/**
|
|
80
|
-
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
75
|
+
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
81
76
|
*/
|
|
82
77
|
subscription?: CalendarSub;
|
|
83
78
|
/**
|
|
84
|
-
* @generated from protobuf field: resources.calendar.CalendarAccess access = 15
|
|
79
|
+
* @generated from protobuf field: resources.calendar.CalendarAccess access = 15
|
|
85
80
|
*/
|
|
86
81
|
access?: CalendarAccess;
|
|
87
82
|
}
|
|
@@ -90,41 +85,39 @@ export interface Calendar {
|
|
|
90
85
|
*/
|
|
91
86
|
export interface CalendarShort {
|
|
92
87
|
/**
|
|
93
|
-
* @generated from protobuf field:
|
|
88
|
+
* @generated from protobuf field: int64 id = 1
|
|
94
89
|
*/
|
|
95
|
-
id: number;
|
|
90
|
+
id: number;
|
|
96
91
|
/**
|
|
97
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
92
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
98
93
|
*/
|
|
99
94
|
createdAt?: Timestamp;
|
|
100
95
|
/**
|
|
101
|
-
* @
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
* @generated from protobuf field: optional string job = 5
|
|
97
|
+
*/
|
|
98
|
+
job?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: string name = 6
|
|
104
101
|
*/
|
|
105
102
|
name: string;
|
|
106
103
|
/**
|
|
107
|
-
* @
|
|
108
|
-
*
|
|
109
|
-
* @generated from protobuf field: optional string description = 7;
|
|
104
|
+
* @generated from protobuf field: optional string description = 7
|
|
110
105
|
*/
|
|
111
106
|
description?: string;
|
|
112
107
|
/**
|
|
113
|
-
* @generated from protobuf field: bool public = 8
|
|
108
|
+
* @generated from protobuf field: bool public = 8
|
|
114
109
|
*/
|
|
115
110
|
public: boolean;
|
|
116
111
|
/**
|
|
117
|
-
* @generated from protobuf field: bool closed = 9
|
|
112
|
+
* @generated from protobuf field: bool closed = 9
|
|
118
113
|
*/
|
|
119
114
|
closed: boolean;
|
|
120
115
|
/**
|
|
121
|
-
* @
|
|
122
|
-
*
|
|
123
|
-
* @generated from protobuf field: string color = 10;
|
|
116
|
+
* @generated from protobuf field: string color = 10
|
|
124
117
|
*/
|
|
125
118
|
color: string;
|
|
126
119
|
/**
|
|
127
|
-
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
120
|
+
* @generated from protobuf field: optional resources.calendar.CalendarSub subscription = 14
|
|
128
121
|
*/
|
|
129
122
|
subscription?: CalendarSub;
|
|
130
123
|
}
|
|
@@ -133,27 +126,27 @@ export interface CalendarShort {
|
|
|
133
126
|
*/
|
|
134
127
|
export interface CalendarSub {
|
|
135
128
|
/**
|
|
136
|
-
* @generated from protobuf field:
|
|
129
|
+
* @generated from protobuf field: int64 calendar_id = 1
|
|
137
130
|
*/
|
|
138
131
|
calendarId: number;
|
|
139
132
|
/**
|
|
140
|
-
* @generated from protobuf field: int32 user_id = 2
|
|
133
|
+
* @generated from protobuf field: int32 user_id = 2
|
|
141
134
|
*/
|
|
142
135
|
userId: number;
|
|
143
136
|
/**
|
|
144
|
-
* @generated from protobuf field: optional resources.users.UserShort user = 3
|
|
137
|
+
* @generated from protobuf field: optional resources.users.UserShort user = 3
|
|
145
138
|
*/
|
|
146
139
|
user?: UserShort;
|
|
147
140
|
/**
|
|
148
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
|
|
141
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
|
|
149
142
|
*/
|
|
150
143
|
createdAt?: Timestamp;
|
|
151
144
|
/**
|
|
152
|
-
* @generated from protobuf field: bool confirmed = 5
|
|
145
|
+
* @generated from protobuf field: bool confirmed = 5
|
|
153
146
|
*/
|
|
154
147
|
confirmed: boolean;
|
|
155
148
|
/**
|
|
156
|
-
* @generated from protobuf field: bool muted = 6
|
|
149
|
+
* @generated from protobuf field: bool muted = 6
|
|
157
150
|
*/
|
|
158
151
|
muted: boolean;
|
|
159
152
|
}
|
|
@@ -164,96 +157,92 @@ export interface CalendarSub {
|
|
|
164
157
|
*/
|
|
165
158
|
export interface CalendarEntry {
|
|
166
159
|
/**
|
|
167
|
-
* @generated from protobuf field:
|
|
160
|
+
* @generated from protobuf field: int64 id = 1
|
|
168
161
|
*/
|
|
169
|
-
id: number;
|
|
162
|
+
id: number;
|
|
170
163
|
/**
|
|
171
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
164
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
172
165
|
*/
|
|
173
166
|
createdAt?: Timestamp;
|
|
174
167
|
/**
|
|
175
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
168
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
176
169
|
*/
|
|
177
170
|
updatedAt?: Timestamp;
|
|
178
171
|
/**
|
|
179
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
|
|
172
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
|
|
180
173
|
*/
|
|
181
174
|
deletedAt?: Timestamp;
|
|
182
175
|
/**
|
|
183
|
-
* @generated from protobuf field:
|
|
176
|
+
* @generated from protobuf field: int64 calendar_id = 5
|
|
184
177
|
*/
|
|
185
178
|
calendarId: number;
|
|
186
179
|
/**
|
|
187
|
-
* @generated from protobuf field: optional resources.calendar.Calendar calendar = 6
|
|
180
|
+
* @generated from protobuf field: optional resources.calendar.Calendar calendar = 6
|
|
188
181
|
*/
|
|
189
182
|
calendar?: Calendar;
|
|
190
183
|
/**
|
|
191
|
-
* @generated from protobuf field: optional string job = 7
|
|
184
|
+
* @generated from protobuf field: optional string job = 7
|
|
192
185
|
*/
|
|
193
186
|
job?: string;
|
|
194
187
|
/**
|
|
195
|
-
* @generated from protobuf field: resources.timestamp.Timestamp start_time = 8
|
|
188
|
+
* @generated from protobuf field: resources.timestamp.Timestamp start_time = 8
|
|
196
189
|
*/
|
|
197
190
|
startTime?: Timestamp;
|
|
198
191
|
/**
|
|
199
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp end_time = 9
|
|
192
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp end_time = 9
|
|
200
193
|
*/
|
|
201
194
|
endTime?: Timestamp;
|
|
202
195
|
/**
|
|
203
|
-
* @
|
|
204
|
-
*
|
|
205
|
-
* @generated from protobuf field: string title = 10;
|
|
196
|
+
* @generated from protobuf field: string title = 10
|
|
206
197
|
*/
|
|
207
198
|
title: string;
|
|
208
199
|
/**
|
|
209
|
-
* @generated from protobuf field: resources.common.content.Content content = 11
|
|
200
|
+
* @generated from protobuf field: resources.common.content.Content content = 11
|
|
210
201
|
*/
|
|
211
202
|
content?: Content;
|
|
212
203
|
/**
|
|
213
|
-
* @generated from protobuf field: bool closed = 12
|
|
204
|
+
* @generated from protobuf field: bool closed = 12
|
|
214
205
|
*/
|
|
215
206
|
closed: boolean;
|
|
216
207
|
/**
|
|
217
|
-
* @generated from protobuf field: optional bool rsvp_open = 13
|
|
208
|
+
* @generated from protobuf field: optional bool rsvp_open = 13
|
|
218
209
|
*/
|
|
219
210
|
rsvpOpen?: boolean;
|
|
220
211
|
/**
|
|
221
|
-
* @generated from protobuf field: optional int32 creator_id = 14
|
|
212
|
+
* @generated from protobuf field: optional int32 creator_id = 14
|
|
222
213
|
*/
|
|
223
214
|
creatorId?: number;
|
|
224
215
|
/**
|
|
225
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 15
|
|
216
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 15
|
|
226
217
|
*/
|
|
227
|
-
creator?: UserShort;
|
|
218
|
+
creator?: UserShort;
|
|
228
219
|
/**
|
|
229
|
-
* @generated from protobuf field: string creator_job = 16
|
|
220
|
+
* @generated from protobuf field: string creator_job = 16
|
|
230
221
|
*/
|
|
231
222
|
creatorJob: string;
|
|
232
223
|
/**
|
|
233
|
-
* @generated from protobuf field: optional resources.calendar.CalendarEntryRecurring recurring = 17
|
|
224
|
+
* @generated from protobuf field: optional resources.calendar.CalendarEntryRecurring recurring = 17
|
|
234
225
|
*/
|
|
235
226
|
recurring?: CalendarEntryRecurring;
|
|
236
227
|
/**
|
|
237
|
-
* @generated from protobuf field: optional resources.calendar.CalendarEntryRSVP rsvp = 18
|
|
228
|
+
* @generated from protobuf field: optional resources.calendar.CalendarEntryRSVP rsvp = 18
|
|
238
229
|
*/
|
|
239
230
|
rsvp?: CalendarEntryRSVP;
|
|
240
231
|
}
|
|
241
232
|
/**
|
|
242
|
-
* @dbscanner: json
|
|
243
|
-
*
|
|
244
233
|
* @generated from protobuf message resources.calendar.CalendarEntryRecurring
|
|
245
234
|
*/
|
|
246
235
|
export interface CalendarEntryRecurring {
|
|
247
236
|
/**
|
|
248
|
-
* @generated from protobuf field: string every = 1
|
|
237
|
+
* @generated from protobuf field: string every = 1
|
|
249
238
|
*/
|
|
250
239
|
every: string;
|
|
251
240
|
/**
|
|
252
|
-
* @generated from protobuf field: int32 count = 2
|
|
241
|
+
* @generated from protobuf field: int32 count = 2
|
|
253
242
|
*/
|
|
254
243
|
count: number;
|
|
255
244
|
/**
|
|
256
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp until = 3
|
|
245
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp until = 3
|
|
257
246
|
*/
|
|
258
247
|
until?: Timestamp;
|
|
259
248
|
}
|
|
@@ -262,23 +251,23 @@ export interface CalendarEntryRecurring {
|
|
|
262
251
|
*/
|
|
263
252
|
export interface CalendarEntryRSVP {
|
|
264
253
|
/**
|
|
265
|
-
* @generated from protobuf field:
|
|
254
|
+
* @generated from protobuf field: int64 entry_id = 1
|
|
266
255
|
*/
|
|
267
256
|
entryId: number;
|
|
268
257
|
/**
|
|
269
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
258
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
270
259
|
*/
|
|
271
260
|
createdAt?: Timestamp;
|
|
272
261
|
/**
|
|
273
|
-
* @generated from protobuf field: int32 user_id = 3
|
|
262
|
+
* @generated from protobuf field: int32 user_id = 3
|
|
274
263
|
*/
|
|
275
264
|
userId: number;
|
|
276
265
|
/**
|
|
277
|
-
* @generated from protobuf field: optional resources.users.UserShort user = 4
|
|
266
|
+
* @generated from protobuf field: optional resources.users.UserShort user = 4
|
|
278
267
|
*/
|
|
279
268
|
user?: UserShort;
|
|
280
269
|
/**
|
|
281
|
-
* @generated from protobuf field: resources.calendar.RsvpResponses response = 5
|
|
270
|
+
* @generated from protobuf field: resources.calendar.RsvpResponses response = 5
|
|
282
271
|
*/
|
|
283
272
|
response: RsvpResponses;
|
|
284
273
|
}
|
|
@@ -315,19 +304,19 @@ export enum RsvpResponses {
|
|
|
315
304
|
class Calendar$Type extends MessageType<Calendar> {
|
|
316
305
|
constructor() {
|
|
317
306
|
super("resources.calendar.Calendar", [
|
|
318
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
307
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
319
308
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
320
309
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
321
310
|
{ 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*/, options: { "validate.
|
|
311
|
+
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
312
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
313
|
+
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
325
314
|
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
326
315
|
{ 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.
|
|
316
|
+
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
317
|
+
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
318
|
+
{ no: 12, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
319
|
+
{ no: 13, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
331
320
|
{ no: 14, name: "subscription", kind: "message", T: () => CalendarSub },
|
|
332
321
|
{ no: 15, name: "access", kind: "message", T: () => CalendarAccess }
|
|
333
322
|
]);
|
|
@@ -349,8 +338,8 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
349
338
|
while (reader.pos < end) {
|
|
350
339
|
let [fieldNo, wireType] = reader.tag();
|
|
351
340
|
switch (fieldNo) {
|
|
352
|
-
case /*
|
|
353
|
-
message.id = reader.
|
|
341
|
+
case /* int64 id */ 1:
|
|
342
|
+
message.id = reader.int64().toNumber();
|
|
354
343
|
break;
|
|
355
344
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
356
345
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -406,9 +395,9 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
406
395
|
return message;
|
|
407
396
|
}
|
|
408
397
|
internalBinaryWrite(message: Calendar, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
409
|
-
/*
|
|
398
|
+
/* int64 id = 1; */
|
|
410
399
|
if (message.id !== 0)
|
|
411
|
-
writer.tag(1, WireType.Varint).
|
|
400
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
412
401
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
413
402
|
if (message.createdAt)
|
|
414
403
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -465,13 +454,14 @@ export const Calendar = new Calendar$Type();
|
|
|
465
454
|
class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
466
455
|
constructor() {
|
|
467
456
|
super("resources.calendar.CalendarShort", [
|
|
468
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
457
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
469
458
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
470
|
-
{ no:
|
|
471
|
-
{ no:
|
|
459
|
+
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
460
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
461
|
+
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
472
462
|
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
473
463
|
{ no: 9, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
474
|
-
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
464
|
+
{ no: 10, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
475
465
|
{ no: 14, name: "subscription", kind: "message", T: () => CalendarSub }
|
|
476
466
|
]);
|
|
477
467
|
}
|
|
@@ -491,12 +481,15 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
491
481
|
while (reader.pos < end) {
|
|
492
482
|
let [fieldNo, wireType] = reader.tag();
|
|
493
483
|
switch (fieldNo) {
|
|
494
|
-
case /*
|
|
495
|
-
message.id = reader.
|
|
484
|
+
case /* int64 id */ 1:
|
|
485
|
+
message.id = reader.int64().toNumber();
|
|
496
486
|
break;
|
|
497
487
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
498
488
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
499
489
|
break;
|
|
490
|
+
case /* optional string job */ 5:
|
|
491
|
+
message.job = reader.string();
|
|
492
|
+
break;
|
|
500
493
|
case /* string name */ 6:
|
|
501
494
|
message.name = reader.string();
|
|
502
495
|
break;
|
|
@@ -527,12 +520,15 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
527
520
|
return message;
|
|
528
521
|
}
|
|
529
522
|
internalBinaryWrite(message: CalendarShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
530
|
-
/*
|
|
523
|
+
/* int64 id = 1; */
|
|
531
524
|
if (message.id !== 0)
|
|
532
|
-
writer.tag(1, WireType.Varint).
|
|
525
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
533
526
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
534
527
|
if (message.createdAt)
|
|
535
528
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
529
|
+
/* optional string job = 5; */
|
|
530
|
+
if (message.job !== undefined)
|
|
531
|
+
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
536
532
|
/* string name = 6; */
|
|
537
533
|
if (message.name !== "")
|
|
538
534
|
writer.tag(6, WireType.LengthDelimited).string(message.name);
|
|
@@ -565,8 +561,8 @@ export const CalendarShort = new CalendarShort$Type();
|
|
|
565
561
|
class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
566
562
|
constructor() {
|
|
567
563
|
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.
|
|
564
|
+
{ no: 1, name: "calendar_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
565
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
570
566
|
{ no: 3, name: "user", kind: "message", T: () => UserShort },
|
|
571
567
|
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
572
568
|
{ no: 5, name: "confirmed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
@@ -588,8 +584,8 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
588
584
|
while (reader.pos < end) {
|
|
589
585
|
let [fieldNo, wireType] = reader.tag();
|
|
590
586
|
switch (fieldNo) {
|
|
591
|
-
case /*
|
|
592
|
-
message.calendarId = reader.
|
|
587
|
+
case /* int64 calendar_id */ 1:
|
|
588
|
+
message.calendarId = reader.int64().toNumber();
|
|
593
589
|
break;
|
|
594
590
|
case /* int32 user_id */ 2:
|
|
595
591
|
message.userId = reader.int32();
|
|
@@ -618,9 +614,9 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
618
614
|
return message;
|
|
619
615
|
}
|
|
620
616
|
internalBinaryWrite(message: CalendarSub, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
621
|
-
/*
|
|
617
|
+
/* int64 calendar_id = 1; */
|
|
622
618
|
if (message.calendarId !== 0)
|
|
623
|
-
writer.tag(1, WireType.Varint).
|
|
619
|
+
writer.tag(1, WireType.Varint).int64(message.calendarId);
|
|
624
620
|
/* int32 user_id = 2; */
|
|
625
621
|
if (message.userId !== 0)
|
|
626
622
|
writer.tag(2, WireType.Varint).int32(message.userId);
|
|
@@ -650,22 +646,22 @@ export const CalendarSub = new CalendarSub$Type();
|
|
|
650
646
|
class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
651
647
|
constructor() {
|
|
652
648
|
super("resources.calendar.CalendarEntry", [
|
|
653
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
649
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
654
650
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
655
651
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
656
652
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
657
|
-
{ no: 5, name: "calendar_id", kind: "scalar", T:
|
|
653
|
+
{ no: 5, name: "calendar_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
658
654
|
{ no: 6, name: "calendar", kind: "message", T: () => Calendar },
|
|
659
|
-
{ no: 7, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
655
|
+
{ no: 7, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
660
656
|
{ no: 8, name: "start_time", kind: "message", T: () => Timestamp },
|
|
661
657
|
{ no: 9, name: "end_time", kind: "message", T: () => Timestamp },
|
|
662
|
-
{ no: 10, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
658
|
+
{ no: 10, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "512" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
663
659
|
{ no: 11, name: "content", kind: "message", T: () => Content },
|
|
664
660
|
{ no: 12, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
665
661
|
{ 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.
|
|
667
|
-
{ no: 15, name: "creator", kind: "message", T: () => UserShort },
|
|
668
|
-
{ no: 16, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
662
|
+
{ no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
663
|
+
{ no: 15, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
664
|
+
{ no: 16, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
669
665
|
{ no: 17, name: "recurring", kind: "message", T: () => CalendarEntryRecurring },
|
|
670
666
|
{ no: 18, name: "rsvp", kind: "message", T: () => CalendarEntryRSVP }
|
|
671
667
|
]);
|
|
@@ -686,8 +682,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
686
682
|
while (reader.pos < end) {
|
|
687
683
|
let [fieldNo, wireType] = reader.tag();
|
|
688
684
|
switch (fieldNo) {
|
|
689
|
-
case /*
|
|
690
|
-
message.id = reader.
|
|
685
|
+
case /* int64 id */ 1:
|
|
686
|
+
message.id = reader.int64().toNumber();
|
|
691
687
|
break;
|
|
692
688
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
693
689
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -698,8 +694,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
698
694
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
699
695
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
700
696
|
break;
|
|
701
|
-
case /*
|
|
702
|
-
message.calendarId = reader.
|
|
697
|
+
case /* int64 calendar_id */ 5:
|
|
698
|
+
message.calendarId = reader.int64().toNumber();
|
|
703
699
|
break;
|
|
704
700
|
case /* optional resources.calendar.Calendar calendar */ 6:
|
|
705
701
|
message.calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
@@ -752,9 +748,9 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
752
748
|
return message;
|
|
753
749
|
}
|
|
754
750
|
internalBinaryWrite(message: CalendarEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
755
|
-
/*
|
|
751
|
+
/* int64 id = 1; */
|
|
756
752
|
if (message.id !== 0)
|
|
757
|
-
writer.tag(1, WireType.Varint).
|
|
753
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
758
754
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
759
755
|
if (message.createdAt)
|
|
760
756
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -764,9 +760,9 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
764
760
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
765
761
|
if (message.deletedAt)
|
|
766
762
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
767
|
-
/*
|
|
763
|
+
/* int64 calendar_id = 5; */
|
|
768
764
|
if (message.calendarId !== 0)
|
|
769
|
-
writer.tag(5, WireType.Varint).
|
|
765
|
+
writer.tag(5, WireType.Varint).int64(message.calendarId);
|
|
770
766
|
/* optional resources.calendar.Calendar calendar = 6; */
|
|
771
767
|
if (message.calendar)
|
|
772
768
|
Calendar.internalBinaryWrite(message.calendar, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -823,7 +819,7 @@ class CalendarEntryRecurring$Type extends MessageType<CalendarEntryRecurring> {
|
|
|
823
819
|
{ no: 1, name: "every", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
824
820
|
{ no: 2, name: "count", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
825
821
|
{ no: 3, name: "until", kind: "message", T: () => Timestamp }
|
|
826
|
-
]);
|
|
822
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
827
823
|
}
|
|
828
824
|
create(value?: PartialMessage<CalendarEntryRecurring>): CalendarEntryRecurring {
|
|
829
825
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -882,11 +878,11 @@ export const CalendarEntryRecurring = new CalendarEntryRecurring$Type();
|
|
|
882
878
|
class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
883
879
|
constructor() {
|
|
884
880
|
super("resources.calendar.CalendarEntryRSVP", [
|
|
885
|
-
{ no: 1, name: "entry_id", kind: "scalar", T:
|
|
881
|
+
{ no: 1, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
886
882
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
887
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
883
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
888
884
|
{ no: 4, name: "user", kind: "message", T: () => UserShort },
|
|
889
|
-
{ no: 5, name: "response", kind: "enum", T: () => ["resources.calendar.RsvpResponses", RsvpResponses, "RSVP_RESPONSES_"], options: { "validate.
|
|
885
|
+
{ no: 5, name: "response", kind: "enum", T: () => ["resources.calendar.RsvpResponses", RsvpResponses, "RSVP_RESPONSES_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
890
886
|
]);
|
|
891
887
|
}
|
|
892
888
|
create(value?: PartialMessage<CalendarEntryRSVP>): CalendarEntryRSVP {
|
|
@@ -903,8 +899,8 @@ class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
|
903
899
|
while (reader.pos < end) {
|
|
904
900
|
let [fieldNo, wireType] = reader.tag();
|
|
905
901
|
switch (fieldNo) {
|
|
906
|
-
case /*
|
|
907
|
-
message.entryId = reader.
|
|
902
|
+
case /* int64 entry_id */ 1:
|
|
903
|
+
message.entryId = reader.int64().toNumber();
|
|
908
904
|
break;
|
|
909
905
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
910
906
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -930,9 +926,9 @@ class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
|
930
926
|
return message;
|
|
931
927
|
}
|
|
932
928
|
internalBinaryWrite(message: CalendarEntryRSVP, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
933
|
-
/*
|
|
929
|
+
/* int64 entry_id = 1; */
|
|
934
930
|
if (message.entryId !== 0)
|
|
935
|
-
writer.tag(1, WireType.Varint).
|
|
931
|
+
writer.tag(1, WireType.Varint).int64(message.entryId);
|
|
936
932
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
937
933
|
if (message.createdAt)
|
|
938
934
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|