@fivenet-app/gen 2025.5.3 → 2026.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/README.md +1 -1
  2. package/buf/validate/validate.ts +11301 -0
  3. package/clients.ts +193 -154
  4. package/codegen/dbscanner/dbscanner.ts +91 -0
  5. package/codegen/perms/perms.ts +287 -0
  6. package/codegen/sanitizer/sanitizer.ts +113 -0
  7. package/google/protobuf/any.ts +4 -3
  8. package/google/protobuf/descriptor.ts +393 -239
  9. package/google/protobuf/duration.ts +4 -3
  10. package/google/protobuf/struct.ts +485 -0
  11. package/google/protobuf/timestamp.ts +4 -3
  12. package/package.json +3 -3
  13. package/perms.ts +217 -160
  14. package/resources/accounts/accounts.ts +115 -47
  15. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
  16. package/resources/audit/audit.ts +172 -53
  17. package/resources/calendar/{access.ts → access/access.ts} +72 -71
  18. package/resources/calendar/calendar.ts +79 -543
  19. package/resources/calendar/entries/entries.ts +474 -0
  20. package/resources/centrum/access/access.ts +345 -0
  21. package/resources/centrum/dispatchers/dispatchers.ts +149 -0
  22. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
  23. package/resources/centrum/joblist.ts +136 -0
  24. package/resources/centrum/settings/settings.ts +657 -0
  25. package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
  26. package/resources/centrum/{units.ts → units/units.ts} +230 -130
  27. package/resources/clientconfig/clientconfig.ts +1015 -0
  28. package/resources/collab/collab.ts +805 -0
  29. package/resources/common/content/content.ts +169 -63
  30. package/resources/common/content/diff_activity.ts +267 -0
  31. package/resources/common/database/database.ts +92 -35
  32. package/resources/common/error.ts +17 -16
  33. package/resources/common/i18n.ts +20 -24
  34. package/resources/common/id_mapping.ts +69 -0
  35. package/resources/common/tests/objects.ts +4 -3
  36. package/resources/{common/cron → cron}/cron.ts +77 -65
  37. package/resources/discord/discord.ts +209 -0
  38. package/resources/documents/{access.ts → access/access.ts} +75 -76
  39. package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
  40. package/resources/documents/approval/approval.ts +945 -0
  41. package/resources/documents/{category.ts → category/category.ts} +25 -32
  42. package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
  43. package/resources/documents/data/data.ts +303 -0
  44. package/resources/documents/documents.ts +374 -686
  45. package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
  46. package/resources/documents/pins/pins.ts +127 -0
  47. package/resources/documents/references/references.ts +187 -0
  48. package/resources/documents/relations/relations.ts +184 -0
  49. package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
  50. package/resources/documents/stamps/stamp.ts +355 -0
  51. package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
  52. package/resources/documents/workflow/workflow.ts +600 -0
  53. package/resources/file/file.ts +152 -0
  54. package/{services/settings → resources/file}/filestore.ts +179 -165
  55. package/resources/file/meta.ts +148 -0
  56. package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
  57. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
  58. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
  59. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
  60. package/resources/jobs/jobs.ts +14 -13
  61. package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
  62. package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
  63. package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
  64. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
  65. package/resources/laws/laws.ts +40 -49
  66. package/resources/livemap/coords.ts +81 -0
  67. package/resources/livemap/heatmap/heatmap.ts +93 -0
  68. package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
  69. package/resources/livemap/markers/user_marker.ts +377 -0
  70. package/resources/mailer/{access.ts → access/access.ts} +119 -118
  71. package/resources/mailer/{email.ts → emails/email.ts} +38 -41
  72. package/resources/mailer/{events.ts → events/events.ts} +44 -43
  73. package/resources/mailer/{message.ts → messages/message.ts} +69 -74
  74. package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
  75. package/resources/mailer/{template.ts → templates/template.ts} +37 -40
  76. package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
  77. package/resources/notifications/clientview/clientview.ts +239 -0
  78. package/resources/notifications/{events.ts → events/events.ts} +67 -130
  79. package/resources/notifications/notifications.ts +55 -60
  80. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
  81. package/resources/permissions/events/events.ts +149 -0
  82. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
  83. package/resources/qualifications/{access.ts → access/access.ts} +43 -42
  84. package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
  85. package/resources/qualifications/qualifications.ts +327 -388
  86. package/resources/settings/banner.ts +14 -21
  87. package/resources/settings/config.ts +663 -79
  88. package/resources/settings/data.ts +90 -0
  89. package/resources/settings/perms.ts +151 -0
  90. package/resources/settings/status.ts +533 -0
  91. package/resources/stats/stats.ts +382 -2
  92. package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
  93. package/resources/sync/data/data.ts +1001 -0
  94. package/resources/sync/data/v2/data.ts +220 -0
  95. package/resources/timestamp/timestamp.ts +3 -2
  96. package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
  97. package/resources/userinfo/userinfo.ts +442 -0
  98. package/resources/users/{activity.ts → activity/activity.ts} +182 -166
  99. package/resources/users/{labels.ts → labels/labels.ts} +27 -30
  100. package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
  101. package/resources/users/{props.ts → props/props.ts} +109 -77
  102. package/resources/users/short/user.ts +184 -0
  103. package/resources/users/user.ts +528 -0
  104. package/resources/vehicles/activity/activity.ts +231 -0
  105. package/resources/vehicles/props/props.ts +125 -0
  106. package/resources/vehicles/vehicles.ts +43 -18
  107. package/resources/wiki/{access.ts → access/access.ts} +72 -71
  108. package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
  109. package/resources/wiki/page.ts +164 -93
  110. package/services/auth/auth.client.ts +45 -35
  111. package/services/auth/auth.ts +498 -288
  112. package/services/calendar/calendar.client.ts +32 -91
  113. package/services/calendar/calendar.ts +157 -134
  114. package/services/centrum/centrum.client.ts +97 -137
  115. package/services/centrum/centrum.ts +755 -352
  116. package/services/citizens/citizens.client.ts +70 -39
  117. package/services/citizens/citizens.ts +226 -112
  118. package/services/completor/completor.client.ts +16 -35
  119. package/services/completor/completor.ts +95 -54
  120. package/services/documents/approval.client.ts +188 -0
  121. package/services/documents/approval.ts +1776 -0
  122. package/services/documents/collab.client.ts +46 -0
  123. package/services/documents/collab.ts +13 -0
  124. package/services/documents/documents.client.ts +88 -217
  125. package/services/documents/documents.ts +579 -619
  126. package/services/documents/forms.client.ts +51 -0
  127. package/services/documents/forms.ts +232 -0
  128. package/services/documents/stamps.client.ts +77 -0
  129. package/services/documents/stamps.ts +481 -0
  130. package/services/documents/stats.client.ts +38 -0
  131. package/services/documents/stats.ts +245 -0
  132. package/services/filestore/filestore.client.ts +86 -0
  133. package/services/filestore/filestore.ts +262 -0
  134. package/services/jobs/conduct.client.ts +40 -28
  135. package/services/jobs/conduct.ts +183 -56
  136. package/services/jobs/jobs.client.ts +22 -61
  137. package/services/jobs/jobs.ts +138 -121
  138. package/services/jobs/stats.client.ts +38 -0
  139. package/services/jobs/stats.ts +207 -0
  140. package/services/jobs/timeclock.client.ts +8 -19
  141. package/services/jobs/timeclock.ts +76 -75
  142. package/services/livemap/livemap.client.ts +8 -19
  143. package/services/livemap/livemap.ts +297 -126
  144. package/services/mailer/mailer.client.ts +44 -127
  145. package/services/mailer/mailer.ts +266 -269
  146. package/services/notifications/notifications.client.ts +65 -0
  147. package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
  148. package/services/qualifications/qualifications.client.ts +46 -91
  149. package/services/qualifications/qualifications.ts +250 -209
  150. package/services/settings/accounts.client.ts +31 -33
  151. package/services/settings/accounts.ts +251 -67
  152. package/services/settings/config.client.ts +6 -13
  153. package/services/settings/config.ts +8 -7
  154. package/services/settings/cron.client.ts +4 -7
  155. package/services/settings/cron.ts +7 -6
  156. package/services/settings/laws.client.ts +10 -25
  157. package/services/settings/laws.ts +30 -29
  158. package/services/settings/settings.client.ts +57 -103
  159. package/services/settings/settings.ts +237 -633
  160. package/services/settings/system.client.ts +103 -0
  161. package/services/settings/system.ts +718 -0
  162. package/services/stats/stats.client.ts +9 -8
  163. package/services/stats/stats.ts +27 -26
  164. package/services/sync/sync.client.ts +16 -15
  165. package/services/sync/sync.ts +174 -97
  166. package/services/sync/v2/sync.client.ts +331 -0
  167. package/services/sync/v2/sync.ts +1766 -0
  168. package/services/vehicles/vehicles.client.ts +17 -7
  169. package/services/vehicles/vehicles.ts +170 -25
  170. package/services/wiki/collab.client.ts +46 -0
  171. package/services/wiki/collab.ts +13 -0
  172. package/services/wiki/wiki.client.ts +28 -37
  173. package/services/wiki/wiki.ts +97 -67
  174. package/svcs.ts +174 -106
  175. package/resources/centrum/attributes.ts +0 -186
  176. package/resources/centrum/disponents.ts +0 -81
  177. package/resources/centrum/settings.ts +0 -307
  178. package/resources/documents/workflow.ts +0 -351
  179. package/resources/filestore/file.ts +0 -204
  180. package/resources/internet/access.ts +0 -358
  181. package/resources/internet/ads.ts +0 -257
  182. package/resources/internet/domain.ts +0 -328
  183. package/resources/internet/page.ts +0 -428
  184. package/resources/internet/search.ts +0 -128
  185. package/resources/livemap/tracker.ts +0 -81
  186. package/resources/sync/data.ts +0 -587
  187. package/resources/users/users.ts +0 -435
  188. package/services/internet/ads.client.ts +0 -41
  189. package/services/internet/ads.ts +0 -145
  190. package/services/internet/domain.client.ts +0 -109
  191. package/services/internet/domain.ts +0 -658
  192. package/services/internet/internet.client.ts +0 -58
  193. package/services/internet/internet.ts +0 -268
  194. package/services/notificator/notificator.client.ts +0 -76
  195. package/services/settings/filestore.client.ts +0 -75
