@fivenet-app/gen 2026.3.0 → 2026.5.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.
Files changed (68) hide show
  1. package/clients.ts +66 -6
  2. package/codegen/perms/perms.ts +104 -1
  3. package/package.json +1 -1
  4. package/perms.ts +16 -5
  5. package/resources/centrum/settings/settings.ts +1 -1
  6. package/resources/centrum/units/units.ts +1 -1
  7. package/resources/citizens/labels/access.ts +216 -0
  8. package/resources/citizens/labels/labels.ts +320 -0
  9. package/resources/{users → citizens}/licenses/licenses.ts +17 -17
  10. package/resources/clientconfig/clientconfig.ts +32 -289
  11. package/resources/cron/cron.ts +2 -2
  12. package/resources/documents/access/access.ts +0 -23
  13. package/resources/documents/category/category.ts +1 -1
  14. package/resources/documents/templates/templates.ts +2 -2
  15. package/resources/jobs/labels/labels.ts +16 -5
  16. package/resources/livemap/markers/marker_marker.ts +1 -1
  17. package/resources/settings/banner.ts +1 -1
  18. package/resources/settings/config.ts +16 -14
  19. package/resources/sync/data/data.ts +9 -9
  20. package/resources/users/activity/activity.ts +132 -12
  21. package/resources/users/props/props.ts +4 -4
  22. package/resources/users/user.ts +4 -4
  23. package/services/calendar/calendar.client.ts +2 -106
  24. package/services/calendar/calendar.ts +0 -1018
  25. package/services/calendar/entries.client.ts +129 -0
  26. package/services/calendar/entries.ts +1040 -0
  27. package/services/centrum/centrum.client.ts +23 -244
  28. package/services/centrum/centrum.ts +246 -2383
  29. package/services/centrum/dispatches.client.ts +155 -0
  30. package/services/centrum/dispatches.ts +1305 -0
  31. package/services/centrum/units.client.ts +116 -0
  32. package/services/centrum/units.ts +876 -0
  33. package/services/citizens/citizens.client.ts +0 -13
  34. package/services/citizens/citizens.ts +1 -115
  35. package/services/citizens/labels.client.ts +77 -0
  36. package/services/citizens/labels.ts +455 -0
  37. package/services/completor/completor.ts +5 -5
  38. package/services/documents/categories.client.ts +64 -0
  39. package/services/documents/categories.ts +331 -0
  40. package/services/documents/comments.client.ts +77 -0
  41. package/services/documents/comments.ts +479 -0
  42. package/services/documents/documents.client.ts +26 -182
  43. package/services/documents/documents.ts +335 -1682
  44. package/services/documents/templates.client.ts +90 -0
  45. package/services/documents/templates.ts +591 -0
  46. package/services/jobs/colleagues.client.ts +129 -0
  47. package/services/jobs/colleagues.ts +1129 -0
  48. package/services/jobs/jobs.client.ts +3 -107
  49. package/services/jobs/jobs.ts +1 -1113
  50. package/services/mailer/mailer.client.ts +0 -208
  51. package/services/mailer/mailer.ts +1 -2010
  52. package/services/mailer/settings.client.ts +103 -0
  53. package/services/mailer/settings.ts +708 -0
  54. package/services/mailer/thread.client.ts +155 -0
  55. package/services/mailer/thread.ts +1343 -0
  56. package/services/qualifications/exam.client.ts +77 -0
  57. package/services/qualifications/exam.ts +609 -0
  58. package/services/qualifications/qualifications.client.ts +1 -53
  59. package/services/qualifications/qualifications.ts +0 -591
  60. package/services/settings/cron.client.ts +13 -0
  61. package/services/settings/cron.ts +114 -1
  62. package/services/sync/sync.client.ts +271 -37
  63. package/services/sync/sync.ts +1463 -383
  64. package/svcs.ts +182 -94
  65. package/resources/sync/data/v2/data.ts +0 -220
  66. package/resources/users/labels/labels.ts +0 -160
  67. package/services/sync/v2/sync.client.ts +0 -331
  68. package/services/sync/v2/sync.ts +0 -1766
@@ -13,8 +13,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
13
13
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
14
14
  import { MessageType } from "@protobuf-ts/runtime";
15
15
  import { CalendarSub } from "../../resources/calendar/calendar";
16
- import { CalendarEntryRSVP } from "../../resources/calendar/entries/entries";
17
- import { CalendarEntry } from "../../resources/calendar/entries/entries";
18
16
  import { Calendar } from "../../resources/calendar/calendar";
19
17
  import { PaginationResponse } from "../../resources/common/database/database";
20
18
  import { Timestamp } from "../../resources/timestamp/timestamp";
