@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
package/perms.ts
CHANGED
|
@@ -1,183 +1,109 @@
|
|
|
1
1
|
// Code generated by protoc-gen-fronthelper. DO NOT EDIT.
|
|
2
|
-
// source: resources/accounts/accounts.proto
|
|
3
|
-
// source: resources/accounts/oauth2.proto
|
|
4
|
-
// source: resources/audit/audit.proto
|
|
5
|
-
// source: resources/calendar/access.proto
|
|
6
|
-
// source: resources/calendar/calendar.proto
|
|
7
|
-
// source: resources/centrum/attributes.proto
|
|
8
|
-
// source: resources/centrum/dispatches.proto
|
|
9
|
-
// source: resources/centrum/disponents.proto
|
|
10
|
-
// source: resources/centrum/settings.proto
|
|
11
|
-
// source: resources/centrum/units.proto
|
|
12
|
-
// source: resources/centrum/units_access.proto
|
|
13
|
-
// source: resources/centrum/user_unit.proto
|
|
14
|
-
// source: resources/common/error.proto
|
|
15
|
-
// source: resources/common/i18n.proto
|
|
16
|
-
// source: resources/common/uuid.proto
|
|
17
|
-
// source: resources/common/content/content.proto
|
|
18
|
-
// source: resources/common/cron/cron.proto
|
|
19
|
-
// source: resources/common/database/database.proto
|
|
20
|
-
// source: resources/common/grpcws/grpcws.proto
|
|
21
|
-
// source: resources/common/tests/objects.proto
|
|
22
|
-
// source: resources/documents/access.proto
|
|
23
|
-
// source: resources/documents/activity.proto
|
|
24
|
-
// source: resources/documents/category.proto
|
|
25
|
-
// source: resources/documents/comment.proto
|
|
26
|
-
// source: resources/documents/documents.proto
|
|
27
|
-
// source: resources/documents/requests.proto
|
|
28
|
-
// source: resources/documents/templates.proto
|
|
29
|
-
// source: resources/documents/workflow.proto
|
|
30
|
-
// source: resources/filestore/file.proto
|
|
31
|
-
// source: resources/internet/access.proto
|
|
32
|
-
// source: resources/internet/ads.proto
|
|
33
|
-
// source: resources/internet/domain.proto
|
|
34
|
-
// source: resources/internet/page.proto
|
|
35
|
-
// source: resources/internet/search.proto
|
|
36
|
-
// source: resources/jobs/activity.proto
|
|
37
|
-
// source: resources/jobs/colleagues.proto
|
|
38
|
-
// source: resources/jobs/conduct.proto
|
|
39
|
-
// source: resources/jobs/job_props.proto
|
|
40
|
-
// source: resources/jobs/job_settings.proto
|
|
41
|
-
// source: resources/jobs/jobs.proto
|
|
42
|
-
// source: resources/jobs/labels.proto
|
|
43
|
-
// source: resources/jobs/timeclock.proto
|
|
44
|
-
// source: resources/laws/laws.proto
|
|
45
|
-
// source: resources/livemap/livemap.proto
|
|
46
|
-
// source: resources/livemap/tracker.proto
|
|
47
|
-
// source: resources/mailer/access.proto
|
|
48
|
-
// source: resources/mailer/email.proto
|
|
49
|
-
// source: resources/mailer/events.proto
|
|
50
|
-
// source: resources/mailer/message.proto
|
|
51
|
-
// source: resources/mailer/settings.proto
|
|
52
|
-
// source: resources/mailer/template.proto
|
|
53
|
-
// source: resources/mailer/thread.proto
|
|
54
|
-
// source: resources/notifications/events.proto
|
|
55
|
-
// source: resources/notifications/notifications.proto
|
|
56
|
-
// source: resources/permissions/attributes.proto
|
|
57
|
-
// source: resources/permissions/permissions.proto
|
|
58
|
-
// source: resources/qualifications/access.proto
|
|
59
|
-
// source: resources/qualifications/exam.proto
|
|
60
|
-
// source: resources/qualifications/qualifications.proto
|
|
61
|
-
// source: resources/settings/banner.proto
|
|
62
|
-
// source: resources/settings/config.proto
|
|
63
|
-
// source: resources/stats/stats.proto
|
|
64
|
-
// source: resources/sync/activity.proto
|
|
65
|
-
// source: resources/sync/data.proto
|
|
66
|
-
// source: resources/timestamp/timestamp.proto
|
|
67
|
-
// source: resources/users/activity.proto
|
|
68
|
-
// source: resources/users/labels.proto
|
|
69
|
-
// source: resources/users/licenses.proto
|
|
70
|
-
// source: resources/users/props.proto
|
|
71
|
-
// source: resources/users/users.proto
|
|
72
|
-
// source: resources/vehicles/vehicles.proto
|
|
73
|
-
// source: resources/wiki/access.proto
|
|
74
|
-
// source: resources/wiki/activity.proto
|
|
75
|
-
// source: resources/wiki/page.proto
|
|
76
2
|
// source: services/auth/auth.proto
|
|
77
3
|
// source: services/calendar/calendar.proto
|
|
78
4
|
// source: services/centrum/centrum.proto
|
|
79
5
|
// source: services/citizens/citizens.proto
|
|
80
6
|
// source: services/completor/completor.proto
|
|
7
|
+
// source: services/documents/collab.proto
|
|
81
8
|
// source: services/documents/documents.proto
|
|
82
|
-
// source: services/
|
|
83
|
-
// source: services/internet/domain.proto
|
|
84
|
-
// source: services/internet/internet.proto
|
|
9
|
+
// source: services/filestore/filestore.proto
|
|
85
10
|
// source: services/jobs/conduct.proto
|
|
86
11
|
// source: services/jobs/jobs.proto
|
|
87
12
|
// source: services/jobs/timeclock.proto
|
|
88
13
|
// source: services/livemap/livemap.proto
|
|
89
14
|
// source: services/mailer/mailer.proto
|
|
90
|
-
// source: services/
|
|
15
|
+
// source: services/notifications/notifications.proto
|
|
91
16
|
// source: services/qualifications/qualifications.proto
|
|
92
17
|
// source: services/settings/accounts.proto
|
|
93
18
|
// source: services/settings/config.proto
|
|
94
19
|
// source: services/settings/cron.proto
|
|
95
|
-
// source: services/settings/filestore.proto
|
|
96
20
|
// source: services/settings/laws.proto
|
|
97
21
|
// source: services/settings/settings.proto
|
|
22
|
+
// source: services/settings/system.proto
|
|
98
23
|
// source: services/stats/stats.proto
|
|
99
24
|
// source: services/sync/sync.proto
|
|
100
25
|
// source: services/vehicles/vehicles.proto
|
|
26
|
+
// source: services/wiki/collab.proto
|
|
101
27
|
// source: services/wiki/wiki.proto
|
|
102
28
|
|
|
103
29
|
export type Perms =
|
|
104
|
-
| '
|
|
105
|
-
| 'Superuser'
|
|
106
|
-
| 'TODOService
|
|
107
|
-
| 'auth.AuthService
|
|
108
|
-
| 'calendar.CalendarService
|
|
109
|
-
| 'centrum.CentrumService
|
|
110
|
-
| 'centrum.CentrumService
|
|
111
|
-
| 'centrum.CentrumService
|
|
112
|
-
| 'centrum.CentrumService
|
|
113
|
-
| 'centrum.CentrumService
|
|
114
|
-
| 'centrum.CentrumService
|
|
115
|
-
| 'centrum.CentrumService
|
|
116
|
-
| 'centrum.CentrumService
|
|
117
|
-
| 'centrum.CentrumService
|
|
118
|
-
| '
|
|
119
|
-
| 'citizens.CitizensService
|
|
120
|
-
| 'citizens.CitizensService
|
|
121
|
-
| 'citizens.CitizensService
|
|
122
|
-
| 'citizens.CitizensService
|
|
123
|
-
| '
|
|
124
|
-
| 'completor.CompletorService
|
|
125
|
-
| 'completor.CompletorService
|
|
126
|
-
| '
|
|
127
|
-
| 'documents.DocumentsService
|
|
128
|
-
| 'documents.DocumentsService
|
|
129
|
-
| 'documents.DocumentsService
|
|
130
|
-
| 'documents.DocumentsService
|
|
131
|
-
| 'documents.DocumentsService
|
|
132
|
-
| 'documents.DocumentsService
|
|
133
|
-
| 'documents.DocumentsService
|
|
134
|
-
| 'documents.DocumentsService
|
|
135
|
-
| 'documents.DocumentsService
|
|
136
|
-
| 'documents.DocumentsService
|
|
137
|
-
| 'documents.DocumentsService
|
|
138
|
-
| 'documents.DocumentsService
|
|
139
|
-
| 'documents.DocumentsService
|
|
140
|
-
| 'documents.DocumentsService
|
|
141
|
-
| 'documents.DocumentsService
|
|
142
|
-
| 'documents.DocumentsService
|
|
143
|
-
| 'documents.DocumentsService
|
|
144
|
-
| 'documents.DocumentsService
|
|
145
|
-
| 'documents.DocumentsService
|
|
146
|
-
| 'documents.DocumentsService
|
|
147
|
-
| 'documents.DocumentsService
|
|
148
|
-
| 'jobs.ConductService
|
|
149
|
-
| 'jobs.ConductService
|
|
150
|
-
| 'jobs.ConductService
|
|
151
|
-
| 'jobs.ConductService
|
|
152
|
-
| 'jobs.JobsService
|
|
153
|
-
| 'jobs.JobsService
|
|
154
|
-
| 'jobs.JobsService
|
|
155
|
-
| 'jobs.JobsService
|
|
156
|
-
| 'jobs.JobsService
|
|
157
|
-
| 'jobs.JobsService
|
|
158
|
-
| 'jobs.TimeclockService
|
|
159
|
-
| 'jobs.TimeclockService
|
|
160
|
-
| 'livemap.LivemapService
|
|
161
|
-
| 'livemap.LivemapService
|
|
162
|
-
| 'livemap.LivemapService
|
|
163
|
-
| 'mailer.MailerService
|
|
164
|
-
| 'mailer.MailerService
|
|
165
|
-
| 'mailer.MailerService
|
|
166
|
-
| 'qualifications.QualificationsService
|
|
167
|
-
| 'qualifications.QualificationsService
|
|
168
|
-
| 'qualifications.QualificationsService
|
|
169
|
-
| '
|
|
170
|
-
| 'settings.LawsService
|
|
171
|
-
| 'settings.
|
|
172
|
-
| 'settings.SettingsService
|
|
173
|
-
| 'settings.SettingsService
|
|
174
|
-
| 'settings.SettingsService
|
|
175
|
-
| 'settings.SettingsService
|
|
176
|
-
| 'settings.SettingsService
|
|
177
|
-
| 'settings.SettingsService
|
|
178
|
-
| '
|
|
179
|
-
| 'vehicles.VehiclesService
|
|
180
|
-
| 'wiki.WikiService
|
|
181
|
-
| 'wiki.WikiService
|
|
182
|
-
| 'wiki.WikiService
|
|
183
|
-
| 'wiki.WikiService
|
|
30
|
+
| 'Superuser/CanBeSuperuser'
|
|
31
|
+
| 'Superuser/Superuser'
|
|
32
|
+
| 'TODOService/TODOMethod'
|
|
33
|
+
| 'auth.AuthService/ChooseCharacter'
|
|
34
|
+
| 'calendar.CalendarService/CreateCalendar'
|
|
35
|
+
| 'centrum.CentrumService/CreateDispatch'
|
|
36
|
+
| 'centrum.CentrumService/CreateOrUpdateUnit'
|
|
37
|
+
| 'centrum.CentrumService/DeleteDispatch'
|
|
38
|
+
| 'centrum.CentrumService/DeleteUnit'
|
|
39
|
+
| 'centrum.CentrumService/Stream'
|
|
40
|
+
| 'centrum.CentrumService/TakeControl'
|
|
41
|
+
| 'centrum.CentrumService/TakeDispatch'
|
|
42
|
+
| 'centrum.CentrumService/UpdateDispatch'
|
|
43
|
+
| 'centrum.CentrumService/UpdateDispatchers'
|
|
44
|
+
| 'centrum.CentrumService/UpdateSettings'
|
|
45
|
+
| 'citizens.CitizensService/GetUser'
|
|
46
|
+
| 'citizens.CitizensService/ListCitizens'
|
|
47
|
+
| 'citizens.CitizensService/ListUserActivity'
|
|
48
|
+
| 'citizens.CitizensService/ManageLabels'
|
|
49
|
+
| 'citizens.CitizensService/SetUserProps'
|
|
50
|
+
| 'completor.CompletorService/CompleteCitizenLabels'
|
|
51
|
+
| 'completor.CompletorService/CompleteCitizens'
|
|
52
|
+
| 'completor.CompletorService/CompleteDocumentCategories'
|
|
53
|
+
| 'documents.DocumentsService/AddDocumentReference'
|
|
54
|
+
| 'documents.DocumentsService/AddDocumentRelation'
|
|
55
|
+
| 'documents.DocumentsService/ChangeDocumentOwner'
|
|
56
|
+
| 'documents.DocumentsService/CreateDocumentReq'
|
|
57
|
+
| 'documents.DocumentsService/CreateOrUpdateCategory'
|
|
58
|
+
| 'documents.DocumentsService/CreateTemplate'
|
|
59
|
+
| 'documents.DocumentsService/DeleteCategory'
|
|
60
|
+
| 'documents.DocumentsService/DeleteComment'
|
|
61
|
+
| 'documents.DocumentsService/DeleteDocument'
|
|
62
|
+
| 'documents.DocumentsService/DeleteDocumentReq'
|
|
63
|
+
| 'documents.DocumentsService/DeleteTemplate'
|
|
64
|
+
| 'documents.DocumentsService/ListCategories'
|
|
65
|
+
| 'documents.DocumentsService/ListDocumentActivity'
|
|
66
|
+
| 'documents.DocumentsService/ListDocumentReqs'
|
|
67
|
+
| 'documents.DocumentsService/ListDocuments'
|
|
68
|
+
| 'documents.DocumentsService/ListTemplates'
|
|
69
|
+
| 'documents.DocumentsService/ListUserDocuments'
|
|
70
|
+
| 'documents.DocumentsService/SetDocumentReminder'
|
|
71
|
+
| 'documents.DocumentsService/ToggleDocument'
|
|
72
|
+
| 'documents.DocumentsService/ToggleDocumentPin'
|
|
73
|
+
| 'documents.DocumentsService/UpdateDocument'
|
|
74
|
+
| 'jobs.ConductService/CreateConductEntry'
|
|
75
|
+
| 'jobs.ConductService/DeleteConductEntry'
|
|
76
|
+
| 'jobs.ConductService/ListConductEntries'
|
|
77
|
+
| 'jobs.ConductService/UpdateConductEntry'
|
|
78
|
+
| 'jobs.JobsService/GetColleague'
|
|
79
|
+
| 'jobs.JobsService/ListColleagueActivity'
|
|
80
|
+
| 'jobs.JobsService/ListColleagues'
|
|
81
|
+
| 'jobs.JobsService/ManageLabels'
|
|
82
|
+
| 'jobs.JobsService/SetColleagueProps'
|
|
83
|
+
| 'jobs.JobsService/SetMOTD'
|
|
84
|
+
| 'jobs.TimeclockService/ListInactiveEmployees'
|
|
85
|
+
| 'jobs.TimeclockService/ListTimeclock'
|
|
86
|
+
| 'livemap.LivemapService/CreateOrUpdateMarker'
|
|
87
|
+
| 'livemap.LivemapService/DeleteMarker'
|
|
88
|
+
| 'livemap.LivemapService/Stream'
|
|
89
|
+
| 'mailer.MailerService/CreateOrUpdateEmail'
|
|
90
|
+
| 'mailer.MailerService/DeleteEmail'
|
|
91
|
+
| 'mailer.MailerService/ListEmails'
|
|
92
|
+
| 'qualifications.QualificationsService/DeleteQualification'
|
|
93
|
+
| 'qualifications.QualificationsService/ListQualifications'
|
|
94
|
+
| 'qualifications.QualificationsService/UpdateQualification'
|
|
95
|
+
| 'settings.LawsService/CreateOrUpdateLawBook'
|
|
96
|
+
| 'settings.LawsService/DeleteLawBook'
|
|
97
|
+
| 'settings.SettingsService/CreateRole'
|
|
98
|
+
| 'settings.SettingsService/DeleteRole'
|
|
99
|
+
| 'settings.SettingsService/GetJobProps'
|
|
100
|
+
| 'settings.SettingsService/GetRoles'
|
|
101
|
+
| 'settings.SettingsService/SetJobProps'
|
|
102
|
+
| 'settings.SettingsService/UpdateRolePerms'
|
|
103
|
+
| 'settings.SettingsService/ViewAuditLog'
|
|
104
|
+
| 'vehicles.VehiclesService/ListVehicles'
|
|
105
|
+
| 'vehicles.VehiclesService/SetVehicleProps'
|
|
106
|
+
| 'wiki.WikiService/DeletePage'
|
|
107
|
+
| 'wiki.WikiService/ListPageActivity'
|
|
108
|
+
| 'wiki.WikiService/ListPages'
|
|
109
|
+
| 'wiki.WikiService/UpdatePage';
|
|
@@ -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/accounts/accounts.proto" (package "resources.accounts", 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";
|
|
@@ -18,67 +19,67 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
18
19
|
*/
|
|
19
20
|
export interface Account {
|
|
20
21
|
/**
|
|
21
|
-
* @generated from protobuf field:
|
|
22
|
+
* @generated from protobuf field: int64 id = 1
|
|
22
23
|
*/
|
|
23
|
-
id: number;
|
|
24
|
+
id: number;
|
|
24
25
|
/**
|
|
25
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
26
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
26
27
|
*/
|
|
27
28
|
createdAt?: Timestamp;
|
|
28
29
|
/**
|
|
29
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
30
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
|
|
30
31
|
*/
|
|
31
32
|
updatedAt?: Timestamp;
|
|
32
33
|
/**
|
|
33
|
-
* @generated from protobuf field: string username = 4
|
|
34
|
+
* @generated from protobuf field: string username = 4
|
|
34
35
|
*/
|
|
35
36
|
username: string;
|
|
36
37
|
/**
|
|
37
|
-
* @generated from protobuf field: string license = 5
|
|
38
|
+
* @generated from protobuf field: string license = 5
|
|
38
39
|
*/
|
|
39
40
|
license: string;
|
|
40
41
|
/**
|
|
41
|
-
* @generated from protobuf field: bool enabled = 6
|
|
42
|
+
* @generated from protobuf field: bool enabled = 6
|
|
42
43
|
*/
|
|
43
44
|
enabled: boolean;
|
|
44
45
|
/**
|
|
45
|
-
* @generated from protobuf field: optional int32 last_char = 7
|
|
46
|
+
* @generated from protobuf field: optional int32 last_char = 7
|
|
46
47
|
*/
|
|
47
48
|
lastChar?: number;
|
|
48
49
|
/**
|
|
49
|
-
* @generated from protobuf field: repeated resources.accounts.OAuth2Account oauth2_accounts = 8
|
|
50
|
+
* @generated from protobuf field: repeated resources.accounts.OAuth2Account oauth2_accounts = 8
|
|
50
51
|
*/
|
|
51
|
-
oauth2Accounts: OAuth2Account[];
|
|
52
|
+
oauth2Accounts: OAuth2Account[];
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* @generated from protobuf message resources.accounts.Character
|
|
55
56
|
*/
|
|
56
57
|
export interface Character {
|
|
57
58
|
/**
|
|
58
|
-
* @generated from protobuf field: bool available = 1
|
|
59
|
+
* @generated from protobuf field: bool available = 1
|
|
59
60
|
*/
|
|
60
61
|
available: boolean;
|
|
61
62
|
/**
|
|
62
|
-
* @generated from protobuf field: string group = 2
|
|
63
|
+
* @generated from protobuf field: string group = 2
|
|
63
64
|
*/
|
|
64
65
|
group: string;
|
|
65
66
|
/**
|
|
66
|
-
* @generated from protobuf field: resources.users.User char = 3
|
|
67
|
+
* @generated from protobuf field: resources.users.User char = 3
|
|
67
68
|
*/
|
|
68
|
-
char?: User;
|
|
69
|
+
char?: User;
|
|
69
70
|
}
|
|
70
71
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
71
72
|
class Account$Type extends MessageType<Account> {
|
|
72
73
|
constructor() {
|
|
73
74
|
super("resources.accounts.Account", [
|
|
74
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
75
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\"" } },
|
|
75
76
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
76
77
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
77
|
-
{ no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
78
|
-
{ no: 5, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
78
|
+
{ no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } } } },
|
|
79
|
+
{ no: 5, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
79
80
|
{ no: 6, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
80
|
-
{ no: 7, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
81
|
-
{ no: 8, name: "oauth2_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account, options: { "validate.
|
|
81
|
+
{ no: 7, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
82
|
+
{ no: 8, name: "oauth2_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account, options: { "buf.validate.field": { repeated: { maxItems: "10" } }, "tagger.tags": "alias:\"oauth2_account\"" } }
|
|
82
83
|
]);
|
|
83
84
|
}
|
|
84
85
|
create(value?: PartialMessage<Account>): Account {
|
|
@@ -97,8 +98,8 @@ class Account$Type extends MessageType<Account> {
|
|
|
97
98
|
while (reader.pos < end) {
|
|
98
99
|
let [fieldNo, wireType] = reader.tag();
|
|
99
100
|
switch (fieldNo) {
|
|
100
|
-
case /*
|
|
101
|
-
message.id = reader.
|
|
101
|
+
case /* int64 id */ 1:
|
|
102
|
+
message.id = reader.int64().toNumber();
|
|
102
103
|
break;
|
|
103
104
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
104
105
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -133,9 +134,9 @@ class Account$Type extends MessageType<Account> {
|
|
|
133
134
|
return message;
|
|
134
135
|
}
|
|
135
136
|
internalBinaryWrite(message: Account, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
136
|
-
/*
|
|
137
|
+
/* int64 id = 1; */
|
|
137
138
|
if (message.id !== 0)
|
|
138
|
-
writer.tag(1, WireType.Varint).
|
|
139
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
139
140
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
140
141
|
if (message.createdAt)
|
|
141
142
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -173,7 +174,7 @@ class Character$Type extends MessageType<Character> {
|
|
|
173
174
|
super("resources.accounts.Character", [
|
|
174
175
|
{ no: 1, name: "available", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
175
176
|
{ no: 2, name: "group", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
176
|
-
{ no: 3, name: "char", kind: "message", T: () => User }
|
|
177
|
+
{ no: 3, name: "char", kind: "message", T: () => User, options: { "tagger.tags": "alias:\"user\"" } }
|
|
177
178
|
]);
|
|
178
179
|
}
|
|
179
180
|
create(value?: PartialMessage<Character>): Character {
|
|
@@ -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/accounts/oauth2.proto" (package "resources.accounts", 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";
|
|
@@ -16,52 +17,52 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
16
17
|
*/
|
|
17
18
|
export interface OAuth2Account {
|
|
18
19
|
/**
|
|
19
|
-
* @generated from protobuf field:
|
|
20
|
+
* @generated from protobuf field: int64 account_id = 1
|
|
20
21
|
*/
|
|
21
22
|
accountId: number;
|
|
22
23
|
/**
|
|
23
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
24
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
24
25
|
*/
|
|
25
26
|
createdAt?: Timestamp;
|
|
26
27
|
/**
|
|
27
|
-
* @generated from protobuf field: string provider_name = 3
|
|
28
|
+
* @generated from protobuf field: string provider_name = 3
|
|
28
29
|
*/
|
|
29
|
-
providerName: string;
|
|
30
|
+
providerName: string;
|
|
30
31
|
/**
|
|
31
|
-
* @generated from protobuf field: resources.accounts.OAuth2Provider provider = 4
|
|
32
|
+
* @generated from protobuf field: resources.accounts.OAuth2Provider provider = 4
|
|
32
33
|
*/
|
|
33
34
|
provider?: OAuth2Provider;
|
|
34
35
|
/**
|
|
35
|
-
* @generated from protobuf field: string external_id = 5
|
|
36
|
+
* @generated from protobuf field: string external_id = 5
|
|
36
37
|
*/
|
|
37
38
|
externalId: string;
|
|
38
39
|
/**
|
|
39
|
-
* @generated from protobuf field: string username = 6
|
|
40
|
+
* @generated from protobuf field: string username = 6
|
|
40
41
|
*/
|
|
41
42
|
username: string;
|
|
42
43
|
/**
|
|
43
|
-
* @generated from protobuf field: string
|
|
44
|
+
* @generated from protobuf field: string profile_picture = 7
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
|
+
profilePicture: string;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* @generated from protobuf message resources.accounts.OAuth2Provider
|
|
49
50
|
*/
|
|
50
51
|
export interface OAuth2Provider {
|
|
51
52
|
/**
|
|
52
|
-
* @generated from protobuf field: string name = 1
|
|
53
|
+
* @generated from protobuf field: string name = 1
|
|
53
54
|
*/
|
|
54
55
|
name: string;
|
|
55
56
|
/**
|
|
56
|
-
* @generated from protobuf field: string label = 2
|
|
57
|
+
* @generated from protobuf field: string label = 2
|
|
57
58
|
*/
|
|
58
59
|
label: string;
|
|
59
60
|
/**
|
|
60
|
-
* @generated from protobuf field: string homepage = 3
|
|
61
|
+
* @generated from protobuf field: string homepage = 3
|
|
61
62
|
*/
|
|
62
63
|
homepage: string;
|
|
63
64
|
/**
|
|
64
|
-
* @generated from protobuf field: optional string icon = 4
|
|
65
|
+
* @generated from protobuf field: optional string icon = 4
|
|
65
66
|
*/
|
|
66
67
|
icon?: string;
|
|
67
68
|
}
|
|
@@ -69,13 +70,13 @@ export interface OAuth2Provider {
|
|
|
69
70
|
class OAuth2Account$Type extends MessageType<OAuth2Account> {
|
|
70
71
|
constructor() {
|
|
71
72
|
super("resources.accounts.OAuth2Account", [
|
|
72
|
-
{ no: 1, name: "account_id", kind: "scalar", T:
|
|
73
|
+
{ no: 1, name: "account_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
73
74
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
74
|
-
{ no: 3, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
75
|
+
{ no: 3, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "tagger.tags": "sql:\"primary_key\" alias:\"provider_name\"" } },
|
|
75
76
|
{ no: 4, name: "provider", kind: "message", T: () => OAuth2Provider },
|
|
76
|
-
{ no: 5, name: "external_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
77
|
-
{ no: 6, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
78
|
-
{ no: 7, name: "
|
|
77
|
+
{ no: 5, name: "external_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
|
|
78
|
+
{ no: 6, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
|
|
79
|
+
{ no: 7, name: "profile_picture", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } }
|
|
79
80
|
]);
|
|
80
81
|
}
|
|
81
82
|
create(value?: PartialMessage<OAuth2Account>): OAuth2Account {
|
|
@@ -84,7 +85,7 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
|
|
|
84
85
|
message.providerName = "";
|
|
85
86
|
message.externalId = "";
|
|
86
87
|
message.username = "";
|
|
87
|
-
message.
|
|
88
|
+
message.profilePicture = "";
|
|
88
89
|
if (value !== undefined)
|
|
89
90
|
reflectionMergePartial<OAuth2Account>(this, message, value);
|
|
90
91
|
return message;
|
|
@@ -94,8 +95,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
|
|
|
94
95
|
while (reader.pos < end) {
|
|
95
96
|
let [fieldNo, wireType] = reader.tag();
|
|
96
97
|
switch (fieldNo) {
|
|
97
|
-
case /*
|
|
98
|
-
message.accountId = reader.
|
|
98
|
+
case /* int64 account_id */ 1:
|
|
99
|
+
message.accountId = reader.int64().toNumber();
|
|
99
100
|
break;
|
|
100
101
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
101
102
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -112,8 +113,8 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
|
|
|
112
113
|
case /* string username */ 6:
|
|
113
114
|
message.username = reader.string();
|
|
114
115
|
break;
|
|
115
|
-
case /* string
|
|
116
|
-
message.
|
|
116
|
+
case /* string profile_picture */ 7:
|
|
117
|
+
message.profilePicture = reader.string();
|
|
117
118
|
break;
|
|
118
119
|
default:
|
|
119
120
|
let u = options.readUnknownField;
|
|
@@ -127,9 +128,9 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
|
|
|
127
128
|
return message;
|
|
128
129
|
}
|
|
129
130
|
internalBinaryWrite(message: OAuth2Account, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
130
|
-
/*
|
|
131
|
+
/* int64 account_id = 1; */
|
|
131
132
|
if (message.accountId !== 0)
|
|
132
|
-
writer.tag(1, WireType.Varint).
|
|
133
|
+
writer.tag(1, WireType.Varint).int64(message.accountId);
|
|
133
134
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
134
135
|
if (message.createdAt)
|
|
135
136
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -145,9 +146,9 @@ class OAuth2Account$Type extends MessageType<OAuth2Account> {
|
|
|
145
146
|
/* string username = 6; */
|
|
146
147
|
if (message.username !== "")
|
|
147
148
|
writer.tag(6, WireType.LengthDelimited).string(message.username);
|
|
148
|
-
/* string
|
|
149
|
-
if (message.
|
|
150
|
-
writer.tag(7, WireType.LengthDelimited).string(message.
|
|
149
|
+
/* string profile_picture = 7; */
|
|
150
|
+
if (message.profilePicture !== "")
|
|
151
|
+
writer.tag(7, WireType.LengthDelimited).string(message.profilePicture);
|
|
151
152
|
let u = options.writeUnknownFields;
|
|
152
153
|
if (u !== false)
|
|
153
154
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|