package/clients.ts CHANGED
@@ -1,156 +1,195 @@
1
1
  // Code generated by protoc-gen-fronthelper. DO NOT EDIT.
2
2
 
3
- import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
4
- import { AuthServiceClient } from '~~/gen/ts/services/auth/auth.client';
5
- import { CalendarServiceClient } from '~~/gen/ts/services/calendar/calendar.client';
6
- import { CentrumServiceClient } from '~~/gen/ts/services/centrum/centrum.client';
7
- import { CitizensServiceClient } from '~~/gen/ts/services/citizens/citizens.client';
8
- import { CompletorServiceClient } from '~~/gen/ts/services/completor/completor.client';
9
- import { DocumentsServiceClient } from '~~/gen/ts/services/documents/documents.client';
10
- import { AdsServiceClient } from '~~/gen/ts/services/internet/ads.client';
11
- import { DomainServiceClient } from '~~/gen/ts/services/internet/domain.client';
12
- import { InternetServiceClient } from '~~/gen/ts/services/internet/internet.client';
13
- import { ConductServiceClient } from '~~/gen/ts/services/jobs/conduct.client';
14
- import { JobsServiceClient } from '~~/gen/ts/services/jobs/jobs.client';
15
- import { TimeclockServiceClient } from '~~/gen/ts/services/jobs/timeclock.client';
16
- import { LivemapServiceClient } from '~~/gen/ts/services/livemap/livemap.client';
17
- import { MailerServiceClient } from '~~/gen/ts/services/mailer/mailer.client';
18
- import { NotificatorServiceClient } from '~~/gen/ts/services/notificator/notificator.client';
19
- import { QualificationsServiceClient } from '~~/gen/ts/services/qualifications/qualifications.client';
20
- import { AccountsServiceClient } from '~~/gen/ts/services/settings/accounts.client';
21
- import { ConfigServiceClient } from '~~/gen/ts/services/settings/config.client';
22
- import { CronServiceClient } from '~~/gen/ts/services/settings/cron.client';
23
- import { FilestoreServiceClient } from '~~/gen/ts/services/settings/filestore.client';
24
- import { LawsServiceClient } from '~~/gen/ts/services/settings/laws.client';
25
- import { SettingsServiceClient } from '~~/gen/ts/services/settings/settings.client';
26
- import { StatsServiceClient } from '~~/gen/ts/services/stats/stats.client';
27
- import { SyncServiceClient } from '~~/gen/ts/services/sync/sync.client';
28
- import { VehiclesServiceClient } from '~~/gen/ts/services/vehicles/vehicles.client';
29
- import { WikiServiceClient } from '~~/gen/ts/services/wiki/wiki.client';
30
-
31
- export class GRPCClients {
32
-
33
- public auth: {
34
- auth: AuthServiceClient;
35
- };
36
- public calendar: {
37
- calendar: CalendarServiceClient;
38
- };
39
- public centrum: {
40
- centrum: CentrumServiceClient;
41
- };
42
- public citizens: {
43
- citizens: CitizensServiceClient;
44
- };
45
- public completor: {
46
- completor: CompletorServiceClient;
47
- };
48
- public documents: {
49
- documents: DocumentsServiceClient;
50
- };
51
- public internet: {
52
- ads: AdsServiceClient;
53
- domain: DomainServiceClient;
54
- internet: InternetServiceClient;
55
- };
56
- public jobs: {
57
- conduct: ConductServiceClient;
58
- jobs: JobsServiceClient;
59
- timeclock: TimeclockServiceClient;
60
- };
61
- public livemap: {
62
- livemap: LivemapServiceClient;
63
- };
64
- public mailer: {
65
- mailer: MailerServiceClient;
66
- };
67
- public notificator: {
68
- notificator: NotificatorServiceClient;
69
- };
70
- public qualifications: {
71
- qualifications: QualificationsServiceClient;
72
- };
73
- public settings: {
74
- accounts: AccountsServiceClient;
75
- config: ConfigServiceClient;
76
- cron: CronServiceClient;
77
- filestore: FilestoreServiceClient;
78
- laws: LawsServiceClient;
79
- settings: SettingsServiceClient;
80
- };
81
- public stats: {
82
- stats: StatsServiceClient;
83
- };
84
- public sync: {
85
- sync: SyncServiceClient;
86
- };
87
- public vehicles: {
88
- vehicles: VehiclesServiceClient;
89
- };
90
- public wiki: {
91
- wiki: WikiServiceClient;
92
- };
93
-
94
- constructor(transport: RpcTransport) {
95
- this.auth = {
96
- auth: new AuthServiceClient(transport),
97
- };
98
- this.calendar = {
99
- calendar: new CalendarServiceClient(transport),
100
- };
101
- this.centrum = {
102
- centrum: new CentrumServiceClient(transport),
103
- };
104
- this.citizens = {
105
- citizens: new CitizensServiceClient(transport),
106
- };
107
- this.completor = {
108
- completor: new CompletorServiceClient(transport),
109
- };
110
- this.documents = {
111
- documents: new DocumentsServiceClient(transport),
112
- };
113
- this.internet = {
114
- ads: new AdsServiceClient(transport),
115
- domain: new DomainServiceClient(transport),
116
- internet: new InternetServiceClient(transport),
117
- };
118
- this.jobs = {
119
- conduct: new ConductServiceClient(transport),
120
- jobs: new JobsServiceClient(transport),
121
- timeclock: new TimeclockServiceClient(transport),
122
- };
123
- this.livemap = {
124
- livemap: new LivemapServiceClient(transport),
125
- };
126
- this.mailer = {
127
- mailer: new MailerServiceClient(transport),
128
- };
129
- this.notificator = {
130
- notificator: new NotificatorServiceClient(transport),
131
- };
132
- this.qualifications = {
133
- qualifications: new QualificationsServiceClient(transport),
134
- };
135
- this.settings = {
136
- accounts: new AccountsServiceClient(transport),
137
- config: new ConfigServiceClient(transport),
138
- cron: new CronServiceClient(transport),
139
- filestore: new FilestoreServiceClient(transport),
140
- laws: new LawsServiceClient(transport),
141
- settings: new SettingsServiceClient(transport),
142
- };
143
- this.stats = {
144
- stats: new StatsServiceClient(transport),
145
- };
146
- this.sync = {
147
- sync: new SyncServiceClient(transport),
148
- };
149
- this.vehicles = {
150
- vehicles: new VehiclesServiceClient(transport),
151
- };
152
- this.wiki = {
153
- wiki: new WikiServiceClient(transport),
154
- };
155
- }
156
- };
3
+ import { useGRPCTransport } from '~/composables/useGRPCTransport';
4
+
5
+ // Factory for auth.auth client.
6
+ export async function getAuthAuthClient() {
7
+ const { AuthServiceClient } = await import('~~/gen/ts/services/auth/auth.client');
8
+ return new AuthServiceClient(useGRPCTransport());
9
+ }
10
+
11
+ // Factory for calendar.calendar client.
12
+ export async function getCalendarCalendarClient() {
13
+ const { CalendarServiceClient } = await import('~~/gen/ts/services/calendar/calendar.client');
14
+ return new CalendarServiceClient(useGRPCTransport());
15
+ }
16
+
17
+ // Factory for centrum.centrum client.
18
+ export async function getCentrumCentrumClient() {
19
+ const { CentrumServiceClient } = await import('~~/gen/ts/services/centrum/centrum.client');
20
+ return new CentrumServiceClient(useGRPCTransport());
21
+ }
22
+
23
+ // Factory for citizens.citizens client.
24
+ export async function getCitizensCitizensClient() {
25
+ const { CitizensServiceClient } = await import('~~/gen/ts/services/citizens/citizens.client');
26
+ return new CitizensServiceClient(useGRPCTransport());
27
+ }
28
+
29
+ // Factory for completor.completor client.
30
+ export async function getCompletorCompletorClient() {
31
+ const { CompletorServiceClient } = await import('~~/gen/ts/services/completor/completor.client');
32
+ return new CompletorServiceClient(useGRPCTransport());
33
+ }
34
+
35
+ // Factory for documents.approval client.
36
+ export async function getDocumentsApprovalClient() {
37
+ const { ApprovalServiceClient } = await import('~~/gen/ts/services/documents/approval.client');
38
+ return new ApprovalServiceClient(useGRPCTransport());
39
+ }
40
+
41
+ // Factory for documents.collab client.
42
+ export async function getDocumentsCollabClient() {
43
+ const { CollabServiceClient } = await import('~~/gen/ts/services/documents/collab.client');
44
+ return new CollabServiceClient(useGRPCTransport());
45
+ }
46
+
47
+ // Factory for documents.documents client.
48
+ export async function getDocumentsDocumentsClient() {
49
+ const { DocumentsServiceClient } = await import('~~/gen/ts/services/documents/documents.client');
50
+ return new DocumentsServiceClient(useGRPCTransport());
51
+ }
52
+
53
+ // Factory for documents.forms client.
54
+ export async function getDocumentsFormsClient() {
55
+ const { FormsServiceClient } = await import('~~/gen/ts/services/documents/forms.client');
56
+ return new FormsServiceClient(useGRPCTransport());
57
+ }
58
+
59
+ // Factory for documents.stamps client.
60
+ export async function getDocumentsStampsClient() {
61
+ const { StampsServiceClient } = await import('~~/gen/ts/services/documents/stamps.client');
62
+ return new StampsServiceClient(useGRPCTransport());
63
+ }
64
+
65
+ // Factory for documents.stats client.
66
+ export async function getDocumentsStatsClient() {
67
+ const { StatsServiceClient } = await import('~~/gen/ts/services/documents/stats.client');
68
+ return new StatsServiceClient(useGRPCTransport());
69
+ }
70
+
71
+ // Factory for filestore.filestore client.
72
+ export async function getFilestoreFilestoreClient() {
73
+ const { FilestoreServiceClient } = await import('~~/gen/ts/services/filestore/filestore.client');
74
+ return new FilestoreServiceClient(useGRPCTransport());
75
+ }
76
+
77
+ // Factory for jobs.conduct client.
78
+ export async function getJobsConductClient() {
79
+ const { ConductServiceClient } = await import('~~/gen/ts/services/jobs/conduct.client');
80
+ return new ConductServiceClient(useGRPCTransport());
81
+ }
82
+
83
+ // Factory for jobs.jobs client.
84
+ export async function getJobsJobsClient() {
85
+ const { JobsServiceClient } = await import('~~/gen/ts/services/jobs/jobs.client');
86
+ return new JobsServiceClient(useGRPCTransport());
87
+ }
88
+
89
+ // Factory for jobs.stats client.
90
+ export async function getJobsStatsClient() {
91
+ const { StatsServiceClient } = await import('~~/gen/ts/services/jobs/stats.client');
92
+ return new StatsServiceClient(useGRPCTransport());
93
+ }
94
+
95
+ // Factory for jobs.timeclock client.
96
+ export async function getJobsTimeclockClient() {
97
+ const { TimeclockServiceClient } = await import('~~/gen/ts/services/jobs/timeclock.client');
98
+ return new TimeclockServiceClient(useGRPCTransport());
99
+ }
100
+
101
+ // Factory for livemap.livemap client.
102
+ export async function getLivemapLivemapClient() {
103
+ const { LivemapServiceClient } = await import('~~/gen/ts/services/livemap/livemap.client');
104
+ return new LivemapServiceClient(useGRPCTransport());
105
+ }
106
+
107
+ // Factory for mailer.mailer client.
108
+ export async function getMailerMailerClient() {
109
+ const { MailerServiceClient } = await import('~~/gen/ts/services/mailer/mailer.client');
110
+ return new MailerServiceClient(useGRPCTransport());
111
+ }
112
+
113
+ // Factory for notifications.notifications client.
114
+ export async function getNotificationsNotificationsClient() {
115
+ const { NotificationsServiceClient } = await import('~~/gen/ts/services/notifications/notifications.client');
116
+ return new NotificationsServiceClient(useGRPCTransport());
117
+ }
118
+
119
+ // Factory for qualifications.qualifications client.
120
+ export async function getQualificationsQualificationsClient() {
121
+ const { QualificationsServiceClient } = await import('~~/gen/ts/services/qualifications/qualifications.client');
122
+ return new QualificationsServiceClient(useGRPCTransport());
123
+ }
124
+
125
+ // Factory for settings.accounts client.
126
+ export async function getSettingsAccountsClient() {
127
+ const { AccountsServiceClient } = await import('~~/gen/ts/services/settings/accounts.client');
128
+ return new AccountsServiceClient(useGRPCTransport());
129
+ }
130
+
131
+ // Factory for settings.config client.
132
+ export async function getSettingsConfigClient() {
133
+ const { ConfigServiceClient } = await import('~~/gen/ts/services/settings/config.client');
134
+ return new ConfigServiceClient(useGRPCTransport());
135
+ }
136
+
137
+ // Factory for settings.cron client.
138
+ export async function getSettingsCronClient() {
139
+ const { CronServiceClient } = await import('~~/gen/ts/services/settings/cron.client');
140
+ return new CronServiceClient(useGRPCTransport());
141
+ }
142
+
143
+ // Factory for settings.laws client.
144
+ export async function getSettingsLawsClient() {
145
+ const { LawsServiceClient } = await import('~~/gen/ts/services/settings/laws.client');
146
+ return new LawsServiceClient(useGRPCTransport());
147
+ }
148
+
149
+ // Factory for settings.settings client.
150
+ export async function getSettingsSettingsClient() {
151
+ const { SettingsServiceClient } = await import('~~/gen/ts/services/settings/settings.client');
152
+ return new SettingsServiceClient(useGRPCTransport());
153
+ }
154
+
155
+ // Factory for settings.system client.
156
+ export async function getSettingsSystemClient() {
157
+ const { SystemServiceClient } = await import('~~/gen/ts/services/settings/system.client');
158
+ return new SystemServiceClient(useGRPCTransport());
159
+ }
160
+
161
+ // Factory for stats.stats client.
162
+ export async function getStatsStatsClient() {
163
+ const { StatsServiceClient } = await import('~~/gen/ts/services/stats/stats.client');
164
+ return new StatsServiceClient(useGRPCTransport());
165
+ }
166
+
167
+ // Factory for sync.sync client.
168
+ export async function getSyncSyncClient() {
169
+ const { SyncServiceClient } = await import('~~/gen/ts/services/sync/sync.client');
170
+ return new SyncServiceClient(useGRPCTransport());
171
+ }
172
+
173
+ // Factory for sync.v2.sync client.
174
+ export async function getSyncV2SyncClient() {
175
+ const { SyncServiceClient } = await import('~~/gen/ts/services/sync/v2/sync.client');
176
+ return new SyncServiceClient(useGRPCTransport());
177
+ }
178
+
179
+ // Factory for vehicles.vehicles client.
180
+ export async function getVehiclesVehiclesClient() {
181
+ const { VehiclesServiceClient } = await import('~~/gen/ts/services/vehicles/vehicles.client');
182
+ return new VehiclesServiceClient(useGRPCTransport());
183
+ }
184
+
185
+ // Factory for wiki.collab client.
186
+ export async function getWikiCollabClient() {
187
+ const { CollabServiceClient } = await import('~~/gen/ts/services/wiki/collab.client');
188
+ return new CollabServiceClient(useGRPCTransport());
189
+ }
190
+
191
+ // Factory for wiki.wiki client.
192
+ export async function getWikiWikiClient() {
193
+ const { WikiServiceClient } = await import('~~/gen/ts/services/wiki/wiki.client');
194
+ return new WikiServiceClient(useGRPCTransport());
195
+ }
@@ -0,0 +1,91 @@
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 "codegen/dbscanner/dbscanner.proto" (package "codegen.dbscanner", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ /**
15
+ * @generated from protobuf message codegen.dbscanner.MessageOptions
16
+ */
17
+ export interface MessageOptions {
18
+ /**
19
+ * @generated from protobuf field: bool enabled = 1
20
+ */
21
+ enabled: boolean;
22
+ /**
23
+ * @generated from protobuf field: optional bool not_json = 2
24
+ */
25
+ notJson?: boolean;
26
+ /**
27
+ * @generated from protobuf field: optional bool partial = 3
28
+ */
29
+ partial?: boolean;
30
+ }
31
+ // @generated message type with reflection information, may provide speed optimized methods
32
+ class MessageOptions$Type extends MessageType<MessageOptions> {
33
+ constructor() {
34
+ super("codegen.dbscanner.MessageOptions", [
35
+ { no: 1, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
36
+ { no: 2, name: "not_json", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
37
+ { no: 3, name: "partial", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
38
+ ]);
39
+ }
40
+ create(value?: PartialMessage<MessageOptions>): MessageOptions {
41
+ const message = globalThis.Object.create((this.messagePrototype!));
42
+ message.enabled = false;
43
+ if (value !== undefined)
44
+ reflectionMergePartial<MessageOptions>(this, message, value);
45
+ return message;
46
+ }
47
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageOptions): MessageOptions {
48
+ let message = target ?? this.create(), end = reader.pos + length;
49
+ while (reader.pos < end) {
50
+ let [fieldNo, wireType] = reader.tag();
51
+ switch (fieldNo) {
52
+ case /* bool enabled */ 1:
53
+ message.enabled = reader.bool();
54
+ break;
55
+ case /* optional bool not_json */ 2:
56
+ message.notJson = reader.bool();
57
+ break;
58
+ case /* optional bool partial */ 3:
59
+ message.partial = reader.bool();
60
+ break;
61
+ default:
62
+ let u = options.readUnknownField;
63
+ if (u === "throw")
64
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
65
+ let d = reader.skip(wireType);
66
+ if (u !== false)
67
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
68
+ }
69
+ }
70
+ return message;
71
+ }
72
+ internalBinaryWrite(message: MessageOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
73
+ /* bool enabled = 1; */
74
+ if (message.enabled !== false)
75
+ writer.tag(1, WireType.Varint).bool(message.enabled);
76
+ /* optional bool not_json = 2; */
77
+ if (message.notJson !== undefined)
78
+ writer.tag(2, WireType.Varint).bool(message.notJson);
79
+ /* optional bool partial = 3; */
80
+ if (message.partial !== undefined)
81
+ writer.tag(3, WireType.Varint).bool(message.partial);
82
+ let u = options.writeUnknownFields;
83
+ if (u !== false)
84
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
85
+ return writer;
86
+ }
87
+ }
88
+ /**
89
+ * @generated MessageType for protobuf message codegen.dbscanner.MessageOptions
90
+ */
91
+ export const MessageOptions = new MessageOptions$Type();