@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
|
@@ -1,160 +0,0 @@
|
|
|
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 "resources/users/labels.proto" (package "resources.users", 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 resources.users.Labels
|
|
16
|
-
*/
|
|
17
|
-
export interface Labels {
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf field: repeated resources.users.Label list = 1
|
|
20
|
-
*/
|
|
21
|
-
list: Label[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf message resources.users.Label
|
|
25
|
-
*/
|
|
26
|
-
export interface Label {
|
|
27
|
-
/**
|
|
28
|
-
* @generated from protobuf field: int64 id = 1
|
|
29
|
-
*/
|
|
30
|
-
id: number;
|
|
31
|
-
/**
|
|
32
|
-
* @generated from protobuf field: optional string job = 2
|
|
33
|
-
*/
|
|
34
|
-
job?: string;
|
|
35
|
-
/**
|
|
36
|
-
* @generated from protobuf field: string name = 3
|
|
37
|
-
*/
|
|
38
|
-
name: string;
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf field: string color = 4
|
|
41
|
-
*/
|
|
42
|
-
color: string;
|
|
43
|
-
}
|
|
44
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
45
|
-
class Labels$Type extends MessageType<Labels> {
|
|
46
|
-
constructor() {
|
|
47
|
-
super("resources.users.Labels", [
|
|
48
|
-
{ no: 1, name: "list", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } }
|
|
49
|
-
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
50
|
-
}
|
|
51
|
-
create(value?: PartialMessage<Labels>): Labels {
|
|
52
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
53
|
-
message.list = [];
|
|
54
|
-
if (value !== undefined)
|
|
55
|
-
reflectionMergePartial<Labels>(this, message, value);
|
|
56
|
-
return message;
|
|
57
|
-
}
|
|
58
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Labels): Labels {
|
|
59
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
60
|
-
while (reader.pos < end) {
|
|
61
|
-
let [fieldNo, wireType] = reader.tag();
|
|
62
|
-
switch (fieldNo) {
|
|
63
|
-
case /* repeated resources.users.Label list */ 1:
|
|
64
|
-
message.list.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
65
|
-
break;
|
|
66
|
-
default:
|
|
67
|
-
let u = options.readUnknownField;
|
|
68
|
-
if (u === "throw")
|
|
69
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
70
|
-
let d = reader.skip(wireType);
|
|
71
|
-
if (u !== false)
|
|
72
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return message;
|
|
76
|
-
}
|
|
77
|
-
internalBinaryWrite(message: Labels, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
78
|
-
/* repeated resources.users.Label list = 1; */
|
|
79
|
-
for (let i = 0; i < message.list.length; i++)
|
|
80
|
-
Label.internalBinaryWrite(message.list[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
81
|
-
let u = options.writeUnknownFields;
|
|
82
|
-
if (u !== false)
|
|
83
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
84
|
-
return writer;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @generated MessageType for protobuf message resources.users.Labels
|
|
89
|
-
*/
|
|
90
|
-
export const Labels = new Labels$Type();
|
|
91
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
92
|
-
class Label$Type extends MessageType<Label> {
|
|
93
|
-
constructor() {
|
|
94
|
-
super("resources.users.Label", [
|
|
95
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
96
|
-
{ no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
97
|
-
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
98
|
-
{ no: 4, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
|
|
99
|
-
]);
|
|
100
|
-
}
|
|
101
|
-
create(value?: PartialMessage<Label>): Label {
|
|
102
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
103
|
-
message.id = 0;
|
|
104
|
-
message.name = "";
|
|
105
|
-
message.color = "";
|
|
106
|
-
if (value !== undefined)
|
|
107
|
-
reflectionMergePartial<Label>(this, message, value);
|
|
108
|
-
return message;
|
|
109
|
-
}
|
|
110
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Label): Label {
|
|
111
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
112
|
-
while (reader.pos < end) {
|
|
113
|
-
let [fieldNo, wireType] = reader.tag();
|
|
114
|
-
switch (fieldNo) {
|
|
115
|
-
case /* int64 id */ 1:
|
|
116
|
-
message.id = reader.int64().toNumber();
|
|
117
|
-
break;
|
|
118
|
-
case /* optional string job */ 2:
|
|
119
|
-
message.job = reader.string();
|
|
120
|
-
break;
|
|
121
|
-
case /* string name */ 3:
|
|
122
|
-
message.name = reader.string();
|
|
123
|
-
break;
|
|
124
|
-
case /* string color */ 4:
|
|
125
|
-
message.color = reader.string();
|
|
126
|
-
break;
|
|
127
|
-
default:
|
|
128
|
-
let u = options.readUnknownField;
|
|
129
|
-
if (u === "throw")
|
|
130
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
131
|
-
let d = reader.skip(wireType);
|
|
132
|
-
if (u !== false)
|
|
133
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return message;
|
|
137
|
-
}
|
|
138
|
-
internalBinaryWrite(message: Label, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
139
|
-
/* int64 id = 1; */
|
|
140
|
-
if (message.id !== 0)
|
|
141
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
142
|
-
/* optional string job = 2; */
|
|
143
|
-
if (message.job !== undefined)
|
|
144
|
-
writer.tag(2, WireType.LengthDelimited).string(message.job);
|
|
145
|
-
/* string name = 3; */
|
|
146
|
-
if (message.name !== "")
|
|
147
|
-
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
148
|
-
/* string color = 4; */
|
|
149
|
-
if (message.color !== "")
|
|
150
|
-
writer.tag(4, WireType.LengthDelimited).string(message.color);
|
|
151
|
-
let u = options.writeUnknownFields;
|
|
152
|
-
if (u !== false)
|
|
153
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
154
|
-
return writer;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* @generated MessageType for protobuf message resources.users.Label
|
|
159
|
-
*/
|
|
160
|
-
export const Label = new Label$Type();
|