@fivenet-app/gen 0.9.3 → 0.9.4-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 (77) hide show
  1. package/package.json +5 -1
  2. package/perms.ts +4 -0
  3. package/resources/accounts/accounts.ts +8 -8
  4. package/resources/accounts/oauth2.ts +16 -16
  5. package/resources/calendar/access.ts +32 -32
  6. package/resources/calendar/calendar.ts +48 -48
  7. package/resources/centrum/access.ts +40 -40
  8. package/resources/centrum/dispatches.ts +62 -62
  9. package/resources/centrum/general.ts +8 -8
  10. package/resources/centrum/units.ts +40 -40
  11. package/resources/documents/access.ts +32 -32
  12. package/resources/documents/activity.ts +16 -16
  13. package/resources/documents/category.ts +8 -8
  14. package/resources/documents/comment.ts +16 -16
  15. package/resources/documents/documents.ts +86 -86
  16. package/resources/documents/requests.ts +16 -16
  17. package/resources/documents/templates.ts +32 -32
  18. package/resources/internet/access.ts +358 -0
  19. package/resources/internet/ads.ts +8 -8
  20. package/resources/internet/domain.ts +182 -23
  21. package/resources/internet/page.ts +22 -20
  22. package/resources/internet/search.ts +8 -8
  23. package/resources/jobs/activity.ts +8 -8
  24. package/resources/jobs/conduct.ts +8 -8
  25. package/resources/jobs/labels.ts +8 -8
  26. package/resources/jobs/timeclock.ts +6 -2
  27. package/resources/laws/laws.ts +24 -24
  28. package/resources/livemap/livemap.ts +14 -14
  29. package/resources/mailer/access.ts +56 -56
  30. package/resources/mailer/email.ts +8 -8
  31. package/resources/mailer/events.ts +18 -18
  32. package/resources/mailer/message.ts +24 -24
  33. package/resources/mailer/settings.ts +8 -8
  34. package/resources/mailer/template.ts +16 -16
  35. package/resources/mailer/thread.ts +56 -56
  36. package/resources/notifications/events.ts +39 -2
  37. package/resources/notifications/notifications.ts +20 -20
  38. package/resources/permissions/permissions.ts +64 -64
  39. package/resources/qualifications/access.ts +16 -16
  40. package/resources/qualifications/exam.ts +40 -40
  41. package/resources/qualifications/qualifications.ts +64 -64
  42. package/resources/rector/audit.ts +16 -16
  43. package/resources/sync/activity.ts +92 -14
  44. package/resources/sync/data.ts +142 -10
  45. package/resources/users/activity.ts +992 -36
  46. package/resources/users/job_props.ts +3 -708
  47. package/resources/users/job_settings.ts +721 -0
  48. package/resources/users/labels.ts +8 -8
  49. package/resources/users/licenses.ts +148 -0
  50. package/resources/users/users.ts +1 -136
  51. package/resources/wiki/access.ts +32 -32
  52. package/resources/wiki/activity.ts +16 -16
  53. package/resources/wiki/page.ts +28 -28
  54. package/services/auth/auth.ts +16 -16
  55. package/services/calendar/calendar.ts +55 -55
  56. package/services/centrum/centrum.ts +112 -112
  57. package/services/citizenstore/citizenstore.ts +24 -1
  58. package/services/docstore/docstore.ts +280 -280
  59. package/services/internet/domain.client.ts +126 -0
  60. package/services/internet/domain.ts +695 -0
  61. package/services/internet/internet.ts +3 -3
  62. package/services/jobs/conduct.ts +15 -15
  63. package/services/jobs/jobs.ts +14 -14
  64. package/services/jobs/timeclock.ts +1 -1
  65. package/services/livemapper/livemap.ts +8 -8
  66. package/services/mailer/mailer.ts +159 -159
  67. package/services/notificator/notificator.ts +15 -15
  68. package/services/qualifications/qualifications.ts +108 -108
  69. package/services/rector/laws.ts +16 -16
  70. package/services/rector/rector.ts +63 -63
  71. package/services/sync/sync.client.ts +36 -2
  72. package/services/sync/sync.ts +259 -44
  73. package/services/wiki/wiki.ts +24 -24
  74. package/svcs.ts +13 -0
  75. package/resources/common/access/dummy.ts +0 -309
  76. package/resources/internet/internet.ts +0 -344
  77. package/resources/mailer/user.ts +0 -93
