@fivenet-app/gen 0.9.3 → 0.9.5-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/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/internet/search.proto" (package "resources.internet", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -10,14 +10,15 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
10
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Domain } from "./domain";
|
|
13
14
|
/**
|
|
14
15
|
* @generated from protobuf message resources.internet.SearchResult
|
|
15
16
|
*/
|
|
16
17
|
export interface SearchResult {
|
|
17
18
|
/**
|
|
18
|
-
* @generated from protobuf field: uint64 id = 1
|
|
19
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
19
20
|
*/
|
|
20
|
-
id:
|
|
21
|
+
id: number;
|
|
21
22
|
/**
|
|
22
23
|
* @generated from protobuf field: string title = 2;
|
|
23
24
|
*/
|
|
@@ -27,26 +28,37 @@ export interface SearchResult {
|
|
|
27
28
|
*/
|
|
28
29
|
description: string;
|
|
29
30
|
/**
|
|
30
|
-
* @generated from protobuf field:
|
|
31
|
+
* @generated from protobuf field: uint64 domain_id = 4;
|
|
31
32
|
*/
|
|
32
|
-
|
|
33
|
+
domainId: number;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: optional resources.internet.Domain domain = 5;
|
|
36
|
+
*/
|
|
37
|
+
domain?: Domain;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: string path = 6;
|
|
40
|
+
*/
|
|
41
|
+
path: string;
|
|
33
42
|
}
|
|
34
43
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
35
44
|
class SearchResult$Type extends MessageType<SearchResult> {
|
|
36
45
|
constructor() {
|
|
37
46
|
super("resources.internet.SearchResult", [
|
|
38
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
47
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
39
48
|
{ no: 2, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
40
49
|
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
41
|
-
{ no: 4, name: "
|
|
50
|
+
{ no: 4, name: "domain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
51
|
+
{ no: 5, name: "domain", kind: "message", T: () => Domain },
|
|
52
|
+
{ no: 6, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
42
53
|
]);
|
|
43
54
|
}
|
|
44
55
|
create(value?: PartialMessage<SearchResult>): SearchResult {
|
|
45
56
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
46
|
-
message.id =
|
|
57
|
+
message.id = 0;
|
|
47
58
|
message.title = "";
|
|
48
59
|
message.description = "";
|
|
49
|
-
message.
|
|
60
|
+
message.domainId = 0;
|
|
61
|
+
message.path = "";
|
|
50
62
|
if (value !== undefined)
|
|
51
63
|
reflectionMergePartial<SearchResult>(this, message, value);
|
|
52
64
|
return message;
|
|
@@ -56,8 +68,8 @@ class SearchResult$Type extends MessageType<SearchResult> {
|
|
|
56
68
|
while (reader.pos < end) {
|
|
57
69
|
let [fieldNo, wireType] = reader.tag();
|
|
58
70
|
switch (fieldNo) {
|
|
59
|
-
case /* uint64 id
|
|
60
|
-
message.id = reader.uint64().
|
|
71
|
+
case /* uint64 id */ 1:
|
|
72
|
+
message.id = reader.uint64().toNumber();
|
|
61
73
|
break;
|
|
62
74
|
case /* string title */ 2:
|
|
63
75
|
message.title = reader.string();
|
|
@@ -65,8 +77,14 @@ class SearchResult$Type extends MessageType<SearchResult> {
|
|
|
65
77
|
case /* string description */ 3:
|
|
66
78
|
message.description = reader.string();
|
|
67
79
|
break;
|
|
68
|
-
case /*
|
|
69
|
-
message.
|
|
80
|
+
case /* uint64 domain_id */ 4:
|
|
81
|
+
message.domainId = reader.uint64().toNumber();
|
|
82
|
+
break;
|
|
83
|
+
case /* optional resources.internet.Domain domain */ 5:
|
|
84
|
+
message.domain = Domain.internalBinaryRead(reader, reader.uint32(), options, message.domain);
|
|
85
|
+
break;
|
|
86
|
+
case /* string path */ 6:
|
|
87
|
+
message.path = reader.string();
|
|
70
88
|
break;
|
|
71
89
|
default:
|
|
72
90
|
let u = options.readUnknownField;
|
|
@@ -80,8 +98,8 @@ class SearchResult$Type extends MessageType<SearchResult> {
|
|
|
80
98
|
return message;
|
|
81
99
|
}
|
|
82
100
|
internalBinaryWrite(message: SearchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
83
|
-
/* uint64 id = 1
|
|
84
|
-
if (message.id !==
|
|
101
|
+
/* uint64 id = 1; */
|
|
102
|
+
if (message.id !== 0)
|
|
85
103
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
86
104
|
/* string title = 2; */
|
|
87
105
|
if (message.title !== "")
|
|
@@ -89,9 +107,15 @@ class SearchResult$Type extends MessageType<SearchResult> {
|
|
|
89
107
|
/* string description = 3; */
|
|
90
108
|
if (message.description !== "")
|
|
91
109
|
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
92
|
-
/*
|
|
93
|
-
if (message.
|
|
94
|
-
writer.tag(4, WireType.
|
|
110
|
+
/* uint64 domain_id = 4; */
|
|
111
|
+
if (message.domainId !== 0)
|
|
112
|
+
writer.tag(4, WireType.Varint).uint64(message.domainId);
|
|
113
|
+
/* optional resources.internet.Domain domain = 5; */
|
|
114
|
+
if (message.domain)
|
|
115
|
+
Domain.internalBinaryWrite(message.domain, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
116
|
+
/* string path = 6; */
|
|
117
|
+
if (message.path !== "")
|
|
118
|
+
writer.tag(6, WireType.LengthDelimited).string(message.path);
|
|
95
119
|
let u = options.writeUnknownFields;
|
|
96
120
|
if (u !== false)
|
|
97
121
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/activity.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -18,9 +18,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
18
18
|
*/
|
|
19
19
|
export interface JobsUserActivity {
|
|
20
20
|
/**
|
|
21
|
-
* @generated from protobuf field: uint64 id = 1
|
|
21
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
22
22
|
*/
|
|
23
|
-
id:
|
|
23
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
24
24
|
/**
|
|
25
25
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
26
26
|
*/
|
|
@@ -61,6 +61,8 @@ export interface JobsUserActivity {
|
|
|
61
61
|
data?: JobsUserActivityData;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* @dbscanner: json
|
|
65
|
+
*
|
|
64
66
|
* @generated from protobuf message resources.jobs.JobsUserActivityData
|
|
65
67
|
*/
|
|
66
68
|
export interface JobsUserActivityData {
|
|
@@ -192,7 +194,7 @@ export enum JobsUserActivityType {
|
|
|
192
194
|
class JobsUserActivity$Type extends MessageType<JobsUserActivity> {
|
|
193
195
|
constructor() {
|
|
194
196
|
super("resources.jobs.JobsUserActivity", [
|
|
195
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
197
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
196
198
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
197
199
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
198
200
|
{ no: 5, name: "source_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
@@ -206,7 +208,7 @@ class JobsUserActivity$Type extends MessageType<JobsUserActivity> {
|
|
|
206
208
|
}
|
|
207
209
|
create(value?: PartialMessage<JobsUserActivity>): JobsUserActivity {
|
|
208
210
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
209
|
-
message.id =
|
|
211
|
+
message.id = 0;
|
|
210
212
|
message.job = "";
|
|
211
213
|
message.targetUserId = 0;
|
|
212
214
|
message.activityType = 0;
|
|
@@ -220,8 +222,8 @@ class JobsUserActivity$Type extends MessageType<JobsUserActivity> {
|
|
|
220
222
|
while (reader.pos < end) {
|
|
221
223
|
let [fieldNo, wireType] = reader.tag();
|
|
222
224
|
switch (fieldNo) {
|
|
223
|
-
case /* uint64 id
|
|
224
|
-
message.id = reader.uint64().
|
|
225
|
+
case /* uint64 id */ 1:
|
|
226
|
+
message.id = reader.uint64().toNumber();
|
|
225
227
|
break;
|
|
226
228
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
227
229
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -262,8 +264,8 @@ class JobsUserActivity$Type extends MessageType<JobsUserActivity> {
|
|
|
262
264
|
return message;
|
|
263
265
|
}
|
|
264
266
|
internalBinaryWrite(message: JobsUserActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
265
|
-
/* uint64 id = 1
|
|
266
|
-
if (message.id !==
|
|
267
|
+
/* uint64 id = 1; */
|
|
268
|
+
if (message.id !== 0)
|
|
267
269
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
268
270
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
269
271
|
if (message.createdAt)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/colleagues.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/conduct.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -17,9 +17,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ConductEntry {
|
|
19
19
|
/**
|
|
20
|
-
* @generated from protobuf field: uint64 id = 1
|
|
20
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
21
21
|
*/
|
|
22
|
-
id:
|
|
22
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
23
23
|
/**
|
|
24
24
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
25
25
|
*/
|
|
@@ -100,7 +100,7 @@ export enum ConductType {
|
|
|
100
100
|
class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
101
101
|
constructor() {
|
|
102
102
|
super("resources.jobs.ConductEntry", [
|
|
103
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
103
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
104
104
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
105
105
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
106
106
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
@@ -115,7 +115,7 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
|
115
115
|
}
|
|
116
116
|
create(value?: PartialMessage<ConductEntry>): ConductEntry {
|
|
117
117
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
118
|
-
message.id =
|
|
118
|
+
message.id = 0;
|
|
119
119
|
message.job = "";
|
|
120
120
|
message.type = 0;
|
|
121
121
|
message.message = "";
|
|
@@ -130,8 +130,8 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
|
130
130
|
while (reader.pos < end) {
|
|
131
131
|
let [fieldNo, wireType] = reader.tag();
|
|
132
132
|
switch (fieldNo) {
|
|
133
|
-
case /* uint64 id
|
|
134
|
-
message.id = reader.uint64().
|
|
133
|
+
case /* uint64 id */ 1:
|
|
134
|
+
message.id = reader.uint64().toNumber();
|
|
135
135
|
break;
|
|
136
136
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
137
137
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -175,8 +175,8 @@ class ConductEntry$Type extends MessageType<ConductEntry> {
|
|
|
175
175
|
return message;
|
|
176
176
|
}
|
|
177
177
|
internalBinaryWrite(message: ConductEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
178
|
-
/* uint64 id = 1
|
|
179
|
-
if (message.id !==
|
|
178
|
+
/* uint64 id = 1; */
|
|
179
|
+
if (message.id !== 0)
|
|
180
180
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
181
181
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
182
182
|
if (message.createdAt)
|
package/resources/jobs/labels.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/labels.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -24,9 +24,9 @@ export interface Labels {
|
|
|
24
24
|
*/
|
|
25
25
|
export interface Label {
|
|
26
26
|
/**
|
|
27
|
-
* @generated from protobuf field: uint64 id = 1
|
|
27
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
28
28
|
*/
|
|
29
|
-
id:
|
|
29
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
30
30
|
/**
|
|
31
31
|
* @generated from protobuf field: optional string job = 2;
|
|
32
32
|
*/
|
|
@@ -110,7 +110,7 @@ export const Labels = new Labels$Type();
|
|
|
110
110
|
class Label$Type extends MessageType<Label> {
|
|
111
111
|
constructor() {
|
|
112
112
|
super("resources.jobs.Label", [
|
|
113
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
113
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
114
114
|
{ no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
115
115
|
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
|
|
116
116
|
{ no: 4, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } } } },
|
|
@@ -119,7 +119,7 @@ class Label$Type extends MessageType<Label> {
|
|
|
119
119
|
}
|
|
120
120
|
create(value?: PartialMessage<Label>): Label {
|
|
121
121
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
122
|
-
message.id =
|
|
122
|
+
message.id = 0;
|
|
123
123
|
message.name = "";
|
|
124
124
|
message.color = "";
|
|
125
125
|
message.order = 0;
|
|
@@ -132,8 +132,8 @@ class Label$Type extends MessageType<Label> {
|
|
|
132
132
|
while (reader.pos < end) {
|
|
133
133
|
let [fieldNo, wireType] = reader.tag();
|
|
134
134
|
switch (fieldNo) {
|
|
135
|
-
case /* uint64 id
|
|
136
|
-
message.id = reader.uint64().
|
|
135
|
+
case /* uint64 id */ 1:
|
|
136
|
+
message.id = reader.uint64().toNumber();
|
|
137
137
|
break;
|
|
138
138
|
case /* optional string job */ 2:
|
|
139
139
|
message.job = reader.string();
|
|
@@ -159,8 +159,8 @@ class Label$Type extends MessageType<Label> {
|
|
|
159
159
|
return message;
|
|
160
160
|
}
|
|
161
161
|
internalBinaryWrite(message: Label, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
162
|
-
/* uint64 id = 1
|
|
163
|
-
if (message.id !==
|
|
162
|
+
/* uint64 id = 1; */
|
|
163
|
+
if (message.id !== 0)
|
|
164
164
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
165
165
|
/* optional string job = 2; */
|
|
166
166
|
if (message.job !== undefined)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/jobs/timeclock.proto" (package "resources.jobs", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -35,7 +35,7 @@ export interface TimeclockEntry {
|
|
|
35
35
|
/**
|
|
36
36
|
* @generated from protobuf field: optional resources.timestamp.Timestamp start_time = 5;
|
|
37
37
|
*/
|
|
38
|
-
startTime?: Timestamp;
|
|
38
|
+
startTime?: Timestamp; // @gotags: sql:"primary_key"
|
|
39
39
|
/**
|
|
40
40
|
* @generated from protobuf field: optional resources.timestamp.Timestamp end_time = 6;
|
|
41
41
|
*/
|
|
@@ -110,7 +110,11 @@ export enum TimeclockMode {
|
|
|
110
110
|
/**
|
|
111
111
|
* @generated from protobuf enum value: TIMECLOCK_MODE_RANGE = 3;
|
|
112
112
|
*/
|
|
113
|
-
RANGE = 3
|
|
113
|
+
RANGE = 3,
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf enum value: TIMECLOCK_MODE_TIMELINE = 4;
|
|
116
|
+
*/
|
|
117
|
+
TIMELINE = 4
|
|
114
118
|
}
|
|
115
119
|
/**
|
|
116
120
|
* @generated from protobuf enum resources.jobs.TimeclockUserMode
|
package/resources/laws/laws.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/laws/laws.proto" (package "resources.laws", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -16,9 +16,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
16
16
|
*/
|
|
17
17
|
export interface LawBook {
|
|
18
18
|
/**
|
|
19
|
-
* @generated from protobuf field: uint64 id = 1
|
|
19
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
20
20
|
*/
|
|
21
|
-
id:
|
|
21
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
22
22
|
/**
|
|
23
23
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
24
24
|
*/
|
|
@@ -49,9 +49,9 @@ export interface LawBook {
|
|
|
49
49
|
*/
|
|
50
50
|
export interface Law {
|
|
51
51
|
/**
|
|
52
|
-
* @generated from protobuf field: uint64 id = 1
|
|
52
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
53
53
|
*/
|
|
54
|
-
id:
|
|
54
|
+
id: number; // @gotags: sql:"primary_key" alias:"law.id"
|
|
55
55
|
/**
|
|
56
56
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
57
57
|
*/
|
|
@@ -61,9 +61,9 @@ export interface Law {
|
|
|
61
61
|
*/
|
|
62
62
|
updatedAt?: Timestamp;
|
|
63
63
|
/**
|
|
64
|
-
* @generated from protobuf field: uint64 lawbook_id = 4
|
|
64
|
+
* @generated from protobuf field: uint64 lawbook_id = 4;
|
|
65
65
|
*/
|
|
66
|
-
lawbookId:
|
|
66
|
+
lawbookId: number;
|
|
67
67
|
/**
|
|
68
68
|
* @sanitize
|
|
69
69
|
*
|
|
@@ -99,7 +99,7 @@ export interface Law {
|
|
|
99
99
|
class LawBook$Type extends MessageType<LawBook> {
|
|
100
100
|
constructor() {
|
|
101
101
|
super("resources.laws.LawBook", [
|
|
102
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
102
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
103
103
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
104
104
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
105
105
|
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "128" } } } },
|
|
@@ -109,7 +109,7 @@ class LawBook$Type extends MessageType<LawBook> {
|
|
|
109
109
|
}
|
|
110
110
|
create(value?: PartialMessage<LawBook>): LawBook {
|
|
111
111
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
112
|
-
message.id =
|
|
112
|
+
message.id = 0;
|
|
113
113
|
message.name = "";
|
|
114
114
|
message.laws = [];
|
|
115
115
|
if (value !== undefined)
|
|
@@ -121,8 +121,8 @@ class LawBook$Type extends MessageType<LawBook> {
|
|
|
121
121
|
while (reader.pos < end) {
|
|
122
122
|
let [fieldNo, wireType] = reader.tag();
|
|
123
123
|
switch (fieldNo) {
|
|
124
|
-
case /* uint64 id
|
|
125
|
-
message.id = reader.uint64().
|
|
124
|
+
case /* uint64 id */ 1:
|
|
125
|
+
message.id = reader.uint64().toNumber();
|
|
126
126
|
break;
|
|
127
127
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
128
128
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -151,8 +151,8 @@ class LawBook$Type extends MessageType<LawBook> {
|
|
|
151
151
|
return message;
|
|
152
152
|
}
|
|
153
153
|
internalBinaryWrite(message: LawBook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
154
|
-
/* uint64 id = 1
|
|
155
|
-
if (message.id !==
|
|
154
|
+
/* uint64 id = 1; */
|
|
155
|
+
if (message.id !== 0)
|
|
156
156
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
157
157
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
158
158
|
if (message.createdAt)
|
|
@@ -183,10 +183,10 @@ export const LawBook = new LawBook$Type();
|
|
|
183
183
|
class Law$Type extends MessageType<Law> {
|
|
184
184
|
constructor() {
|
|
185
185
|
super("resources.laws.Law", [
|
|
186
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
186
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
187
187
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
188
188
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
189
|
-
{ no: 4, name: "lawbook_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
189
|
+
{ no: 4, name: "lawbook_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
190
190
|
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "128" } } } },
|
|
191
191
|
{ no: 6, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "1024" } } } },
|
|
192
192
|
{ no: 7, name: "hint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
@@ -197,8 +197,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
197
197
|
}
|
|
198
198
|
create(value?: PartialMessage<Law>): Law {
|
|
199
199
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
200
|
-
message.id =
|
|
201
|
-
message.lawbookId =
|
|
200
|
+
message.id = 0;
|
|
201
|
+
message.lawbookId = 0;
|
|
202
202
|
message.name = "";
|
|
203
203
|
if (value !== undefined)
|
|
204
204
|
reflectionMergePartial<Law>(this, message, value);
|
|
@@ -209,8 +209,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
209
209
|
while (reader.pos < end) {
|
|
210
210
|
let [fieldNo, wireType] = reader.tag();
|
|
211
211
|
switch (fieldNo) {
|
|
212
|
-
case /* uint64 id
|
|
213
|
-
message.id = reader.uint64().
|
|
212
|
+
case /* uint64 id */ 1:
|
|
213
|
+
message.id = reader.uint64().toNumber();
|
|
214
214
|
break;
|
|
215
215
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
216
216
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -218,8 +218,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
218
218
|
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
219
219
|
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
220
220
|
break;
|
|
221
|
-
case /* uint64 lawbook_id
|
|
222
|
-
message.lawbookId = reader.uint64().
|
|
221
|
+
case /* uint64 lawbook_id */ 4:
|
|
222
|
+
message.lawbookId = reader.uint64().toNumber();
|
|
223
223
|
break;
|
|
224
224
|
case /* string name */ 5:
|
|
225
225
|
message.name = reader.string();
|
|
@@ -251,8 +251,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
251
251
|
return message;
|
|
252
252
|
}
|
|
253
253
|
internalBinaryWrite(message: Law, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
254
|
-
/* uint64 id = 1
|
|
255
|
-
if (message.id !==
|
|
254
|
+
/* uint64 id = 1; */
|
|
255
|
+
if (message.id !== 0)
|
|
256
256
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
257
257
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
258
258
|
if (message.createdAt)
|
|
@@ -260,8 +260,8 @@ class Law$Type extends MessageType<Law> {
|
|
|
260
260
|
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
261
261
|
if (message.updatedAt)
|
|
262
262
|
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
263
|
-
/* uint64 lawbook_id = 4
|
|
264
|
-
if (message.lawbookId !==
|
|
263
|
+
/* uint64 lawbook_id = 4; */
|
|
264
|
+
if (message.lawbookId !== 0)
|
|
265
265
|
writer.tag(4, WireType.Varint).uint64(message.lawbookId);
|
|
266
266
|
/* string name = 5; */
|
|
267
267
|
if (message.name !== "")
|