@fivenet-app/gen 2025.9.1 → 2026.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 (134) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +186 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +140 -8
  7. package/resources/accounts/accounts.ts +98 -31
  8. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
  9. package/resources/audit/audit.ts +156 -38
  10. package/resources/calendar/{access.ts → access/access.ts} +30 -30
  11. package/resources/calendar/calendar.ts +17 -477
  12. package/resources/calendar/entries/entries.ts +474 -0
  13. package/resources/centrum/{access.ts → access/access.ts} +22 -22
  14. package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
  15. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
  16. package/resources/centrum/joblist.ts +136 -0
  17. package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
  18. package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
  19. package/resources/centrum/{units.ts → units/units.ts} +131 -51
  20. package/resources/citizens/labels/labels.ts +526 -0
  21. package/resources/{users → citizens/licenses}/licenses.ts +17 -17
  22. package/resources/clientconfig/clientconfig.ts +126 -258
  23. package/resources/collab/collab.ts +4 -16
  24. package/resources/common/content/content.ts +108 -85
  25. package/resources/common/content/diff_activity.ts +267 -0
  26. package/resources/common/i18n.ts +2 -2
  27. package/resources/{common/cron → cron}/cron.ts +43 -43
  28. package/resources/documents/{access.ts → access/access.ts} +29 -52
  29. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  30. package/resources/documents/approval/approval.ts +945 -0
  31. package/resources/documents/{category.ts → category/category.ts} +7 -7
  32. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  33. package/resources/documents/data/data.ts +303 -0
  34. package/resources/documents/documents.ts +282 -667
  35. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  36. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  37. package/resources/documents/references/references.ts +187 -0
  38. package/resources/documents/relations/relations.ts +184 -0
  39. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  40. package/resources/documents/stamps/stamp.ts +355 -0
  41. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  42. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  43. package/resources/file/filestore.ts +1 -1
  44. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  45. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  46. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  47. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  48. package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
  49. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  50. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  51. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  52. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  53. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  54. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  55. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  56. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  57. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  58. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  59. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  60. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  61. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  62. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  63. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  64. package/resources/notifications/notifications.ts +4 -4
  65. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  66. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  67. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  68. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  69. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  70. package/resources/qualifications/qualifications.ts +51 -179
  71. package/resources/settings/banner.ts +3 -3
  72. package/resources/settings/config.ts +527 -25
  73. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  74. package/resources/settings/perms.ts +14 -14
  75. package/resources/stats/stats.ts +379 -0
  76. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  77. package/resources/sync/{data.ts → data/data.ts} +405 -59
  78. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  79. package/resources/users/{activity.ts → activity/activity.ts} +242 -101
  80. package/resources/users/{props.ts → props/props.ts} +91 -69
  81. package/resources/users/short/user.ts +184 -0
  82. package/resources/users/{users.ts → user.ts} +266 -195
  83. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  84. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  85. package/resources/vehicles/vehicles.ts +20 -8
  86. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  87. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  88. package/resources/wiki/page.ts +39 -15
  89. package/services/auth/auth.client.ts +23 -10
  90. package/services/auth/auth.ts +445 -262
  91. package/services/calendar/calendar.ts +56 -34
  92. package/services/centrum/centrum.ts +127 -127
  93. package/services/citizens/citizens.client.ts +0 -13
  94. package/services/citizens/citizens.ts +44 -134
  95. package/services/citizens/labels.client.ts +77 -0
  96. package/services/citizens/labels.ts +455 -0
  97. package/services/completor/completor.ts +36 -16
  98. package/services/documents/approval.client.ts +188 -0
  99. package/services/documents/approval.ts +1776 -0
  100. package/services/documents/documents.ts +164 -186
  101. package/services/documents/forms.client.ts +51 -0
  102. package/services/documents/forms.ts +232 -0
  103. package/services/documents/stamps.client.ts +77 -0
  104. package/services/documents/stamps.ts +481 -0
  105. package/services/documents/stats.client.ts +38 -0
  106. package/services/documents/stats.ts +245 -0
  107. package/services/jobs/conduct.client.ts +30 -3
  108. package/services/jobs/conduct.ts +159 -33
  109. package/services/jobs/jobs.ts +43 -43
  110. package/services/jobs/stats.client.ts +38 -0
  111. package/services/jobs/stats.ts +207 -0
  112. package/services/jobs/timeclock.ts +39 -39
  113. package/services/livemap/livemap.ts +18 -18
  114. package/services/mailer/mailer.ts +78 -78
  115. package/services/notifications/notifications.ts +35 -35
  116. package/services/qualifications/qualifications.ts +81 -46
  117. package/services/settings/accounts.client.ts +23 -10
  118. package/services/settings/accounts.ts +191 -30
  119. package/services/settings/cron.client.ts +13 -0
  120. package/services/settings/cron.ts +118 -5
  121. package/services/settings/laws.ts +1 -1
  122. package/services/settings/settings.ts +73 -52
  123. package/services/settings/system.client.ts +13 -0
  124. package/services/settings/system.ts +115 -15
  125. package/services/stats/stats.client.ts +7 -7
  126. package/services/stats/stats.ts +24 -24
  127. package/services/sync/sync.client.ts +271 -37
  128. package/services/sync/sync.ts +1525 -421
  129. package/services/vehicles/vehicles.ts +8 -8
  130. package/services/wiki/wiki.ts +8 -8
  131. package/svcs.ts +100 -6
  132. package/resources/centrum/attributes.ts +0 -183
  133. package/resources/documents/signoff.ts +0 -55
  134. package/resources/users/labels.ts +0 -160
