@fivenet-app/gen 0.9.3-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +1 -0
  2. package/google/protobuf/any.ts +322 -0
  3. package/google/protobuf/descriptor.ts +3475 -0
  4. package/google/protobuf/duration.ts +231 -0
  5. package/google/protobuf/timestamp.ts +290 -0
  6. package/package.json +15 -0
  7. package/perms.ts +178 -0
  8. package/resources/accounts/accounts.ts +195 -0
  9. package/resources/accounts/oauth2.ts +230 -0
  10. package/resources/calendar/access.ts +362 -0
  11. package/resources/calendar/calendar.ts +955 -0
  12. package/resources/centrum/access.ts +380 -0
  13. package/resources/centrum/dispatches.ts +854 -0
  14. package/resources/centrum/general.ts +231 -0
  15. package/resources/centrum/settings.ts +303 -0
  16. package/resources/centrum/units.ts +620 -0
  17. package/resources/common/access/dummy.ts +309 -0
  18. package/resources/common/content/content.ts +252 -0
  19. package/resources/common/cron/cron.ts +536 -0
  20. package/resources/common/database/database.ts +306 -0
  21. package/resources/common/error.ts +79 -0
  22. package/resources/common/grpcws/grpcws.ts +615 -0
  23. package/resources/common/i18n.ts +102 -0
  24. package/resources/common/uuid.ts +68 -0
  25. package/resources/documents/access.ts +388 -0
  26. package/resources/documents/activity.ts +803 -0
  27. package/resources/documents/category.ts +132 -0
  28. package/resources/documents/comment.ts +161 -0
  29. package/resources/documents/documents.ts +1124 -0
  30. package/resources/documents/requests.ts +196 -0
  31. package/resources/documents/templates.ts +949 -0
  32. package/resources/documents/workflow.ts +349 -0
  33. package/resources/filestore/file.ts +204 -0
  34. package/resources/internet/ads.ts +257 -0
  35. package/resources/internet/domain.ts +136 -0
  36. package/resources/internet/internet.ts +344 -0
  37. package/resources/internet/page.ts +236 -0
  38. package/resources/internet/search.ts +104 -0
  39. package/resources/jobs/activity.ts +600 -0
  40. package/resources/jobs/colleagues.ts +346 -0
  41. package/resources/jobs/conduct.ts +220 -0
  42. package/resources/jobs/labels.ts +240 -0
  43. package/resources/jobs/timeclock.ts +372 -0
  44. package/resources/laws/laws.ts +293 -0
  45. package/resources/livemap/livemap.ts +728 -0
  46. package/resources/livemap/tracker.ts +81 -0
  47. package/resources/mailer/access.ts +485 -0
  48. package/resources/mailer/email.ts +222 -0
  49. package/resources/mailer/events.ts +196 -0
  50. package/resources/mailer/message.ts +285 -0
  51. package/resources/mailer/settings.ts +95 -0
  52. package/resources/mailer/template.ts +164 -0
  53. package/resources/mailer/thread.ts +422 -0
  54. package/resources/mailer/user.ts +93 -0
  55. package/resources/notifications/events.ts +287 -0
  56. package/resources/notifications/notifications.ts +444 -0
  57. package/resources/permissions/permissions.ts +829 -0
  58. package/resources/qualifications/access.ts +275 -0
  59. package/resources/qualifications/exam.ts +1421 -0
  60. package/resources/qualifications/qualifications.ts +1289 -0
  61. package/resources/rector/audit.ts +226 -0
  62. package/resources/rector/config.ts +922 -0
  63. package/resources/stats/stats.ts +67 -0
  64. package/resources/sync/activity.ts +356 -0
  65. package/resources/sync/data.ts +455 -0
  66. package/resources/timestamp/timestamp.ts +78 -0
  67. package/resources/users/activity.ts +211 -0
  68. package/resources/users/job_props.ts +992 -0
  69. package/resources/users/jobs.ts +171 -0
  70. package/resources/users/labels.ts +161 -0
  71. package/resources/users/props.ts +207 -0
  72. package/resources/users/users.ts +570 -0
  73. package/resources/vehicles/vehicles.ts +114 -0
  74. package/resources/wiki/access.ts +362 -0
  75. package/resources/wiki/activity.ts +591 -0
  76. package/resources/wiki/page.ts +548 -0
  77. package/services/auth/auth.client.ts +171 -0
  78. package/services/auth/auth.ts +1331 -0
  79. package/services/calendar/calendar.client.ts +262 -0
  80. package/services/calendar/calendar.ts +1733 -0
  81. package/services/centrum/centrum.client.ts +365 -0
  82. package/services/centrum/centrum.ts +2619 -0
  83. package/services/citizenstore/citizenstore.client.ts +126 -0
  84. package/services/citizenstore/citizenstore.ts +847 -0
  85. package/services/completor/completor.client.ts +109 -0
  86. package/services/completor/completor.ts +616 -0
  87. package/services/dmv/vehicles.client.ts +41 -0
  88. package/services/dmv/vehicles.ts +191 -0
  89. package/services/docstore/docstore.client.ts +653 -0
  90. package/services/docstore/docstore.ts +4571 -0
  91. package/services/internet/ads.client.ts +41 -0
  92. package/services/internet/ads.ts +145 -0
  93. package/services/internet/internet.client.ts +58 -0
  94. package/services/internet/internet.ts +257 -0
  95. package/services/jobs/conduct.client.ts +92 -0
  96. package/services/jobs/conduct.ts +541 -0
  97. package/services/jobs/jobs.client.ts +194 -0
  98. package/services/jobs/jobs.ts +1301 -0
  99. package/services/jobs/timeclock.client.ts +75 -0
  100. package/services/jobs/timeclock.ts +808 -0
  101. package/services/livemapper/livemap.client.ts +76 -0
  102. package/services/livemapper/livemap.ts +552 -0
  103. package/services/mailer/mailer.client.ts +381 -0
  104. package/services/mailer/mailer.ts +2590 -0
  105. package/services/notificator/notificator.client.ts +76 -0
  106. package/services/notificator/notificator.ts +510 -0
  107. package/services/qualifications/qualifications.client.ts +279 -0
  108. package/services/qualifications/qualifications.ts +2142 -0
  109. package/services/rector/config.client.ts +58 -0
  110. package/services/rector/config.ts +216 -0
  111. package/services/rector/filestore.client.ts +75 -0
  112. package/services/rector/filestore.ts +378 -0
  113. package/services/rector/laws.client.ts +92 -0
  114. package/services/rector/laws.ts +416 -0
  115. package/services/rector/rector.client.ts +211 -0
  116. package/services/rector/rector.ts +1540 -0
  117. package/services/stats/stats.client.ts +37 -0
  118. package/services/stats/stats.ts +128 -0
  119. package/services/sync/sync.client.ts +110 -0
  120. package/services/sync/sync.ts +831 -0
  121. package/services/wiki/wiki.client.ts +126 -0
  122. package/services/wiki/wiki.ts +749 -0
  123. package/svcs.ts +307 -0
