@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.
- package/README.md +1 -1
- package/clients.ts +36 -0
- package/codegen/perms/perms.ts +186 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +140 -8
- package/resources/accounts/accounts.ts +98 -31
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
- package/resources/audit/audit.ts +156 -38
- package/resources/calendar/{access.ts → access/access.ts} +30 -30
- package/resources/calendar/calendar.ts +17 -477
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/{access.ts → access/access.ts} +22 -22
- package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/citizens/labels/labels.ts +526 -0
- package/resources/{users → citizens/licenses}/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +126 -258
- package/resources/collab/collab.ts +4 -16
- package/resources/common/content/content.ts +108 -85
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/i18n.ts +2 -2
- package/resources/{common/cron → cron}/cron.ts +43 -43
- package/resources/documents/{access.ts → access/access.ts} +29 -52
- package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +7 -7
- package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +282 -667
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
- package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
- package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
- package/resources/file/filestore.ts +1 -1
- package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
- package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
- package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
- package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
- package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
- package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
- package/resources/mailer/{access.ts → access/access.ts} +67 -67
- package/resources/mailer/{email.ts → emails/email.ts} +19 -19
- package/resources/mailer/{events.ts → events/events.ts} +24 -24
- package/resources/mailer/{message.ts → messages/message.ts} +29 -29
- package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
- package/resources/mailer/{template.ts → templates/template.ts} +15 -15
- package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
- package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
- package/resources/notifications/{events.ts → events/events.ts} +20 -20
- package/resources/notifications/notifications.ts +4 -4
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
- package/resources/permissions/{events.ts → events/events.ts} +7 -7
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
- package/resources/qualifications/{access.ts → access/access.ts} +19 -19
- package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
- package/resources/qualifications/qualifications.ts +51 -179
- package/resources/settings/banner.ts +3 -3
- package/resources/settings/config.ts +527 -25
- package/resources/{documents/state.ts → settings/data.ts} +41 -20
- package/resources/settings/perms.ts +14 -14
- package/resources/stats/stats.ts +379 -0
- package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
- package/resources/sync/{data.ts → data/data.ts} +405 -59
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +242 -101
- package/resources/users/{props.ts → props/props.ts} +91 -69
- package/resources/users/short/user.ts +184 -0
- package/resources/users/{users.ts → user.ts} +266 -195
- package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
- package/resources/vehicles/{props.ts → props/props.ts} +28 -6
- package/resources/vehicles/vehicles.ts +20 -8
- package/resources/wiki/{access.ts → access/access.ts} +30 -30
- package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
- package/resources/wiki/page.ts +39 -15
- package/services/auth/auth.client.ts +23 -10
- package/services/auth/auth.ts +445 -262
- package/services/calendar/calendar.ts +56 -34
- package/services/centrum/centrum.ts +127 -127
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +44 -134
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +36 -16
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +164 -186
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/jobs/conduct.client.ts +30 -3
- package/services/jobs/conduct.ts +159 -33
- package/services/jobs/jobs.ts +43 -43
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.ts +39 -39
- package/services/livemap/livemap.ts +18 -18
- package/services/mailer/mailer.ts +78 -78
- package/services/notifications/notifications.ts +35 -35
- package/services/qualifications/qualifications.ts +81 -46
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +118 -5
- package/services/settings/laws.ts +1 -1
- package/services/settings/settings.ts +73 -52
- package/services/settings/system.client.ts +13 -0
- package/services/settings/system.ts +115 -15
- package/services/stats/stats.client.ts +7 -7
- package/services/stats/stats.ts +24 -24
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1525 -421
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +100 -6
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
- 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/permissions/events.proto" (package "resources.permissions", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/permissions/events/events.proto" (package "resources.permissions.events", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -12,7 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
14
|
/**
|
|
15
|
-
* @generated from protobuf message resources.permissions.RoleIDEvent
|
|
15
|
+
* @generated from protobuf message resources.permissions.events.RoleIDEvent
|
|
16
16
|
*/
|
|
17
17
|
export interface RoleIDEvent {
|
|
18
18
|
/**
|
|
@@ -29,7 +29,7 @@ export interface RoleIDEvent {
|
|
|
29
29
|
grade: number;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* @generated from protobuf message resources.permissions.JobLimitsUpdatedEvent
|
|
32
|
+
* @generated from protobuf message resources.permissions.events.JobLimitsUpdatedEvent
|
|
33
33
|
*/
|
|
34
34
|
export interface JobLimitsUpdatedEvent {
|
|
35
35
|
/**
|
|
@@ -40,7 +40,7 @@ export interface JobLimitsUpdatedEvent {
|
|
|
40
40
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
41
41
|
class RoleIDEvent$Type extends MessageType<RoleIDEvent> {
|
|
42
42
|
constructor() {
|
|
43
|
-
super("resources.permissions.RoleIDEvent", [
|
|
43
|
+
super("resources.permissions.events.RoleIDEvent", [
|
|
44
44
|
{ no: 1, name: "role_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
45
45
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
46
46
|
{ no: 3, name: "grade", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
@@ -97,13 +97,13 @@ class RoleIDEvent$Type extends MessageType<RoleIDEvent> {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* @generated MessageType for protobuf message resources.permissions.RoleIDEvent
|
|
100
|
+
* @generated MessageType for protobuf message resources.permissions.events.RoleIDEvent
|
|
101
101
|
*/
|
|
102
102
|
export const RoleIDEvent = new RoleIDEvent$Type();
|
|
103
103
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
104
104
|
class JobLimitsUpdatedEvent$Type extends MessageType<JobLimitsUpdatedEvent> {
|
|
105
105
|
constructor() {
|
|
106
|
-
super("resources.permissions.JobLimitsUpdatedEvent", [
|
|
106
|
+
super("resources.permissions.events.JobLimitsUpdatedEvent", [
|
|
107
107
|
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
108
108
|
]);
|
|
109
109
|
}
|
|
@@ -144,6 +144,6 @@ class JobLimitsUpdatedEvent$Type extends MessageType<JobLimitsUpdatedEvent> {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
* @generated MessageType for protobuf message resources.permissions.JobLimitsUpdatedEvent
|
|
147
|
+
* @generated MessageType for protobuf message resources.permissions.events.JobLimitsUpdatedEvent
|
|
148
148
|
*/
|
|
149
149
|
export const JobLimitsUpdatedEvent = new JobLimitsUpdatedEvent$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/permissions/permissions.proto" (package "resources.permissions", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/permissions/permissions/permissions.proto" (package "resources.permissions.permissions", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,10 +11,10 @@ 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 { RoleAttribute } from "
|
|
15
|
-
import { Timestamp } from "
|
|
14
|
+
import { RoleAttribute } from "../attributes/attributes";
|
|
15
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
16
16
|
/**
|
|
17
|
-
* @generated from protobuf message resources.permissions.Permission
|
|
17
|
+
* @generated from protobuf message resources.permissions.permissions.Permission
|
|
18
18
|
*/
|
|
19
19
|
export interface Permission {
|
|
20
20
|
/**
|
|
@@ -45,9 +45,13 @@ export interface Permission {
|
|
|
45
45
|
* @generated from protobuf field: optional int32 order = 7
|
|
46
46
|
*/
|
|
47
47
|
order?: number;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: optional string icon = 8
|
|
50
|
+
*/
|
|
51
|
+
icon?: string;
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
|
-
* @generated from protobuf message resources.permissions.Role
|
|
54
|
+
* @generated from protobuf message resources.permissions.permissions.Role
|
|
51
55
|
*/
|
|
52
56
|
export interface Role {
|
|
53
57
|
/**
|
|
@@ -75,16 +79,16 @@ export interface Role {
|
|
|
75
79
|
*/
|
|
76
80
|
jobGradeLabel?: string;
|
|
77
81
|
/**
|
|
78
|
-
* @generated from protobuf field: repeated resources.permissions.Permission permissions = 7
|
|
82
|
+
* @generated from protobuf field: repeated resources.permissions.permissions.Permission permissions = 7
|
|
79
83
|
*/
|
|
80
84
|
permissions: Permission[];
|
|
81
85
|
/**
|
|
82
|
-
* @generated from protobuf field: repeated resources.permissions.RoleAttribute attributes = 8
|
|
86
|
+
* @generated from protobuf field: repeated resources.permissions.attributes.RoleAttribute attributes = 8
|
|
83
87
|
*/
|
|
84
88
|
attributes: RoleAttribute[];
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
|
-
* @generated from protobuf message resources.permissions.PermItem
|
|
91
|
+
* @generated from protobuf message resources.permissions.permissions.PermItem
|
|
88
92
|
*/
|
|
89
93
|
export interface PermItem {
|
|
90
94
|
/**
|
|
@@ -99,14 +103,15 @@ export interface PermItem {
|
|
|
99
103
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
100
104
|
class Permission$Type extends MessageType<Permission> {
|
|
101
105
|
constructor() {
|
|
102
|
-
super("resources.permissions.Permission", [
|
|
106
|
+
super("resources.permissions.permissions.Permission", [
|
|
103
107
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
104
108
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
105
109
|
{ no: 3, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
|
|
106
110
|
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
|
|
107
111
|
{ no: 5, name: "guard_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
|
|
108
112
|
{ no: 6, name: "val", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
109
|
-
{ no: 7, name: "order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } }
|
|
113
|
+
{ no: 7, name: "order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
114
|
+
{ no: 8, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
|
|
110
115
|
]);
|
|
111
116
|
}
|
|
112
117
|
create(value?: PartialMessage<Permission>): Permission {
|
|
@@ -146,6 +151,9 @@ class Permission$Type extends MessageType<Permission> {
|
|
|
146
151
|
case /* optional int32 order */ 7:
|
|
147
152
|
message.order = reader.int32();
|
|
148
153
|
break;
|
|
154
|
+
case /* optional string icon */ 8:
|
|
155
|
+
message.icon = reader.string();
|
|
156
|
+
break;
|
|
149
157
|
default:
|
|
150
158
|
let u = options.readUnknownField;
|
|
151
159
|
if (u === "throw")
|
|
@@ -179,6 +187,9 @@ class Permission$Type extends MessageType<Permission> {
|
|
|
179
187
|
/* optional int32 order = 7; */
|
|
180
188
|
if (message.order !== undefined)
|
|
181
189
|
writer.tag(7, WireType.Varint).int32(message.order);
|
|
190
|
+
/* optional string icon = 8; */
|
|
191
|
+
if (message.icon !== undefined)
|
|
192
|
+
writer.tag(8, WireType.LengthDelimited).string(message.icon);
|
|
182
193
|
let u = options.writeUnknownFields;
|
|
183
194
|
if (u !== false)
|
|
184
195
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -186,13 +197,13 @@ class Permission$Type extends MessageType<Permission> {
|
|
|
186
197
|
}
|
|
187
198
|
}
|
|
188
199
|
/**
|
|
189
|
-
* @generated MessageType for protobuf message resources.permissions.Permission
|
|
200
|
+
* @generated MessageType for protobuf message resources.permissions.permissions.Permission
|
|
190
201
|
*/
|
|
191
202
|
export const Permission = new Permission$Type();
|
|
192
203
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
193
204
|
class Role$Type extends MessageType<Role> {
|
|
194
205
|
constructor() {
|
|
195
|
-
super("resources.permissions.Role", [
|
|
206
|
+
super("resources.permissions.permissions.Role", [
|
|
196
207
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
197
208
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
198
209
|
{ no: 3, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
|
|
@@ -237,10 +248,10 @@ class Role$Type extends MessageType<Role> {
|
|
|
237
248
|
case /* optional string job_grade_label */ 6:
|
|
238
249
|
message.jobGradeLabel = reader.string();
|
|
239
250
|
break;
|
|
240
|
-
case /* repeated resources.permissions.Permission permissions */ 7:
|
|
251
|
+
case /* repeated resources.permissions.permissions.Permission permissions */ 7:
|
|
241
252
|
message.permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
|
242
253
|
break;
|
|
243
|
-
case /* repeated resources.permissions.RoleAttribute attributes */ 8:
|
|
254
|
+
case /* repeated resources.permissions.attributes.RoleAttribute attributes */ 8:
|
|
244
255
|
message.attributes.push(RoleAttribute.internalBinaryRead(reader, reader.uint32(), options));
|
|
245
256
|
break;
|
|
246
257
|
default:
|
|
@@ -273,10 +284,10 @@ class Role$Type extends MessageType<Role> {
|
|
|
273
284
|
/* optional string job_grade_label = 6; */
|
|
274
285
|
if (message.jobGradeLabel !== undefined)
|
|
275
286
|
writer.tag(6, WireType.LengthDelimited).string(message.jobGradeLabel);
|
|
276
|
-
/* repeated resources.permissions.Permission permissions = 7; */
|
|
287
|
+
/* repeated resources.permissions.permissions.Permission permissions = 7; */
|
|
277
288
|
for (let i = 0; i < message.permissions.length; i++)
|
|
278
289
|
Permission.internalBinaryWrite(message.permissions[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
279
|
-
/* repeated resources.permissions.RoleAttribute attributes = 8; */
|
|
290
|
+
/* repeated resources.permissions.attributes.RoleAttribute attributes = 8; */
|
|
280
291
|
for (let i = 0; i < message.attributes.length; i++)
|
|
281
292
|
RoleAttribute.internalBinaryWrite(message.attributes[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
282
293
|
let u = options.writeUnknownFields;
|
|
@@ -286,13 +297,13 @@ class Role$Type extends MessageType<Role> {
|
|
|
286
297
|
}
|
|
287
298
|
}
|
|
288
299
|
/**
|
|
289
|
-
* @generated MessageType for protobuf message resources.permissions.Role
|
|
300
|
+
* @generated MessageType for protobuf message resources.permissions.permissions.Role
|
|
290
301
|
*/
|
|
291
302
|
export const Role = new Role$Type();
|
|
292
303
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
293
304
|
class PermItem$Type extends MessageType<PermItem> {
|
|
294
305
|
constructor() {
|
|
295
|
-
super("resources.permissions.PermItem", [
|
|
306
|
+
super("resources.permissions.permissions.PermItem", [
|
|
296
307
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
297
308
|
{ no: 2, name: "val", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
298
309
|
]);
|
|
@@ -341,6 +352,6 @@ class PermItem$Type extends MessageType<PermItem> {
|
|
|
341
352
|
}
|
|
342
353
|
}
|
|
343
354
|
/**
|
|
344
|
-
* @generated MessageType for protobuf message resources.permissions.PermItem
|
|
355
|
+
* @generated MessageType for protobuf message resources.permissions.permissions.PermItem
|
|
345
356
|
*/
|
|
346
357
|
export const PermItem = new PermItem$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/qualifications/access.proto" (package "resources.qualifications", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/qualifications/access/access.proto" (package "resources.qualifications.access", 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 "
|
|
14
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
15
15
|
/**
|
|
16
|
-
* @generated from protobuf message resources.qualifications.QualificationAccess
|
|
16
|
+
* @generated from protobuf message resources.qualifications.access.QualificationAccess
|
|
17
17
|
*/
|
|
18
18
|
export interface QualificationAccess {
|
|
19
19
|
/**
|
|
20
|
-
* @generated from protobuf field: repeated resources.qualifications.QualificationJobAccess jobs = 1
|
|
20
|
+
* @generated from protobuf field: repeated resources.qualifications.access.QualificationJobAccess jobs = 1
|
|
21
21
|
*/
|
|
22
22
|
jobs: QualificationJobAccess[];
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* @generated from protobuf message resources.qualifications.QualificationJobAccess
|
|
25
|
+
* @generated from protobuf message resources.qualifications.access.QualificationJobAccess
|
|
26
26
|
*/
|
|
27
27
|
export interface QualificationJobAccess {
|
|
28
28
|
/**
|
|
@@ -54,19 +54,19 @@ export interface QualificationJobAccess {
|
|
|
54
54
|
*/
|
|
55
55
|
jobGradeLabel?: string;
|
|
56
56
|
/**
|
|
57
|
-
* @generated from protobuf field: resources.qualifications.AccessLevel access = 9
|
|
57
|
+
* @generated from protobuf field: resources.qualifications.access.AccessLevel access = 9
|
|
58
58
|
*/
|
|
59
59
|
access: AccessLevel;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Dummy - DO NOT USE!
|
|
63
63
|
*
|
|
64
|
-
* @generated from protobuf message resources.qualifications.QualificationUserAccess
|
|
64
|
+
* @generated from protobuf message resources.qualifications.access.QualificationUserAccess
|
|
65
65
|
*/
|
|
66
66
|
export interface QualificationUserAccess {
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* @generated from protobuf enum resources.qualifications.AccessLevel
|
|
69
|
+
* @generated from protobuf enum resources.qualifications.access.AccessLevel
|
|
70
70
|
*/
|
|
71
71
|
export enum AccessLevel {
|
|
72
72
|
/**
|
|
@@ -101,7 +101,7 @@ export enum AccessLevel {
|
|
|
101
101
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
102
102
|
class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
103
103
|
constructor() {
|
|
104
|
-
super("resources.qualifications.QualificationAccess", [
|
|
104
|
+
super("resources.qualifications.access.QualificationAccess", [
|
|
105
105
|
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationJobAccess }
|
|
106
106
|
]);
|
|
107
107
|
}
|
|
@@ -117,7 +117,7 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
|
117
117
|
while (reader.pos < end) {
|
|
118
118
|
let [fieldNo, wireType] = reader.tag();
|
|
119
119
|
switch (fieldNo) {
|
|
120
|
-
case /* repeated resources.qualifications.QualificationJobAccess jobs */ 1:
|
|
120
|
+
case /* repeated resources.qualifications.access.QualificationJobAccess jobs */ 1:
|
|
121
121
|
message.jobs.push(QualificationJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
122
122
|
break;
|
|
123
123
|
default:
|
|
@@ -132,7 +132,7 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
|
132
132
|
return message;
|
|
133
133
|
}
|
|
134
134
|
internalBinaryWrite(message: QualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
135
|
-
/* repeated resources.qualifications.QualificationJobAccess jobs = 1; */
|
|
135
|
+
/* repeated resources.qualifications.access.QualificationJobAccess jobs = 1; */
|
|
136
136
|
for (let i = 0; i < message.jobs.length; i++)
|
|
137
137
|
QualificationJobAccess.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
138
138
|
let u = options.writeUnknownFields;
|
|
@@ -142,13 +142,13 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
* @generated MessageType for protobuf message resources.qualifications.QualificationAccess
|
|
145
|
+
* @generated MessageType for protobuf message resources.qualifications.access.QualificationAccess
|
|
146
146
|
*/
|
|
147
147
|
export const QualificationAccess = new QualificationAccess$Type();
|
|
148
148
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
149
149
|
class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
|
|
150
150
|
constructor() {
|
|
151
|
-
super("resources.qualifications.QualificationJobAccess", [
|
|
151
|
+
super("resources.qualifications.access.QualificationJobAccess", [
|
|
152
152
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
153
153
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
154
154
|
{ no: 4, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
@@ -156,7 +156,7 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
|
|
|
156
156
|
{ no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
157
157
|
{ no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
158
158
|
{ no: 8, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
159
|
-
{ no: 9, name: "access", kind: "enum", T: () => ["resources.qualifications.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
159
|
+
{ no: 9, name: "access", kind: "enum", T: () => ["resources.qualifications.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
160
160
|
]);
|
|
161
161
|
}
|
|
162
162
|
create(value?: PartialMessage<QualificationJobAccess>): QualificationJobAccess {
|
|
@@ -196,7 +196,7 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
|
|
|
196
196
|
case /* optional string job_grade_label */ 8:
|
|
197
197
|
message.jobGradeLabel = reader.string();
|
|
198
198
|
break;
|
|
199
|
-
case /* resources.qualifications.AccessLevel access */ 9:
|
|
199
|
+
case /* resources.qualifications.access.AccessLevel access */ 9:
|
|
200
200
|
message.access = reader.int32();
|
|
201
201
|
break;
|
|
202
202
|
default:
|
|
@@ -232,7 +232,7 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
|
|
|
232
232
|
/* optional string job_grade_label = 8; */
|
|
233
233
|
if (message.jobGradeLabel !== undefined)
|
|
234
234
|
writer.tag(8, WireType.LengthDelimited).string(message.jobGradeLabel);
|
|
235
|
-
/* resources.qualifications.AccessLevel access = 9; */
|
|
235
|
+
/* resources.qualifications.access.AccessLevel access = 9; */
|
|
236
236
|
if (message.access !== 0)
|
|
237
237
|
writer.tag(9, WireType.Varint).int32(message.access);
|
|
238
238
|
let u = options.writeUnknownFields;
|
|
@@ -242,13 +242,13 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
/**
|
|
245
|
-
* @generated MessageType for protobuf message resources.qualifications.QualificationJobAccess
|
|
245
|
+
* @generated MessageType for protobuf message resources.qualifications.access.QualificationJobAccess
|
|
246
246
|
*/
|
|
247
247
|
export const QualificationJobAccess = new QualificationJobAccess$Type();
|
|
248
248
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
249
249
|
class QualificationUserAccess$Type extends MessageType<QualificationUserAccess> {
|
|
250
250
|
constructor() {
|
|
251
|
-
super("resources.qualifications.QualificationUserAccess", []);
|
|
251
|
+
super("resources.qualifications.access.QualificationUserAccess", []);
|
|
252
252
|
}
|
|
253
253
|
create(value?: PartialMessage<QualificationUserAccess>): QualificationUserAccess {
|
|
254
254
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -280,6 +280,6 @@ class QualificationUserAccess$Type extends MessageType<QualificationUserAccess>
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
|
-
* @generated MessageType for protobuf message resources.qualifications.QualificationUserAccess
|
|
283
|
+
* @generated MessageType for protobuf message resources.qualifications.access.QualificationUserAccess
|
|
284
284
|
*/
|
|
285
285
|
export const QualificationUserAccess = new QualificationUserAccess$Type();
|