@@ -1,5 +1,5 @@
1
1
  // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
- // @generated from protobuf file "resources/jobs/conduct.proto" (package "resources.jobs", syntax proto3)
2
+ // @generated from protobuf file "resources/jobs/conduct/conduct.proto" (package "resources.jobs.conduct", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -11,10 +11,12 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { Colleague } from "./colleagues";
15
- import { Timestamp } from "../timestamp/timestamp";
14
+ import { Colleague } from "../colleagues/colleagues";
15
+ import { File } from "../../file/file";
16
+ import { Content } from "../../common/content/content";
17
+ import { Timestamp } from "../../timestamp/timestamp";
16
18
  /**
17
- * @generated from protobuf message resources.jobs.ConductEntry
19
+ * @generated from protobuf message resources.jobs.conduct.ConductEntry
18
20
  */
19
21
  export interface ConductEntry {
20
22
  /**
@@ -38,36 +40,44 @@ export interface ConductEntry {
38
40
  */
39
41
  job: string;
40
42
  /**
41
- * @generated from protobuf field: resources.jobs.ConductType type = 6
43
+ * @generated from protobuf field: resources.jobs.conduct.ConductType type = 6
42
44
  */
43
45
  type: ConductType;
44
46
  /**
45
- * @generated from protobuf field: string message = 7
47
+ * @generated from protobuf field: bool draft = 7
46
48
  */
47
- message: string;
49
+ draft: boolean;
48
50
  /**
49
- * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 8
51
+ * @generated from protobuf field: resources.common.content.Content message = 8
52
+ */
53
+ message?: Content;
54
+ /**
55
+ * @generated from protobuf field: repeated resources.file.File files = 9
56
+ */
57
+ files: File[];
58
+ /**
59
+ * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 10
50
60
  */
51
61
  expiresAt?: Timestamp;
52
62
  /**
53
- * @generated from protobuf field: int32 target_user_id = 9
63
+ * @generated from protobuf field: int32 target_user_id = 11
54
64
  */
55
65
  targetUserId: number;
56
66
  /**
57
- * @generated from protobuf field: optional resources.jobs.Colleague target_user = 10
67
+ * @generated from protobuf field: optional resources.jobs.colleagues.Colleague target_user = 12
58
68
  */
59
69
  targetUser?: Colleague;
60
70
  /**
61
- * @generated from protobuf field: int32 creator_id = 11
71
+ * @generated from protobuf field: int32 creator_id = 13
62
72
  */
63
73
  creatorId: number;
64
74
  /**
65
- * @generated from protobuf field: optional resources.jobs.Colleague creator = 12
75
+ * @generated from protobuf field: optional resources.jobs.colleagues.Colleague creator = 14
66
76
  */
67
77
  creator?: Colleague;
68
78
  }
69
79
  /**
70
- * @generated from protobuf enum resources.jobs.ConductType
80
+ * @generated from protobuf enum resources.jobs.conduct.ConductType
71
81
  */