@@ -59,9 +59,9 @@ export interface MarkNotificationsRequest {
59
59
  */
60
60
  unread: boolean;
61
61
  /**
62
- * @generated from protobuf field: repeated uint64 ids = 2 [jstype = JS_STRING];
62
+ * @generated from protobuf field: repeated uint64 ids = 2;
63
63
  */
64
- ids: string[];
64
+ ids: number[];
65
65
  /**
66
66
  * @generated from protobuf field: optional bool all = 3;
67
67
  */
@@ -72,9 +72,9 @@ export interface MarkNotificationsRequest {
72
72
  */
73
73
  export interface MarkNotificationsResponse {
74
74
  /**
75
- * @generated from protobuf field: uint64 updated = 1 [jstype = JS_STRING];
75
+ * @generated from protobuf field: uint64 updated = 1;
76
76
  */
77
- updated: string;
77
+ updated: number;
78
78
  }
79
79
  /**
80
80
  * @generated from protobuf message services.notificator.StreamRequest
@@ -258,7 +258,7 @@ class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest
258
258
  constructor() {
259
259
  super("services.notificator.MarkNotificationsRequest", [
260
260
  { no: 1, name: "unread", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
261
- { no: 2, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, options: { "validate.rules": { repeated: { minItems: "1", maxItems: "20", ignoreEmpty: true } } } },
261
+ { no: 2, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { repeated: { minItems: "1", maxItems: "20", ignoreEmpty: true } } } },
262
262
  { no: 3, name: "all", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
263
263
  ]);
264
264
  }
@@ -278,12 +278,12 @@ class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest
278
278
  case /* bool unread */ 1:
279
279
  message.unread = reader.bool();
280
280
  break;
281
- case /* repeated uint64 ids = 2 [jstype = JS_STRING];*/ 2:
281
+ case /* repeated uint64 ids */ 2:
282
282
  if (wireType === WireType.LengthDelimited)
283
283
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
284
- message.ids.push(reader.uint64().toString());
284
+ message.ids.push(reader.uint64().toNumber());
285
285
  else
286
- message.ids.push(reader.uint64().toString());
286
+ message.ids.push(reader.uint64().toNumber());
287
287
  break;
288
288
  case /* optional bool all */ 3:
289
289
  message.all = reader.bool();
@@ -303,7 +303,7 @@ class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest
303
303
  /* bool unread = 1; */
304
304
  if (message.unread !== false)
305
305
  writer.tag(1, WireType.Varint).bool(message.unread);
306
- /* repeated uint64 ids = 2 [jstype = JS_STRING]; */
306
+ /* repeated uint64 ids = 2; */
307
307
  if (message.ids.length) {
308
308
  writer.tag(2, WireType.LengthDelimited).fork();
309
309
  for (let i = 0; i < message.ids.length; i++)
@@ -327,12 +327,12 @@ export const MarkNotificationsRequest = new MarkNotificationsRequest$Type();
327
327
  class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsResponse> {
328
328
  constructor() {
329
329
  super("services.notificator.MarkNotificationsResponse", [
330
- { no: 1, name: "updated", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
330
+ { no: 1, name: "updated", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
331
331
  ]);
332
332
  }
333
333
  create(value?: PartialMessage<MarkNotificationsResponse>): MarkNotificationsResponse {
334
334
  const message = globalThis.Object.create((this.messagePrototype!));
335
- message.updated = "0";
335
+ message.updated = 0;
336
336
  if (value !== undefined)
337
337
  reflectionMergePartial<MarkNotificationsResponse>(this, message, value);
338
338
  return message;
@@ -342,8 +342,8 @@ class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsRespon
342
342
  while (reader.pos < end) {
343
343
  let [fieldNo, wireType] = reader.tag();
344
344
  switch (fieldNo) {
345
- case /* uint64 updated = 1 [jstype = JS_STRING];*/ 1:
346
- message.updated = reader.uint64().toString();
345
+ case /* uint64 updated */ 1:
346
+ message.updated = reader.uint64().toNumber();
347
347
  break;
348
348
  default:
349
349
  let u = options.readUnknownField;
@@ -357,8 +357,8 @@ class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsRespon
357
357
  return message;
358
358
  }
359
359
  internalBinaryWrite(message: MarkNotificationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
360
- /* uint64 updated = 1 [jstype = JS_STRING]; */
361
- if (message.updated !== "0")
360
+ /* uint64 updated = 1; */
361
+ if (message.updated !== 0)
362
362
  writer.tag(1, WireType.Varint).uint64(message.updated);
363
363
  let u = options.writeUnknownFields;
364
364
  if (u !== false)