@fivenet-app/gen 0.9.3 → 0.9.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 (133) hide show
  1. package/clients.ts +150 -0
  2. package/google/protobuf/any.ts +10 -6
  3. package/google/protobuf/descriptor.ts +1255 -76
  4. package/google/protobuf/duration.ts +1 -2
  5. package/google/protobuf/timestamp.ts +3 -6
  6. package/package.json +5 -1
  7. package/perms.ts +9 -1
  8. package/resources/accounts/accounts.ts +9 -9
  9. package/resources/accounts/oauth2.ts +17 -17
  10. package/resources/calendar/access.ts +33 -33
  11. package/resources/calendar/calendar.ts +51 -49
  12. package/resources/centrum/access.ts +57 -42
  13. package/resources/centrum/attributes.ts +182 -0
  14. package/resources/centrum/dispatches.ts +73 -71
  15. package/resources/centrum/disponents.ts +81 -0
  16. package/resources/centrum/settings.ts +5 -1
  17. package/resources/centrum/units.ts +49 -49
  18. package/resources/centrum/user_unit.ts +104 -0
  19. package/resources/common/content/content.ts +47 -26
  20. package/resources/common/cron/cron.ts +37 -1
  21. package/resources/common/database/database.ts +37 -19
  22. package/resources/common/error.ts +1 -1
  23. package/resources/common/grpcws/grpcws.ts +59 -33
  24. package/resources/common/i18n.ts +4 -1
  25. package/resources/common/tests/objects.ts +82 -0
  26. package/resources/common/uuid.ts +1 -1
  27. package/resources/documents/access.ts +37 -35
  28. package/resources/documents/activity.ts +19 -17
  29. package/resources/documents/category.ts +9 -9
  30. package/resources/documents/comment.ts +17 -17
  31. package/resources/documents/documents.ts +89 -89
  32. package/resources/documents/requests.ts +17 -17
  33. package/resources/documents/templates.ts +50 -35
  34. package/resources/documents/workflow.ts +3 -1
  35. package/resources/filestore/file.ts +1 -1
  36. package/resources/internet/access.ts +358 -0
  37. package/resources/internet/ads.ts +9 -9
  38. package/resources/internet/domain.ts +216 -24
  39. package/resources/internet/page.ts +215 -23
  40. package/resources/internet/search.ts +42 -18
  41. package/resources/jobs/activity.ts +11 -9
  42. package/resources/jobs/colleagues.ts +1 -1
  43. package/resources/jobs/conduct.ts +9 -9
  44. package/resources/jobs/labels.ts +9 -9
  45. package/resources/jobs/timeclock.ts +7 -3
  46. package/resources/laws/laws.ts +25 -25
  47. package/resources/livemap/livemap.ts +314 -295
  48. package/resources/livemap/tracker.ts +1 -1
  49. package/resources/mailer/access.ts +57 -57
  50. package/resources/mailer/email.ts +9 -9
  51. package/resources/mailer/events.ts +19 -19
  52. package/resources/mailer/message.ts +151 -45
  53. package/resources/mailer/settings.ts +9 -9
  54. package/resources/mailer/template.ts +17 -17
  55. package/resources/mailer/thread.ts +57 -57
  56. package/resources/notifications/events.ts +112 -3
  57. package/resources/notifications/notifications.ts +23 -21
  58. package/resources/permissions/permissions.ts +67 -65
  59. package/resources/qualifications/access.ts +33 -24
  60. package/resources/qualifications/exam.ts +226 -44
  61. package/resources/qualifications/qualifications.ts +99 -71
  62. package/resources/rector/audit.ts +17 -17
  63. package/resources/rector/banner.ts +133 -0
  64. package/resources/rector/config.ts +84 -17
  65. package/resources/stats/stats.ts +1 -1
  66. package/resources/sync/activity.ts +93 -15
  67. package/resources/sync/data.ts +143 -11
  68. package/resources/timestamp/timestamp.ts +1 -1
  69. package/resources/users/activity.ts +995 -37
  70. package/resources/users/job_props.ts +6 -709
  71. package/resources/users/job_settings.ts +765 -0
  72. package/resources/users/jobs.ts +1 -1
  73. package/resources/users/labels.ts +11 -9
  74. package/resources/users/licenses.ts +148 -0
  75. package/resources/users/props.ts +1 -1
  76. package/resources/users/users.ts +2 -137
  77. package/resources/vehicles/vehicles.ts +38 -5
  78. package/resources/wiki/access.ts +34 -38
  79. package/resources/wiki/activity.ts +19 -17
  80. package/resources/wiki/page.ts +29 -29
  81. package/services/auth/auth.client.ts +7 -1
  82. package/services/auth/auth.ts +110 -33
  83. package/services/calendar/calendar.client.ts +1 -1
  84. package/services/calendar/calendar.ts +98 -59
  85. package/services/centrum/centrum.client.ts +1 -1
  86. package/services/centrum/centrum.ts +268 -125
  87. package/services/citizenstore/citizenstore.client.ts +1 -1
  88. package/services/citizenstore/citizenstore.ts +25 -2
  89. package/services/completor/completor.client.ts +1 -1
  90. package/services/completor/completor.ts +15 -2
  91. package/services/dmv/vehicles.client.ts +1 -1
  92. package/services/dmv/vehicles.ts +13 -2
  93. package/services/docstore/docstore.client.ts +1 -1
  94. package/services/docstore/docstore.ts +491 -296
  95. package/services/internet/ads.client.ts +1 -1
  96. package/services/internet/ads.ts +1 -1
  97. package/services/internet/domain.client.ts +109 -0
  98. package/services/internet/domain.ts +658 -0
  99. package/services/internet/internet.client.ts +1 -1
  100. package/services/internet/internet.ts +15 -4
  101. package/services/jobs/conduct.client.ts +1 -1
  102. package/services/jobs/conduct.ts +30 -17
  103. package/services/jobs/jobs.client.ts +1 -1
  104. package/services/jobs/jobs.ts +43 -17
  105. package/services/jobs/timeclock.client.ts +1 -1
  106. package/services/jobs/timeclock.ts +20 -20
  107. package/services/livemapper/livemap.client.ts +1 -1
  108. package/services/livemapper/livemap.ts +137 -35
  109. package/services/mailer/mailer.client.ts +1 -1
  110. package/services/mailer/mailer.ts +216 -164
  111. package/services/notificator/notificator.client.ts +1 -1
  112. package/services/notificator/notificator.ts +30 -17
  113. package/services/qualifications/qualifications.client.ts +3 -3
  114. package/services/qualifications/qualifications.ts +190 -115
  115. package/services/rector/config.client.ts +1 -1
  116. package/services/rector/config.ts +16 -3
  117. package/services/rector/filestore.client.ts +1 -1
  118. package/services/rector/filestore.ts +15 -2
  119. package/services/rector/laws.client.ts +1 -1
  120. package/services/rector/laws.ts +45 -19
  121. package/services/rector/rector.client.ts +1 -1
  122. package/services/rector/rector.ts +135 -70
  123. package/services/stats/stats.client.ts +1 -1
  124. package/services/stats/stats.ts +16 -3
  125. package/services/sync/sync.client.ts +43 -3
  126. package/services/sync/sync.ts +301 -34
  127. package/services/wiki/wiki.client.ts +1 -1
  128. package/services/wiki/wiki.ts +39 -26
  129. package/svcs.ts +17 -1
  130. package/resources/centrum/general.ts +0 -231
  131. package/resources/common/access/dummy.ts +0 -309
  132. package/resources/internet/internet.ts +0 -344
  133. package/resources/mailer/user.ts +0 -93
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
3
3
  // @ts-nocheck
