@fivenet-app/gen 2025.9.1 → 2026.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/clients.ts +36 -0
- package/codegen/perms/perms.ts +186 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +140 -8
- package/resources/accounts/accounts.ts +98 -31
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
- package/resources/audit/audit.ts +156 -38
- package/resources/calendar/{access.ts → access/access.ts} +30 -30
- package/resources/calendar/calendar.ts +17 -477
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/{access.ts → access/access.ts} +22 -22
- package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/citizens/labels/labels.ts +526 -0
- package/resources/{users → citizens/licenses}/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +126 -258
- package/resources/collab/collab.ts +4 -16
- package/resources/common/content/content.ts +108 -85
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/i18n.ts +2 -2
- package/resources/{common/cron → cron}/cron.ts +43 -43
- package/resources/documents/{access.ts → access/access.ts} +29 -52
- package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +7 -7
- package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +282 -667
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
- package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
- package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
- package/resources/file/filestore.ts +1 -1
- package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
- package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
- package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
- package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
- package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
- package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
- package/resources/mailer/{access.ts → access/access.ts} +67 -67
- package/resources/mailer/{email.ts → emails/email.ts} +19 -19
- package/resources/mailer/{events.ts → events/events.ts} +24 -24
- package/resources/mailer/{message.ts → messages/message.ts} +29 -29
- package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
- package/resources/mailer/{template.ts → templates/template.ts} +15 -15
- package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
- package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
- package/resources/notifications/{events.ts → events/events.ts} +20 -20
- package/resources/notifications/notifications.ts +4 -4
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
- package/resources/permissions/{events.ts → events/events.ts} +7 -7
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
- package/resources/qualifications/{access.ts → access/access.ts} +19 -19
- package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
- package/resources/qualifications/qualifications.ts +51 -179
- package/resources/settings/banner.ts +3 -3
- package/resources/settings/config.ts +527 -25
- package/resources/{documents/state.ts → settings/data.ts} +41 -20
- package/resources/settings/perms.ts +14 -14
- package/resources/stats/stats.ts +379 -0
- package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
- package/resources/sync/{data.ts → data/data.ts} +405 -59
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +242 -101
- package/resources/users/{props.ts → props/props.ts} +91 -69
- package/resources/users/short/user.ts +184 -0
- package/resources/users/{users.ts → user.ts} +266 -195
- package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
- package/resources/vehicles/{props.ts → props/props.ts} +28 -6
- package/resources/vehicles/vehicles.ts +20 -8
- package/resources/wiki/{access.ts → access/access.ts} +30 -30
- package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
- package/resources/wiki/page.ts +39 -15
- package/services/auth/auth.client.ts +23 -10
- package/services/auth/auth.ts +445 -262
- package/services/calendar/calendar.ts +56 -34
- package/services/centrum/centrum.ts +127 -127
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +44 -134
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +36 -16
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +164 -186
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/jobs/conduct.client.ts +30 -3
- package/services/jobs/conduct.ts +159 -33
- package/services/jobs/jobs.ts +43 -43
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.ts +39 -39
- package/services/livemap/livemap.ts +18 -18
- package/services/mailer/mailer.ts +78 -78
- package/services/notifications/notifications.ts +35 -35
- package/services/qualifications/qualifications.ts +81 -46
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +118 -5
- package/services/settings/laws.ts +1 -1
- package/services/settings/settings.ts +73 -52
- package/services/settings/system.client.ts +13 -0
- package/services/settings/system.ts +115 -15
- package/services/stats/stats.client.ts +7 -7
- package/services/stats/stats.ts +24 -24
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1525 -421
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +100 -6
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
- package/resources/users/labels.ts +0 -160
|
@@ -12,6 +12,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
13
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
14
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
+
import { UserShort } from "../../resources/users/short/user";
|
|
15
16
|
import { Account } from "../../resources/accounts/accounts";
|
|
16
17
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
17
18
|
import { Sort } from "../../resources/common/database/database";
|
|
@@ -35,9 +36,9 @@ export interface ListAccountsRequest {
|
|
|
35
36
|
*/
|
|
36
37
|
license?: string;
|
|
37
38
|
/**
|
|
38
|
-
* @generated from protobuf field: optional bool
|
|
39
|
+
* @generated from protobuf field: optional bool only_disabled = 4
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
onlyDisabled?: boolean;
|
|
41
42
|
/**
|
|
42
43
|
* @generated from protobuf field: optional string username = 5
|
|
43
44
|
*/
|
|
@@ -46,6 +47,10 @@ export interface ListAccountsRequest {
|
|
|
46
47
|
* @generated from protobuf field: optional string external_id = 6
|
|
47
48
|
*/
|
|
48
49
|
externalId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf field: optional string group = 7
|
|
52
|
+
*/
|
|
53
|
+
group?: string;
|
|
49
54
|
}
|
|
50
55
|
/**
|
|
51
56
|
* @generated from protobuf message services.settings.ListAccountsResponse
|
|
@@ -60,6 +65,38 @@ export interface ListAccountsResponse {
|
|
|
60
65
|
*/
|
|
61
66
|
accounts: Account[];
|
|
62
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf message services.settings.CreateAccountRequest
|
|
70
|
+
*/
|
|
71
|
+
export interface CreateAccountRequest {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf field: string license = 1
|
|
74
|
+
*/
|
|
75
|
+
license: string;
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf field: string username = 2
|
|
78
|
+
*/
|
|
79
|
+
username: string;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf field: optional int32 last_char = 3
|
|
82
|
+
*/
|
|
83
|
+
lastChar?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Allow creating a char at the same time (only when dbsync is used)
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf field: optional resources.users.short.UserShort char = 4
|
|
88
|
+
*/
|
|
89
|
+
char?: UserShort;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message services.settings.CreateAccountResponse
|
|
93
|
+
*/
|
|
94
|
+
export interface CreateAccountResponse {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: string reg_token = 1
|
|
97
|
+
*/
|
|
98
|
+
regToken: string;
|
|
99
|
+
}
|
|
63
100
|
/**
|
|
64
101
|
* @generated from protobuf message services.settings.UpdateAccountRequest
|
|
65
102
|
*/
|
|
@@ -87,9 +124,9 @@ export interface UpdateAccountResponse {
|
|
|
87
124
|
account?: Account;
|
|
88
125
|
}
|
|
89
126
|
/**
|
|
90
|
-
* @generated from protobuf message services.settings.
|
|
127
|
+
* @generated from protobuf message services.settings.DisconnectSocialLoginRequest
|
|
91
128
|
*/
|
|
92
|
-
export interface
|
|
129
|
+
export interface DisconnectSocialLoginRequest {
|
|
93
130
|
/**
|
|
94
131
|
* @generated from protobuf field: int64 id = 1
|
|
95
132
|
*/
|
|
@@ -100,9 +137,9 @@ export interface DisconnectOAuth2ConnectionRequest {
|
|
|
100
137
|
providerName: string;
|
|
101
138
|
}
|
|
102
139
|
/**
|
|
103
|
-
* @generated from protobuf message services.settings.
|
|
140
|
+
* @generated from protobuf message services.settings.DisconnectSocialLoginResponse
|
|
104
141
|
*/
|
|
105
|
-
export interface
|
|
142
|
+
export interface DisconnectSocialLoginResponse {
|
|
106
143
|
}
|
|
107
144
|
/**
|
|
108
145
|
* @generated from protobuf message services.settings.DeleteAccountRequest
|
|
@@ -125,9 +162,10 @@ class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
|
125
162
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
126
163
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
127
164
|
{ no: 3, name: "license", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
128
|
-
{ no: 4, name: "
|
|
165
|
+
{ no: 4, name: "only_disabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
129
166
|
{ no: 5, name: "username", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
130
|
-
{ no: 6, name: "external_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
|
|
167
|
+
{ no: 6, name: "external_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
|
|
168
|
+
{ no: 7, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } }
|
|
131
169
|
]);
|
|
132
170
|
}
|
|
133
171
|
create(value?: PartialMessage<ListAccountsRequest>): ListAccountsRequest {
|
|
@@ -150,8 +188,8 @@ class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
|
150
188
|
case /* optional string license */ 3:
|
|
151
189
|
message.license = reader.string();
|
|
152
190
|
break;
|
|
153
|
-
case /* optional bool
|
|
154
|
-
message.
|
|
191
|
+
case /* optional bool only_disabled */ 4:
|
|
192
|
+
message.onlyDisabled = reader.bool();
|
|
155
193
|
break;
|
|
156
194
|
case /* optional string username */ 5:
|
|
157
195
|
message.username = reader.string();
|
|
@@ -159,6 +197,9 @@ class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
|
159
197
|
case /* optional string external_id */ 6:
|
|
160
198
|
message.externalId = reader.string();
|
|
161
199
|
break;
|
|
200
|
+
case /* optional string group */ 7:
|
|
201
|
+
message.group = reader.string();
|
|
202
|
+
break;
|
|
162
203
|
default:
|
|
163
204
|
let u = options.readUnknownField;
|
|
164
205
|
if (u === "throw")
|
|
@@ -180,15 +221,18 @@ class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
|
180
221
|
/* optional string license = 3; */
|
|
181
222
|
if (message.license !== undefined)
|
|
182
223
|
writer.tag(3, WireType.LengthDelimited).string(message.license);
|
|
183
|
-
/* optional bool
|
|
184
|
-
if (message.
|
|
185
|
-
writer.tag(4, WireType.Varint).bool(message.
|
|
224
|
+
/* optional bool only_disabled = 4; */
|
|
225
|
+
if (message.onlyDisabled !== undefined)
|
|
226
|
+
writer.tag(4, WireType.Varint).bool(message.onlyDisabled);
|
|
186
227
|
/* optional string username = 5; */
|
|
187
228
|
if (message.username !== undefined)
|
|
188
229
|
writer.tag(5, WireType.LengthDelimited).string(message.username);
|
|
189
230
|
/* optional string external_id = 6; */
|
|
190
231
|
if (message.externalId !== undefined)
|
|
191
232
|
writer.tag(6, WireType.LengthDelimited).string(message.externalId);
|
|
233
|
+
/* optional string group = 7; */
|
|
234
|
+
if (message.group !== undefined)
|
|
235
|
+
writer.tag(7, WireType.LengthDelimited).string(message.group);
|
|
192
236
|
let u = options.writeUnknownFields;
|
|
193
237
|
if (u !== false)
|
|
194
238
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -254,6 +298,122 @@ class ListAccountsResponse$Type extends MessageType<ListAccountsResponse> {
|
|
|
254
298
|
*/
|
|
255
299
|
export const ListAccountsResponse = new ListAccountsResponse$Type();
|
|
256
300
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
301
|
+
class CreateAccountRequest$Type extends MessageType<CreateAccountRequest> {
|
|
302
|
+
constructor() {
|
|
303
|
+
super("services.settings.CreateAccountRequest", [
|
|
304
|
+
{ no: 1, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
305
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
306
|
+
{ no: 3, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
307
|
+
{ no: 4, name: "char", kind: "message", T: () => UserShort }
|
|
308
|
+
]);
|
|
309
|
+
}
|
|
310
|
+
create(value?: PartialMessage<CreateAccountRequest>): CreateAccountRequest {
|
|
311
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
312
|
+
message.license = "";
|
|
313
|
+
message.username = "";
|
|
314
|
+
if (value !== undefined)
|
|
315
|
+
reflectionMergePartial<CreateAccountRequest>(this, message, value);
|
|
316
|
+
return message;
|
|
317
|
+
}
|
|
318
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountRequest): CreateAccountRequest {
|
|
319
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
320
|
+
while (reader.pos < end) {
|
|
321
|
+
let [fieldNo, wireType] = reader.tag();
|
|
322
|
+
switch (fieldNo) {
|
|
323
|
+
case /* string license */ 1:
|
|
324
|
+
message.license = reader.string();
|
|
325
|
+
break;
|
|
326
|
+
case /* string username */ 2:
|
|
327
|
+
message.username = reader.string();
|
|
328
|
+
break;
|
|
329
|
+
case /* optional int32 last_char */ 3:
|
|
330
|
+
message.lastChar = reader.int32();
|
|
331
|
+
break;
|
|
332
|
+
case /* optional resources.users.short.UserShort char */ 4:
|
|
333
|
+
message.char = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.char);
|
|
334
|
+
break;
|
|
335
|
+
default:
|
|
336
|
+
let u = options.readUnknownField;
|
|
337
|
+
if (u === "throw")
|
|
338
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
339
|
+
let d = reader.skip(wireType);
|
|
340
|
+
if (u !== false)
|
|
341
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return message;
|
|
345
|
+
}
|
|
346
|
+
internalBinaryWrite(message: CreateAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
347
|
+
/* string license = 1; */
|
|
348
|
+
if (message.license !== "")
|
|
349
|
+
writer.tag(1, WireType.LengthDelimited).string(message.license);
|
|
350
|
+
/* string username = 2; */
|
|
351
|
+
if (message.username !== "")
|
|
352
|
+
writer.tag(2, WireType.LengthDelimited).string(message.username);
|
|
353
|
+
/* optional int32 last_char = 3; */
|
|
354
|
+
if (message.lastChar !== undefined)
|
|
355
|
+
writer.tag(3, WireType.Varint).int32(message.lastChar);
|
|
356
|
+
/* optional resources.users.short.UserShort char = 4; */
|
|
357
|
+
if (message.char)
|
|
358
|
+
UserShort.internalBinaryWrite(message.char, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
359
|
+
let u = options.writeUnknownFields;
|
|
360
|
+
if (u !== false)
|
|
361
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
362
|
+
return writer;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @generated MessageType for protobuf message services.settings.CreateAccountRequest
|
|
367
|
+
*/
|
|
368
|
+
export const CreateAccountRequest = new CreateAccountRequest$Type();
|
|
369
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
370
|
+
class CreateAccountResponse$Type extends MessageType<CreateAccountResponse> {
|
|
371
|
+
constructor() {
|
|
372
|
+
super("services.settings.CreateAccountResponse", [
|
|
373
|
+
{ no: 1, name: "reg_token", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "6" } } } }
|
|
374
|
+
]);
|
|
375
|
+
}
|
|
376
|
+
create(value?: PartialMessage<CreateAccountResponse>): CreateAccountResponse {
|
|
377
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
378
|
+
message.regToken = "";
|
|
379
|
+
if (value !== undefined)
|
|
380
|
+
reflectionMergePartial<CreateAccountResponse>(this, message, value);
|
|
381
|
+
return message;
|
|
382
|
+
}
|
|
383
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountResponse): CreateAccountResponse {
|
|
384
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
385
|
+
while (reader.pos < end) {
|
|
386
|
+
let [fieldNo, wireType] = reader.tag();
|
|
387
|
+
switch (fieldNo) {
|
|
388
|
+
case /* string reg_token */ 1:
|
|
389
|
+
message.regToken = reader.string();
|
|
390
|
+
break;
|
|
391
|
+
default:
|
|
392
|
+
let u = options.readUnknownField;
|
|
393
|
+
if (u === "throw")
|
|
394
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
395
|
+
let d = reader.skip(wireType);
|
|
396
|
+
if (u !== false)
|
|
397
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return message;
|
|
401
|
+
}
|
|
402
|
+
internalBinaryWrite(message: CreateAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
403
|
+
/* string reg_token = 1; */
|
|
404
|
+
if (message.regToken !== "")
|
|
405
|
+
writer.tag(1, WireType.LengthDelimited).string(message.regToken);
|
|
406
|
+
let u = options.writeUnknownFields;
|
|
407
|
+
if (u !== false)
|
|
408
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
409
|
+
return writer;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @generated MessageType for protobuf message services.settings.CreateAccountResponse
|
|
414
|
+
*/
|
|
415
|
+
export const CreateAccountResponse = new CreateAccountResponse$Type();
|
|
416
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
257
417
|
class UpdateAccountRequest$Type extends MessageType<UpdateAccountRequest> {
|
|
258
418
|
constructor() {
|
|
259
419
|
super("services.settings.UpdateAccountRequest", [
|
|
@@ -361,22 +521,22 @@ class UpdateAccountResponse$Type extends MessageType<UpdateAccountResponse> {
|
|
|
361
521
|
*/
|
|
362
522
|
export const UpdateAccountResponse = new UpdateAccountResponse$Type();
|
|
363
523
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
364
|
-
class
|
|
524
|
+
class DisconnectSocialLoginRequest$Type extends MessageType<DisconnectSocialLoginRequest> {
|
|
365
525
|
constructor() {
|
|
366
|
-
super("services.settings.
|
|
526
|
+
super("services.settings.DisconnectSocialLoginRequest", [
|
|
367
527
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
368
528
|
{ no: 2, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } }
|
|
369
529
|
]);
|
|
370
530
|
}
|
|
371
|
-
create(value?: PartialMessage<
|
|
531
|
+
create(value?: PartialMessage<DisconnectSocialLoginRequest>): DisconnectSocialLoginRequest {
|
|
372
532
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
373
533
|
message.id = 0;
|
|
374
534
|
message.providerName = "";
|
|
375
535
|
if (value !== undefined)
|
|
376
|
-
reflectionMergePartial<
|
|
536
|
+
reflectionMergePartial<DisconnectSocialLoginRequest>(this, message, value);
|
|
377
537
|
return message;
|
|
378
538
|
}
|
|
379
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
539
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DisconnectSocialLoginRequest): DisconnectSocialLoginRequest {
|
|
380
540
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
381
541
|
while (reader.pos < end) {
|
|
382
542
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -398,7 +558,7 @@ class DisconnectOAuth2ConnectionRequest$Type extends MessageType<DisconnectOAuth
|
|
|
398
558
|
}
|
|
399
559
|
return message;
|
|
400
560
|
}
|
|
401
|
-
internalBinaryWrite(message:
|
|
561
|
+
internalBinaryWrite(message: DisconnectSocialLoginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
402
562
|
/* int64 id = 1; */
|
|
403
563
|
if (message.id !== 0)
|
|
404
564
|
writer.tag(1, WireType.Varint).int64(message.id);
|
|
@@ -412,21 +572,21 @@ class DisconnectOAuth2ConnectionRequest$Type extends MessageType<DisconnectOAuth
|
|
|
412
572
|
}
|
|
413
573
|
}
|
|
414
574
|
/**
|
|
415
|
-
* @generated MessageType for protobuf message services.settings.
|
|
575
|
+
* @generated MessageType for protobuf message services.settings.DisconnectSocialLoginRequest
|
|
416
576
|
*/
|
|
417
|
-
export const
|
|
577
|
+
export const DisconnectSocialLoginRequest = new DisconnectSocialLoginRequest$Type();
|
|
418
578
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
419
|
-
class
|
|
579
|
+
class DisconnectSocialLoginResponse$Type extends MessageType<DisconnectSocialLoginResponse> {
|
|
420
580
|
constructor() {
|
|
421
|
-
super("services.settings.
|
|
581
|
+
super("services.settings.DisconnectSocialLoginResponse", []);
|
|
422
582
|
}
|
|
423
|
-
create(value?: PartialMessage<
|
|
583
|
+
create(value?: PartialMessage<DisconnectSocialLoginResponse>): DisconnectSocialLoginResponse {
|
|
424
584
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
425
585
|
if (value !== undefined)
|
|
426
|
-
reflectionMergePartial<
|
|
586
|
+
reflectionMergePartial<DisconnectSocialLoginResponse>(this, message, value);
|
|
427
587
|
return message;
|
|
428
588
|
}
|
|
429
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
589
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DisconnectSocialLoginResponse): DisconnectSocialLoginResponse {
|
|
430
590
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
431
591
|
while (reader.pos < end) {
|
|
432
592
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -442,7 +602,7 @@ class DisconnectOAuth2ConnectionResponse$Type extends MessageType<DisconnectOAut
|
|
|
442
602
|
}
|
|
443
603
|
return message;
|
|
444
604
|
}
|
|
445
|
-
internalBinaryWrite(message:
|
|
605
|
+
internalBinaryWrite(message: DisconnectSocialLoginResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
446
606
|
let u = options.writeUnknownFields;
|
|
447
607
|
if (u !== false)
|
|
448
608
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -450,9 +610,9 @@ class DisconnectOAuth2ConnectionResponse$Type extends MessageType<DisconnectOAut
|
|
|
450
610
|
}
|
|
451
611
|
}
|
|
452
612
|
/**
|
|
453
|
-
* @generated MessageType for protobuf message services.settings.
|
|
613
|
+
* @generated MessageType for protobuf message services.settings.DisconnectSocialLoginResponse
|
|
454
614
|
*/
|
|
455
|
-
export const
|
|
615
|
+
export const DisconnectSocialLoginResponse = new DisconnectSocialLoginResponse$Type();
|
|
456
616
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
457
617
|
class DeleteAccountRequest$Type extends MessageType<DeleteAccountRequest> {
|
|
458
618
|
constructor() {
|
|
@@ -543,7 +703,8 @@ export const DeleteAccountResponse = new DeleteAccountResponse$Type();
|
|
|
543
703
|
*/
|
|
544
704
|
export const AccountsService = new ServiceType("services.settings.AccountsService", [
|
|
545
705
|
{ name: "ListAccounts", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListAccountsRequest, O: ListAccountsResponse },
|
|
706
|
+
{ name: "CreateAccount", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: CreateAccountRequest, O: CreateAccountResponse },
|
|
546
707
|
{ name: "UpdateAccount", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: UpdateAccountRequest, O: UpdateAccountResponse },
|
|
547
|
-
{ name: "
|
|
708
|
+
{ name: "DisconnectSocialLogin", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: DisconnectSocialLoginRequest, O: DisconnectSocialLoginResponse },
|
|
548
709
|
{ name: "DeleteAccount", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: DeleteAccountRequest, O: DeleteAccountResponse }
|
|
549
710
|
]);
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
6
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
7
|
import { CronService } from "./cron";
|
|
8
|
+
import type { RunCronjobResponse } from "./cron";
|
|
9
|
+
import type { RunCronjobRequest } from "./cron";
|
|
8
10
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
9
11
|
import type { ListCronjobsResponse } from "./cron";
|
|
10
12
|
import type { ListCronjobsRequest } from "./cron";
|
|
@@ -18,6 +20,10 @@ export interface ICronServiceClient {
|
|
|
18
20
|
* @generated from protobuf rpc: ListCronjobs
|
|
19
21
|
*/
|
|
20
22
|
listCronjobs(input: ListCronjobsRequest, options?: RpcOptions): UnaryCall<ListCronjobsRequest, ListCronjobsResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf rpc: RunCronjob
|
|
25
|
+
*/
|
|
26
|
+
runCronjob(input: RunCronjobRequest, options?: RpcOptions): UnaryCall<RunCronjobRequest, RunCronjobResponse>;
|
|
21
27
|
}
|
|
22
28
|
/**
|
|
23
29
|
* @generated from protobuf service services.settings.CronService
|
|
@@ -35,4 +41,11 @@ export class CronServiceClient implements ICronServiceClient, ServiceInfo {
|
|
|
35
41
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
36
42
|
return stackIntercept<ListCronjobsRequest, ListCronjobsResponse>("unary", this._transport, method, opt, input);
|
|
37
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf rpc: RunCronjob
|
|
46
|
+
*/
|
|
47
|
+
runCronjob(input: RunCronjobRequest, options?: RpcOptions): UnaryCall<RunCronjobRequest, RunCronjobResponse> {
|
|
48
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
49
|
+
return stackIntercept<RunCronjobRequest, RunCronjobResponse>("unary", this._transport, method, opt, input);
|
|
50
|
+
}
|
|
38
51
|
}
|
|
@@ -12,7 +12,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
13
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
14
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
import { Cronjob } from "../../resources/
|
|
15
|
+
import { Cronjob } from "../../resources/cron/cron";
|
|
16
16
|
/**
|
|
17
17
|
* @generated from protobuf message services.settings.ListCronjobsRequest
|
|
18
18
|
*/
|
|
@@ -23,10 +23,28 @@ export interface ListCronjobsRequest {
|
|
|
23
23
|
*/
|
|
24
24
|
export interface ListCronjobsResponse {
|
|
25
25
|
/**
|
|
26
|
-
* @generated from protobuf field: repeated resources.
|
|
26
|
+
* @generated from protobuf field: repeated resources.cron.Cronjob jobs = 1
|
|
27
27
|
*/
|
|
28
28
|
jobs: Cronjob[];
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf message services.settings.RunCronjobRequest
|
|
32
|
+
*/
|
|
33
|
+
export interface RunCronjobRequest {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: string name = 1
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf message services.settings.RunCronjobResponse
|
|
41
|
+
*/
|
|
42
|
+
export interface RunCronjobResponse {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: uint64 sequence = 1
|
|
45
|
+
*/
|
|
46
|
+
sequence: number;
|
|
47
|
+
}
|
|
30
48
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
31
49
|
class ListCronjobsRequest$Type extends MessageType<ListCronjobsRequest> {
|
|
32
50
|
constructor() {
|
|
@@ -84,7 +102,7 @@ class ListCronjobsResponse$Type extends MessageType<ListCronjobsResponse> {
|
|
|
84
102
|
while (reader.pos < end) {
|
|
85
103
|
let [fieldNo, wireType] = reader.tag();
|
|
86
104
|
switch (fieldNo) {
|
|
87
|
-
case /* repeated resources.
|
|
105
|
+
case /* repeated resources.cron.Cronjob jobs */ 1:
|
|
88
106
|
message.jobs.push(Cronjob.internalBinaryRead(reader, reader.uint32(), options));
|
|
89
107
|
break;
|
|
90
108
|
default:
|
|
@@ -99,7 +117,7 @@ class ListCronjobsResponse$Type extends MessageType<ListCronjobsResponse> {
|
|
|
99
117
|
return message;
|
|
100
118
|
}
|
|
101
119
|
internalBinaryWrite(message: ListCronjobsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
102
|
-
/* repeated resources.
|
|
120
|
+
/* repeated resources.cron.Cronjob jobs = 1; */
|
|
103
121
|
for (let i = 0; i < message.jobs.length; i++)
|
|
104
122
|
Cronjob.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
105
123
|
let u = options.writeUnknownFields;
|
|
@@ -112,9 +130,104 @@ class ListCronjobsResponse$Type extends MessageType<ListCronjobsResponse> {
|
|
|
112
130
|
* @generated MessageType for protobuf message services.settings.ListCronjobsResponse
|
|
113
131
|
*/
|
|
114
132
|
export const ListCronjobsResponse = new ListCronjobsResponse$Type();
|
|
133
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
134
|
+
class RunCronjobRequest$Type extends MessageType<RunCronjobRequest> {
|
|
135
|
+
constructor() {
|
|
136
|
+
super("services.settings.RunCronjobRequest", [
|
|
137
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
138
|
+
]);
|
|
139
|
+
}
|
|
140
|
+
create(value?: PartialMessage<RunCronjobRequest>): RunCronjobRequest {
|
|
141
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
142
|
+
message.name = "";
|
|
143
|
+
if (value !== undefined)
|
|
144
|
+
reflectionMergePartial<RunCronjobRequest>(this, message, value);
|
|
145
|
+
return message;
|
|
146
|
+
}
|
|
147
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunCronjobRequest): RunCronjobRequest {
|
|
148
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
149
|
+
while (reader.pos < end) {
|
|
150
|
+
let [fieldNo, wireType] = reader.tag();
|
|
151
|
+
switch (fieldNo) {
|
|
152
|
+
case /* string name */ 1:
|
|
153
|
+
message.name = reader.string();
|
|
154
|
+
break;
|
|
155
|
+
default:
|
|
156
|
+
let u = options.readUnknownField;
|
|
157
|
+
if (u === "throw")
|
|
158
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
159
|
+
let d = reader.skip(wireType);
|
|
160
|
+
if (u !== false)
|
|
161
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return message;
|
|
165
|
+
}
|
|
166
|
+
internalBinaryWrite(message: RunCronjobRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
167
|
+
/* string name = 1; */
|
|
168
|
+
if (message.name !== "")
|
|
169
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
170
|
+
let u = options.writeUnknownFields;
|
|
171
|
+
if (u !== false)
|
|
172
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
173
|
+
return writer;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @generated MessageType for protobuf message services.settings.RunCronjobRequest
|
|
178
|
+
*/
|
|
179
|
+
export const RunCronjobRequest = new RunCronjobRequest$Type();
|
|
180
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
181
|
+
class RunCronjobResponse$Type extends MessageType<RunCronjobResponse> {
|
|
182
|
+
constructor() {
|
|
183
|
+
super("services.settings.RunCronjobResponse", [
|
|
184
|
+
{ no: 1, name: "sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
185
|
+
]);
|
|
186
|
+
}
|
|
187
|
+
create(value?: PartialMessage<RunCronjobResponse>): RunCronjobResponse {
|
|
188
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
189
|
+
message.sequence = 0;
|
|
190
|
+
if (value !== undefined)
|
|
191
|
+
reflectionMergePartial<RunCronjobResponse>(this, message, value);
|
|
192
|
+
return message;
|
|
193
|
+
}
|
|
194
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunCronjobResponse): RunCronjobResponse {
|
|
195
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
196
|
+
while (reader.pos < end) {
|
|
197
|
+
let [fieldNo, wireType] = reader.tag();
|
|
198
|
+
switch (fieldNo) {
|
|
199
|
+
case /* uint64 sequence */ 1:
|
|
200
|
+
message.sequence = reader.uint64().toNumber();
|
|
201
|
+
break;
|
|
202
|
+
default:
|
|
203
|
+
let u = options.readUnknownField;
|
|
204
|
+
if (u === "throw")
|
|
205
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
206
|
+
let d = reader.skip(wireType);
|
|
207
|
+
if (u !== false)
|
|
208
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return message;
|
|
212
|
+
}
|
|
213
|
+
internalBinaryWrite(message: RunCronjobResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
214
|
+
/* uint64 sequence = 1; */
|
|
215
|
+
if (message.sequence !== 0)
|
|
216
|
+
writer.tag(1, WireType.Varint).uint64(message.sequence);
|
|
217
|
+
let u = options.writeUnknownFields;
|
|
218
|
+
if (u !== false)
|
|
219
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
220
|
+
return writer;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @generated MessageType for protobuf message services.settings.RunCronjobResponse
|
|
225
|
+
*/
|
|
226
|
+
export const RunCronjobResponse = new RunCronjobResponse$Type();
|
|
115
227
|
/**
|
|
116
228
|
* @generated ServiceType for protobuf service services.settings.CronService
|
|
117
229
|
*/
|
|
118
230
|
export const CronService = new ServiceType("services.settings.CronService", [
|
|
119
|
-
{ name: "ListCronjobs", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListCronjobsRequest, O: ListCronjobsResponse }
|
|
231
|
+
{ name: "ListCronjobs", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListCronjobsRequest, O: ListCronjobsResponse },
|
|
232
|
+
{ name: "RunCronjob", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: RunCronjobRequest, O: RunCronjobResponse }
|
|
120
233
|
]);
|
|
@@ -440,4 +440,4 @@ export const LawsService = new ServiceType("services.settings.LawsService", [
|
|
|
440
440
|
{ name: "DeleteLawBook", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteLawBookRequest, O: DeleteLawBookResponse },
|
|
441
441
|
{ name: "CreateOrUpdateLaw", options: { "codegen.perms.perms": { enabled: true, name: "CreateOrUpdateLawBook" } }, I: CreateOrUpdateLawRequest, O: CreateOrUpdateLawResponse },
|
|
442
442
|
{ name: "DeleteLaw", options: { "codegen.perms.perms": { enabled: true, name: "DeleteLawBook" } }, I: DeleteLawRequest, O: DeleteLawResponse }
|
|
443
|
-
]);
|
|
443
|
+
], { "codegen.perms.perms_svc": { order: 122, icon: "i-mdi-scale-balance" } });
|