@@ -0,0 +1,591 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/wiki/activity.proto" (package "resources.wiki", syntax proto3)
3
+ // @ts-nocheck
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { PageUserAccess } from "./access";
14
+ import { PageJobAccess } from "./access";
15
+ import { UserShort } from "../users/users";
16
+ import { Timestamp } from "../timestamp/timestamp";
17
+ /**
18
+ * @generated from protobuf message resources.wiki.PageActivity
19
+ */
20
+ export interface PageActivity {
21
+ /**
22
+ * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
23
+ */
24
+ id: string;
25
+ /**
26
+ * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
27
+ */
28
+ createdAt?: Timestamp;
29
+ /**
30
+ * @generated from protobuf field: uint64 page_id = 3 [jstype = JS_STRING];
31
+ */
32
+ pageId: string;
33
+ /**
34
+ * @generated from protobuf field: resources.wiki.PageActivityType activity_type = 4;
35
+ */
36
+ activityType: PageActivityType;
37
+ /**
38
+ * @generated from protobuf field: optional int32 creator_id = 5;
39
+ */
40
+ creatorId?: number;
41
+ /**
42
+ * @generated from protobuf field: optional resources.users.UserShort creator = 6;
43
+ */
44
+ creator?: UserShort; // @gotags: alias:"creator"
45
+ /**
46
+ * @generated from protobuf field: string creator_job = 7;
47
+ */
48
+ creatorJob: string;
49
+ /**
50
+ * @generated from protobuf field: optional string creator_job_label = 8;
51
+ */
52
+ creatorJobLabel?: string;
53
+ /**
54
+ * @generated from protobuf field: optional string reason = 9;
55
+ */
56
+ reason?: string;
57
+ /**
58
+ * @generated from protobuf field: resources.wiki.PageActivityData data = 10;
59
+ */
60
+ data?: PageActivityData;
61
+ }
62
+ /**
63
+ * @generated from protobuf message resources.wiki.PageActivityData
64
+ */
65
+ export interface PageActivityData {
66
+ /**
67
+ * @generated from protobuf oneof: data
68
+ */
69
+ data: {
70
+ oneofKind: "updated";
71
+ /**
72
+ * @generated from protobuf field: resources.wiki.PageUpdated updated = 1;
73
+ */
74
+ updated: PageUpdated;
75
+ } | {
76
+ oneofKind: "accessUpdated";
77
+ /**
78
+ * @generated from protobuf field: resources.wiki.PageAccessUpdated access_updated = 2;
79
+ */
80
+ accessUpdated: PageAccessUpdated;
81
+ } | {
82
+ oneofKind: undefined;
83
+ };
84
+ }
85
+ /**
86
+ * @generated from protobuf message resources.wiki.PageUpdated
87
+ */
88
+ export interface PageUpdated {
89
+ /**
90
+ * @generated from protobuf field: optional string title_diff = 1;
91
+ */
92
+ titleDiff?: string;
93
+ /**
94
+ * @generated from protobuf field: optional string description_diff = 2;
95
+ */
96
+ descriptionDiff?: string;
97
+ /**
98
+ * @generated from protobuf field: optional string content_diff = 3;
99
+ */
100
+ contentDiff?: string;
101
+ }
102
+ /**
103
+ * @generated from protobuf message resources.wiki.PageAccessUpdated
104
+ */
105
+ export interface PageAccessUpdated {
106
+ /**
107
+ * @generated from protobuf field: resources.wiki.PageAccessJobsDiff jobs = 1;
108
+ */
109
+ jobs?: PageAccessJobsDiff;
110
+ /**
111
+ * @generated from protobuf field: resources.wiki.PageAccessUsersDiff users = 2;
112
+ */
113
+ users?: PageAccessUsersDiff;
114
+ }
115
+ /**
116
+ * @generated from protobuf message resources.wiki.PageAccessJobsDiff
117
+ */
118
+ export interface PageAccessJobsDiff {
119
+ /**
120
+ * @generated from protobuf field: repeated resources.wiki.PageJobAccess to_create = 1;
121
+ */
122
+ toCreate: PageJobAccess[];
123
+ /**
124
+ * @generated from protobuf field: repeated resources.wiki.PageJobAccess to_update = 2;
125
+ */
126
+ toUpdate: PageJobAccess[];
127
+ /**
128
+ * @generated from protobuf field: repeated resources.wiki.PageJobAccess to_delete = 3;
129
+ */
130
+ toDelete: PageJobAccess[];
131
+ }
132
+ /**
133
+ * @generated from protobuf message resources.wiki.PageAccessUsersDiff
134
+ */
135
+ export interface PageAccessUsersDiff {
136
+ /**
137
+ * @generated from protobuf field: repeated resources.wiki.PageUserAccess to_create = 1;
138
+ */
139
+ toCreate: PageUserAccess[];
140
+ /**
141
+ * @generated from protobuf field: repeated resources.wiki.PageUserAccess to_update = 2;
142
+ */
143
+ toUpdate: PageUserAccess[];
144
+ /**
145
+ * @generated from protobuf field: repeated resources.wiki.PageUserAccess to_delete = 3;
146
+ */
147
+ toDelete: PageUserAccess[];
148
+ }
149
+ /**
150
+ * @generated from protobuf enum resources.wiki.PageActivityType
151
+ */
152
+ export enum PageActivityType {
153
+ /**
154
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_UNSPECIFIED = 0;
155
+ */
156
+ UNSPECIFIED = 0,
157
+ /**
158
+ * Base
159
+ *
160
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_CREATED = 1;
161
+ */
162
+ CREATED = 1,
163
+ /**
164
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_UPDATED = 2;
165
+ */
166
+ UPDATED = 2,
167
+ /**
168
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_ACCESS_UPDATED = 3;
169
+ */
170
+ ACCESS_UPDATED = 3,
171
+ /**
172
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_OWNER_CHANGED = 4;
173
+ */
174
+ OWNER_CHANGED = 4,
175
+ /**
176
+ * @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_DELETED = 5;
177
+ */
178
+ DELETED = 5
179
+ }
180
+ // @generated message type with reflection information, may provide speed optimized methods
181
+ class PageActivity$Type extends MessageType<PageActivity> {
182
+ constructor() {
183
+ super("resources.wiki.PageActivity", [
184
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
185
+ { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
186
+ { no: 3, name: "page_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
187
+ { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
188
+ { no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
189
+ { no: 6, name: "creator", kind: "message", T: () => UserShort },
190
+ { no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
191
+ { no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
192
+ { no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
193
+ { no: 10, name: "data", kind: "message", T: () => PageActivityData }
194
+ ]);
195
+ }
196
+ create(value?: PartialMessage<PageActivity>): PageActivity {
197
+ const message = globalThis.Object.create((this.messagePrototype!));
198
+ message.id = "0";
199
+ message.pageId = "0";
200
+ message.activityType = 0;
201
+ message.creatorJob = "";
202
+ if (value !== undefined)
203
+ reflectionMergePartial<PageActivity>(this, message, value);
204
+ return message;
205
+ }
206
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageActivity): PageActivity {
207
+ let message = target ?? this.create(), end = reader.pos + length;
208
+ while (reader.pos < end) {
209
+ let [fieldNo, wireType] = reader.tag();
210
+ switch (fieldNo) {
211
+ case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
212
+ message.id = reader.uint64().toString();
213
+ break;
214
+ case /* resources.timestamp.Timestamp created_at */ 2:
215
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
216
+ break;
217
+ case /* uint64 page_id = 3 [jstype = JS_STRING];*/ 3:
218
+ message.pageId = reader.uint64().toString();
219
+ break;
220
+ case /* resources.wiki.PageActivityType activity_type */ 4:
221
+ message.activityType = reader.int32();
222
+ break;
223
+ case /* optional int32 creator_id */ 5:
224
+ message.creatorId = reader.int32();
225
+ break;
226
+ case /* optional resources.users.UserShort creator */ 6:
227
+ message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
228
+ break;
229
+ case /* string creator_job */ 7:
230
+ message.creatorJob = reader.string();
231
+ break;
232
+ case /* optional string creator_job_label */ 8:
233
+ message.creatorJobLabel = reader.string();
234
+ break;
235
+ case /* optional string reason */ 9:
236
+ message.reason = reader.string();
237
+ break;
238
+ case /* resources.wiki.PageActivityData data */ 10:
239
+ message.data = PageActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
240
+ break;
241
+ default:
242
+ let u = options.readUnknownField;
243
+ if (u === "throw")
244
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
245
+ let d = reader.skip(wireType);
246
+ if (u !== false)
247
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
248
+ }
249
+ }
250
+ return message;
251
+ }
252
+ internalBinaryWrite(message: PageActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
253
+ /* uint64 id = 1 [jstype = JS_STRING]; */
254
+ if (message.id !== "0")
255
+ writer.tag(1, WireType.Varint).uint64(message.id);
256
+ /* resources.timestamp.Timestamp created_at = 2; */
257
+ if (message.createdAt)
258
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
259
+ /* uint64 page_id = 3 [jstype = JS_STRING]; */
260
+ if (message.pageId !== "0")
261
+ writer.tag(3, WireType.Varint).uint64(message.pageId);
262
+ /* resources.wiki.PageActivityType activity_type = 4; */
263
+ if (message.activityType !== 0)
264
+ writer.tag(4, WireType.Varint).int32(message.activityType);
265
+ /* optional int32 creator_id = 5; */
266
+ if (message.creatorId !== undefined)
267
+ writer.tag(5, WireType.Varint).int32(message.creatorId);
268
+ /* optional resources.users.UserShort creator = 6; */
269
+ if (message.creator)
270
+ UserShort.internalBinaryWrite(message.creator, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
271
+ /* string creator_job = 7; */
272
+ if (message.creatorJob !== "")
273
+ writer.tag(7, WireType.LengthDelimited).string(message.creatorJob);
274
+ /* optional string creator_job_label = 8; */
275
+ if (message.creatorJobLabel !== undefined)
276
+ writer.tag(8, WireType.LengthDelimited).string(message.creatorJobLabel);
277
+ /* optional string reason = 9; */
278
+ if (message.reason !== undefined)
279
+ writer.tag(9, WireType.LengthDelimited).string(message.reason);
280
+ /* resources.wiki.PageActivityData data = 10; */
281
+ if (message.data)
282
+ PageActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
283
+ let u = options.writeUnknownFields;
284
+ if (u !== false)
285
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
286
+ return writer;
287
+ }
288
+ }
289
+ /**
290
+ * @generated MessageType for protobuf message resources.wiki.PageActivity
291
+ */
292
+ export const PageActivity = new PageActivity$Type();
293
+ // @generated message type with reflection information, may provide speed optimized methods
294
+ class PageActivityData$Type extends MessageType<PageActivityData> {
295
+ constructor() {
296
+ super("resources.wiki.PageActivityData", [
297
+ { no: 1, name: "updated", kind: "message", oneof: "data", T: () => PageUpdated },
298
+ { no: 2, name: "access_updated", kind: "message", oneof: "data", T: () => PageAccessUpdated }
299
+ ]);
300
+ }
301
+ create(value?: PartialMessage<PageActivityData>): PageActivityData {
302
+ const message = globalThis.Object.create((this.messagePrototype!));
303
+ message.data = { oneofKind: undefined };
304
+ if (value !== undefined)
305
+ reflectionMergePartial<PageActivityData>(this, message, value);
306
+ return message;
307
+ }
308
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageActivityData): PageActivityData {
309
+ let message = target ?? this.create(), end = reader.pos + length;
310
+ while (reader.pos < end) {
311
+ let [fieldNo, wireType] = reader.tag();
312
+ switch (fieldNo) {
313
+ case /* resources.wiki.PageUpdated updated */ 1:
314
+ message.data = {
315
+ oneofKind: "updated",
316
+ updated: PageUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updated)
317
+ };
318
+ break;
319
+ case /* resources.wiki.PageAccessUpdated access_updated */ 2:
320
+ message.data = {
321
+ oneofKind: "accessUpdated",
322
+ accessUpdated: PageAccessUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessUpdated)
323
+ };
324
+ break;
325
+ default:
326
+ let u = options.readUnknownField;
327
+ if (u === "throw")
328
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
329
+ let d = reader.skip(wireType);
330
+ if (u !== false)
331
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
332
+ }
333
+ }
334
+ return message;
335
+ }
336
+ internalBinaryWrite(message: PageActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
337
+ /* resources.wiki.PageUpdated updated = 1; */
338
+ if (message.data.oneofKind === "updated")
339
+ PageUpdated.internalBinaryWrite(message.data.updated, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
340
+ /* resources.wiki.PageAccessUpdated access_updated = 2; */
341
+ if (message.data.oneofKind === "accessUpdated")
342
+ PageAccessUpdated.internalBinaryWrite(message.data.accessUpdated, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
343
+ let u = options.writeUnknownFields;
344
+ if (u !== false)
345
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
346
+ return writer;
347
+ }
348
+ }
349
+ /**
350
+ * @generated MessageType for protobuf message resources.wiki.PageActivityData
351
+ */
352
+ export const PageActivityData = new PageActivityData$Type();
353
+ // @generated message type with reflection information, may provide speed optimized methods
354
+ class PageUpdated$Type extends MessageType<PageUpdated> {
355
+ constructor() {
356
+ super("resources.wiki.PageUpdated", [
357
+ { no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
358
+ { no: 2, name: "description_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
359
+ { no: 3, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
360
+ ]);
361
+ }
362
+ create(value?: PartialMessage<PageUpdated>): PageUpdated {
363
+ const message = globalThis.Object.create((this.messagePrototype!));
364
+ if (value !== undefined)
365
+ reflectionMergePartial<PageUpdated>(this, message, value);
366
+ return message;
367
+ }
368
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageUpdated): PageUpdated {
369
+ let message = target ?? this.create(), end = reader.pos + length;
370
+ while (reader.pos < end) {
371
+ let [fieldNo, wireType] = reader.tag();
372
+ switch (fieldNo) {
373
+ case /* optional string title_diff */ 1:
374
+ message.titleDiff = reader.string();
375
+ break;
376
+ case /* optional string description_diff */ 2:
377
+ message.descriptionDiff = reader.string();
378
+ break;
379
+ case /* optional string content_diff */ 3:
380
+ message.contentDiff = reader.string();
381
+ break;
382
+ default:
383
+ let u = options.readUnknownField;
384
+ if (u === "throw")
385
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
386
+ let d = reader.skip(wireType);
387
+ if (u !== false)
388
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
389
+ }
390
+ }
391
+ return message;
392
+ }
393
+ internalBinaryWrite(message: PageUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
394
+ /* optional string title_diff = 1; */
395
+ if (message.titleDiff !== undefined)
396
+ writer.tag(1, WireType.LengthDelimited).string(message.titleDiff);
397
+ /* optional string description_diff = 2; */
398
+ if (message.descriptionDiff !== undefined)
399
+ writer.tag(2, WireType.LengthDelimited).string(message.descriptionDiff);
400
+ /* optional string content_diff = 3; */
401
+ if (message.contentDiff !== undefined)
402
+ writer.tag(3, WireType.LengthDelimited).string(message.contentDiff);
403
+ let u = options.writeUnknownFields;
404
+ if (u !== false)
405
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
406
+ return writer;
407
+ }
408
+ }
409
+ /**
410
+ * @generated MessageType for protobuf message resources.wiki.PageUpdated
411
+ */
412
+ export const PageUpdated = new PageUpdated$Type();
413
+ // @generated message type with reflection information, may provide speed optimized methods
414
+ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
415
+ constructor() {
416
+ super("resources.wiki.PageAccessUpdated", [
417
+ { no: 1, name: "jobs", kind: "message", T: () => PageAccessJobsDiff },
418
+ { no: 2, name: "users", kind: "message", T: () => PageAccessUsersDiff }
419
+ ]);
420
+ }
421
+ create(value?: PartialMessage<PageAccessUpdated>): PageAccessUpdated {
422
+ const message = globalThis.Object.create((this.messagePrototype!));
423
+ if (value !== undefined)
424
+ reflectionMergePartial<PageAccessUpdated>(this, message, value);
425
+ return message;
426
+ }
427
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageAccessUpdated): PageAccessUpdated {
428
+ let message = target ?? this.create(), end = reader.pos + length;
429
+ while (reader.pos < end) {
430
+ let [fieldNo, wireType] = reader.tag();
431
+ switch (fieldNo) {
432
+ case /* resources.wiki.PageAccessJobsDiff jobs */ 1:
433
+ message.jobs = PageAccessJobsDiff.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
434
+ break;
435
+ case /* resources.wiki.PageAccessUsersDiff users */ 2:
436
+ message.users = PageAccessUsersDiff.internalBinaryRead(reader, reader.uint32(), options, message.users);
437
+ break;
438
+ default:
439
+ let u = options.readUnknownField;
440
+ if (u === "throw")
441
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
442
+ let d = reader.skip(wireType);
443
+ if (u !== false)
444
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
445
+ }
446
+ }
447
+ return message;
448
+ }
449
+ internalBinaryWrite(message: PageAccessUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
450
+ /* resources.wiki.PageAccessJobsDiff jobs = 1; */
451
+ if (message.jobs)
452
+ PageAccessJobsDiff.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
453
+ /* resources.wiki.PageAccessUsersDiff users = 2; */
454
+ if (message.users)
455
+ PageAccessUsersDiff.internalBinaryWrite(message.users, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
456
+ let u = options.writeUnknownFields;
457
+ if (u !== false)
458
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
459
+ return writer;
460
+ }
461
+ }
462
+ /**
463
+ * @generated MessageType for protobuf message resources.wiki.PageAccessUpdated
464
+ */
465
+ export const PageAccessUpdated = new PageAccessUpdated$Type();
466
+ // @generated message type with reflection information, may provide speed optimized methods
467
+ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
468
+ constructor() {
469
+ super("resources.wiki.PageAccessJobsDiff", [
470
+ { no: 1, name: "to_create", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PageJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
471
+ { no: 2, name: "to_update", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PageJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
472
+ { no: 3, name: "to_delete", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PageJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } }
473
+ ]);
474
+ }
475
+ create(value?: PartialMessage<PageAccessJobsDiff>): PageAccessJobsDiff {
476
+ const message = globalThis.Object.create((this.messagePrototype!));
477
+ message.toCreate = [];
478
+ message.toUpdate = [];
479
+ message.toDelete = [];
480
+ if (value !== undefined)
481
+ reflectionMergePartial<PageAccessJobsDiff>(this, message, value);
482
+ return message;
483
+ }
484
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageAccessJobsDiff): PageAccessJobsDiff {
485
+ let message = target ?? this.create(), end = reader.pos + length;
486
+ while (reader.pos < end) {
487
+ let [fieldNo, wireType] = reader.tag();
488
+ switch (fieldNo) {
489
+ case /* repeated resources.wiki.PageJobAccess to_create */ 1:
490
+ message.toCreate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
491
+ break;
492
+ case /* repeated resources.wiki.PageJobAccess to_update */ 2:
493
+ message.toUpdate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
494
+ break;
495
+ case /* repeated resources.wiki.PageJobAccess to_delete */ 3:
496
+ message.toDelete.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
497
+ break;
498
+ default:
499
+ let u = options.readUnknownField;
500
+ if (u === "throw")
501
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
502
+ let d = reader.skip(wireType);
503
+ if (u !== false)
504
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
505
+ }
506
+ }
507
+ return message;
508
+ }
509
+ internalBinaryWrite(message: PageAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
510
+ /* repeated resources.wiki.PageJobAccess to_create = 1; */
511
+ for (let i = 0; i < message.toCreate.length; i++)
512
+ PageJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
513
+ /* repeated resources.wiki.PageJobAccess to_update = 2; */
514
+ for (let i = 0; i < message.toUpdate.length; i++)
515
+ PageJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
516
+ /* repeated resources.wiki.PageJobAccess to_delete = 3; */
517
+ for (let i = 0; i < message.toDelete.length; i++)
518
+ PageJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
519
+ let u = options.writeUnknownFields;
520
+ if (u !== false)
521
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
522
+ return writer;
523
+ }
524
+ }
525
+ /**
526
+ * @generated MessageType for protobuf message resources.wiki.PageAccessJobsDiff
527
+ */
528
+ export const PageAccessJobsDiff = new PageAccessJobsDiff$Type();
529
+ // @generated message type with reflection information, may provide speed optimized methods
530
+ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
531
+ constructor() {
532
+ super("resources.wiki.PageAccessUsersDiff", [
533
+ { no: 1, name: "to_create", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PageUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
534
+ { no: 2, name: "to_update", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PageUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
535
+ { no: 3, name: "to_delete", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PageUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } }
536
+ ]);
537
+ }
538
+ create(value?: PartialMessage<PageAccessUsersDiff>): PageAccessUsersDiff {
539
+ const message = globalThis.Object.create((this.messagePrototype!));
540
+ message.toCreate = [];
541
+ message.toUpdate = [];
542
+ message.toDelete = [];
543
+ if (value !== undefined)
544
+ reflectionMergePartial<PageAccessUsersDiff>(this, message, value);
545
+ return message;
546
+ }
547
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageAccessUsersDiff): PageAccessUsersDiff {
548
+ let message = target ?? this.create(), end = reader.pos + length;
549
+ while (reader.pos < end) {
550
+ let [fieldNo, wireType] = reader.tag();
551
+ switch (fieldNo) {
552
+ case /* repeated resources.wiki.PageUserAccess to_create */ 1:
553
+ message.toCreate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
554
+ break;
555
+ case /* repeated resources.wiki.PageUserAccess to_update */ 2:
556
+ message.toUpdate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
557
+ break;
558
+ case /* repeated resources.wiki.PageUserAccess to_delete */ 3:
559
+ message.toDelete.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
560
+ break;
561
+ default:
562
+ let u = options.readUnknownField;
563
+ if (u === "throw")
564
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
565
+ let d = reader.skip(wireType);
566
+ if (u !== false)
567
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
568
+ }
569
+ }
570
+ return message;
571
+ }
572
+ internalBinaryWrite(message: PageAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
573
+ /* repeated resources.wiki.PageUserAccess to_create = 1; */
574
+ for (let i = 0; i < message.toCreate.length; i++)
575
+ PageUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
576
+ /* repeated resources.wiki.PageUserAccess to_update = 2; */
577
+ for (let i = 0; i < message.toUpdate.length; i++)
578
+ PageUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
579
+ /* repeated resources.wiki.PageUserAccess to_delete = 3; */
580
+ for (let i = 0; i < message.toDelete.length; i++)
581
+ PageUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
582
+ let u = options.writeUnknownFields;
583
+ if (u !== false)
584
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
585
+ return writer;
586
+ }
587
+ }
588
+ /**
589
+ * @generated MessageType for protobuf message resources.wiki.PageAccessUsersDiff
590
+ */
591
+ export const PageAccessUsersDiff = new PageAccessUsersDiff$Type();