72
82
  export enum ConductType {
73
83
  /**
@@ -102,19 +112,21 @@ export enum ConductType {
102
112
  // @generated message type with reflection information, may provide speed optimized methods
103
113
  class ConductEntry$Type extends MessageType<ConductEntry> {
104
114
  constructor() {
105
- super("resources.jobs.ConductEntry", [
115
+ super("resources.jobs.conduct.ConductEntry", [
106
116
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
107
117
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
108
118
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
109
119
  { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
110
120
  { no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
111
- { no: 6, name: "type", kind: "enum", T: () => ["resources.jobs.ConductType", ConductType, "CONDUCT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
112
- { no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "2048" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
113
- { no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
114
- { no: 9, name: "target_user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
115
- { no: 10, name: "target_user", kind: "message", T: () => Colleague, options: { "tagger.tags": "alias:\"target_user\"" } },
116
- { no: 11, name: "creator_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
117
- { no: 12, name: "creator", kind: "message", T: () => Colleague, options: { "tagger.tags": "alias:\"creator\"" } }
121
+ { no: 6, name: "type", kind: "enum", T: () => ["resources.jobs.conduct.ConductType", ConductType, "CONDUCT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
122
+ { no: 7, name: "draft", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
123
+ { no: 8, name: "message", kind: "message", T: () => Content },
124
+ { no: 9, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "tagger.tags": "alias:\"files\"" } },
125
+ { no: 10, name: "expires_at", kind: "message", T: () => Timestamp },
126
+ { no: 11, name: "target_user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
127
+ { no: 12, name: "target_user", kind: "message", T: () => Colleague, options: { "tagger.tags": "alias:\"target_user\"" } },
128
+ { no: 13, name: "creator_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
129
+ { no: 14, name: "creator", kind: "message", T: () => Colleague, options: { "tagger.tags": "alias:\"creator\"" } }
118
130
  ]);
119
131
  }
120
132
  create(value?: PartialMessage<ConductEntry>): ConductEntry {
@@ -122,7 +134,8 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
122
134
  message.id = 0;
123
135
  message.job = "";
124
136
  message.type = 0;
125
- message.message = "";
137
+ message.draft = false;
138
+ message.files = [];
126
139
  message.targetUserId = 0;
127
140
  message.creatorId = 0;
128
141
  if (value !== undefined)
@@ -149,25 +162,31 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
149
162
  case /* string job */ 5:
150
163
  message.job = reader.string();
151
164
  break;
152
- case /* resources.jobs.ConductType type */ 6:
165
+ case /* resources.jobs.conduct.ConductType type */ 6:
153
166
  message.type = reader.int32();
154
167
  break;
155
- case /* string message */ 7:
156
- message.message = reader.string();
168
+ case /* bool draft */ 7:
169
+ message.draft = reader.bool();
170
+ break;
171
+ case /* resources.common.content.Content message */ 8:
172
+ message.message = Content.internalBinaryRead(reader, reader.uint32(), options, message.message);
173
+ break;
174
+ case /* repeated resources.file.File files */ 9:
175
+ message.files.push(File.internalBinaryRead(reader, reader.uint32(), options));
157
176
  break;
158
- case /* optional resources.timestamp.Timestamp expires_at */ 8:
177
+ case /* optional resources.timestamp.Timestamp expires_at */ 10:
159
178
  message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
160
179
  break;
161
- case /* int32 target_user_id */ 9:
180
+ case /* int32 target_user_id */ 11:
162
181
  message.targetUserId = reader.int32();
163
182
  break;
164
- case /* optional resources.jobs.Colleague target_user */ 10:
183
+ case /* optional resources.jobs.colleagues.Colleague target_user */ 12:
165
184
  message.targetUser = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.targetUser);
166
185
  break;
167
- case /* int32 creator_id */ 11:
186
+ case /* int32 creator_id */ 13:
168
187
  message.creatorId = reader.int32();
169
188
  break;
170
- case /* optional resources.jobs.Colleague creator */ 12:
189
+ case /* optional resources.jobs.colleagues.Colleague creator */ 14:
171
190
  message.creator = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.creator);
172
191
  break;
173
192
  default:
