@fivenet-app/gen 0.9.4-0 → 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 +2 -2
- package/perms.ts +5 -1
- package/resources/accounts/accounts.ts +1 -1
- package/resources/accounts/oauth2.ts +1 -1
- package/resources/calendar/access.ts +3 -3
- package/resources/calendar/calendar.ts +3 -1
- package/resources/centrum/access.ts +19 -4
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +11 -9
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +9 -9
- 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 +7 -5
- package/resources/documents/activity.ts +3 -1
- package/resources/documents/category.ts +1 -1
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +3 -3
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +18 -3
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +47 -47
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +44 -11
- package/resources/internet/page.ts +194 -4
- package/resources/internet/search.ts +34 -10
- package/resources/jobs/activity.ts +3 -1
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +1 -1
- package/resources/jobs/labels.ts +1 -1
- package/resources/jobs/timeclock.ts +1 -1
- package/resources/laws/laws.ts +1 -1
- package/resources/livemap/livemap.ts +313 -294
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +4 -4
- package/resources/mailer/email.ts +1 -1
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +127 -21
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +1 -1
- package/resources/notifications/events.ts +74 -2
- package/resources/notifications/notifications.ts +3 -1
- package/resources/permissions/permissions.ts +3 -1
- package/resources/qualifications/access.ts +18 -9
- package/resources/qualifications/exam.ts +186 -4
- package/resources/qualifications/qualifications.ts +35 -7
- package/resources/rector/audit.ts +1 -1
- 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 +1 -1
- package/resources/sync/data.ts +1 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +3 -1
- package/resources/users/job_props.ts +3 -1
- package/resources/users/job_settings.ts +47 -3
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +3 -1
- package/resources/users/licenses.ts +3 -3
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +1 -1
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +4 -8
- package/resources/wiki/activity.ts +3 -1
- package/resources/wiki/page.ts +1 -1
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +94 -17
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +43 -4
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +156 -13
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +1 -1
- 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 +212 -17
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +13 -30
- package/services/internet/domain.ts +159 -196
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +13 -2
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +15 -2
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +29 -3
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +19 -19
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +129 -27
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +57 -5
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +15 -2
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +82 -7
- 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 +29 -3
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +72 -7
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +7 -1
- package/services/sync/sync.ts +58 -6
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +6 -3
- package/resources/centrum/general.ts +0 -231
|
@@ -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/common/grpcws/grpcws.proto" (package "resources.common.grpcws", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -24,37 +24,37 @@ export interface GrpcFrame {
|
|
|
24
24
|
payload: {
|
|
25
25
|
oneofKind: "ping";
|
|
26
26
|
/**
|
|
27
|
-
* @generated from protobuf field: resources.common.grpcws.Ping ping =
|
|
27
|
+
* @generated from protobuf field: resources.common.grpcws.Ping ping = 3;
|
|
28
28
|
*/
|
|
29
29
|
ping: Ping;
|
|
30
30
|
} | {
|
|
31
31
|
oneofKind: "header";
|
|
32
32
|
/**
|
|
33
|
-
* @generated from protobuf field: resources.common.grpcws.Header header =
|
|
33
|
+
* @generated from protobuf field: resources.common.grpcws.Header header = 4;
|
|
34
34
|
*/
|
|
35
35
|
header: Header;
|
|
36
36
|
} | {
|
|
37
37
|
oneofKind: "body";
|
|
38
38
|
/**
|
|
39
|
-
* @generated from protobuf field: resources.common.grpcws.Body body =
|
|
39
|
+
* @generated from protobuf field: resources.common.grpcws.Body body = 5;
|
|
40
40
|
*/
|
|
41
41
|
body: Body;
|
|
42
42
|
} | {
|
|
43
43
|
oneofKind: "complete";
|
|
44
44
|
/**
|
|
45
|
-
* @generated from protobuf field: resources.common.grpcws.Complete complete =
|
|
45
|
+
* @generated from protobuf field: resources.common.grpcws.Complete complete = 6;
|
|
46
46
|
*/
|
|
47
47
|
complete: Complete;
|
|
48
48
|
} | {
|
|
49
49
|
oneofKind: "failure";
|
|
50
50
|
/**
|
|
51
|
-
* @generated from protobuf field: resources.common.grpcws.Failure failure =
|
|
51
|
+
* @generated from protobuf field: resources.common.grpcws.Failure failure = 7;
|
|
52
52
|
*/
|
|
53
53
|
failure: Failure;
|
|
54
54
|
} | {
|
|
55
55
|
oneofKind: "cancel";
|
|
56
56
|
/**
|
|
57
|
-
* @generated from protobuf field: resources.common.grpcws.Cancel cancel =
|
|
57
|
+
* @generated from protobuf field: resources.common.grpcws.Cancel cancel = 8;
|
|
58
58
|
*/
|
|
59
59
|
cancel: Cancel;
|
|
60
60
|
} | {
|
|
@@ -145,12 +145,12 @@ class GrpcFrame$Type extends MessageType<GrpcFrame> {
|
|
|
145
145
|
constructor() {
|
|
146
146
|
super("resources.common.grpcws.GrpcFrame", [
|
|
147
147
|
{ no: 1, name: "streamId", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
148
|
-
{ no:
|
|
149
|
-
{ no:
|
|
150
|
-
{ no:
|
|
151
|
-
{ no:
|
|
152
|
-
{ no:
|
|
153
|
-
{ no:
|
|
148
|
+
{ no: 3, name: "ping", kind: "message", oneof: "payload", T: () => Ping },
|
|
149
|
+
{ no: 4, name: "header", kind: "message", oneof: "payload", T: () => Header },
|
|
150
|
+
{ no: 5, name: "body", kind: "message", oneof: "payload", T: () => Body },
|
|
151
|
+
{ no: 6, name: "complete", kind: "message", oneof: "payload", T: () => Complete },
|
|
152
|
+
{ no: 7, name: "failure", kind: "message", oneof: "payload", T: () => Failure },
|
|
153
|
+
{ no: 8, name: "cancel", kind: "message", oneof: "payload", T: () => Cancel }
|
|
154
154
|
]);
|
|
155
155
|
}
|
|
156
156
|
create(value?: PartialMessage<GrpcFrame>): GrpcFrame {
|
|
@@ -169,37 +169,37 @@ class GrpcFrame$Type extends MessageType<GrpcFrame> {
|
|
|
169
169
|
case /* uint32 streamId */ 1:
|
|
170
170
|
message.streamId = reader.uint32();
|
|
171
171
|
break;
|
|
172
|
-
case /* resources.common.grpcws.Ping ping */
|
|
172
|
+
case /* resources.common.grpcws.Ping ping */ 3:
|
|
173
173
|
message.payload = {
|
|
174
174
|
oneofKind: "ping",
|
|
175
175
|
ping: Ping.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).ping)
|
|
176
176
|
};
|
|
177
177
|
break;
|
|
178
|
-
case /* resources.common.grpcws.Header header */
|
|
178
|
+
case /* resources.common.grpcws.Header header */ 4:
|
|
179
179
|
message.payload = {
|
|
180
180
|
oneofKind: "header",
|
|
181
181
|
header: Header.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).header)
|
|
182
182
|
};
|
|
183
183
|
break;
|
|
184
|
-
case /* resources.common.grpcws.Body body */
|
|
184
|
+
case /* resources.common.grpcws.Body body */ 5:
|
|
185
185
|
message.payload = {
|
|
186
186
|
oneofKind: "body",
|
|
187
187
|
body: Body.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).body)
|
|
188
188
|
};
|
|
189
189
|
break;
|
|
190
|
-
case /* resources.common.grpcws.Complete complete */
|
|
190
|
+
case /* resources.common.grpcws.Complete complete */ 6:
|
|
191
191
|
message.payload = {
|
|
192
192
|
oneofKind: "complete",
|
|
193
193
|
complete: Complete.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).complete)
|
|
194
194
|
};
|
|
195
195
|
break;
|
|
196
|
-
case /* resources.common.grpcws.Failure failure */
|
|
196
|
+
case /* resources.common.grpcws.Failure failure */ 7:
|
|
197
197
|
message.payload = {
|
|
198
198
|
oneofKind: "failure",
|
|
199
199
|
failure: Failure.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).failure)
|
|
200
200
|
};
|
|
201
201
|
break;
|
|
202
|
-
case /* resources.common.grpcws.Cancel cancel */
|
|
202
|
+
case /* resources.common.grpcws.Cancel cancel */ 8:
|
|
203
203
|
message.payload = {
|
|
204
204
|
oneofKind: "cancel",
|
|
205
205
|
cancel: Cancel.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).cancel)
|
|
@@ -220,24 +220,24 @@ class GrpcFrame$Type extends MessageType<GrpcFrame> {
|
|
|
220
220
|
/* uint32 streamId = 1; */
|
|
221
221
|
if (message.streamId !== 0)
|
|
222
222
|
writer.tag(1, WireType.Varint).uint32(message.streamId);
|
|
223
|
-
/* resources.common.grpcws.Ping ping =
|
|
223
|
+
/* resources.common.grpcws.Ping ping = 3; */
|
|
224
224
|
if (message.payload.oneofKind === "ping")
|
|
225
|
-
Ping.internalBinaryWrite(message.payload.ping, writer.tag(
|
|
226
|
-
/* resources.common.grpcws.Header header =
|
|
225
|
+
Ping.internalBinaryWrite(message.payload.ping, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
226
|
+
/* resources.common.grpcws.Header header = 4; */
|
|
227
227
|
if (message.payload.oneofKind === "header")
|
|
228
|
-
Header.internalBinaryWrite(message.payload.header, writer.tag(
|
|
229
|
-
/* resources.common.grpcws.Body body =
|
|
228
|
+
Header.internalBinaryWrite(message.payload.header, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
229
|
+
/* resources.common.grpcws.Body body = 5; */
|
|
230
230
|
if (message.payload.oneofKind === "body")
|
|
231
|
-
Body.internalBinaryWrite(message.payload.body, writer.tag(
|
|
232
|
-
/* resources.common.grpcws.Complete complete =
|
|
231
|
+
Body.internalBinaryWrite(message.payload.body, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
+
/* resources.common.grpcws.Complete complete = 6; */
|
|
233
233
|
if (message.payload.oneofKind === "complete")
|
|
234
|
-
Complete.internalBinaryWrite(message.payload.complete, writer.tag(
|
|
235
|
-
/* resources.common.grpcws.Failure failure =
|
|
234
|
+
Complete.internalBinaryWrite(message.payload.complete, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
+
/* resources.common.grpcws.Failure failure = 7; */
|
|
236
236
|
if (message.payload.oneofKind === "failure")
|
|
237
|
-
Failure.internalBinaryWrite(message.payload.failure, writer.tag(
|
|
238
|
-
/* resources.common.grpcws.Cancel cancel =
|
|
237
|
+
Failure.internalBinaryWrite(message.payload.failure, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
238
|
+
/* resources.common.grpcws.Cancel cancel = 8; */
|
|
239
239
|
if (message.payload.oneofKind === "cancel")
|
|
240
|
-
Cancel.internalBinaryWrite(message.payload.cancel, writer.tag(
|
|
240
|
+
Cancel.internalBinaryWrite(message.payload.cancel, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
241
241
|
let u = options.writeUnknownFields;
|
|
242
242
|
if (u !== false)
|
|
243
243
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -492,7 +492,20 @@ class Complete$Type extends MessageType<Complete> {
|
|
|
492
492
|
return message;
|
|
493
493
|
}
|
|
494
494
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Complete): Complete {
|
|
495
|
-
|
|
495
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
496
|
+
while (reader.pos < end) {
|
|
497
|
+
let [fieldNo, wireType] = reader.tag();
|
|
498
|
+
switch (fieldNo) {
|
|
499
|
+
default:
|
|
500
|
+
let u = options.readUnknownField;
|
|
501
|
+
if (u === "throw")
|
|
502
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
503
|
+
let d = reader.skip(wireType);
|
|
504
|
+
if (u !== false)
|
|
505
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return message;
|
|
496
509
|
}
|
|
497
510
|
internalBinaryWrite(message: Complete, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
498
511
|
let u = options.writeUnknownFields;
|
|
@@ -600,7 +613,20 @@ class Cancel$Type extends MessageType<Cancel> {
|
|
|
600
613
|
return message;
|
|
601
614
|
}
|
|
602
615
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Cancel): Cancel {
|
|
603
|
-
|
|
616
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
617
|
+
while (reader.pos < end) {
|
|
618
|
+
let [fieldNo, wireType] = reader.tag();
|
|
619
|
+
switch (fieldNo) {
|
|
620
|
+
default:
|
|
621
|
+
let u = options.readUnknownField;
|
|
622
|
+
if (u === "throw")
|
|
623
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
624
|
+
let d = reader.skip(wireType);
|
|
625
|
+
if (u !== false)
|
|
626
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return message;
|
|
604
630
|
}
|
|
605
631
|
internalBinaryWrite(message: Cancel, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
606
632
|
let u = options.writeUnknownFields;
|
package/resources/common/i18n.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/common/i18n.proto" (package "resources.common", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,6 +11,9 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
/**
|
|
14
|
+
* Wrapped translated message for the client
|
|
15
|
+
* @dbscanner: json
|
|
16
|
+
*
|
|
14
17
|
* @generated from protobuf message resources.common.TranslateItem
|
|
15
18
|
*/
|
|
16
19
|
export interface TranslateItem {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/common/tests/objects.proto" (package "resources.common.tests", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
/**
|
|
14
|
+
* **INTERNAL ONLY** SimpleObject is used as a test object where proto-based messages are required.
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf message resources.common.tests.SimpleObject
|
|
17
|
+
*/
|
|
18
|
+
export interface SimpleObject {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string field1 = 1;
|
|
21
|
+
*/
|
|
22
|
+
field1: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: bool field2 = 2;
|
|
25
|
+
*/
|
|
26
|
+
field2: boolean;
|
|
27
|
+
}
|
|
28
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
29
|
+
class SimpleObject$Type extends MessageType<SimpleObject> {
|
|
30
|
+
constructor() {
|
|
31
|
+
super("resources.common.tests.SimpleObject", [
|
|
32
|
+
{ no: 1, name: "field1", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
33
|
+
{ no: 2, name: "field2", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
create(value?: PartialMessage<SimpleObject>): SimpleObject {
|
|
37
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
38
|
+
message.field1 = "";
|
|
39
|
+
message.field2 = false;
|
|
40
|
+
if (value !== undefined)
|
|
41
|
+
reflectionMergePartial<SimpleObject>(this, message, value);
|
|
42
|
+
return message;
|
|
43
|
+
}
|
|
44
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SimpleObject): SimpleObject {
|
|
45
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
let [fieldNo, wireType] = reader.tag();
|
|
48
|
+
switch (fieldNo) {
|
|
49
|
+
case /* string field1 */ 1:
|
|
50
|
+
message.field1 = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
case /* bool field2 */ 2:
|
|
53
|
+
message.field2 = reader.bool();
|
|
54
|
+
break;
|
|
55
|
+
default:
|
|
56
|
+
let u = options.readUnknownField;
|
|
57
|
+
if (u === "throw")
|
|
58
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
59
|
+
let d = reader.skip(wireType);
|
|
60
|
+
if (u !== false)
|
|
61
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
}
|
|
66
|
+
internalBinaryWrite(message: SimpleObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
67
|
+
/* string field1 = 1; */
|
|
68
|
+
if (message.field1 !== "")
|
|
69
|
+
writer.tag(1, WireType.LengthDelimited).string(message.field1);
|
|
70
|
+
/* bool field2 = 2; */
|
|
71
|
+
if (message.field2 !== false)
|
|
72
|
+
writer.tag(2, WireType.Varint).bool(message.field2);
|
|
73
|
+
let u = options.writeUnknownFields;
|
|
74
|
+
if (u !== false)
|
|
75
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
76
|
+
return writer;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @generated MessageType for protobuf message resources.common.tests.SimpleObject
|
|
81
|
+
*/
|
|
82
|
+
export const SimpleObject = new SimpleObject$Type();
|
package/resources/common/uuid.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/common/uuid.proto" (package "resources.common", 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/documents/access.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -13,6 +13,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { UserShort } from "../users/users";
|
|
14
14
|
import { Timestamp } from "../timestamp/timestamp";
|
|
15
15
|
/**
|
|
16
|
+
* @dbscanner: json
|
|
17
|
+
*
|
|
16
18
|
* @generated from protobuf message resources.documents.DocumentAccess
|
|
17
19
|
*/
|
|
18
20
|
export interface DocumentAccess {
|
|
@@ -40,7 +42,7 @@ export interface DocumentJobAccess {
|
|
|
40
42
|
/**
|
|
41
43
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
42
44
|
*/
|
|
43
|
-
targetId: number;
|
|
45
|
+
targetId: number;
|
|
44
46
|
/**
|
|
45
47
|
* @generated from protobuf field: string job = 4;
|
|
46
48
|
*/
|
|
@@ -64,7 +66,7 @@ export interface DocumentJobAccess {
|
|
|
64
66
|
/**
|
|
65
67
|
* @generated from protobuf field: optional bool required = 9;
|
|
66
68
|
*/
|
|
67
|
-
required?: boolean;
|
|
69
|
+
required?: boolean;
|
|
68
70
|
}
|
|
69
71
|
/**
|
|
70
72
|
* @generated from protobuf message resources.documents.DocumentUserAccess
|
|
@@ -81,7 +83,7 @@ export interface DocumentUserAccess {
|
|
|
81
83
|
/**
|
|
82
84
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
83
85
|
*/
|
|
84
|
-
targetId: number;
|
|
86
|
+
targetId: number;
|
|
85
87
|
/**
|
|
86
88
|
* @generated from protobuf field: int32 user_id = 4;
|
|
87
89
|
*/
|
|
@@ -97,7 +99,7 @@ export interface DocumentUserAccess {
|
|
|
97
99
|
/**
|
|
98
100
|
* @generated from protobuf field: optional bool required = 7;
|
|
99
101
|
*/
|
|
100
|
-
required?: boolean;
|
|
102
|
+
required?: boolean;
|
|
101
103
|
}
|
|
102
104
|
/**
|
|
103
105
|
* @generated from protobuf enum resources.documents.AccessLevel
|
|
@@ -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/documents/activity.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -61,6 +61,8 @@ export interface DocActivity {
|
|
|
61
61
|
data?: DocActivityData;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* @dbscanner: json
|
|
65
|
+
*
|
|
64
66
|
* @generated from protobuf message resources.documents.DocActivityData
|
|
65
67
|
*/
|
|
66
68
|
export interface DocActivityData {
|
|
@@ -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/documents/category.proto" (package "resources.documents", 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/documents/comment.proto" (package "resources.documents", 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/documents/documents.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -390,7 +390,7 @@ class Document$Type extends MessageType<Document> {
|
|
|
390
390
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
391
391
|
{ no: 5, name: "category_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
392
392
|
{ no: 6, name: "category", kind: "message", T: () => Category },
|
|
393
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "
|
|
393
|
+
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
394
394
|
{ no: 8, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
395
395
|
{ no: 9, name: "content", kind: "message", T: () => Content },
|
|
396
396
|
{ no: 10, name: "data", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxBytes: "1000000" } } } },
|
|
@@ -584,7 +584,7 @@ class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
|
584
584
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
585
585
|
{ no: 5, name: "category_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
586
586
|
{ no: 6, name: "category", kind: "message", T: () => Category },
|
|
587
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "
|
|
587
|
+
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
588
588
|
{ no: 8, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
589
589
|
{ no: 9, name: "content", kind: "message", T: () => Content },
|
|
590
590
|
{ no: 10, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
@@ -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/documents/requests.proto" (package "resources.documents", 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/documents/templates.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -170,6 +170,8 @@ export interface TemplateShort {
|
|
|
170
170
|
workflow?: Workflow;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
+
* @dbscanner: json
|
|
174
|
+
*
|
|
173
175
|
* @generated from protobuf message resources.documents.TemplateSchema
|
|
174
176
|
*/
|
|
175
177
|
export interface TemplateSchema {
|
|
@@ -292,7 +294,7 @@ class Template$Type extends MessageType<Template> {
|
|
|
292
294
|
{ no: 9, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
293
295
|
{ no: 10, name: "content_title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxBytes: "10240" } } } },
|
|
294
296
|
{ no: 11, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "0", maxBytes: "2000000" } } } },
|
|
295
|
-
{ no: 12, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "
|
|
297
|
+
{ no: 12, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
296
298
|
{ no: 13, name: "schema", kind: "message", T: () => TemplateSchema },
|
|
297
299
|
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
298
300
|
{ no: 15, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
@@ -934,7 +936,20 @@ class TemplateUserAccess$Type extends MessageType<TemplateUserAccess> {
|
|
|
934
936
|
return message;
|
|
935
937
|
}
|
|
936
938
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TemplateUserAccess): TemplateUserAccess {
|
|
937
|
-
|
|
939
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
940
|
+
while (reader.pos < end) {
|
|
941
|
+
let [fieldNo, wireType] = reader.tag();
|
|
942
|
+
switch (fieldNo) {
|
|
943
|
+
default:
|
|
944
|
+
let u = options.readUnknownField;
|
|
945
|
+
if (u === "throw")
|
|
946
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
947
|
+
let d = reader.skip(wireType);
|
|
948
|
+
if (u !== false)
|
|
949
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
return message;
|
|
938
953
|
}
|
|
939
954
|
internalBinaryWrite(message: TemplateUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
940
955
|
let u = options.writeUnknownFields;
|
|
@@ -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/documents/workflow.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -12,6 +12,8 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Duration } from "../../google/protobuf/duration";
|
|
14
14
|
/**
|
|
15
|
+
* @dbscanner: json
|
|
16
|
+
*
|
|
15
17
|
* @generated from protobuf message resources.documents.Workflow
|
|
16
18
|
*/
|
|
17
19
|
export interface Workflow {
|
|
@@ -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/filestore/file.proto" (package "resources.filestore", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|