4
4
  //
@@ -107,7 +107,6 @@ import { MessageType } from "@protobuf-ts/runtime";
107
107
  * microsecond should be expressed in JSON format as "3.000001s".
108
108
  *
109
109
  *
110
- *
111
110
  * @generated from protobuf message google.protobuf.Duration
112
111
  */
113
112
  export interface Duration {
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
3
3
  // @ts-nocheck
4
4
  //
@@ -97,7 +97,6 @@ import { MessageType } from "@protobuf-ts/runtime";
97
97
  * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
98
98
  * .setNanos((int) ((millis % 1000) * 1000000)).build();
99
99
  *
100
- *
101
100
  * Example 5: Compute Timestamp from Java `Instant.now()`.
102
101
  *
103
102
  * Instant now = Instant.now();
@@ -106,7 +105,6 @@ import { MessageType } from "@protobuf-ts/runtime";
106
105
  * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
107
106
  * .setNanos(now.getNano()).build();
108
107
  *
109
- *
110
108
  * Example 6: Compute Timestamp from current time in Python.
111
109
  *
112
110
  * timestamp = Timestamp()
@@ -136,11 +134,10 @@ import { MessageType } from "@protobuf-ts/runtime";
136
134
  * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
137
135
  * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
138
136
  * the Joda Time's [`ISODateTimeFormat.dateTime()`](
139
- * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
137
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
140
138
  * ) to obtain a formatter capable of generating timestamps in this format.
