@fivenet-app/gen 2025.5.2 → 2025.9.1
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/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/documents/templates.proto" (package "resources.documents", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -24,83 +25,75 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
24
25
|
*/
|
|
25
26
|
export interface Template {
|
|
26
27
|
/**
|
|
27
|
-
* @generated from protobuf field:
|
|
28
|
+
* @generated from protobuf field: int64 id = 1
|
|
28
29
|
*/
|
|
29
|
-
id: number;
|
|
30
|
+
id: number;
|
|
30
31
|
/**
|
|
31
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
32
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
32
33
|
*/
|
|
33
34
|
createdAt?: Timestamp;
|
|
34
35
|
/**
|
|
35
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
36
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
36
37
|
*/
|
|
37
38
|
updatedAt?: Timestamp;
|
|
38
39
|
/**
|
|
39
|
-
* @generated from protobuf field: resources.documents.Category category = 4
|
|
40
|
+
* @generated from protobuf field: resources.documents.Category category = 4
|
|
40
41
|
*/
|
|
41
|
-
category?: Category;
|
|
42
|
+
category?: Category;
|
|
42
43
|
/**
|
|
43
|
-
* @generated from protobuf field: uint32 weight = 5
|
|
44
|
+
* @generated from protobuf field: uint32 weight = 5
|
|
44
45
|
*/
|
|
45
46
|
weight: number;
|
|
46
47
|
/**
|
|
47
|
-
* @
|
|
48
|
-
*
|
|
49
|
-
* @generated from protobuf field: string title = 6;
|
|
48
|
+
* @generated from protobuf field: string title = 6
|
|
50
49
|
*/
|
|
51
50
|
title: string;
|
|
52
51
|
/**
|
|
53
|
-
* @
|
|
54
|
-
*
|
|
55
|
-
* @generated from protobuf field: string description = 7;
|
|
52
|
+
* @generated from protobuf field: string description = 7
|
|
56
53
|
*/
|
|
57
54
|
description: string;
|
|
58
55
|
/**
|
|
59
|
-
* @
|
|
60
|
-
*
|
|
61
|
-
* @generated from protobuf field: optional string color = 8;
|
|
56
|
+
* @generated from protobuf field: optional string color = 8
|
|
62
57
|
*/
|
|
63
58
|
color?: string;
|
|
64
59
|
/**
|
|
65
|
-
* @
|
|
66
|
-
*
|
|
67
|
-
* @generated from protobuf field: optional string icon = 9;
|
|
60
|
+
* @generated from protobuf field: optional string icon = 9
|
|
68
61
|
*/
|
|
69
62
|
icon?: string;
|
|
70
63
|
/**
|
|
71
|
-
* @generated from protobuf field: string content_title = 10
|
|
64
|
+
* @generated from protobuf field: string content_title = 10
|
|
72
65
|
*/
|
|
73
|
-
contentTitle: string;
|
|
66
|
+
contentTitle: string;
|
|
74
67
|
/**
|
|
75
|
-
* @generated from protobuf field: string content = 11
|
|
68
|
+
* @generated from protobuf field: string content = 11
|
|
76
69
|
*/
|
|
77
|
-
content: string;
|
|
70
|
+
content: string;
|
|
78
71
|
/**
|
|
79
|
-
* @generated from protobuf field: string state = 12
|
|
72
|
+
* @generated from protobuf field: string state = 12
|
|
80
73
|
*/
|
|
81
|
-
state: string;
|
|
74
|
+
state: string;
|
|
82
75
|
/**
|
|
83
|
-
* @generated from protobuf field: resources.documents.TemplateSchema schema = 13
|
|
76
|
+
* @generated from protobuf field: resources.documents.TemplateSchema schema = 13
|
|
84
77
|
*/
|
|
85
|
-
schema?: TemplateSchema;
|
|
78
|
+
schema?: TemplateSchema;
|
|
86
79
|
/**
|
|
87
|
-
* @generated from protobuf field: string creator_job = 14
|
|
80
|
+
* @generated from protobuf field: string creator_job = 14
|
|
88
81
|
*/
|
|
89
82
|
creatorJob: string;
|
|
90
83
|
/**
|
|
91
|
-
* @generated from protobuf field: optional string creator_job_label = 15
|
|
84
|
+
* @generated from protobuf field: optional string creator_job_label = 15
|
|
92
85
|
*/
|
|
93
86
|
creatorJobLabel?: string;
|
|
94
87
|
/**
|
|
95
|
-
* @generated from protobuf field: repeated resources.documents.TemplateJobAccess job_access = 16
|
|
88
|
+
* @generated from protobuf field: repeated resources.documents.TemplateJobAccess job_access = 16
|
|
96
89
|
*/
|
|
97
90
|
jobAccess: TemplateJobAccess[];
|
|
98
91
|
/**
|
|
99
|
-
* @generated from protobuf field: resources.documents.DocumentAccess content_access = 17
|
|
92
|
+
* @generated from protobuf field: resources.documents.DocumentAccess content_access = 17
|
|
100
93
|
*/
|
|
101
|
-
contentAccess?: DocumentAccess;
|
|
94
|
+
contentAccess?: DocumentAccess;
|
|
102
95
|
/**
|
|
103
|
-
* @generated from protobuf field: optional resources.documents.Workflow workflow = 18
|
|
96
|
+
* @generated from protobuf field: optional resources.documents.Workflow workflow = 18
|
|
104
97
|
*/
|
|
105
98
|
workflow?: Workflow;
|
|
106
99
|
}
|
|
@@ -109,74 +102,64 @@ export interface Template {
|
|
|
109
102
|
*/
|
|
110
103
|
export interface TemplateShort {
|
|
111
104
|
/**
|
|
112
|
-
* @generated from protobuf field:
|
|
105
|
+
* @generated from protobuf field: int64 id = 1
|
|
113
106
|
*/
|
|
114
|
-
id: number;
|
|
107
|
+
id: number;
|
|
115
108
|
/**
|
|
116
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
109
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
117
110
|
*/
|
|
118
111
|
createdAt?: Timestamp;
|
|
119
112
|
/**
|
|
120
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
113
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
121
114
|
*/
|
|
122
115
|
updatedAt?: Timestamp;
|
|
123
116
|
/**
|
|
124
|
-
* @generated from protobuf field: resources.documents.Category category = 4
|
|
117
|
+
* @generated from protobuf field: resources.documents.Category category = 4
|
|
125
118
|
*/
|
|
126
|
-
category?: Category;
|
|
119
|
+
category?: Category;
|
|
127
120
|
/**
|
|
128
|
-
* @generated from protobuf field: uint32 weight = 5
|
|
121
|
+
* @generated from protobuf field: uint32 weight = 5
|
|
129
122
|
*/
|
|
130
123
|
weight: number;
|
|
131
124
|
/**
|
|
132
|
-
* @
|
|
133
|
-
*
|
|
134
|
-
* @generated from protobuf field: string title = 6;
|
|
125
|
+
* @generated from protobuf field: string title = 6
|
|
135
126
|
*/
|
|
136
127
|
title: string;
|
|
137
128
|
/**
|
|
138
|
-
* @
|
|
139
|
-
*
|
|
140
|
-
* @generated from protobuf field: string description = 7;
|
|
129
|
+
* @generated from protobuf field: string description = 7
|
|
141
130
|
*/
|
|
142
131
|
description: string;
|
|
143
132
|
/**
|
|
144
|
-
* @
|
|
145
|
-
*
|
|
146
|
-
* @generated from protobuf field: optional string color = 8;
|
|
133
|
+
* @generated from protobuf field: optional string color = 8
|
|
147
134
|
*/
|
|
148
135
|
color?: string;
|
|
149
136
|
/**
|
|
150
|
-
* @
|
|
151
|
-
*
|
|
152
|
-
* @generated from protobuf field: optional string icon = 9;
|
|
137
|
+
* @generated from protobuf field: optional string icon = 9
|
|
153
138
|
*/
|
|
154
139
|
icon?: string;
|
|
155
140
|
/**
|
|
156
|
-
* @generated from protobuf field: resources.documents.TemplateSchema schema = 10
|
|
141
|
+
* @generated from protobuf field: resources.documents.TemplateSchema schema = 10
|
|
157
142
|
*/
|
|
158
|
-
schema?: TemplateSchema;
|
|
143
|
+
schema?: TemplateSchema;
|
|
159
144
|
/**
|
|
160
|
-
* @generated from protobuf field: string creator_job = 11
|
|
145
|
+
* @generated from protobuf field: string creator_job = 11
|
|
161
146
|
*/
|
|
162
147
|
creatorJob: string;
|
|
163
148
|
/**
|
|
164
|
-
* @generated from protobuf field: optional string creator_job_label = 12
|
|
149
|
+
* @generated from protobuf field: optional string creator_job_label = 12
|
|
165
150
|
*/
|
|
166
151
|
creatorJobLabel?: string;
|
|
167
152
|
/**
|
|
168
|
-
* @generated from protobuf field: optional resources.documents.Workflow workflow = 18
|
|
153
|
+
* @generated from protobuf field: optional resources.documents.Workflow workflow = 18
|
|
169
154
|
*/
|
|
170
155
|
workflow?: Workflow;
|
|
171
156
|
}
|
|
172
157
|
/**
|
|
173
|
-
* @dbscanner: json
|
|
174
|
-
*
|
|
175
158
|
* @generated from protobuf message resources.documents.TemplateSchema
|
|
176
159
|
*/
|
|
177
160
|
export interface TemplateSchema {
|
|
178
161
|
/**
|
|
179
|
-
* @generated from protobuf field: resources.documents.TemplateRequirements requirements = 1
|
|
162
|
+
* @generated from protobuf field: resources.documents.TemplateRequirements requirements = 1
|
|
180
163
|
*/
|
|
181
164
|
requirements?: TemplateRequirements;
|
|
182
165
|
}
|
|
@@ -185,15 +168,15 @@ export interface TemplateSchema {
|
|
|
185
168
|
*/
|
|
186
169
|
export interface TemplateRequirements {
|
|
187
170
|
/**
|
|
188
|
-
* @generated from protobuf field: optional resources.documents.ObjectSpecs documents = 1
|
|
171
|
+
* @generated from protobuf field: optional resources.documents.ObjectSpecs documents = 1
|
|
189
172
|
*/
|
|
190
173
|
documents?: ObjectSpecs;
|
|
191
174
|
/**
|
|
192
|
-
* @generated from protobuf field: optional resources.documents.ObjectSpecs users = 2
|
|
175
|
+
* @generated from protobuf field: optional resources.documents.ObjectSpecs users = 2
|
|
193
176
|
*/
|
|
194
177
|
users?: ObjectSpecs;
|
|
195
178
|
/**
|
|
196
|
-
* @generated from protobuf field: optional resources.documents.ObjectSpecs vehicles = 3
|
|
179
|
+
* @generated from protobuf field: optional resources.documents.ObjectSpecs vehicles = 3
|
|
197
180
|
*/
|
|
198
181
|
vehicles?: ObjectSpecs;
|
|
199
182
|
}
|
|
@@ -202,15 +185,15 @@ export interface TemplateRequirements {
|
|
|
202
185
|
*/
|
|
203
186
|
export interface ObjectSpecs {
|
|
204
187
|
/**
|
|
205
|
-
* @generated from protobuf field: optional bool required = 1
|
|
188
|
+
* @generated from protobuf field: optional bool required = 1
|
|
206
189
|
*/
|
|
207
190
|
required?: boolean;
|
|
208
191
|
/**
|
|
209
|
-
* @generated from protobuf field: optional int32 min = 2
|
|
192
|
+
* @generated from protobuf field: optional int32 min = 2
|
|
210
193
|
*/
|
|
211
194
|
min?: number;
|
|
212
195
|
/**
|
|
213
|
-
* @generated from protobuf field: optional int32 max = 3
|
|
196
|
+
* @generated from protobuf field: optional int32 max = 3
|
|
214
197
|
*/
|
|
215
198
|
max?: number;
|
|
216
199
|
}
|
|
@@ -219,19 +202,19 @@ export interface ObjectSpecs {
|
|
|
219
202
|
*/
|
|
220
203
|
export interface TemplateData {
|
|
221
204
|
/**
|
|
222
|
-
* @generated from protobuf field: resources.users.User
|
|
205
|
+
* @generated from protobuf field: resources.users.User active_char = 1
|
|
223
206
|
*/
|
|
224
207
|
activeChar?: User;
|
|
225
208
|
/**
|
|
226
|
-
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
209
|
+
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
227
210
|
*/
|
|
228
211
|
documents: DocumentShort[];
|
|
229
212
|
/**
|
|
230
|
-
* @generated from protobuf field: repeated resources.users.UserShort users = 3
|
|
213
|
+
* @generated from protobuf field: repeated resources.users.UserShort users = 3
|
|
231
214
|
*/
|
|
232
215
|
users: UserShort[];
|
|
233
216
|
/**
|
|
234
|
-
* @generated from protobuf field: repeated resources.vehicles.Vehicle vehicles = 4
|
|
217
|
+
* @generated from protobuf field: repeated resources.vehicles.Vehicle vehicles = 4
|
|
235
218
|
*/
|
|
236
219
|
vehicles: Vehicle[];
|
|
237
220
|
}
|
|
@@ -240,35 +223,35 @@ export interface TemplateData {
|
|
|
240
223
|
*/
|
|
241
224
|
export interface TemplateJobAccess {
|
|
242
225
|
/**
|
|
243
|
-
* @generated from protobuf field:
|
|
226
|
+
* @generated from protobuf field: int64 id = 1
|
|
244
227
|
*/
|
|
245
|
-
id: number;
|
|
228
|
+
id: number;
|
|
246
229
|
/**
|
|
247
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
230
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
248
231
|
*/
|
|
249
232
|
createdAt?: Timestamp;
|
|
250
233
|
/**
|
|
251
|
-
* @generated from protobuf field:
|
|
234
|
+
* @generated from protobuf field: int64 target_id = 3
|
|
252
235
|
*/
|
|
253
|
-
targetId: number;
|
|
236
|
+
targetId: number;
|
|
254
237
|
/**
|
|
255
|
-
* @generated from protobuf field: string job = 4
|
|
238
|
+
* @generated from protobuf field: string job = 4
|
|
256
239
|
*/
|
|
257
240
|
job: string;
|
|
258
241
|
/**
|
|
259
|
-
* @generated from protobuf field: optional string job_label = 5
|
|
242
|
+
* @generated from protobuf field: optional string job_label = 5
|
|
260
243
|
*/
|
|
261
244
|
jobLabel?: string;
|
|
262
245
|
/**
|
|
263
|
-
* @generated from protobuf field: int32 minimum_grade = 6
|
|
246
|
+
* @generated from protobuf field: int32 minimum_grade = 6
|
|
264
247
|
*/
|
|
265
248
|
minimumGrade: number;
|
|
266
249
|
/**
|
|
267
|
-
* @generated from protobuf field: optional string job_grade_label = 7
|
|
250
|
+
* @generated from protobuf field: optional string job_grade_label = 7
|
|
268
251
|
*/
|
|
269
252
|
jobGradeLabel?: string;
|
|
270
253
|
/**
|
|
271
|
-
* @generated from protobuf field: resources.documents.AccessLevel access = 8
|
|
254
|
+
* @generated from protobuf field: resources.documents.AccessLevel access = 8
|
|
272
255
|
*/
|
|
273
256
|
access: AccessLevel;
|
|
274
257
|
}
|
|
@@ -283,23 +266,23 @@ export interface TemplateUserAccess {
|
|
|
283
266
|
class Template$Type extends MessageType<Template> {
|
|
284
267
|
constructor() {
|
|
285
268
|
super("resources.documents.Template", [
|
|
286
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
269
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
287
270
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
288
271
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
289
|
-
{ no: 4, name: "category", kind: "message", T: () => Category },
|
|
290
|
-
{ no: 5, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "validate.
|
|
291
|
-
{ no: 6, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
292
|
-
{ no: 7, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
293
|
-
{ no: 8, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
294
|
-
{ no: 9, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
295
|
-
{ no: 10, name: "content_title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
296
|
-
{ no: 11, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
297
|
-
{ no: 12, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
298
|
-
{ no: 13, name: "schema", kind: "message", T: () => TemplateSchema },
|
|
299
|
-
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
300
|
-
{ no: 15, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
301
|
-
{ no: 16, name: "job_access", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TemplateJobAccess, options: { "validate.
|
|
302
|
-
{ no: 17, name: "content_access", kind: "message", T: () => DocumentAccess },
|
|
272
|
+
{ no: 4, name: "category", kind: "message", T: () => Category, options: { "tagger.tags": "alias:\"category\"" } },
|
|
273
|
+
{ no: 5, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { lt: 4294967295 } } } },
|
|
274
|
+
{ no: 6, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
275
|
+
{ no: 7, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
276
|
+
{ no: 8, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "7" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
277
|
+
{ no: 9, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128", suffix: "Icon" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
278
|
+
{ no: 10, name: "content_title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxBytes: "10240" } }, "tagger.tags": "alias:\"content_title\"" } },
|
|
279
|
+
{ no: 11, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "0", maxBytes: "2000000" } }, "tagger.tags": "alias:\"content\"" } },
|
|
280
|
+
{ no: 12, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "512" } }, "tagger.tags": "alias:\"state\"" } },
|
|
281
|
+
{ no: 13, name: "schema", kind: "message", T: () => TemplateSchema, options: { "tagger.tags": "alias:\"schema\"" } },
|
|
282
|
+
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
283
|
+
{ no: 15, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
284
|
+
{ no: 16, name: "job_access", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TemplateJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
285
|
+
{ no: 17, name: "content_access", kind: "message", T: () => DocumentAccess, options: { "tagger.tags": "alias:\"access\"" } },
|
|
303
286
|
{ no: 18, name: "workflow", kind: "message", T: () => Workflow }
|
|
304
287
|
]);
|
|
305
288
|
}
|
|
@@ -323,8 +306,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
323
306
|
while (reader.pos < end) {
|
|
324
307
|
let [fieldNo, wireType] = reader.tag();
|
|
325
308
|
switch (fieldNo) {
|
|
326
|
-
case /*
|
|
327
|
-
message.id = reader.
|
|
309
|
+
case /* int64 id */ 1:
|
|
310
|
+
message.id = reader.int64().toNumber();
|
|
328
311
|
break;
|
|
329
312
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
330
313
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -389,9 +372,9 @@ class Template$Type extends MessageType<Template> {
|
|
|
389
372
|
return message;
|
|
390
373
|
}
|
|
391
374
|
internalBinaryWrite(message: Template, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
392
|
-
/*
|
|
375
|
+
/* int64 id = 1; */
|
|
393
376
|
if (message.id !== 0)
|
|
394
|
-
writer.tag(1, WireType.Varint).
|
|
377
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
395
378
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
396
379
|
if (message.createdAt)
|
|
397
380
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -457,18 +440,18 @@ export const Template = new Template$Type();
|
|
|
457
440
|
class TemplateShort$Type extends MessageType<TemplateShort> {
|
|
458
441
|
constructor() {
|
|
459
442
|
super("resources.documents.TemplateShort", [
|
|
460
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
443
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
461
444
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
462
445
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
463
|
-
{ no: 4, name: "category", kind: "message", T: () => Category },
|
|
464
|
-
{ no: 5, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "validate.
|
|
465
|
-
{ no: 6, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
466
|
-
{ no: 7, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
467
|
-
{ no: 8, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
468
|
-
{ no: 9, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
469
|
-
{ no: 10, name: "schema", kind: "message", T: () => TemplateSchema },
|
|
470
|
-
{ no: 11, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
471
|
-
{ no: 12, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
446
|
+
{ no: 4, name: "category", kind: "message", T: () => Category, options: { "tagger.tags": "alias:\"category\"" } },
|
|
447
|
+
{ no: 5, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { lt: 4294967295 } } } },
|
|
448
|
+
{ no: 6, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
449
|
+
{ no: 7, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
450
|
+
{ no: 8, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "7" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
451
|
+
{ no: 9, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128", suffix: "Icon" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
452
|
+
{ no: 10, name: "schema", kind: "message", T: () => TemplateSchema, options: { "tagger.tags": "alias:\"schema\"" } },
|
|
453
|
+
{ no: 11, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
454
|
+
{ no: 12, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
472
455
|
{ no: 18, name: "workflow", kind: "message", T: () => Workflow }
|
|
473
456
|
]);
|
|
474
457
|
}
|
|
@@ -488,8 +471,8 @@ class TemplateShort$Type extends MessageType<TemplateShort> {
|
|
|
488
471
|
while (reader.pos < end) {
|
|
489
472
|
let [fieldNo, wireType] = reader.tag();
|
|
490
473
|
switch (fieldNo) {
|
|
491
|
-
case /*
|
|
492
|
-
message.id = reader.
|
|
474
|
+
case /* int64 id */ 1:
|
|
475
|
+
message.id = reader.int64().toNumber();
|
|
493
476
|
break;
|
|
494
477
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
495
478
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -539,9 +522,9 @@ class TemplateShort$Type extends MessageType<TemplateShort> {
|
|
|
539
522
|
return message;
|
|
540
523
|
}
|
|
541
524
|
internalBinaryWrite(message: TemplateShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
542
|
-
/*
|
|
525
|
+
/* int64 id = 1; */
|
|
543
526
|
if (message.id !== 0)
|
|
544
|
-
writer.tag(1, WireType.Varint).
|
|
527
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
545
528
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
546
529
|
if (message.createdAt)
|
|
547
530
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -593,7 +576,7 @@ class TemplateSchema$Type extends MessageType<TemplateSchema> {
|
|
|
593
576
|
constructor() {
|
|
594
577
|
super("resources.documents.TemplateSchema", [
|
|
595
578
|
{ no: 1, name: "requirements", kind: "message", T: () => TemplateRequirements }
|
|
596
|
-
]);
|
|
579
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
597
580
|
}
|
|
598
581
|
create(value?: PartialMessage<TemplateSchema>): TemplateSchema {
|
|
599
582
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -758,10 +741,10 @@ export const ObjectSpecs = new ObjectSpecs$Type();
|
|
|
758
741
|
class TemplateData$Type extends MessageType<TemplateData> {
|
|
759
742
|
constructor() {
|
|
760
743
|
super("resources.documents.TemplateData", [
|
|
761
|
-
{ no: 1, name: "
|
|
762
|
-
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "validate.
|
|
763
|
-
{ no: 3, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserShort, options: { "validate.
|
|
764
|
-
{ no: 4, name: "vehicles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Vehicle, options: { "validate.
|
|
744
|
+
{ no: 1, name: "active_char", kind: "message", T: () => User, options: { "buf.validate.field": { required: true } } },
|
|
745
|
+
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "buf.validate.field": { repeated: { maxItems: "12" } } } },
|
|
746
|
+
{ no: 3, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserShort, options: { "buf.validate.field": { repeated: { maxItems: "12" } } } },
|
|
747
|
+
{ no: 4, name: "vehicles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Vehicle, options: { "buf.validate.field": { repeated: { maxItems: "12" } } } }
|
|
765
748
|
]);
|
|
766
749
|
}
|
|
767
750
|
create(value?: PartialMessage<TemplateData>): TemplateData {
|
|
@@ -778,7 +761,7 @@ class TemplateData$Type extends MessageType<TemplateData> {
|
|
|
778
761
|
while (reader.pos < end) {
|
|
779
762
|
let [fieldNo, wireType] = reader.tag();
|
|
780
763
|
switch (fieldNo) {
|
|
781
|
-
case /* resources.users.User
|
|
764
|
+
case /* resources.users.User active_char */ 1:
|
|
782
765
|
message.activeChar = User.internalBinaryRead(reader, reader.uint32(), options, message.activeChar);
|
|
783
766
|
break;
|
|
784
767
|
case /* repeated resources.documents.DocumentShort documents */ 2:
|
|
@@ -802,7 +785,7 @@ class TemplateData$Type extends MessageType<TemplateData> {
|
|
|
802
785
|
return message;
|
|
803
786
|
}
|
|
804
787
|
internalBinaryWrite(message: TemplateData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
805
|
-
/* resources.users.User
|
|
788
|
+
/* resources.users.User active_char = 1; */
|
|
806
789
|
if (message.activeChar)
|
|
807
790
|
User.internalBinaryWrite(message.activeChar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
808
791
|
/* repeated resources.documents.DocumentShort documents = 2; */
|
|
@@ -828,14 +811,14 @@ export const TemplateData = new TemplateData$Type();
|
|
|
828
811
|
class TemplateJobAccess$Type extends MessageType<TemplateJobAccess> {
|
|
829
812
|
constructor() {
|
|
830
813
|
super("resources.documents.TemplateJobAccess", [
|
|
831
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
814
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
832
815
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
833
|
-
{ no: 3, name: "target_id", kind: "scalar", T:
|
|
834
|
-
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
835
|
-
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
836
|
-
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
837
|
-
{ no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
838
|
-
{ no: 8, name: "access", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
816
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"template_id\"" } },
|
|
817
|
+
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
818
|
+
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
819
|
+
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
820
|
+
{ no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
821
|
+
{ no: 8, name: "access", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
839
822
|
]);
|
|
840
823
|
}
|
|
841
824
|
create(value?: PartialMessage<TemplateJobAccess>): TemplateJobAccess {
|
|
@@ -854,14 +837,14 @@ class TemplateJobAccess$Type extends MessageType<TemplateJobAccess> {
|
|
|
854
837
|
while (reader.pos < end) {
|
|
855
838
|
let [fieldNo, wireType] = reader.tag();
|
|
856
839
|
switch (fieldNo) {
|
|
857
|
-
case /*
|
|
858
|
-
message.id = reader.
|
|
840
|
+
case /* int64 id */ 1:
|
|
841
|
+
message.id = reader.int64().toNumber();
|
|
859
842
|
break;
|
|
860
843
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
861
844
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
862
845
|
break;
|
|
863
|
-
case /*
|
|
864
|
-
message.targetId = reader.
|
|
846
|
+
case /* int64 target_id */ 3:
|
|
847
|
+
message.targetId = reader.int64().toNumber();
|
|
865
848
|
break;
|
|
866
849
|
case /* string job */ 4:
|
|
867
850
|
message.job = reader.string();
|
|
@@ -890,15 +873,15 @@ class TemplateJobAccess$Type extends MessageType<TemplateJobAccess> {
|
|
|
890
873
|
return message;
|
|
891
874
|
}
|
|
892
875
|
internalBinaryWrite(message: TemplateJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
893
|
-
/*
|
|
876
|
+
/* int64 id = 1; */
|
|
894
877
|
if (message.id !== 0)
|
|
895
|
-
writer.tag(1, WireType.Varint).
|
|
878
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
896
879
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
897
880
|
if (message.createdAt)
|
|
898
881
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
899
|
-
/*
|
|
882
|
+
/* int64 target_id = 3; */
|
|
900
883
|
if (message.targetId !== 0)
|
|
901
|
-
writer.tag(3, WireType.Varint).
|
|
884
|
+
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
902
885
|
/* string job = 4; */
|
|
903
886
|
if (message.job !== "")
|
|
904
887
|
writer.tag(4, WireType.LengthDelimited).string(message.job);
|