@@ -130,186 +128,6 @@ export interface DeleteCalendarRequest {
130
128
  */
131
129
  export interface DeleteCalendarResponse {
132
130
  }
133
- // Calendar Entries
134
-
135
- /**
136
- * @generated from protobuf message services.calendar.ListCalendarEntriesRequest
137
- */
138
- export interface ListCalendarEntriesRequest {
139
- /**
140
- * @generated from protobuf field: int32 year = 1
141
- */
142
- year: number;
143
- /**
144
- * @generated from protobuf field: int32 month = 2
145
- */
146
- month: number;
147
- /**
148
- * @generated from protobuf field: repeated int64 calendar_ids = 3
149
- */
150
- calendarIds: number[];
151
- /**
152
- * @generated from protobuf field: optional bool show_hidden = 4
153
- */
154
- showHidden?: boolean;
155
- /**
156
- * @generated from protobuf field: optional resources.timestamp.Timestamp after = 5
157
- */
158
- after?: Timestamp;
159
- }
160
- /**
161
- * @generated from protobuf message services.calendar.ListCalendarEntriesResponse
162
- */
163
- export interface ListCalendarEntriesResponse {
164
- /**
165
- * @generated from protobuf field: repeated resources.calendar.entries.CalendarEntry entries = 1
166
- */
167
- entries: CalendarEntry[];
168
- }
169
- /**
170
- * @generated from protobuf message services.calendar.GetUpcomingEntriesRequest
171
- */
172
- export interface GetUpcomingEntriesRequest {
173
- /**
174
- * @generated from protobuf field: int32 seconds = 1
175
- */
176
- seconds: number;
177
- }
178
- /**
179
- * @generated from protobuf message services.calendar.GetUpcomingEntriesResponse
180
- */
181
- export interface GetUpcomingEntriesResponse {
182
- /**
183
- * @generated from protobuf field: repeated resources.calendar.entries.CalendarEntry entries = 1
184
- */
185
- entries: CalendarEntry[];
186
- }
187
- /**
188
- * @generated from protobuf message services.calendar.GetCalendarEntryRequest
189
- */
190
- export interface GetCalendarEntryRequest {
191
- /**
192
- * @generated from protobuf field: int64 entry_id = 1
193
- */
194
- entryId: number;
195
- }
196
- /**
197
- * @generated from protobuf message services.calendar.GetCalendarEntryResponse
198
- */
199
- export interface GetCalendarEntryResponse {
200
- /**
201
- * @generated from protobuf field: resources.calendar.entries.CalendarEntry entry = 1
202
- */
203
- entry?: CalendarEntry;
204
- }
205
- /**
206
- * @generated from protobuf message services.calendar.CreateOrUpdateCalendarEntryRequest
207
- */
208
- export interface CreateOrUpdateCalendarEntryRequest {
209
- /**
210
- * @generated from protobuf field: resources.calendar.entries.CalendarEntry entry = 1
211
- */
212
- entry?: CalendarEntry;
213
- /**
214
- * @generated from protobuf field: repeated int32 user_ids = 2
215
- */
216
- userIds: number[];
217
- }
218
- /**
219
- * @generated from protobuf message services.calendar.CreateOrUpdateCalendarEntryResponse
220
- */
221
- export interface CreateOrUpdateCalendarEntryResponse {
222
- /**
223
- * @generated from protobuf field: resources.calendar.entries.CalendarEntry entry = 1
224
- */
225
- entry?: CalendarEntry;
226
- }
227
- /**
228
- * @generated from protobuf message services.calendar.DeleteCalendarEntryRequest
229
- */
230
- export interface DeleteCalendarEntryRequest {
231
- /**
232
- * @generated from protobuf field: int64 entry_id = 1
233
- */
234
- entryId: number;
235
- }
236
- /**
237
- * @generated from protobuf message services.calendar.DeleteCalendarEntryResponse
238
- */
239
- export interface DeleteCalendarEntryResponse {
240
- }
241
- /**
242
- * @generated from protobuf message services.calendar.ShareCalendarEntryRequest
243
- */
244
- export interface ShareCalendarEntryRequest {
245
- /**
246
- * @generated from protobuf field: int64 entry_id = 1
247
- */
248
- entryId: number;
249
- /**
250
- * @generated from protobuf field: repeated int32 user_ids = 2
251
- */
252
- userIds: number[];
253
- }
254
- /**
255
- * @generated from protobuf message services.calendar.ShareCalendarEntryResponse
256
- */
257
- export interface ShareCalendarEntryResponse {
258
- }
259
- // RSVP
260
-
261
- /**
262
- * @generated from protobuf message services.calendar.ListCalendarEntryRSVPRequest
263
- */
264
- export interface ListCalendarEntryRSVPRequest {
265
- /**
266
- * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
267
- */
268
- pagination?: PaginationRequest;
269
- /**
270
- * @generated from protobuf field: int64 entry_id = 2
271
- */
272
- entryId: number;
273
- }
274
- /**
275
- * @generated from protobuf message services.calendar.ListCalendarEntryRSVPResponse
276
- */
277
- export interface ListCalendarEntryRSVPResponse {
278
- /**
279
- * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
280
- */
281
- pagination?: PaginationResponse;
282
- /**
283
- * @generated from protobuf field: repeated resources.calendar.entries.CalendarEntryRSVP entries = 2
284
- */
285
- entries: CalendarEntryRSVP[];
286
- }
287
- /**
288
- * @generated from protobuf message services.calendar.RSVPCalendarEntryRequest
289
- */
290
- export interface RSVPCalendarEntryRequest {
291
- /**
292
- * @generated from protobuf field: resources.calendar.entries.CalendarEntryRSVP entry = 1
293
- */
294
- entry?: CalendarEntryRSVP;
295
- /**
296
- * @generated from protobuf field: bool subscribe = 2
297
- */
298
- subscribe: boolean;
299
- /**
300
- * @generated from protobuf field: optional bool remove = 3
301
- */
302
- remove?: boolean;
303
- }
304
- /**
305
- * @generated from protobuf message services.calendar.RSVPCalendarEntryResponse
306
- */
307
- export interface RSVPCalendarEntryResponse {
308
- /**
309
- * @generated from protobuf field: optional resources.calendar.entries.CalendarEntryRSVP entry = 1
310
- */
311
- entry?: CalendarEntryRSVP;
312
- }
313
131
  // Subs
314
132
 
315
133
  /**
@@ -857,834 +675,6 @@ class DeleteCalendarResponse$Type extends MessageType<DeleteCalendarResponse> {
857
675
  */
858
676
  export const DeleteCalendarResponse = new DeleteCalendarResponse$Type();
859
677
  // @generated message type with reflection information, may provide speed optimized methods
860
- class ListCalendarEntriesRequest$Type extends MessageType<ListCalendarEntriesRequest> {
861
- constructor() {
862
- super("services.calendar.ListCalendarEntriesRequest", [
863
- { no: 1, name: "year", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 2023 } } } },
864
- { no: 2, name: "month", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { lte: 12, gte: 1 } } } },
865
- { no: 3, name: "calendar_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
866
- { no: 4, name: "show_hidden", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
867
- { no: 5, name: "after", kind: "message", T: () => Timestamp }
868
- ]);
869
- }
870
- create(value?: PartialMessage<ListCalendarEntriesRequest>): ListCalendarEntriesRequest {
871
- const message = globalThis.Object.create((this.messagePrototype!));
872
- message.year = 0;
873
- message.month = 0;
874
- message.calendarIds = [];
875
- if (value !== undefined)
876
- reflectionMergePartial<ListCalendarEntriesRequest>(this, message, value);
877
- return message;
878
- }
879
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListCalendarEntriesRequest): ListCalendarEntriesRequest {
880
- let message = target ?? this.create(), end = reader.pos + length;
881
- while (reader.pos < end) {
882
- let [fieldNo, wireType] = reader.tag();
883
- switch (fieldNo) {
884
- case /* int32 year */ 1:
885
- message.year = reader.int32();
886
- break;
887
- case /* int32 month */ 2:
888
- message.month = reader.int32();
889
- break;
890
- case /* repeated int64 calendar_ids */ 3:
891
- if (wireType === WireType.LengthDelimited)
892
- for (let e = reader.int32() + reader.pos; reader.pos < e;)
893
- message.calendarIds.push(reader.int64().toNumber());
894
- else
895
- message.calendarIds.push(reader.int64().toNumber());
896
- break;
897
- case /* optional bool show_hidden */ 4:
898
- message.showHidden = reader.bool();
899
- break;
900
- case /* optional resources.timestamp.Timestamp after */ 5:
901
- message.after = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.after);
902
- break;
903
- default:
904
- let u = options.readUnknownField;
905
- if (u === "throw")
906
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
907
- let d = reader.skip(wireType);
908
- if (u !== false)
909
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
910
- }
911
- }
912
- return message;
913
- }
914
- internalBinaryWrite(message: ListCalendarEntriesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
915
- /* int32 year = 1; */
916
- if (message.year !== 0)
917
- writer.tag(1, WireType.Varint).int32(message.year);
918
- /* int32 month = 2; */
919
- if (message.month !== 0)
920
- writer.tag(2, WireType.Varint).int32(message.month);
921
- /* repeated int64 calendar_ids = 3; */
922
- if (message.calendarIds.length) {
923
- writer.tag(3, WireType.LengthDelimited).fork();
924
- for (let i = 0; i < message.calendarIds.length; i++)
925
- writer.int64(message.calendarIds[i]);
926
- writer.join();
927
- }
928
- /* optional bool show_hidden = 4; */
929
- if (message.showHidden !== undefined)
930
- writer.tag(4, WireType.Varint).bool(message.showHidden);
931
- /* optional resources.timestamp.Timestamp after = 5; */
932
- if (message.after)
933
- Timestamp.internalBinaryWrite(message.after, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
934
- let u = options.writeUnknownFields;
935
- if (u !== false)
936
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
937
- return writer;
938
- }
939
- }
940
- /**
941
- * @generated MessageType for protobuf message services.calendar.ListCalendarEntriesRequest
942
- */
943
- export const ListCalendarEntriesRequest = new ListCalendarEntriesRequest$Type();
944
- // @generated message type with reflection information, may provide speed optimized methods
945
- class ListCalendarEntriesResponse$Type extends MessageType<ListCalendarEntriesResponse> {
946
- constructor() {
947
- super("services.calendar.ListCalendarEntriesResponse", [
948
- { no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntry }
949
- ]);
950
- }
951
- create(value?: PartialMessage<ListCalendarEntriesResponse>): ListCalendarEntriesResponse {
952
- const message = globalThis.Object.create((this.messagePrototype!));
953
- message.entries = [];
954
- if (value !== undefined)
955
- reflectionMergePartial<ListCalendarEntriesResponse>(this, message, value);
956
- return message;
957
- }
958
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListCalendarEntriesResponse): ListCalendarEntriesResponse {
959
- let message = target ?? this.create(), end = reader.pos + length;
960
- while (reader.pos < end) {
961
- let [fieldNo, wireType] = reader.tag();
962
- switch (fieldNo) {
963
- case /* repeated resources.calendar.entries.CalendarEntry entries */ 1:
964
- message.entries.push(CalendarEntry.internalBinaryRead(reader, reader.uint32(), options));
965
- break;
966
- default:
967
- let u = options.readUnknownField;
968
- if (u === "throw")
969
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
970
- let d = reader.skip(wireType);
971
- if (u !== false)
972
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
973
- }
974
- }
975
- return message;
976
- }
977
- internalBinaryWrite(message: ListCalendarEntriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
978
- /* repeated resources.calendar.entries.CalendarEntry entries = 1; */
979
- for (let i = 0; i < message.entries.length; i++)
980
- CalendarEntry.internalBinaryWrite(message.entries[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
981
- let u = options.writeUnknownFields;
982
- if (u !== false)
983
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
984
- return writer;
985
- }
986
- }
987
- /**
988
- * @generated MessageType for protobuf message services.calendar.ListCalendarEntriesResponse
989
- */
990
- export const ListCalendarEntriesResponse = new ListCalendarEntriesResponse$Type();
991
- // @generated message type with reflection information, may provide speed optimized methods
992
- class GetUpcomingEntriesRequest$Type extends MessageType<GetUpcomingEntriesRequest> {
993
- constructor() {
994
- super("services.calendar.GetUpcomingEntriesRequest", [
995
- { no: 1, name: "seconds", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
996
- ]);
997
- }
998
- create(value?: PartialMessage<GetUpcomingEntriesRequest>): GetUpcomingEntriesRequest {
999
- const message = globalThis.Object.create((this.messagePrototype!));
1000
- message.seconds = 0;
1001
- if (value !== undefined)
1002
- reflectionMergePartial<GetUpcomingEntriesRequest>(this, message, value);
1003
- return message;
1004
- }
1005
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUpcomingEntriesRequest): GetUpcomingEntriesRequest {
1006
- let message = target ?? this.create(), end = reader.pos + length;
1007
- while (reader.pos < end) {
1008
- let [fieldNo, wireType] = reader.tag();
1009
- switch (fieldNo) {
1010
- case /* int32 seconds */ 1:
1011
- message.seconds = reader.int32();
1012
- break;
1013
- default:
1014
- let u = options.readUnknownField;
1015
- if (u === "throw")
1016
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1017
- let d = reader.skip(wireType);
1018
- if (u !== false)
1019
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1020
- }
1021
- }
1022
- return message;
1023
- }
1024
- internalBinaryWrite(message: GetUpcomingEntriesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1025
- /* int32 seconds = 1; */
1026
- if (message.seconds !== 0)
1027
- writer.tag(1, WireType.Varint).int32(message.seconds);
1028
- let u = options.writeUnknownFields;
1029
- if (u !== false)
1030
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1031
- return writer;
1032
- }
1033
- }
1034
- /**
1035
- * @generated MessageType for protobuf message services.calendar.GetUpcomingEntriesRequest
1036
- */
1037
- export const GetUpcomingEntriesRequest = new GetUpcomingEntriesRequest$Type();
1038
- // @generated message type with reflection information, may provide speed optimized methods
1039
- class GetUpcomingEntriesResponse$Type extends MessageType<GetUpcomingEntriesResponse> {
1040
- constructor() {
1041
- super("services.calendar.GetUpcomingEntriesResponse", [
1042
- { no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntry }
1043
- ]);
1044
- }
1045
- create(value?: PartialMessage<GetUpcomingEntriesResponse>): GetUpcomingEntriesResponse {
1046
- const message = globalThis.Object.create((this.messagePrototype!));
1047
- message.entries = [];
1048
- if (value !== undefined)
1049
- reflectionMergePartial<GetUpcomingEntriesResponse>(this, message, value);
1050
- return message;
1051
- }
1052
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUpcomingEntriesResponse): GetUpcomingEntriesResponse {
1053
- let message = target ?? this.create(), end = reader.pos + length;
1054
- while (reader.pos < end) {
1055
- let [fieldNo, wireType] = reader.tag();
1056
- switch (fieldNo) {
1057
- case /* repeated resources.calendar.entries.CalendarEntry entries */ 1:
1058
- message.entries.push(CalendarEntry.internalBinaryRead(reader, reader.uint32(), options));
1059
- break;
1060
- default:
1061
- let u = options.readUnknownField;
1062
- if (u === "throw")
1063
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1064
- let d = reader.skip(wireType);
1065
- if (u !== false)
1066
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1067
- }
1068
- }
1069
- return message;
1070
- }
1071
- internalBinaryWrite(message: GetUpcomingEntriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1072
- /* repeated resources.calendar.entries.CalendarEntry entries = 1; */
1073
- for (let i = 0; i < message.entries.length; i++)
1074
- CalendarEntry.internalBinaryWrite(message.entries[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1075
- let u = options.writeUnknownFields;
1076
- if (u !== false)
1077
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1078
- return writer;
1079
- }
1080
- }
1081
- /**
1082
- * @generated MessageType for protobuf message services.calendar.GetUpcomingEntriesResponse
1083
- */
1084
- export const GetUpcomingEntriesResponse = new GetUpcomingEntriesResponse$Type();
1085
- // @generated message type with reflection information, may provide speed optimized methods
1086
- class GetCalendarEntryRequest$Type extends MessageType<GetCalendarEntryRequest> {
1087
- constructor() {
1088
- super("services.calendar.GetCalendarEntryRequest", [
1089
- { no: 1, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1090
- ]);
1091
- }
1092
- create(value?: PartialMessage<GetCalendarEntryRequest>): GetCalendarEntryRequest {
1093
- const message = globalThis.Object.create((this.messagePrototype!));
1094
- message.entryId = 0;
1095
- if (value !== undefined)
1096
- reflectionMergePartial<GetCalendarEntryRequest>(this, message, value);
1097
- return message;
1098
- }
1099
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCalendarEntryRequest): GetCalendarEntryRequest {
1100
- let message = target ?? this.create(), end = reader.pos + length;
1101
- while (reader.pos < end) {
1102
- let [fieldNo, wireType] = reader.tag();
1103
- switch (fieldNo) {
1104
- case /* int64 entry_id */ 1:
1105
- message.entryId = reader.int64().toNumber();
1106
- break;
1107
- default:
1108
- let u = options.readUnknownField;
1109
- if (u === "throw")
1110
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1111
- let d = reader.skip(wireType);
1112
- if (u !== false)
1113
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1114
- }
1115
- }
1116
- return message;
1117
- }
1118
- internalBinaryWrite(message: GetCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1119
- /* int64 entry_id = 1; */
1120
- if (message.entryId !== 0)
1121
- writer.tag(1, WireType.Varint).int64(message.entryId);
1122
- let u = options.writeUnknownFields;
1123
- if (u !== false)
1124
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1125
- return writer;
1126
- }
1127
- }
1128
- /**
1129
- * @generated MessageType for protobuf message services.calendar.GetCalendarEntryRequest
1130
- */
1131
- export const GetCalendarEntryRequest = new GetCalendarEntryRequest$Type();
1132
- // @generated message type with reflection information, may provide speed optimized methods
1133
- class GetCalendarEntryResponse$Type extends MessageType<GetCalendarEntryResponse> {
1134
- constructor() {
1135
- super("services.calendar.GetCalendarEntryResponse", [
1136
- { no: 1, name: "entry", kind: "message", T: () => CalendarEntry }
1137
- ]);
1138
- }
1139
- create(value?: PartialMessage<GetCalendarEntryResponse>): GetCalendarEntryResponse {
1140
- const message = globalThis.Object.create((this.messagePrototype!));
1141
- if (value !== undefined)
1142
- reflectionMergePartial<GetCalendarEntryResponse>(this, message, value);
1143
- return message;
1144
- }
1145
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCalendarEntryResponse): GetCalendarEntryResponse {
1146
- let message = target ?? this.create(), end = reader.pos + length;
1147
- while (reader.pos < end) {
1148
- let [fieldNo, wireType] = reader.tag();
1149
- switch (fieldNo) {
1150
- case /* resources.calendar.entries.CalendarEntry entry */ 1:
1151
- message.entry = CalendarEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
1152
- break;
1153
- default:
1154
- let u = options.readUnknownField;
1155
- if (u === "throw")
1156
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1157
- let d = reader.skip(wireType);
1158
- if (u !== false)
1159
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1160
- }
1161
- }
1162
- return message;
1163
- }
1164
- internalBinaryWrite(message: GetCalendarEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1165
- /* resources.calendar.entries.CalendarEntry entry = 1; */
1166
- if (message.entry)
1167
- CalendarEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1168
- let u = options.writeUnknownFields;
1169
- if (u !== false)
1170
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1171
- return writer;
1172
- }
1173
- }
1174
- /**
1175
- * @generated MessageType for protobuf message services.calendar.GetCalendarEntryResponse
1176
- */
1177
- export const GetCalendarEntryResponse = new GetCalendarEntryResponse$Type();
1178
- // @generated message type with reflection information, may provide speed optimized methods
1179
- class CreateOrUpdateCalendarEntryRequest$Type extends MessageType<CreateOrUpdateCalendarEntryRequest> {
1180
- constructor() {
1181
- super("services.calendar.CreateOrUpdateCalendarEntryRequest", [
1182
- { no: 1, name: "entry", kind: "message", T: () => CalendarEntry, options: { "buf.validate.field": { required: true } } },
1183
- { no: 2, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
1184
- ]);
1185
- }
1186
- create(value?: PartialMessage<CreateOrUpdateCalendarEntryRequest>): CreateOrUpdateCalendarEntryRequest {
1187
- const message = globalThis.Object.create((this.messagePrototype!));
1188
- message.userIds = [];
1189
- if (value !== undefined)
1190
- reflectionMergePartial<CreateOrUpdateCalendarEntryRequest>(this, message, value);
1191
- return message;
1192
- }
1193
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrUpdateCalendarEntryRequest): CreateOrUpdateCalendarEntryRequest {
1194
- let message = target ?? this.create(), end = reader.pos + length;
1195
- while (reader.pos < end) {
1196
- let [fieldNo, wireType] = reader.tag();
1197
- switch (fieldNo) {
1198
- case /* resources.calendar.entries.CalendarEntry entry */ 1:
1199
- message.entry = CalendarEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
1200
- break;
1201
- case /* repeated int32 user_ids */ 2:
1202
- if (wireType === WireType.LengthDelimited)
1203
- for (let e = reader.int32() + reader.pos; reader.pos < e;)
1204
- message.userIds.push(reader.int32());
1205
- else
1206
- message.userIds.push(reader.int32());
1207
- break;
1208
- default:
1209
- let u = options.readUnknownField;
1210
- if (u === "throw")
1211
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1212
- let d = reader.skip(wireType);
1213
- if (u !== false)
1214
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1215
- }
1216
- }
1217
- return message;
1218
- }
1219
- internalBinaryWrite(message: CreateOrUpdateCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1220
- /* resources.calendar.entries.CalendarEntry entry = 1; */
1221
- if (message.entry)
1222
- CalendarEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1223
- /* repeated int32 user_ids = 2; */
1224
- if (message.userIds.length) {
1225
- writer.tag(2, WireType.LengthDelimited).fork();
1226
- for (let i = 0; i < message.userIds.length; i++)
1227
- writer.int32(message.userIds[i]);
1228
- writer.join();
1229
- }
1230
- let u = options.writeUnknownFields;
1231
- if (u !== false)
1232
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1233
- return writer;
1234
- }
1235
- }
1236
- /**
1237
- * @generated MessageType for protobuf message services.calendar.CreateOrUpdateCalendarEntryRequest
1238
- */
1239
- export const CreateOrUpdateCalendarEntryRequest = new CreateOrUpdateCalendarEntryRequest$Type();
1240
- // @generated message type with reflection information, may provide speed optimized methods
1241
- class CreateOrUpdateCalendarEntryResponse$Type extends MessageType<CreateOrUpdateCalendarEntryResponse> {
1242
- constructor() {
1243
- super("services.calendar.CreateOrUpdateCalendarEntryResponse", [
1244
- { no: 1, name: "entry", kind: "message", T: () => CalendarEntry }
1245
- ]);
1246
- }
1247
- create(value?: PartialMessage<CreateOrUpdateCalendarEntryResponse>): CreateOrUpdateCalendarEntryResponse {
1248
- const message = globalThis.Object.create((this.messagePrototype!));
1249
- if (value !== undefined)
1250
- reflectionMergePartial<CreateOrUpdateCalendarEntryResponse>(this, message, value);
1251
- return message;
1252
- }
1253
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrUpdateCalendarEntryResponse): CreateOrUpdateCalendarEntryResponse {
1254
- let message = target ?? this.create(), end = reader.pos + length;
1255
- while (reader.pos < end) {
1256
- let [fieldNo, wireType] = reader.tag();
1257
- switch (fieldNo) {
1258
- case /* resources.calendar.entries.CalendarEntry entry */ 1:
1259
- message.entry = CalendarEntry.internalBinaryRead(reader, reader.uint32(), options, message.entry);
1260
- break;
1261
- default:
1262
- let u = options.readUnknownField;
1263
- if (u === "throw")
1264
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1265
- let d = reader.skip(wireType);
1266
- if (u !== false)
1267
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1268
- }
1269
- }
1270
- return message;
1271
- }
1272
- internalBinaryWrite(message: CreateOrUpdateCalendarEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1273
- /* resources.calendar.entries.CalendarEntry entry = 1; */
1274
- if (message.entry)
1275
- CalendarEntry.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1276
- let u = options.writeUnknownFields;
1277
- if (u !== false)
1278
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1279
- return writer;
1280
- }
1281
- }
1282
- /**
1283
- * @generated MessageType for protobuf message services.calendar.CreateOrUpdateCalendarEntryResponse
1284
- */
1285
- export const CreateOrUpdateCalendarEntryResponse = new CreateOrUpdateCalendarEntryResponse$Type();
1286
- // @generated message type with reflection information, may provide speed optimized methods
1287
- class DeleteCalendarEntryRequest$Type extends MessageType<DeleteCalendarEntryRequest> {
1288
- constructor() {
1289
- super("services.calendar.DeleteCalendarEntryRequest", [
1290
- { no: 1, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1291
- ]);
1292
- }
1293
- create(value?: PartialMessage<DeleteCalendarEntryRequest>): DeleteCalendarEntryRequest {
1294
- const message = globalThis.Object.create((this.messagePrototype!));
1295
- message.entryId = 0;
1296
- if (value !== undefined)
1297
- reflectionMergePartial<DeleteCalendarEntryRequest>(this, message, value);
1298
- return message;
1299
- }
1300
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteCalendarEntryRequest): DeleteCalendarEntryRequest {
1301
- let message = target ?? this.create(), end = reader.pos + length;
1302
- while (reader.pos < end) {
1303
- let [fieldNo, wireType] = reader.tag();
1304
- switch (fieldNo) {
1305
- case /* int64 entry_id */ 1:
1306
- message.entryId = reader.int64().toNumber();
1307
- break;
1308
- default:
1309
- let u = options.readUnknownField;
1310
- if (u === "throw")
1311
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1312
- let d = reader.skip(wireType);
1313
- if (u !== false)
1314
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1315
- }
1316
- }
1317
- return message;
1318
- }
1319
- internalBinaryWrite(message: DeleteCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1320
- /* int64 entry_id = 1; */
1321
- if (message.entryId !== 0)
1322
- writer.tag(1, WireType.Varint).int64(message.entryId);
1323
- let u = options.writeUnknownFields;
1324
- if (u !== false)
1325
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1326
- return writer;
1327
- }
1328
- }
1329
- /**
1330
- * @generated MessageType for protobuf message services.calendar.DeleteCalendarEntryRequest
1331
- */
1332
- export const DeleteCalendarEntryRequest = new DeleteCalendarEntryRequest$Type();
1333
- // @generated message type with reflection information, may provide speed optimized methods
1334
- class DeleteCalendarEntryResponse$Type extends MessageType<DeleteCalendarEntryResponse> {
1335
- constructor() {
1336
- super("services.calendar.DeleteCalendarEntryResponse", []);
1337
- }
1338
- create(value?: PartialMessage<DeleteCalendarEntryResponse>): DeleteCalendarEntryResponse {
1339
- const message = globalThis.Object.create((this.messagePrototype!));
1340
- if (value !== undefined)
1341
- reflectionMergePartial<DeleteCalendarEntryResponse>(this, message, value);
1342
- return message;
1343
- }
1344
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteCalendarEntryResponse): DeleteCalendarEntryResponse {
1345
- let message = target ?? this.create(), end = reader.pos + length;
1346
- while (reader.pos < end) {
1347
- let [fieldNo, wireType] = reader.tag();
1348
- switch (fieldNo) {
1349
- default:
1350
- let u = options.readUnknownField;
1351
- if (u === "throw")
1352
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1353
- let d = reader.skip(wireType);
1354
- if (u !== false)
1355
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1356
- }
1357
- }
1358
- return message;
1359
- }
1360
- internalBinaryWrite(message: DeleteCalendarEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1361
- let u = options.writeUnknownFields;
1362
- if (u !== false)
1363
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1364
- return writer;
1365
- }
1366
- }
1367
- /**
1368
- * @generated MessageType for protobuf message services.calendar.DeleteCalendarEntryResponse
1369
- */
1370
- export const DeleteCalendarEntryResponse = new DeleteCalendarEntryResponse$Type();
1371
- // @generated message type with reflection information, may provide speed optimized methods
1372
- class ShareCalendarEntryRequest$Type extends MessageType<ShareCalendarEntryRequest> {
1373
- constructor() {
1374
- super("services.calendar.ShareCalendarEntryRequest", [
1375
- { no: 1, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1376
- { no: 2, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
1377
- ]);
1378
- }
1379
- create(value?: PartialMessage<ShareCalendarEntryRequest>): ShareCalendarEntryRequest {
1380
- const message = globalThis.Object.create((this.messagePrototype!));
1381
- message.entryId = 0;
1382
- message.userIds = [];
1383
- if (value !== undefined)
1384
- reflectionMergePartial<ShareCalendarEntryRequest>(this, message, value);
1385
- return message;
1386
- }
1387
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ShareCalendarEntryRequest): ShareCalendarEntryRequest {
1388
- let message = target ?? this.create(), end = reader.pos + length;
1389
- while (reader.pos < end) {
1390
- let [fieldNo, wireType] = reader.tag();
1391
- switch (fieldNo) {
1392
- case /* int64 entry_id */ 1:
1393
- message.entryId = reader.int64().toNumber();
1394
- break;
1395
- case /* repeated int32 user_ids */ 2:
1396
- if (wireType === WireType.LengthDelimited)
1397
- for (let e = reader.int32() + reader.pos; reader.pos < e;)
1398
- message.userIds.push(reader.int32());
1399
- else
1400
- message.userIds.push(reader.int32());
1401
- break;
1402
- default:
1403
- let u = options.readUnknownField;
1404
- if (u === "throw")
1405
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1406
- let d = reader.skip(wireType);
1407
- if (u !== false)
1408
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1409
- }
1410
- }
1411
- return message;
1412
- }
1413
- internalBinaryWrite(message: ShareCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1414
- /* int64 entry_id = 1; */
1415
- if (message.entryId !== 0)
1416
- writer.tag(1, WireType.Varint).int64(message.entryId);
1417
- /* repeated int32 user_ids = 2; */
1418
- if (message.userIds.length) {
1419
- writer.tag(2, WireType.LengthDelimited).fork();
1420
- for (let i = 0; i < message.userIds.length; i++)
1421
- writer.int32(message.userIds[i]);
1422
- writer.join();
1423
- }
1424
- let u = options.writeUnknownFields;
1425
- if (u !== false)
1426
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1427
- return writer;
1428
- }
1429
- }
1430
- /**
1431
- * @generated MessageType for protobuf message services.calendar.ShareCalendarEntryRequest
1432
- */
1433
- export const ShareCalendarEntryRequest = new ShareCalendarEntryRequest$Type();
1434
- // @generated message type with reflection information, may provide speed optimized methods
1435
- class ShareCalendarEntryResponse$Type extends MessageType<ShareCalendarEntryResponse> {
1436
- constructor() {
1437
- super("services.calendar.ShareCalendarEntryResponse", []);
1438
- }
1439
- create(value?: PartialMessage<ShareCalendarEntryResponse>): ShareCalendarEntryResponse {
1440
- const message = globalThis.Object.create((this.messagePrototype!));
1441
- if (value !== undefined)
1442
- reflectionMergePartial<ShareCalendarEntryResponse>(this, message, value);
1443
- return message;
1444
- }
1445
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ShareCalendarEntryResponse): ShareCalendarEntryResponse {
1446
- let message = target ?? this.create(), end = reader.pos + length;
1447
- while (reader.pos < end) {
1448
- let [fieldNo, wireType] = reader.tag();
1449
- switch (fieldNo) {
1450
- default:
1451
- let u = options.readUnknownField;
1452
- if (u === "throw")
1453
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1454
- let d = reader.skip(wireType);
1455
- if (u !== false)
1456
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1457
- }
1458
- }
1459
- return message;
1460
- }
1461
- internalBinaryWrite(message: ShareCalendarEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1462
- let u = options.writeUnknownFields;
1463
- if (u !== false)
1464
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1465
- return writer;
1466
- }
1467
- }
1468
- /**
1469
- * @generated MessageType for protobuf message services.calendar.ShareCalendarEntryResponse
1470
- */
1471
- export const ShareCalendarEntryResponse = new ShareCalendarEntryResponse$Type();
1472
- // @generated message type with reflection information, may provide speed optimized methods
1473
- class ListCalendarEntryRSVPRequest$Type extends MessageType<ListCalendarEntryRSVPRequest> {
1474
- constructor() {
1475
- super("services.calendar.ListCalendarEntryRSVPRequest", [
1476
- { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
1477
- { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1478
- ]);
1479
- }
1480
- create(value?: PartialMessage<ListCalendarEntryRSVPRequest>): ListCalendarEntryRSVPRequest {
1481
- const message = globalThis.Object.create((this.messagePrototype!));
1482
- message.entryId = 0;
1483
- if (value !== undefined)
1484
- reflectionMergePartial<ListCalendarEntryRSVPRequest>(this, message, value);
1485
- return message;
1486
- }
1487
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListCalendarEntryRSVPRequest): ListCalendarEntryRSVPRequest {
1488
- let message = target ?? this.create(), end = reader.pos + length;
1489
- while (reader.pos < end) {
1490
- let [fieldNo, wireType] = reader.tag();
1491
- switch (fieldNo) {
1492
- case /* resources.common.database.PaginationRequest pagination */ 1:
1493
- message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
1494
- break;
1495
- case /* int64 entry_id */ 2:
1496
- message.entryId = reader.int64().toNumber();
1497
- break;
1498
- default:
1499
- let u = options.readUnknownField;
1500
- if (u === "throw")
1501
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1502
- let d = reader.skip(wireType);
1503
- if (u !== false)
1504
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1505
- }
1506
- }
1507
- return message;
1508
- }
1509
- internalBinaryWrite(message: ListCalendarEntryRSVPRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1510
- /* resources.common.database.PaginationRequest pagination = 1; */
1511
- if (message.pagination)
1512
- PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1513
- /* int64 entry_id = 2; */
1514
- if (message.entryId !== 0)
1515
- writer.tag(2, WireType.Varint).int64(message.entryId);
1516
- let u = options.writeUnknownFields;
1517
- if (u !== false)
1518
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1519
- return writer;
1520
- }
1521
- }
1522
- /**
1523
- * @generated MessageType for protobuf message services.calendar.ListCalendarEntryRSVPRequest
1524
- */
1525
- export const ListCalendarEntryRSVPRequest = new ListCalendarEntryRSVPRequest$Type();
1526
- // @generated message type with reflection information, may provide speed optimized methods
1527
- class ListCalendarEntryRSVPResponse$Type extends MessageType<ListCalendarEntryRSVPResponse> {
1528
- constructor() {
1529
- super("services.calendar.ListCalendarEntryRSVPResponse", [
1530
- { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
1531
- { no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntryRSVP, options: { "codegen.itemslen.enabled": true } }
1532
- ]);
1533
- }
1534
- create(value?: PartialMessage<ListCalendarEntryRSVPResponse>): ListCalendarEntryRSVPResponse {
1535
- const message = globalThis.Object.create((this.messagePrototype!));
1536
- message.entries = [];
1537
- if (value !== undefined)
1538
- reflectionMergePartial<ListCalendarEntryRSVPResponse>(this, message, value);
1539
- return message;
1540
- }
1541
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListCalendarEntryRSVPResponse): ListCalendarEntryRSVPResponse {
1542
- let message = target ?? this.create(), end = reader.pos + length;
1543
- while (reader.pos < end) {
1544
- let [fieldNo, wireType] = reader.tag();
1545
- switch (fieldNo) {
1546
- case /* resources.common.database.PaginationResponse pagination */ 1:
1547
- message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
1548
- break;
1549
- case /* repeated resources.calendar.entries.CalendarEntryRSVP entries */ 2:
1550
- message.entries.push(CalendarEntryRSVP.internalBinaryRead(reader, reader.uint32(), options));
1551
- break;
1552
- default:
1553
- let u = options.readUnknownField;
1554
- if (u === "throw")
1555
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1556
- let d = reader.skip(wireType);
1557
- if (u !== false)
1558
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1559
- }
1560
- }
1561
- return message;
1562
- }
1563
- internalBinaryWrite(message: ListCalendarEntryRSVPResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1564
- /* resources.common.database.PaginationResponse pagination = 1; */
1565
- if (message.pagination)
1566
- PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1567
- /* repeated resources.calendar.entries.CalendarEntryRSVP entries = 2; */
1568
- for (let i = 0; i < message.entries.length; i++)
1569
- CalendarEntryRSVP.internalBinaryWrite(message.entries[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1570
- let u = options.writeUnknownFields;
1571
- if (u !== false)
1572
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1573
- return writer;
1574
- }
1575
- }
1576
- /**
1577
- * @generated MessageType for protobuf message services.calendar.ListCalendarEntryRSVPResponse
1578
- */
1579
- export const ListCalendarEntryRSVPResponse = new ListCalendarEntryRSVPResponse$Type();
1580
- // @generated message type with reflection information, may provide speed optimized methods
1581
- class RSVPCalendarEntryRequest$Type extends MessageType<RSVPCalendarEntryRequest> {
1582
- constructor() {
1583
- super("services.calendar.RSVPCalendarEntryRequest", [
1584
- { no: 1, name: "entry", kind: "message", T: () => CalendarEntryRSVP },
1585
- { no: 2, name: "subscribe", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1586
- { no: 3, name: "remove", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
1587
- ]);
1588
- }
1589
- create(value?: PartialMessage<RSVPCalendarEntryRequest>): RSVPCalendarEntryRequest {
1590
- const message = globalThis.Object.create((this.messagePrototype!));
1591
- message.subscribe = false;
1592
- if (value !== undefined)
1593
- reflectionMergePartial<RSVPCalendarEntryRequest>(this, message, value);
1594
- return message;
1595
- }
1596
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RSVPCalendarEntryRequest): RSVPCalendarEntryRequest {
1597
- let message = target ?? this.create(), end = reader.pos + length;
1598
- while (reader.pos < end) {
1599
- let [fieldNo, wireType] = reader.tag();
1600
- switch (fieldNo) {
1601
- case /* resources.calendar.entries.CalendarEntryRSVP entry */ 1:
1602
- message.entry = CalendarEntryRSVP.internalBinaryRead(reader, reader.uint32(), options, message.entry);
1603
- break;
1604
- case /* bool subscribe */ 2:
1605
- message.subscribe = reader.bool();
1606
- break;
1607
- case /* optional bool remove */ 3:
1608
- message.remove = reader.bool();
1609
- break;
1610
- default:
1611
- let u = options.readUnknownField;
1612
- if (u === "throw")
1613
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1614
- let d = reader.skip(wireType);
1615
- if (u !== false)
1616
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1617
- }
1618
- }
1619
- return message;
1620
- }
1621
- internalBinaryWrite(message: RSVPCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1622
- /* resources.calendar.entries.CalendarEntryRSVP entry = 1; */
1623
- if (message.entry)
1624
- CalendarEntryRSVP.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1625
- /* bool subscribe = 2; */
1626
- if (message.subscribe !== false)
1627
- writer.tag(2, WireType.Varint).bool(message.subscribe);
1628
- /* optional bool remove = 3; */
1629
- if (message.remove !== undefined)
1630
- writer.tag(3, WireType.Varint).bool(message.remove);
1631
- let u = options.writeUnknownFields;
1632
- if (u !== false)
1633
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1634
- return writer;
1635
- }
1636
- }
1637
- /**
1638
- * @generated MessageType for protobuf message services.calendar.RSVPCalendarEntryRequest
1639
- */
1640
- export const RSVPCalendarEntryRequest = new RSVPCalendarEntryRequest$Type();
1641
- // @generated message type with reflection information, may provide speed optimized methods
1642
- class RSVPCalendarEntryResponse$Type extends MessageType<RSVPCalendarEntryResponse> {
1643
- constructor() {
1644
- super("services.calendar.RSVPCalendarEntryResponse", [
1645
- { no: 1, name: "entry", kind: "message", T: () => CalendarEntryRSVP }
1646
- ]);
1647
- }
1648
- create(value?: PartialMessage<RSVPCalendarEntryResponse>): RSVPCalendarEntryResponse {
1649
- const message = globalThis.Object.create((this.messagePrototype!));
1650
- if (value !== undefined)
1651
- reflectionMergePartial<RSVPCalendarEntryResponse>(this, message, value);
1652
- return message;
1653
- }
1654
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RSVPCalendarEntryResponse): RSVPCalendarEntryResponse {
1655
- let message = target ?? this.create(), end = reader.pos + length;
1656
- while (reader.pos < end) {
1657
- let [fieldNo, wireType] = reader.tag();
1658
- switch (fieldNo) {
1659
- case /* optional resources.calendar.entries.CalendarEntryRSVP entry */ 1:
1660
- message.entry = CalendarEntryRSVP.internalBinaryRead(reader, reader.uint32(), options, message.entry);
1661
- break;
1662
- default:
1663
- let u = options.readUnknownField;
1664
- if (u === "throw")
1665
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1666
- let d = reader.skip(wireType);
1667
- if (u !== false)
1668
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1669
- }
1670
- }
1671
- return message;
1672
- }
1673
- internalBinaryWrite(message: RSVPCalendarEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1674
- /* optional resources.calendar.entries.CalendarEntryRSVP entry = 1; */
1675
- if (message.entry)
1676
- CalendarEntryRSVP.internalBinaryWrite(message.entry, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1677
- let u = options.writeUnknownFields;
1678
- if (u !== false)
1679
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1680
- return writer;
1681
- }
1682
- }
1683
- /**
1684
- * @generated MessageType for protobuf message services.calendar.RSVPCalendarEntryResponse
1685
- */
1686
- export const RSVPCalendarEntryResponse = new RSVPCalendarEntryResponse$Type();
1687
- // @generated message type with reflection information, may provide speed optimized methods
1688
678
  class ListSubscriptionsRequest$Type extends MessageType<ListSubscriptionsRequest> {
1689
679
  constructor() {
1690
680
  super("services.calendar.ListSubscriptionsRequest", [
@@ -1893,14 +883,6 @@ export const CalendarService = new ServiceType("services.calendar.CalendarServic
1893
883
  { name: "CreateCalendar", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Job", "Public"] }] } }, I: CreateCalendarRequest, O: CreateCalendarResponse },
1894
884
  { name: "UpdateCalendar", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: UpdateCalendarRequest, O: UpdateCalendarResponse },
1895
885
  { name: "DeleteCalendar", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: DeleteCalendarRequest, O: DeleteCalendarResponse },
1896
- { name: "ListCalendarEntries", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: ListCalendarEntriesRequest, O: ListCalendarEntriesResponse },
1897
- { name: "GetUpcomingEntries", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: GetUpcomingEntriesRequest, O: GetUpcomingEntriesResponse },
1898
- { name: "GetCalendarEntry", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: GetCalendarEntryRequest, O: GetCalendarEntryResponse },
1899
- { name: "CreateOrUpdateCalendarEntry", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: CreateOrUpdateCalendarEntryRequest, O: CreateOrUpdateCalendarEntryResponse },
1900
- { name: "DeleteCalendarEntry", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: DeleteCalendarEntryRequest, O: DeleteCalendarEntryResponse },
1901
- { name: "ShareCalendarEntry", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: ShareCalendarEntryRequest, O: ShareCalendarEntryResponse },
1902
- { name: "ListCalendarEntryRSVP", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: ListCalendarEntryRSVPRequest, O: ListCalendarEntryRSVPResponse },
1903
- { name: "RSVPCalendarEntry", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: RSVPCalendarEntryRequest, O: RSVPCalendarEntryResponse },
1904
886
  { name: "ListSubscriptions", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: ListSubscriptionsRequest, O: ListSubscriptionsResponse },
1905
887
  { name: "SubscribeToCalendar", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: SubscribeToCalendarRequest, O: SubscribeToCalendarResponse }
1906
888
  ], { "codegen.perms.perms_svc": { order: 70, icon: "i-mdi-calendar-outline" } });