141
139
  *
142
140
  *
143
- *
144
141
  * @generated from protobuf message google.protobuf.Timestamp
145
142
  */
146
143
  export interface Timestamp {
@@ -193,7 +190,7 @@ class Timestamp$Type extends MessageType<Timestamp> {
193
190
  const msg = this.create();
194
191
  const ms = date.getTime();
195
192
  msg.seconds = PbLong.from(Math.floor(ms / 1000)).toNumber();
196
- msg.nanos = (ms % 1000) * 1000000;
193
+ msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
197
194
  return msg;
198
195
  }
199
196
  /**
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@fivenet-app/gen",
3
3
  "private": false,
4
- "version": "0.9.3",
4
+ "version": "0.9.5-0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/fivenet-app/fivenet.git"
10
+ },
11
+ "devDependencies": {
12
+ "@protobuf-ts/plugin": "2.9.6",
13
+ "google-protobuf": "3.21.4"
10
14
  }
11
15
  }
package/perms.ts CHANGED
@@ -4,10 +4,12 @@
4
4
  // source: resources/calendar/access.proto
5
5
  // source: resources/calendar/calendar.proto
6
6
  // source: resources/centrum/access.proto
7
+ // source: resources/centrum/attributes.proto
7
8
  // source: resources/centrum/dispatches.proto
8
- // source: resources/centrum/general.proto
9
+ // source: resources/centrum/disponents.proto
9
10
  // source: resources/centrum/settings.proto
10
11
  // source: resources/centrum/units.proto
12
+ // source: resources/centrum/user_unit.proto
11
13
  // source: resources/common/error.proto
12
14
  // source: resources/common/i18n.proto
13
15
  // source: resources/common/uuid.proto
@@ -15,6 +17,7 @@
15
17
  // source: resources/common/cron/cron.proto
16
18
  // source: resources/common/database/database.proto
17
19
  // source: resources/common/grpcws/grpcws.proto
20
+ // source: resources/common/tests/objects.proto
18
21
  // source: resources/documents/access.proto
19
22
  // source: resources/documents/activity.proto
20
23
  // source: resources/documents/category.proto
@@ -24,6 +27,7 @@
24
27
  // source: resources/documents/templates.proto
25
28
  // source: resources/documents/workflow.proto
26
29
  // source: resources/filestore/file.proto
30
+ // source: resources/internet/access.proto
27
31
  // source: resources/internet/ads.proto
28
32
  // source: resources/internet/domain.proto
29
33
  // source: resources/internet/page.proto
@@ -50,6 +54,7 @@
50
54
  // source: resources/qualifications/exam.proto
51
55
  // source: resources/qualifications/qualifications.proto
52
56
  // source: resources/rector/audit.proto
57
+ // source: resources/rector/banner.proto
53
58
  // source: resources/rector/config.proto
54
59
  // source: resources/stats/stats.proto
55
60
  // source: resources/sync/activity.proto
@@ -57,8 +62,10 @@
57
62
  // source: resources/timestamp/timestamp.proto
58
63
  // source: resources/users/activity.proto
59
64
  // source: resources/users/job_props.proto
65
+ // source: resources/users/job_settings.proto
60
66
  // source: resources/users/jobs.proto
61
67
  // source: resources/users/labels.proto
68
+ // source: resources/users/licenses.proto
62
69
  // source: resources/users/props.proto
63
70
  // source: resources/users/users.proto
64
71
  // source: resources/vehicles/vehicles.proto
@@ -73,6 +80,7 @@
73
80
  // source: services/dmv/vehicles.proto
74
81
  // source: services/docstore/docstore.proto
75
82
  // source: services/internet/ads.proto
83
+ // source: services/internet/domain.proto
76
84
  // source: services/internet/internet.proto
77
85
  // source: services/jobs/conduct.proto
78
86
  // source: services/jobs/jobs.proto
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "resources/accounts/accounts.proto" (package "resources.accounts", syntax proto3)
3
3
  // @ts-nocheck
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -17,9 +17,9 @@ import { Timestamp } from "../timestamp/timestamp";
17
17
  */
18
18
  export interface Account {
19
19
  /**
20
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
20
+ * @generated from protobuf field: uint64 id = 1;
21
21
  */
22
- id: string;
22
+ id: number;
23
23
  /**
24
24
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
25
25
  */
@@ -58,7 +58,7 @@ export interface Character {
58
58
  class Account$Type extends MessageType<Account> {
59
59
  constructor() {
60
60
  super("resources.accounts.Account", [
61
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
61
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
62
62
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
63
63
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
64
64
  { no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "24" } } } },
@@ -67,7 +67,7 @@ class Account$Type extends MessageType<Account> {
67
67
  }
68
68
  create(value?: PartialMessage<Account>): Account {
69
69
  const message = globalThis.Object.create((this.messagePrototype!));
70
- message.id = "0";
70
+ message.id = 0;
71
71
  message.username = "";
72
72
  message.license = "";
73
73
  if (value !== undefined)
@@ -79,8 +79,8 @@ class Account$Type extends MessageType<Account> {
79
79
  while (reader.pos < end) {
80
80
  let [fieldNo, wireType] = reader.tag();
81
81
  switch (fieldNo) {
82
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
83
- message.id = reader.uint64().toString();
82
+ case /* uint64 id */ 1:
83
+ message.id = reader.uint64().toNumber();
84
84
  break;
85
85
  case /* optional resources.timestamp.Timestamp created_at */ 2:
86
86
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -106,8 +106,8 @@ class Account$Type extends MessageType<Account> {
106
106
  return message;
107
107
  }
108
108
  internalBinaryWrite(message: Account, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
109
- /* uint64 id = 1 [jstype = JS_STRING]; */
110
- if (message.id !== "0")
109
+ /* uint64 id = 1; */
110
+ if (message.id !== 0)
111
111
  writer.tag(1, WireType.Varint).uint64(message.id);
112
112
  /* optional resources.timestamp.Timestamp created_at = 2; */
113
113
  if (message.createdAt)
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "resources/accounts/oauth2.proto" (package "resources.accounts", syntax proto3)
3
3
  // @ts-nocheck
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -16,9 +16,9 @@ import { Timestamp } from "../timestamp/timestamp";
16
16
  */
17
17
  export interface OAuth2Account {
18
18
  /**
19
- * @generated from protobuf field: uint64 account_id = 1 [jstype = JS_STRING];
19
+ * @generated from protobuf field: uint64 account_id = 1;
20
20
  */
21
- accountId: string;
21
+ accountId: number;
22
22
  /**
23
23
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
24
24
  */
@@ -32,7 +32,7 @@ export interface OAuth2Account {
32
32
  */
33
33
  provider?: OAuth2Provider;
34
34
  /**
35
- * @generated from protobuf field: uint64 external_id = 5 [jstype = JS_STRING];
35
+ * @generated from protobuf field: string external_id = 5;
36
36
  */
37
37
  externalId: string;
38
38
  /**
@@ -69,20 +69,20 @@ export interface OAuth2Provider {
69
69
  class OAuth2Account$Type extends MessageType<OAuth2Account> {
70
70
  constructor() {
71
71
  super("resources.accounts.OAuth2Account", [
72
- { no: 1, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
72
+ { no: 1, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
73
73
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
74
74
  { no: 3, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
75
75
  { no: 4, name: "provider", kind: "message", T: () => OAuth2Provider },
76
- { no: 5, name: "external_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
76
+ { no: 5, name: "external_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
77
77
  { no: 6, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
78
78
  { no: 7, name: "avatar", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
79
79
  ]);
80
80
  }
81
81
  create(value?: PartialMessage<OAuth2Account>): OAuth2Account {
82
82
  const message = globalThis.Object.create((this.messagePrototype!));
83
- message.accountId = "0";
83
+ message.accountId = 0;
84
84
  message.providerName = "";
85
- message.externalId = "0";
85
+ message.externalId = "";
86
86
  message.username = "";
87
87
  message.avatar = "";
88
88
  if (value !== undefined)
@@ -94,8 +94,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
94
94
  while (reader.pos < end) {
95
95
  let [fieldNo, wireType] = reader.tag();
96
96
  switch (fieldNo) {
97
- case /* uint64 account_id = 1 [jstype = JS_STRING];*/ 1:
98
- message.accountId = reader.uint64().toString();
97
+ case /* uint64 account_id */ 1:
98
+ message.accountId = reader.uint64().toNumber();
99
99
  break;
100
100
  case /* optional resources.timestamp.Timestamp created_at */ 2:
101
101
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -106,8 +106,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
106
106
  case /* resources.accounts.OAuth2Provider provider */ 4:
107
107
  message.provider = OAuth2Provider.internalBinaryRead(reader, reader.uint32(), options, message.provider);
108
108
  break;
109
- case /* uint64 external_id = 5 [jstype = JS_STRING];*/ 5:
110
- message.externalId = reader.uint64().toString();
109
+ case /* string external_id */ 5:
110
+ message.externalId = reader.string();
111
111
  break;
112
112
  case /* string username */ 6:
113
113
  message.username = reader.string();
@@ -127,8 +127,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
127
127
  return message;
128
128
  }
129
129
  internalBinaryWrite(message: OAuth2Account, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
130
- /* uint64 account_id = 1 [jstype = JS_STRING]; */
131
- if (message.accountId !== "0")
130
+ /* uint64 account_id = 1; */
131
+ if (message.accountId !== 0)
132
132
  writer.tag(1, WireType.Varint).uint64(message.accountId);
133
133
  /* optional resources.timestamp.Timestamp created_at = 2; */
134
134
  if (message.createdAt)
@@ -139,9 +139,9 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
139
139
  /* resources.accounts.OAuth2Provider provider = 4; */
140
140
  if (message.provider)
141
141
  OAuth2Provider.internalBinaryWrite(message.provider, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
142
- /* uint64 external_id = 5 [jstype = JS_STRING]; */
143
- if (message.externalId !== "0")
144
- writer.tag(5, WireType.Varint).uint64(message.externalId);
142
+ /* string external_id = 5; */
143
+ if (message.externalId !== "")
144
+ writer.tag(5, WireType.LengthDelimited).string(message.externalId);
145
145
  /* string username = 6; */
146
146
  if (message.username !== "")
147
147
  writer.tag(6, WireType.LengthDelimited).string(message.username);
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "resources/calendar/access.proto" (package "resources.calendar", syntax proto3)
3
3
  // @ts-nocheck
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -30,17 +30,17 @@ export interface CalendarAccess {
30
30
  */
31
31
  export interface CalendarJobAccess {
32
32
  /**
33
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
33
+ * @generated from protobuf field: uint64 id = 1;
34
34
  */
35
- id: string;
35
+ id: number;
36
36
  /**
37
37
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
38
38
  */
39
39
  createdAt?: Timestamp;
40
40
  /**
41
- * @generated from protobuf field: uint64 target_id = 3 [jstype = JS_STRING];
41
+ * @generated from protobuf field: uint64 target_id = 3;
42
42
  */
43
- targetId: string; // @gotags: alias:"calendar_id"
43
+ targetId: number;
44
44
  /**
45
45
  * @generated from protobuf field: string job = 4;
46
46
  */
@@ -67,17 +67,17 @@ export interface CalendarJobAccess {
67
67
  */
68
68
  export interface CalendarUserAccess {
69
69
  /**
70
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
70
+ * @generated from protobuf field: uint64 id = 1;
71
71
  */
72
- id: string;
72
+ id: number;
73
73
  /**
74
74
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
75
75
  */
76
76
  createdAt?: Timestamp;
77
77
  /**
78
- * @generated from protobuf field: uint64 target_id = 3 [jstype = JS_STRING];
78
+ * @generated from protobuf field: uint64 target_id = 3;
79
79
  */
80
- targetId: string; // @gotags: alias:"calendar_id"
80
+ targetId: number;
81
81
  /**
82
82
  * @generated from protobuf field: int32 user_id = 4;
83
83
  */
@@ -179,9 +179,9 @@ export const CalendarAccess = new CalendarAccess$Type();
179
179
  class CalendarJobAccess$Type extends MessageType<CalendarJobAccess> {
180
180
  constructor() {
181
181
  super("resources.calendar.CalendarJobAccess", [
182
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
182
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
183
183
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
184
- { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
184
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
185
185
  { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
186
186
  { no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
187
187
  { no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
@@ -191,8 +191,8 @@ class CalendarJobAccess$Type extends MessageType<CalendarJobAccess> {
191
191
  }
192
192
  create(value?: PartialMessage<CalendarJobAccess>): CalendarJobAccess {
193
193
  const message = globalThis.Object.create((this.messagePrototype!));
194
- message.id = "0";
195
- message.targetId = "0";
194
+ message.id = 0;
195
+ message.targetId = 0;
196
196
  message.job = "";
197
197
  message.minimumGrade = 0;
198
198
  message.access = 0;
@@ -205,14 +205,14 @@ class CalendarJobAccess$Type extends MessageType<CalendarJobAccess> {
205
205
  while (reader.pos < end) {
206
206
  let [fieldNo, wireType] = reader.tag();
207
207
  switch (fieldNo) {
208
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
209
- message.id = reader.uint64().toString();
208
+ case /* uint64 id */ 1:
209
+ message.id = reader.uint64().toNumber();
210
210
  break;
211
211
  case /* optional resources.timestamp.Timestamp created_at */ 2:
212
212
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
213
213
  break;
214
- case /* uint64 target_id = 3 [jstype = JS_STRING];*/ 3:
215
- message.targetId = reader.uint64().toString();
214
+ case /* uint64 target_id */ 3:
215
+ message.targetId = reader.uint64().toNumber();
216
216
  break;
217
217
  case /* string job */ 4:
218
218
  message.job = reader.string();
@@ -241,14 +241,14 @@ class CalendarJobAccess$Type extends MessageType<CalendarJobAccess> {
241
241
  return message;
242
242
  }
243
243
  internalBinaryWrite(message: CalendarJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
244
- /* uint64 id = 1 [jstype = JS_STRING]; */
245
- if (message.id !== "0")
244
+ /* uint64 id = 1; */
245
+ if (message.id !== 0)
246
246
  writer.tag(1, WireType.Varint).uint64(message.id);
247
247
  /* optional resources.timestamp.Timestamp created_at = 2; */
248
248
  if (message.createdAt)
249
249
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
250
- /* uint64 target_id = 3 [jstype = JS_STRING]; */
251
- if (message.targetId !== "0")
250
+ /* uint64 target_id = 3; */
251
+ if (message.targetId !== 0)
252
252
  writer.tag(3, WireType.Varint).uint64(message.targetId);
253
253
  /* string job = 4; */
254
254
  if (message.job !== "")
@@ -279,9 +279,9 @@ export const CalendarJobAccess = new CalendarJobAccess$Type();
279
279
  class CalendarUserAccess$Type extends MessageType<CalendarUserAccess> {
280
280
  constructor() {
281
281
  super("resources.calendar.CalendarUserAccess", [
282
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
282
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
283
283
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
284
- { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
284
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
285
285
  { no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
286
286
  { no: 5, name: "user", kind: "message", T: () => UserShort },
287
287
  { no: 6, name: "access", kind: "enum", T: () => ["resources.calendar.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
@@ -289,8 +289,8 @@ class CalendarUserAccess$Type extends MessageType<CalendarUserAccess> {
289
289
  }
290
290
  create(value?: PartialMessage<CalendarUserAccess>): CalendarUserAccess {
291
291
  const message = globalThis.Object.create((this.messagePrototype!));
292
- message.id = "0";
293
- message.targetId = "0";
292
+ message.id = 0;
293
+ message.targetId = 0;
294
294
  message.userId = 0;
295
295
  message.access = 0;
296
296
  if (value !== undefined)
@@ -302,14 +302,14 @@ class CalendarUserAccess$Type extends MessageType<CalendarUserAccess> {
302
302
  while (reader.pos < end) {
303
303
  let [fieldNo, wireType] = reader.tag();
304
304
  switch (fieldNo) {
305
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
306
- message.id = reader.uint64().toString();
305
+ case /* uint64 id */ 1:
306
+ message.id = reader.uint64().toNumber();
307
307
  break;
308
308
  case /* optional resources.timestamp.Timestamp created_at */ 2:
309
309
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
310
310
  break;
311
- case /* uint64 target_id = 3 [jstype = JS_STRING];*/ 3:
312
- message.targetId = reader.uint64().toString();
311
+ case /* uint64 target_id */ 3:
312
+ message.targetId = reader.uint64().toNumber();
313
313
  break;
314
314
  case /* int32 user_id */ 4:
315
315
  message.userId = reader.int32();
@@ -332,14 +332,14 @@ class CalendarUserAccess$Type extends MessageType<CalendarUserAccess> {
332
332
  return message;
333
333
  }
334
334
  internalBinaryWrite(message: CalendarUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
335
- /* uint64 id = 1 [jstype = JS_STRING]; */
336
- if (message.id !== "0")
335
+ /* uint64 id = 1; */
336
+ if (message.id !== 0)
337
337
  writer.tag(1, WireType.Varint).uint64(message.id);
338
338
  /* optional resources.timestamp.Timestamp created_at = 2; */
339
339
  if (message.createdAt)
340
340
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
341
- /* uint64 target_id = 3 [jstype = JS_STRING]; */
342
- if (message.targetId !== "0")
341
+ /* uint64 target_id = 3; */
342
+ if (message.targetId !== 0)
343
343
  writer.tag(3, WireType.Varint).uint64(message.targetId);
344
344
  /* int32 user_id = 4; */
345
345
  if (message.userId !== 0)