@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/notifications/
|
|
2
|
+
// @generated from protobuf file "resources/notifications/clientview/clientview.proto" (package "resources.notifications.clientview", 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 { Struct } from "
|
|
14
|
+
import { Struct } from "../../../google/protobuf/struct";
|
|
15
15
|
/**
|
|
16
|
-
* @generated from protobuf message resources.notifications.ClientView
|
|
16
|
+
* @generated from protobuf message resources.notifications.clientview.ClientView
|
|
17
17
|
*/
|
|
18
18
|
export interface ClientView {
|
|
19
19
|
/**
|
|
20
|
-
* @generated from protobuf field: resources.notifications.ObjectType type = 1
|
|
20
|
+
* @generated from protobuf field: resources.notifications.clientview.ObjectType type = 1
|
|
21
21
|
*/
|
|
22
22
|
type: ObjectType;
|
|
23
23
|
/**
|
|
@@ -26,11 +26,11 @@ export interface ClientView {
|
|
|
26
26
|
id?: number;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* @generated from protobuf message resources.notifications.ObjectEvent
|
|
29
|
+
* @generated from protobuf message resources.notifications.clientview.ObjectEvent
|
|
30
30
|
*/
|
|
31
31
|
export interface ObjectEvent {
|
|
32
32
|
/**
|
|
33
|
-
* @generated from protobuf field: resources.notifications.ObjectType type = 1
|
|
33
|
+
* @generated from protobuf field: resources.notifications.clientview.ObjectType type = 1
|
|
34
34
|
*/
|
|
35
35
|
type: ObjectType;
|
|
36
36
|
/**
|
|
@@ -38,7 +38,7 @@ export interface ObjectEvent {
|
|
|
38
38
|
*/
|
|
39
39
|
id?: number;
|
|
40
40
|
/**
|
|
41
|
-
* @generated from protobuf field: resources.notifications.ObjectEventType event_type = 3
|
|
41
|
+
* @generated from protobuf field: resources.notifications.clientview.ObjectEventType event_type = 3
|
|
42
42
|
*/
|
|
43
43
|
eventType: ObjectEventType;
|
|
44
44
|
/**
|
|
@@ -55,7 +55,7 @@ export interface ObjectEvent {
|
|
|
55
55
|
data?: Struct;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* @generated from protobuf enum resources.notifications.ObjectType
|
|
58
|
+
* @generated from protobuf enum resources.notifications.clientview.ObjectType
|
|
59
59
|
*/
|
|
60
60
|
export enum ObjectType {
|
|
61
61
|
/**
|
|
@@ -84,7 +84,7 @@ export enum ObjectType {
|
|
|
84
84
|
JOBS_CONDUCT = 5
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* @generated from protobuf enum resources.notifications.ObjectEventType
|
|
87
|
+
* @generated from protobuf enum resources.notifications.clientview.ObjectEventType
|
|
88
88
|
*/
|
|
89
89
|
export enum ObjectEventType {
|
|
90
90
|
/**
|
|
@@ -103,8 +103,8 @@ export enum ObjectEventType {
|
|
|
103
103
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
104
104
|
class ClientView$Type extends MessageType<ClientView> {
|
|
105
105
|
constructor() {
|
|
106
|
-
super("resources.notifications.ClientView", [
|
|
107
|
-
{ no: 1, name: "type", kind: "enum", T: () => ["resources.notifications.ObjectType", ObjectType, "OBJECT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
106
|
+
super("resources.notifications.clientview.ClientView", [
|
|
107
|
+
{ no: 1, name: "type", kind: "enum", T: () => ["resources.notifications.clientview.ObjectType", ObjectType, "OBJECT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
108
108
|
{ no: 2, name: "id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
109
109
|
]);
|
|
110
110
|
}
|
|
@@ -120,7 +120,7 @@ class ClientView$Type extends MessageType<ClientView> {
|
|
|
120
120
|
while (reader.pos < end) {
|
|
121
121
|
let [fieldNo, wireType] = reader.tag();
|
|
122
122
|
switch (fieldNo) {
|
|
123
|
-
case /* resources.notifications.ObjectType type */ 1:
|
|
123
|
+
case /* resources.notifications.clientview.ObjectType type */ 1:
|
|
124
124
|
message.type = reader.int32();
|
|
125
125
|
break;
|
|
126
126
|
case /* optional int64 id */ 2:
|
|
@@ -138,7 +138,7 @@ class ClientView$Type extends MessageType<ClientView> {
|
|
|
138
138
|
return message;
|
|
139
139
|
}
|
|
140
140
|
internalBinaryWrite(message: ClientView, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
141
|
-
/* resources.notifications.ObjectType type = 1; */
|
|
141
|
+
/* resources.notifications.clientview.ObjectType type = 1; */
|
|
142
142
|
if (message.type !== 0)
|
|
143
143
|
writer.tag(1, WireType.Varint).int32(message.type);
|
|
144
144
|
/* optional int64 id = 2; */
|
|
@@ -151,16 +151,16 @@ class ClientView$Type extends MessageType<ClientView> {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
|
-
* @generated MessageType for protobuf message resources.notifications.ClientView
|
|
154
|
+
* @generated MessageType for protobuf message resources.notifications.clientview.ClientView
|
|
155
155
|
*/
|
|
156
156
|
export const ClientView = new ClientView$Type();
|
|
157
157
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
158
158
|
class ObjectEvent$Type extends MessageType<ObjectEvent> {
|
|
159
159
|
constructor() {
|
|
160
|
-
super("resources.notifications.ObjectEvent", [
|
|
161
|
-
{ no: 1, name: "type", kind: "enum", T: () => ["resources.notifications.ObjectType", ObjectType, "OBJECT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
160
|
+
super("resources.notifications.clientview.ObjectEvent", [
|
|
161
|
+
{ no: 1, name: "type", kind: "enum", T: () => ["resources.notifications.clientview.ObjectType", ObjectType, "OBJECT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
162
162
|
{ no: 2, name: "id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
163
|
-
{ no: 3, name: "event_type", kind: "enum", T: () => ["resources.notifications.ObjectEventType", ObjectEventType, "OBJECT_EVENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
163
|
+
{ no: 3, name: "event_type", kind: "enum", T: () => ["resources.notifications.clientview.ObjectEventType", ObjectEventType, "OBJECT_EVENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
164
164
|
{ no: 4, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
165
165
|
{ no: 5, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
166
166
|
{ no: 6, name: "data", kind: "message", T: () => Struct }
|
|
@@ -179,13 +179,13 @@ class ObjectEvent$Type extends MessageType<ObjectEvent> {
|
|
|
179
179
|
while (reader.pos < end) {
|
|
180
180
|
let [fieldNo, wireType] = reader.tag();
|
|
181
181
|
switch (fieldNo) {
|
|
182
|
-
case /* resources.notifications.ObjectType type */ 1:
|
|
182
|
+
case /* resources.notifications.clientview.ObjectType type */ 1:
|
|
183
183
|
message.type = reader.int32();
|
|
184
184
|
break;
|
|
185
185
|
case /* optional int64 id */ 2:
|
|
186
186
|
message.id = reader.int64().toNumber();
|
|
187
187
|
break;
|
|
188
|
-
case /* resources.notifications.ObjectEventType event_type */ 3:
|
|
188
|
+
case /* resources.notifications.clientview.ObjectEventType event_type */ 3:
|
|
189
189
|
message.eventType = reader.int32();
|
|
190
190
|
break;
|
|
191
191
|
case /* optional int32 user_id */ 4:
|
|
@@ -209,13 +209,13 @@ class ObjectEvent$Type extends MessageType<ObjectEvent> {
|
|
|
209
209
|
return message;
|
|
210
210
|
}
|
|
211
211
|
internalBinaryWrite(message: ObjectEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
212
|
-
/* resources.notifications.ObjectType type = 1; */
|
|
212
|
+
/* resources.notifications.clientview.ObjectType type = 1; */
|
|
213
213
|
if (message.type !== 0)
|
|
214
214
|
writer.tag(1, WireType.Varint).int32(message.type);
|
|
215
215
|
/* optional int64 id = 2; */
|
|
216
216
|
if (message.id !== undefined)
|
|
217
217
|
writer.tag(2, WireType.Varint).int64(message.id);
|
|
218
|
-
/* resources.notifications.ObjectEventType event_type = 3; */
|
|
218
|
+
/* resources.notifications.clientview.ObjectEventType event_type = 3; */
|
|
219
219
|
if (message.eventType !== 0)
|
|
220
220
|
writer.tag(3, WireType.Varint).int32(message.eventType);
|
|
221
221
|
/* optional int32 user_id = 4; */
|
|
@@ -234,6 +234,6 @@ class ObjectEvent$Type extends MessageType<ObjectEvent> {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* @generated MessageType for protobuf message resources.notifications.ObjectEvent
|
|
237
|
+
* @generated MessageType for protobuf message resources.notifications.clientview.ObjectEvent
|
|
238
238
|
*/
|
|
239
239
|
export const ObjectEvent = new ObjectEvent$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/notifications/events.proto" (package "resources.notifications", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/notifications/events/events.proto" (package "resources.notifications.events", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,14 +11,14 @@ 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 { ClientConfig } from "
|
|
15
|
-
import { JobProps } from "
|
|
16
|
-
import { UserInfoChanged } from "
|
|
17
|
-
import { Notification } from "
|
|
14
|
+
import { ClientConfig } from "../../clientconfig/clientconfig";
|
|
15
|
+
import { JobProps } from "../../jobs/props/props";
|
|
16
|
+
import { UserInfoChanged } from "../../userinfo/userinfo";
|
|
17
|
+
import { Notification } from "../notifications";
|
|
18
18
|
/**
|
|
19
19
|
* User related events
|
|
20
20
|
*
|
|
21
|
-
* @generated from protobuf message resources.notifications.UserEvent
|
|
21
|
+
* @generated from protobuf message resources.notifications.events.UserEvent
|
|
22
22
|
*/
|
|
23
23
|
export interface UserEvent {
|
|
24
24
|
/**
|
|
@@ -57,7 +57,7 @@ export interface UserEvent {
|
|
|
57
57
|
/**
|
|
58
58
|
* Job related events
|
|
59
59
|
*
|
|
60
|
-
* @generated from protobuf message resources.notifications.JobEvent
|
|
60
|
+
* @generated from protobuf message resources.notifications.events.JobEvent
|
|
61
61
|
*/
|
|
62
62
|
export interface JobEvent {
|
|
63
63
|
/**
|
|
@@ -66,7 +66,7 @@ export interface JobEvent {
|
|
|
66
66
|
data: {
|
|
67
67
|
oneofKind: "jobProps";
|
|
68
68
|
/**
|
|
69
|
-
* @generated from protobuf field: resources.jobs.JobProps job_props = 1
|
|
69
|
+
* @generated from protobuf field: resources.jobs.props.JobProps job_props = 1
|
|
70
70
|
*/
|
|
71
71
|
jobProps: JobProps;
|
|
72
72
|
} | {
|
|
@@ -76,7 +76,7 @@ export interface JobEvent {
|
|
|
76
76
|
/**
|
|
77
77
|
* Job grade events
|
|
78
78
|
*
|
|
79
|
-
* @generated from protobuf message resources.notifications.JobGradeEvent
|
|
79
|
+
* @generated from protobuf message resources.notifications.events.JobGradeEvent
|
|
80
80
|
*/
|
|
81
81
|
export interface JobGradeEvent {
|
|
82
82
|
/**
|
|
@@ -95,7 +95,7 @@ export interface JobGradeEvent {
|
|
|
95
95
|
/**
|
|
96
96
|
* System related events
|
|
97
97
|
*
|
|
98
|
-
* @generated from protobuf message resources.notifications.SystemEvent
|
|
98
|
+
* @generated from protobuf message resources.notifications.events.SystemEvent
|
|
99
99
|
*/
|
|
100
100
|
export interface SystemEvent {
|
|
101
101
|
/**
|
|
@@ -116,7 +116,7 @@ export interface SystemEvent {
|
|
|
116
116
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
117
117
|
class UserEvent$Type extends MessageType<UserEvent> {
|
|
118
118
|
constructor() {
|
|
119
|
-
super("resources.notifications.UserEvent", [
|
|
119
|
+
super("resources.notifications.events.UserEvent", [
|
|
120
120
|
{ no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ },
|
|
121
121
|
{ no: 2, name: "notification", kind: "message", oneof: "data", T: () => Notification },
|
|
122
122
|
{ no: 3, name: "notifications_read_count", kind: "scalar", oneof: "data", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
@@ -190,13 +190,13 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* @generated MessageType for protobuf message resources.notifications.UserEvent
|
|
193
|
+
* @generated MessageType for protobuf message resources.notifications.events.UserEvent
|
|
194
194
|
*/
|
|
195
195
|
export const UserEvent = new UserEvent$Type();
|
|
196
196
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
197
197
|
class JobEvent$Type extends MessageType<JobEvent> {
|
|
198
198
|
constructor() {
|
|
199
|
-
super("resources.notifications.JobEvent", [
|
|
199
|
+
super("resources.notifications.events.JobEvent", [
|
|
200
200
|
{ no: 1, name: "job_props", kind: "message", oneof: "data", T: () => JobProps }
|
|
201
201
|
]);
|
|
202
202
|
}
|
|
@@ -212,7 +212,7 @@ class JobEvent$Type extends MessageType<JobEvent> {
|
|
|
212
212
|
while (reader.pos < end) {
|
|
213
213
|
let [fieldNo, wireType] = reader.tag();
|
|
214
214
|
switch (fieldNo) {
|
|
215
|
-
case /* resources.jobs.JobProps job_props */ 1:
|
|
215
|
+
case /* resources.jobs.props.JobProps job_props */ 1:
|
|
216
216
|
message.data = {
|
|
217
217
|
oneofKind: "jobProps",
|
|
218
218
|
jobProps: JobProps.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).jobProps)
|
|
@@ -230,7 +230,7 @@ class JobEvent$Type extends MessageType<JobEvent> {
|
|
|
230
230
|
return message;
|
|
231
231
|
}
|
|
232
232
|
internalBinaryWrite(message: JobEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
233
|
-
/* resources.jobs.JobProps job_props = 1; */
|
|
233
|
+
/* resources.jobs.props.JobProps job_props = 1; */
|
|
234
234
|
if (message.data.oneofKind === "jobProps")
|
|
235
235
|
JobProps.internalBinaryWrite(message.data.jobProps, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
236
236
|
let u = options.writeUnknownFields;
|
|
@@ -240,13 +240,13 @@ class JobEvent$Type extends MessageType<JobEvent> {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
|
-
* @generated MessageType for protobuf message resources.notifications.JobEvent
|
|
243
|
+
* @generated MessageType for protobuf message resources.notifications.events.JobEvent
|
|
244
244
|
*/
|
|
245
245
|
export const JobEvent = new JobEvent$Type();
|
|
246
246
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
247
247
|
class JobGradeEvent$Type extends MessageType<JobGradeEvent> {
|
|
248
248
|
constructor() {
|
|
249
|
-
super("resources.notifications.JobGradeEvent", [
|
|
249
|
+
super("resources.notifications.events.JobGradeEvent", [
|
|
250
250
|
{ no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ }
|
|
251
251
|
]);
|
|
252
252
|
}
|
|
@@ -290,13 +290,13 @@ class JobGradeEvent$Type extends MessageType<JobGradeEvent> {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
293
|
-
* @generated MessageType for protobuf message resources.notifications.JobGradeEvent
|
|
293
|
+
* @generated MessageType for protobuf message resources.notifications.events.JobGradeEvent
|
|
294
294
|
*/
|
|
295
295
|
export const JobGradeEvent = new JobGradeEvent$Type();
|
|
296
296
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
297
297
|
class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
298
298
|
constructor() {
|
|
299
|
-
super("resources.notifications.SystemEvent", [
|
|
299
|
+
super("resources.notifications.events.SystemEvent", [
|
|
300
300
|
{ no: 1, name: "client_config", kind: "message", oneof: "data", T: () => ClientConfig }
|
|
301
301
|
]);
|
|
302
302
|
}
|
|
@@ -340,6 +340,6 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
343
|
-
* @generated MessageType for protobuf message resources.notifications.SystemEvent
|
|
343
|
+
* @generated MessageType for protobuf message resources.notifications.events.SystemEvent
|
|
344
344
|
*/
|
|
345
345
|
export const SystemEvent = new SystemEvent$Type();
|
|
@@ -11,7 +11,7 @@ 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 { UserShort } from "../users/
|
|
14
|
+
import { UserShort } from "../users/short/user";
|
|
15
15
|
import { I18NItem } from "../common/i18n";
|
|
16
16
|
import { Timestamp } from "../timestamp/timestamp";
|
|
17
17
|
/**
|
|
@@ -68,7 +68,7 @@ export interface Data {
|
|
|
68
68
|
*/
|
|
69
69
|
link?: Link;
|
|
70
70
|
/**
|
|
71
|
-
* @generated from protobuf field: optional resources.users.UserShort caused_by = 2
|
|
71
|
+
* @generated from protobuf field: optional resources.users.short.UserShort caused_by = 2
|
|
72
72
|
*/
|
|
73
73
|
causedBy?: UserShort;
|
|
74
74
|
/**
|
|
@@ -288,7 +288,7 @@ class Data$Type extends MessageType<Data> {
|
|
|
288
288
|
case /* optional resources.notifications.Link link */ 1:
|
|
289
289
|
message.link = Link.internalBinaryRead(reader, reader.uint32(), options, message.link);
|
|
290
290
|
break;
|
|
291
|
-
case /* optional resources.users.UserShort caused_by */ 2:
|
|
291
|
+
case /* optional resources.users.short.UserShort caused_by */ 2:
|
|
292
292
|
message.causedBy = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.causedBy);
|
|
293
293
|
break;
|
|
294
294
|
case /* optional resources.notifications.CalendarData calendar */ 3:
|
|
@@ -309,7 +309,7 @@ class Data$Type extends MessageType<Data> {
|
|
|
309
309
|
/* optional resources.notifications.Link link = 1; */
|
|
310
310
|
if (message.link)
|
|
311
311
|
Link.internalBinaryWrite(message.link, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
312
|
-
/* optional resources.users.UserShort caused_by = 2; */
|
|
312
|
+
/* optional resources.users.short.UserShort caused_by = 2; */
|
|
313
313
|
if (message.causedBy)
|
|
314
314
|
UserShort.internalBinaryWrite(message.causedBy, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
315
315
|
/* optional resources.notifications.CalendarData calendar = 3; */
|
|
@@ -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/attributes.proto" (package "resources.permissions", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/permissions/attributes/attributes.proto" (package "resources.permissions.attributes", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,9 +11,9 @@ 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.permissions.RoleAttribute
|
|
16
|
+
* @generated from protobuf message resources.permissions.attributes.RoleAttribute
|
|
17
17
|
*/
|
|
18
18
|
export interface RoleAttribute {
|
|
19
19
|
/**
|
|
@@ -49,20 +49,20 @@ export interface RoleAttribute {
|
|
|
49
49
|
*/
|
|
50
50
|
type: string;
|
|
51
51
|
/**
|
|
52
|
-
* @generated from protobuf field: resources.permissions.AttributeValues valid_values = 9
|
|
52
|
+
* @generated from protobuf field: resources.permissions.attributes.AttributeValues valid_values = 9
|
|
53
53
|
*/
|
|
54
54
|
validValues?: AttributeValues;
|
|
55
55
|
/**
|
|
56
|
-
* @generated from protobuf field: resources.permissions.AttributeValues value = 10
|
|
56
|
+
* @generated from protobuf field: resources.permissions.attributes.AttributeValues value = 10
|
|
57
57
|
*/
|
|
58
58
|
value?: AttributeValues;
|
|
59
59
|
/**
|
|
60
|
-
* @generated from protobuf field: optional resources.permissions.AttributeValues max_values = 11
|
|
60
|
+
* @generated from protobuf field: optional resources.permissions.attributes.AttributeValues max_values = 11
|
|
61
61
|
*/
|
|
62
62
|
maxValues?: AttributeValues;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* @generated from protobuf message resources.permissions.AttributeValues
|
|
65
|
+
* @generated from protobuf message resources.permissions.attributes.AttributeValues
|
|
66
66
|
*/
|
|
67
67
|
export interface AttributeValues {
|
|
68
68
|
/**
|
|
@@ -71,19 +71,19 @@ export interface AttributeValues {
|
|
|
71
71
|
validValues: {
|
|
72
72
|
oneofKind: "stringList";
|
|
73
73
|
/**
|
|
74
|
-
* @generated from protobuf field: resources.permissions.StringList string_list = 1
|
|
74
|
+
* @generated from protobuf field: resources.permissions.attributes.StringList string_list = 1
|
|
75
75
|
*/
|
|
76
76
|
stringList: StringList;
|
|
77
77
|
} | {
|
|
78
78
|
oneofKind: "jobList";
|
|
79
79
|
/**
|
|
80
|
-
* @generated from protobuf field: resources.permissions.StringList job_list = 2
|
|
80
|
+
* @generated from protobuf field: resources.permissions.attributes.StringList job_list = 2
|
|
81
81
|
*/
|
|
82
82
|
jobList: StringList;
|
|
83
83
|
} | {
|
|
84
84
|
oneofKind: "jobGradeList";
|
|
85
85
|
/**
|
|
86
|
-
* @generated from protobuf field: resources.permissions.JobGradeList job_grade_list = 3
|
|
86
|
+
* @generated from protobuf field: resources.permissions.attributes.JobGradeList job_grade_list = 3
|
|
87
87
|
*/
|
|
88
88
|
jobGradeList: JobGradeList;
|
|
89
89
|
} | {
|
|
@@ -91,7 +91,7 @@ export interface AttributeValues {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* @generated from protobuf message resources.permissions.StringList
|
|
94
|
+
* @generated from protobuf message resources.permissions.attributes.StringList
|
|
95
95
|
*/
|
|
96
96
|
export interface StringList {
|
|
97
97
|
/**
|
|
@@ -100,7 +100,7 @@ export interface StringList {
|
|
|
100
100
|
strings: string[];
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
* @generated from protobuf message resources.permissions.JobGradeList
|
|
103
|
+
* @generated from protobuf message resources.permissions.attributes.JobGradeList
|
|
104
104
|
*/
|
|
105
105
|
export interface JobGradeList {
|
|
106
106
|
/**
|
|
@@ -114,14 +114,14 @@ export interface JobGradeList {
|
|
|
114
114
|
[key: string]: number;
|
|
115
115
|
};
|
|
116
116
|
/**
|
|
117
|
-
* @generated from protobuf field: map<string, resources.permissions.JobGrades> grades = 3
|
|
117
|
+
* @generated from protobuf field: map<string, resources.permissions.attributes.JobGrades> grades = 3
|
|
118
118
|
*/
|
|
119
119
|
grades: {
|
|
120
120
|
[key: string]: JobGrades;
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* @generated from protobuf message resources.permissions.JobGrades
|
|
124
|
+
* @generated from protobuf message resources.permissions.attributes.JobGrades
|
|
125
125
|
*/
|
|
126
126
|
export interface JobGrades {
|
|
127
127
|
/**
|
|
@@ -130,7 +130,7 @@ export interface JobGrades {
|
|
|
130
130
|
grades: number[];
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
* @generated from protobuf enum resources.permissions.AttributeType
|
|
133
|
+
* @generated from protobuf enum resources.permissions.attributes.AttributeType
|
|
134
134
|
*/
|
|
135
135
|
export enum AttributeType {
|
|
136
136
|
/**
|
|
@@ -153,7 +153,7 @@ export enum AttributeType {
|
|
|
153
153
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
154
154
|
class RoleAttribute$Type extends MessageType<RoleAttribute> {
|
|
155
155
|
constructor() {
|
|
156
|
-
super("resources.permissions.RoleAttribute", [
|
|
156
|
+
super("resources.permissions.attributes.RoleAttribute", [
|
|
157
157
|
{ no: 1, name: "role_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
158
158
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
159
159
|
{ no: 3, name: "attr_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
@@ -209,13 +209,13 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
|
|
|
209
209
|
case /* string type */ 8:
|
|
210
210
|
message.type = reader.string();
|
|
211
211
|
break;
|
|
212
|
-
case /* resources.permissions.AttributeValues valid_values */ 9:
|
|
212
|
+
case /* resources.permissions.attributes.AttributeValues valid_values */ 9:
|
|
213
213
|
message.validValues = AttributeValues.internalBinaryRead(reader, reader.uint32(), options, message.validValues);
|
|
214
214
|
break;
|
|
215
|
-
case /* resources.permissions.AttributeValues value */ 10:
|
|
215
|
+
case /* resources.permissions.attributes.AttributeValues value */ 10:
|
|
216
216
|
message.value = AttributeValues.internalBinaryRead(reader, reader.uint32(), options, message.value);
|
|
217
217
|
break;
|
|
218
|
-
case /* optional resources.permissions.AttributeValues max_values */ 11:
|
|
218
|
+
case /* optional resources.permissions.attributes.AttributeValues max_values */ 11:
|
|
219
219
|
message.maxValues = AttributeValues.internalBinaryRead(reader, reader.uint32(), options, message.maxValues);
|
|
220
220
|
break;
|
|
221
221
|
default:
|
|
@@ -254,13 +254,13 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
|
|
|
254
254
|
/* string type = 8; */
|
|
255
255
|
if (message.type !== "")
|
|
256
256
|
writer.tag(8, WireType.LengthDelimited).string(message.type);
|
|
257
|
-
/* resources.permissions.AttributeValues valid_values = 9; */
|
|
257
|
+
/* resources.permissions.attributes.AttributeValues valid_values = 9; */
|
|
258
258
|
if (message.validValues)
|
|
259
259
|
AttributeValues.internalBinaryWrite(message.validValues, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
260
|
-
/* resources.permissions.AttributeValues value = 10; */
|
|
260
|
+
/* resources.permissions.attributes.AttributeValues value = 10; */
|
|
261
261
|
if (message.value)
|
|
262
262
|
AttributeValues.internalBinaryWrite(message.value, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
263
|
-
/* optional resources.permissions.AttributeValues max_values = 11; */
|
|
263
|
+
/* optional resources.permissions.attributes.AttributeValues max_values = 11; */
|
|
264
264
|
if (message.maxValues)
|
|
265
265
|
AttributeValues.internalBinaryWrite(message.maxValues, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
266
266
|
let u = options.writeUnknownFields;
|
|
@@ -270,13 +270,13 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
* @generated MessageType for protobuf message resources.permissions.RoleAttribute
|
|
273
|
+
* @generated MessageType for protobuf message resources.permissions.attributes.RoleAttribute
|
|
274
274
|
*/
|
|
275
275
|
export const RoleAttribute = new RoleAttribute$Type();
|
|
276
276
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
277
277
|
class AttributeValues$Type extends MessageType<AttributeValues> {
|
|
278
278
|
constructor() {
|
|
279
|
-
super("resources.permissions.AttributeValues", [
|
|
279
|
+
super("resources.permissions.attributes.AttributeValues", [
|
|
280
280
|
{ no: 1, name: "string_list", kind: "message", oneof: "validValues", T: () => StringList },
|
|
281
281
|
{ no: 2, name: "job_list", kind: "message", oneof: "validValues", T: () => StringList },
|
|
282
282
|
{ no: 3, name: "job_grade_list", kind: "message", oneof: "validValues", T: () => JobGradeList }
|
|
@@ -294,19 +294,19 @@ class AttributeValues$Type extends MessageType<AttributeValues> {
|
|
|
294
294
|
while (reader.pos < end) {
|
|
295
295
|
let [fieldNo, wireType] = reader.tag();
|
|
296
296
|
switch (fieldNo) {
|
|
297
|
-
case /* resources.permissions.StringList string_list */ 1:
|
|
297
|
+
case /* resources.permissions.attributes.StringList string_list */ 1:
|
|
298
298
|
message.validValues = {
|
|
299
299
|
oneofKind: "stringList",
|
|
300
300
|
stringList: StringList.internalBinaryRead(reader, reader.uint32(), options, (message.validValues as any).stringList)
|
|
301
301
|
};
|
|
302
302
|
break;
|
|
303
|
-
case /* resources.permissions.StringList job_list */ 2:
|
|
303
|
+
case /* resources.permissions.attributes.StringList job_list */ 2:
|
|
304
304
|
message.validValues = {
|
|
305
305
|
oneofKind: "jobList",
|
|
306
306
|
jobList: StringList.internalBinaryRead(reader, reader.uint32(), options, (message.validValues as any).jobList)
|
|
307
307
|
};
|
|
308
308
|
break;
|
|
309
|
-
case /* resources.permissions.JobGradeList job_grade_list */ 3:
|
|
309
|
+
case /* resources.permissions.attributes.JobGradeList job_grade_list */ 3:
|
|
310
310
|
message.validValues = {
|
|
311
311
|
oneofKind: "jobGradeList",
|
|
312
312
|
jobGradeList: JobGradeList.internalBinaryRead(reader, reader.uint32(), options, (message.validValues as any).jobGradeList)
|
|
@@ -324,13 +324,13 @@ class AttributeValues$Type extends MessageType<AttributeValues> {
|
|
|
324
324
|
return message;
|
|
325
325
|
}
|
|
326
326
|
internalBinaryWrite(message: AttributeValues, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
327
|
-
/* resources.permissions.StringList string_list = 1; */
|
|
327
|
+
/* resources.permissions.attributes.StringList string_list = 1; */
|
|
328
328
|
if (message.validValues.oneofKind === "stringList")
|
|
329
329
|
StringList.internalBinaryWrite(message.validValues.stringList, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
330
|
-
/* resources.permissions.StringList job_list = 2; */
|
|
330
|
+
/* resources.permissions.attributes.StringList job_list = 2; */
|
|
331
331
|
if (message.validValues.oneofKind === "jobList")
|
|
332
332
|
StringList.internalBinaryWrite(message.validValues.jobList, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
333
|
-
/* resources.permissions.JobGradeList job_grade_list = 3; */
|
|
333
|
+
/* resources.permissions.attributes.JobGradeList job_grade_list = 3; */
|
|
334
334
|
if (message.validValues.oneofKind === "jobGradeList")
|
|
335
335
|
JobGradeList.internalBinaryWrite(message.validValues.jobGradeList, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
336
336
|
let u = options.writeUnknownFields;
|
|
@@ -340,14 +340,14 @@ class AttributeValues$Type extends MessageType<AttributeValues> {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
343
|
-
* @generated MessageType for protobuf message resources.permissions.AttributeValues
|
|
343
|
+
* @generated MessageType for protobuf message resources.permissions.attributes.AttributeValues
|
|
344
344
|
*/
|
|
345
345
|
export const AttributeValues = new AttributeValues$Type();
|
|
346
346
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
347
347
|
class StringList$Type extends MessageType<StringList> {
|
|
348
348
|
constructor() {
|
|
349
|
-
super("resources.permissions.StringList", [
|
|
350
|
-
{ no: 1, name: "strings", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true,
|
|
349
|
+
super("resources.permissions.attributes.StringList", [
|
|
350
|
+
{ no: 1, name: "strings", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
351
351
|
]);
|
|
352
352
|
}
|
|
353
353
|
create(value?: PartialMessage<StringList>): StringList {
|
|
@@ -387,13 +387,13 @@ class StringList$Type extends MessageType<StringList> {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
|
-
* @generated MessageType for protobuf message resources.permissions.StringList
|
|
390
|
+
* @generated MessageType for protobuf message resources.permissions.attributes.StringList
|
|
391
391
|
*/
|
|
392
392
|
export const StringList = new StringList$Type();
|
|
393
393
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
394
394
|
class JobGradeList$Type extends MessageType<JobGradeList> {
|
|
395
395
|
constructor() {
|
|
396
|
-
super("resources.permissions.JobGradeList", [
|
|
396
|
+
super("resources.permissions.attributes.JobGradeList", [
|
|
397
397
|
{ no: 2, name: "fine_grained", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
398
398
|
{ no: 1, name: "jobs", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 5 /*ScalarType.INT32*/ } },
|
|
399
399
|
{ no: 3, name: "grades", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => JobGrades } }
|
|
@@ -419,7 +419,7 @@ class JobGradeList$Type extends MessageType<JobGradeList> {
|
|
|
419
419
|
case /* map<string, int32> jobs */ 1:
|
|
420
420
|
this.binaryReadMap1(message.jobs, reader, options);
|
|
421
421
|
break;
|
|
422
|
-
case /* map<string, resources.permissions.JobGrades> grades */ 3:
|
|
422
|
+
case /* map<string, resources.permissions.attributes.JobGrades> grades */ 3:
|
|
423
423
|
this.binaryReadMap3(message.grades, reader, options);
|
|
424
424
|
break;
|
|
425
425
|
default:
|
|
@@ -444,7 +444,7 @@ class JobGradeList$Type extends MessageType<JobGradeList> {
|
|
|
444
444
|
case 2:
|
|
445
445
|
val = reader.int32();
|
|
446
446
|
break;
|
|
447
|
-
default: throw new globalThis.Error("unknown map entry field for resources.permissions.JobGradeList.jobs");
|
|
447
|
+
default: throw new globalThis.Error("unknown map entry field for resources.permissions.attributes.JobGradeList.jobs");
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
map[key ?? ""] = val ?? 0;
|
|
@@ -460,7 +460,7 @@ class JobGradeList$Type extends MessageType<JobGradeList> {
|
|
|
460
460
|
case 2:
|
|
461
461
|
val = JobGrades.internalBinaryRead(reader, reader.uint32(), options);
|
|
462
462
|
break;
|
|
463
|
-
default: throw new globalThis.Error("unknown map entry field for resources.permissions.JobGradeList.grades");
|
|
463
|
+
default: throw new globalThis.Error("unknown map entry field for resources.permissions.attributes.JobGradeList.grades");
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
map[key ?? ""] = val ?? JobGrades.create();
|
|
@@ -472,7 +472,7 @@ class JobGradeList$Type extends MessageType<JobGradeList> {
|
|
|
472
472
|
/* bool fine_grained = 2; */
|
|
473
473
|
if (message.fineGrained !== false)
|
|
474
474
|
writer.tag(2, WireType.Varint).bool(message.fineGrained);
|
|
475
|
-
/* map<string, resources.permissions.JobGrades> grades = 3; */
|
|
475
|
+
/* map<string, resources.permissions.attributes.JobGrades> grades = 3; */
|
|
476
476
|
for (let k of globalThis.Object.keys(message.grades)) {
|
|
477
477
|
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
478
478
|
writer.tag(2, WireType.LengthDelimited).fork();
|
|
@@ -486,13 +486,13 @@ class JobGradeList$Type extends MessageType<JobGradeList> {
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
/**
|
|
489
|
-
* @generated MessageType for protobuf message resources.permissions.JobGradeList
|
|
489
|
+
* @generated MessageType for protobuf message resources.permissions.attributes.JobGradeList
|
|
490
490
|
*/
|
|
491
491
|
export const JobGradeList = new JobGradeList$Type();
|
|
492
492
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
493
493
|
class JobGrades$Type extends MessageType<JobGrades> {
|
|
494
494
|
constructor() {
|
|
495
|
-
super("resources.permissions.JobGrades", [
|
|
495
|
+
super("resources.permissions.attributes.JobGrades", [
|
|
496
496
|
{ no: 1, name: "grades", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
|
|
497
497
|
]);
|
|
498
498
|
}
|
|
@@ -541,6 +541,6 @@ class JobGrades$Type extends MessageType<JobGrades> {
|
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
|
-
* @generated MessageType for protobuf message resources.permissions.JobGrades
|
|
544
|
+
* @generated MessageType for protobuf message resources.permissions.attributes.JobGrades
|
|
545
545
|
*/
|
|
546
546
|
export const JobGrades = new JobGrades$Type();
|