@@ -197,27 +216,33 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
197
216
  /* string job = 5; */
198
217
  if (message.job !== "")
199
218
  writer.tag(5, WireType.LengthDelimited).string(message.job);
200
- /* resources.jobs.ConductType type = 6; */
219
+ /* resources.jobs.conduct.ConductType type = 6; */
201
220
  if (message.type !== 0)
202
221
  writer.tag(6, WireType.Varint).int32(message.type);
203
- /* string message = 7; */
204
- if (message.message !== "")
205
- writer.tag(7, WireType.LengthDelimited).string(message.message);
206
- /* optional resources.timestamp.Timestamp expires_at = 8; */
222
+ /* bool draft = 7; */
223
+ if (message.draft !== false)
224
+ writer.tag(7, WireType.Varint).bool(message.draft);
225
+ /* resources.common.content.Content message = 8; */
226
+ if (message.message)
227
+ Content.internalBinaryWrite(message.message, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
228
+ /* repeated resources.file.File files = 9; */
229
+ for (let i = 0; i < message.files.length; i++)
230
+ File.internalBinaryWrite(message.files[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
231
+ /* optional resources.timestamp.Timestamp expires_at = 10; */
207
232
  if (message.expiresAt)
208
- Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
209
- /* int32 target_user_id = 9; */
233
+ Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
234
+ /* int32 target_user_id = 11; */
210
235
  if (message.targetUserId !== 0)
211
- writer.tag(9, WireType.Varint).int32(message.targetUserId);
212
- /* optional resources.jobs.Colleague target_user = 10; */
236
+ writer.tag(11, WireType.Varint).int32(message.targetUserId);
237
+ /* optional resources.jobs.colleagues.Colleague target_user = 12; */
213
238
  if (message.targetUser)
214
- Colleague.internalBinaryWrite(message.targetUser, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
215
- /* int32 creator_id = 11; */
239
+ Colleague.internalBinaryWrite(message.targetUser, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
240
+ /* int32 creator_id = 13; */
216
241
  if (message.creatorId !== 0)
217
- writer.tag(11, WireType.Varint).int32(message.creatorId);
218
- /* optional resources.jobs.Colleague creator = 12; */
242
+ writer.tag(13, WireType.Varint).int32(message.creatorId);
243
+ /* optional resources.jobs.colleagues.Colleague creator = 14; */
219
244
  if (message.creator)
220
- Colleague.internalBinaryWrite(message.creator, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
245
+ Colleague.internalBinaryWrite(message.creator, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
221
246
  let u = options.writeUnknownFields;
222
247
  if (u !== false)
223
248
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -225,6 +250,6 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
225
250
  }
226
251
  }
227
252
  /**
228
- * @generated MessageType for protobuf message resources.jobs.ConductEntry
253
+ * @generated MessageType for protobuf message resources.jobs.conduct.ConductEntry
229
254
  */
230
255
  export const ConductEntry = new ConductEntry$Type();
@@ -1,5 +1,5 @@
1
1
  // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
- // @generated from protobuf file "resources/jobs/labels.proto" (package "resources.jobs", syntax proto3)
2
+ // @generated from protobuf file "resources/jobs/labels/labels.proto" (package "resources.jobs.labels", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -11,18 +11,18 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { Timestamp } from "../timestamp/timestamp";
14
+ import { Timestamp } from "../../timestamp/timestamp";
15
15
  /**
16
- * @generated from protobuf message resources.jobs.Labels
16
+ * @generated from protobuf message resources.jobs.labels.Labels
17
17
  */
18
18
  export interface Labels {
19
19
  /**
20
- * @generated from protobuf field: repeated resources.jobs.Label list = 1
20
+ * @generated from protobuf field: repeated resources.jobs.labels.Label list = 1
21
21
  */
22
22
  list: Label[];
23
23
  }
24
24
  /**
25
- * @generated from protobuf message resources.jobs.Label
25
+ * @generated from protobuf message resources.jobs.labels.Label
26
26
  */
27
27
  export interface Label {
28
28
  /**
@@ -46,16 +46,20 @@ export interface Label {
46
46
  */
47
47
  color: string;
48
48
  /**
49
- * @generated from protobuf field: int32 order = 6
49
+ * @generated from protobuf field: optional string icon = 6
50
+ */
51
+ icon?: string;
52
+ /**
53
+ * @generated from protobuf field: int32 order = 7
50
54
  */
51
55
  order: number;
52
56
  }
53
57
  /**
54
- * @generated from protobuf message resources.jobs.LabelCount
58
+ * @generated from protobuf message resources.jobs.labels.LabelCount
55
59
  */
56
60
  export interface LabelCount {
57
61
  /**
58
- * @generated from protobuf field: resources.jobs.Label label = 1
62
+ * @generated from protobuf field: resources.jobs.labels.Label label = 1
59
63
  */
60
64
  label?: Label;
61
65
  /**
@@ -66,7 +70,7 @@ export interface LabelCount {
66
70
  // @generated message type with reflection information, may provide speed optimized methods
67
71
  class Labels$Type extends MessageType<Labels> {
68
72
  constructor() {
69
- super("resources.jobs.Labels", [
73
+ super("resources.jobs.labels.Labels", [
70
74
  { no: 1, name: "list", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } }
71
75
  ]);
72
76
  }
@@ -82,7 +86,7 @@ class Labels$Type extends MessageType<Labels> {
82
86
  while (reader.pos < end) {
83
87
  let [fieldNo, wireType] = reader.tag();
84
88
  switch (fieldNo) {
85
- case /* repeated resources.jobs.Label list */ 1:
89
+ case /* repeated resources.jobs.labels.Label list */ 1:
86
90
  message.list.push(Label.internalBinaryRead(reader, reader.uint32(), options));
87
91
  break;
88
92
  default:
@@ -97,7 +101,7 @@ class Labels$Type extends MessageType<Labels> {
97
101
  return message;
98
102
  }
99
103
  internalBinaryWrite(message: Labels, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
100
- /* repeated resources.jobs.Label list = 1; */
104
+ /* repeated resources.jobs.labels.Label list = 1; */
101
105
  for (let i = 0; i < message.list.length; i++)
102
106
  Label.internalBinaryWrite(message.list[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
103
107
  let u = options.writeUnknownFields;
@@ -107,19 +111,20 @@ class Labels$Type extends MessageType<Labels> {
107
111
  }
108
112
  }
109
113
  /**
110
- * @generated MessageType for protobuf message resources.jobs.Labels
114
+ * @generated MessageType for protobuf message resources.jobs.labels.Labels
111
115
  */
112
116
  export const Labels = new Labels$Type();
113
117
  // @generated message type with reflection information, may provide speed optimized methods
114
118
  class Label$Type extends MessageType<Label> {
115
119
  constructor() {
116
- super("resources.jobs.Label", [
120
+ super("resources.jobs.labels.Label", [
117
121
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
118
122
  { no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
119
123
  { no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
120
124
  { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } } } },
121
- { no: 5, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
122
- { no: 6, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
125
+ { no: 5, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
126
+ { no: 6, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
127
+ { no: 7, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
123
128
  ]);
124
129
  }
125
130
  create(value?: PartialMessage<Label>): Label {
@@ -152,7 +157,10 @@ class Label$Type extends MessageType<Label> {
152
157
  case /* string color */ 5:
153
158
  message.color = reader.string();
154
159
  break;
155
- case /* int32 order */ 6:
160
+ case /* optional string icon */ 6:
161
+ message.icon = reader.string();
162
+ break;
163
+ case /* int32 order */ 7:
156
164
  message.order = reader.int32();
157
165
  break;
158
166
  default:
@@ -182,9 +190,12 @@ class Label$Type extends MessageType<Label> {
182
190
  /* string color = 5; */
183
191
  if (message.color !== "")
184
192
  writer.tag(5, WireType.LengthDelimited).string(message.color);
185
- /* int32 order = 6; */
193
+ /* optional string icon = 6; */
194
+ if (message.icon !== undefined)
195
+ writer.tag(6, WireType.LengthDelimited).string(message.icon);
196
+ /* int32 order = 7; */
186
197
  if (message.order !== 0)
187
- writer.tag(6, WireType.Varint).int32(message.order);
198
+ writer.tag(7, WireType.Varint).int32(message.order);
188
199
  let u = options.writeUnknownFields;
189
200
  if (u !== false)
190
201
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -192,13 +203,13 @@ class Label$Type extends MessageType<Label> {
192
203
  }
193
204
  }
194
205
  /**
195
- * @generated MessageType for protobuf message resources.jobs.Label
206
+ * @generated MessageType for protobuf message resources.jobs.labels.Label
196
207
  */
197
208
  export const Label = new Label$Type();
198
209
  // @generated message type with reflection information, may provide speed optimized methods
199
210
  class LabelCount$Type extends MessageType<LabelCount> {
200
211
  constructor() {
201
- super("resources.jobs.LabelCount", [
212
+ super("resources.jobs.labels.LabelCount", [
202
213
  { no: 1, name: "label", kind: "message", T: () => Label },
203
214
  { no: 2, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
204
215
  ]);
@@ -215,7 +226,7 @@ class LabelCount$Type extends MessageType<LabelCount> {
215
226
  while (reader.pos < end) {
216
227
  let [fieldNo, wireType] = reader.tag();
217
228
  switch (fieldNo) {
218
- case /* resources.jobs.Label label */ 1:
229
+ case /* resources.jobs.labels.Label label */ 1:
219
230
  message.label = Label.internalBinaryRead(reader, reader.uint32(), options, message.label);
220
231
  break;
221
232
  case /* int64 count */ 2:
@@ -233,7 +244,7 @@ class LabelCount$Type extends MessageType<LabelCount> {
233
244
  return message;
234
245
  }
235
246
  internalBinaryWrite(message: LabelCount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
236
- /* resources.jobs.Label label = 1; */
247
+ /* resources.jobs.labels.Label label = 1; */
237
248
  if (message.label)
238
249
  Label.internalBinaryWrite(message.label, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
239
250
  /* int64 count = 2; */
@@ -246,6 +257,6 @@ class LabelCount$Type extends MessageType<LabelCount> {
246
257
  }
247
258
  }
248
259
  /**
249
- * @generated MessageType for protobuf message resources.jobs.LabelCount
260
+ * @generated MessageType for protobuf message resources.jobs.labels.LabelCount
250
261
  */
251
262
  export const LabelCount = new LabelCount$Type();
@@ -1,5 +1,5 @@
1
1
  // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
- // @generated from protobuf file "resources/jobs/job_props.proto" (package "resources.jobs", syntax proto3)
2
+ // @generated from protobuf file "resources/jobs/props/props.proto" (package "resources.jobs.props", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -11,13 +11,13 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { JobSettings } from "./job_settings";
15
- import { File } from "../file/file";
16
- import { DiscordSyncChanges } from "./job_settings";
17
- import { DiscordSyncSettings } from "./job_settings";
18
- import { Timestamp } from "../timestamp/timestamp";
14
+ import { JobSettings } from "../settings/settings";
15
+ import { File } from "../../file/file";
16
+ import { DiscordSyncChanges } from "../settings/settings";
17
+ import { DiscordSyncSettings } from "../settings/settings";
18
+ import { Timestamp } from "../../timestamp/timestamp";
19
19
  /**
20
- * @generated from protobuf message resources.jobs.JobProps
20
+ * @generated from protobuf message resources.jobs.props.JobProps
21
21
  */
22
22
  export interface JobProps {
23
23
  /**
@@ -37,7 +37,7 @@ export interface JobProps {
37
37
  */
38
38
  livemapMarkerColor: string;
39
39
  /**
40
- * @generated from protobuf field: resources.jobs.QuickButtons quick_buttons = 5
40
+ * @generated from protobuf field: resources.jobs.props.QuickButtons quick_buttons = 5
41
41
  */
42
42
  quickButtons?: QuickButtons;
43
43
  /**
@@ -53,11 +53,11 @@ export interface JobProps {
53
53
  */
54
54
  discordLastSync?: Timestamp;
55
55
  /**
56
- * @generated from protobuf field: resources.jobs.DiscordSyncSettings discord_sync_settings = 9
56
+ * @generated from protobuf field: resources.jobs.settings.DiscordSyncSettings discord_sync_settings = 9
57
57
  */
58
58
  discordSyncSettings?: DiscordSyncSettings;
59
59
  /**
60
- * @generated from protobuf field: optional resources.jobs.DiscordSyncChanges discord_sync_changes = 10
60
+ * @generated from protobuf field: optional resources.jobs.settings.DiscordSyncChanges discord_sync_changes = 10
61
61
  */
62
62
  discordSyncChanges?: DiscordSyncChanges;
63
63
  /**
@@ -73,27 +73,23 @@ export interface JobProps {
73
73
  */
74
74
  logoFile?: File;
75
75
  /**
76
- * @generated from protobuf field: resources.jobs.JobSettings settings = 14
76
+ * @generated from protobuf field: resources.jobs.settings.JobSettings settings = 14
77
77
  */
78
78
  settings?: JobSettings;
79
79
  }
80
80
  /**
81
- * @generated from protobuf message resources.jobs.QuickButtons
81
+ * @generated from protobuf message resources.jobs.props.QuickButtons
82
82
  */
83
83
  export interface QuickButtons {
84
84
  /**
85
85
  * @generated from protobuf field: bool penalty_calculator = 1
86
86
  */
87
87
  penaltyCalculator: boolean;
88
- /**
89
- * @generated from protobuf field: bool math_calculator = 3
90
- */
91
- mathCalculator: boolean;
92
88
  }
93
89
  // @generated message type with reflection information, may provide speed optimized methods
94
90
  class JobProps$Type extends MessageType<JobProps> {
95
91
  constructor() {
96
- super("resources.jobs.JobProps", [
92
+ super("resources.jobs.props.JobProps", [
97
93
  { no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
98
94
  { no: 2, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
99
95
  { no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
@@ -135,7 +131,7 @@ class JobProps$Type extends MessageType<JobProps> {
135
131
  case /* string livemap_marker_color */ 4:
136
132
  message.livemapMarkerColor = reader.string();
137
133
  break;
138
- case /* resources.jobs.QuickButtons quick_buttons */ 5:
134
+ case /* resources.jobs.props.QuickButtons quick_buttons */ 5:
139
135
  message.quickButtons = QuickButtons.internalBinaryRead(reader, reader.uint32(), options, message.quickButtons);
140
136
  break;
141
137
  case /* optional string radio_frequency */ 6:
@@ -147,10 +143,10 @@ class JobProps$Type extends MessageType<JobProps> {
147
143
  case /* optional resources.timestamp.Timestamp discord_last_sync */ 8:
148
144
  message.discordLastSync = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.discordLastSync);
149
145
  break;
150
- case /* resources.jobs.DiscordSyncSettings discord_sync_settings */ 9:
146
+ case /* resources.jobs.settings.DiscordSyncSettings discord_sync_settings */ 9:
151
147
  message.discordSyncSettings = DiscordSyncSettings.internalBinaryRead(reader, reader.uint32(), options, message.discordSyncSettings);
152
148
  break;
153
- case /* optional resources.jobs.DiscordSyncChanges discord_sync_changes */ 10:
149
+ case /* optional resources.jobs.settings.DiscordSyncChanges discord_sync_changes */ 10:
154
150
  message.discordSyncChanges = DiscordSyncChanges.internalBinaryRead(reader, reader.uint32(), options, message.discordSyncChanges);
155
151
  break;
156
152
  case /* optional string motd */ 11:
@@ -162,7 +158,7 @@ class JobProps$Type extends MessageType<JobProps> {
162
158
  case /* optional resources.file.File logo_file */ 13:
163
159
  message.logoFile = File.internalBinaryRead(reader, reader.uint32(), options, message.logoFile);
164
160
  break;
165
- case /* resources.jobs.JobSettings settings */ 14:
161
+ case /* resources.jobs.settings.JobSettings settings */ 14:
166
162
  message.settings = JobSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
167
163
  break;
168
164
  default:
@@ -189,7 +185,7 @@ class JobProps$Type extends MessageType<JobProps> {
189
185
  /* string livemap_marker_color = 4; */
190
186
  if (message.livemapMarkerColor !== "")
191
187
  writer.tag(4, WireType.LengthDelimited).string(message.livemapMarkerColor);
192
- /* resources.jobs.QuickButtons quick_buttons = 5; */
188
+ /* resources.jobs.props.QuickButtons quick_buttons = 5; */
193
189
  if (message.quickButtons)
194
190
  QuickButtons.internalBinaryWrite(message.quickButtons, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
195
191
  /* optional string radio_frequency = 6; */
@@ -201,10 +197,10 @@ class JobProps$Type extends MessageType<JobProps> {
201
197
  /* optional resources.timestamp.Timestamp discord_last_sync = 8; */
202
198
  if (message.discordLastSync)
203
199
  Timestamp.internalBinaryWrite(message.discordLastSync, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
204
- /* resources.jobs.DiscordSyncSettings discord_sync_settings = 9; */
200
+ /* resources.jobs.settings.DiscordSyncSettings discord_sync_settings = 9; */
205
201
  if (message.discordSyncSettings)
206
202
  DiscordSyncSettings.internalBinaryWrite(message.discordSyncSettings, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
207
- /* optional resources.jobs.DiscordSyncChanges discord_sync_changes = 10; */
203
+ /* optional resources.jobs.settings.DiscordSyncChanges discord_sync_changes = 10; */
208
204
  if (message.discordSyncChanges)
209
205
  DiscordSyncChanges.internalBinaryWrite(message.discordSyncChanges, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
210
206
  /* optional string motd = 11; */
@@ -216,7 +212,7 @@ class JobProps$Type extends MessageType<JobProps> {
216
212
  /* optional resources.file.File logo_file = 13; */
217
213
  if (message.logoFile)
218
214
  File.internalBinaryWrite(message.logoFile, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
219
- /* resources.jobs.JobSettings settings = 14; */
215
+ /* resources.jobs.settings.JobSettings settings = 14; */
220
216
  if (message.settings)
221
217
  JobSettings.internalBinaryWrite(message.settings, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
222
218
  let u = options.writeUnknownFields;
@@ -226,21 +222,19 @@ class JobProps$Type extends MessageType<JobProps> {
226
222
  }
227
223
  }
228
224
  /**
229
- * @generated MessageType for protobuf message resources.jobs.JobProps
225
+ * @generated MessageType for protobuf message resources.jobs.props.JobProps
230
226
  */
231
227
  export const JobProps = new JobProps$Type();
232
228
  // @generated message type with reflection information, may provide speed optimized methods
233
229
  class QuickButtons$Type extends MessageType<QuickButtons> {
234
230
  constructor() {
235
- super("resources.jobs.QuickButtons", [
236
- { no: 1, name: "penalty_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
237
- { no: 3, name: "math_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
238
- ], { "codegen.dbscanner.dbscanner": { enabled: true } });
231
+ super("resources.jobs.props.QuickButtons", [
232
+ { no: 1, name: "penalty_calculator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
233
+ ], { "codegen.dbscanner.dbscanner": { enabled: true, partial: true } });
239
234
  }
240
235
  create(value?: PartialMessage<QuickButtons>): QuickButtons {
241
236
  const message = globalThis.Object.create((this.messagePrototype!));
242
237
  message.penaltyCalculator = false;
243
- message.mathCalculator = false;
244
238
  if (value !== undefined)
245
239
  reflectionMergePartial<QuickButtons>(this, message, value);
246
240
  return message;
@@ -253,9 +247,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
253
247
  case /* bool penalty_calculator */ 1:
254
248
  message.penaltyCalculator = reader.bool();
255
249
  break;
256
- case /* bool math_calculator */ 3:
257
- message.mathCalculator = reader.bool();
258
- break;
259
250
  default:
260
251
  let u = options.readUnknownField;
261
252
  if (u === "throw")
@@ -271,9 +262,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
271
262
  /* bool penalty_calculator = 1; */
272
263
  if (message.penaltyCalculator !== false)
273
264
  writer.tag(1, WireType.Varint).bool(message.penaltyCalculator);
274
- /* bool math_calculator = 3; */
275
- if (message.mathCalculator !== false)
276
- writer.tag(3, WireType.Varint).bool(message.mathCalculator);
277
265
  let u = options.writeUnknownFields;
278
266
  if (u !== false)
279
267
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -281,6 +269,6 @@ class QuickButtons$Type extends MessageType<QuickButtons> {
281
269
  }
282
270
  }
283
271
  /**
284
- * @generated MessageType for protobuf message resources.jobs.QuickButtons
272
+ * @generated MessageType for protobuf message resources.jobs.props.QuickButtons
285
273
  */
286
274
  export const QuickButtons = new QuickButtons$Type();