@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.
- package/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -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 +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- 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/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- 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/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- 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 +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- 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 +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- 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 +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- 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/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- 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/clients.ts
CHANGED
|
@@ -1,156 +1,195 @@
|
|
|
1
1
|
// Code generated by protoc-gen-fronthelper. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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();
|