@fivenet-app/gen 2026.4.0 → 2026.5.1
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 +60 -0
- package/codegen/perms/perms.ts +64 -31
- package/package.json +1 -1
- package/perms.ts +57 -41
- package/resources/accounts/accounts.ts +41 -30
- package/resources/audit/audit.ts +5 -1
- package/resources/citizens/labels/access.ts +216 -0
- package/resources/citizens/labels/labels.ts +8 -214
- package/resources/jobs/colleagues/activity/activity.ts +1 -1
- package/resources/laws/laws.ts +72 -50
- package/resources/permissions/attributes/attributes.ts +51 -39
- package/resources/permissions/permissions/permissions.ts +46 -34
- package/resources/sync/data/data.ts +9 -9
- package/resources/users/activity/activity.ts +69 -76
- package/services/auth/auth.ts +1 -1
- package/services/calendar/calendar.client.ts +2 -106
- package/services/calendar/calendar.ts +0 -1018
- package/services/calendar/entries.client.ts +129 -0
- package/services/calendar/entries.ts +1040 -0
- package/services/centrum/centrum.client.ts +23 -244
- package/services/centrum/centrum.ts +246 -2383
- package/services/centrum/dispatches.client.ts +155 -0
- package/services/centrum/dispatches.ts +1305 -0
- package/services/centrum/units.client.ts +116 -0
- package/services/centrum/units.ts +876 -0
- package/services/citizens/labels.client.ts +26 -0
- package/services/citizens/labels.ts +283 -4
- package/services/completor/completor.client.ts +0 -13
- package/services/completor/completor.ts +2 -116
- package/services/documents/approval.ts +5 -5
- package/services/documents/categories.client.ts +64 -0
- package/services/documents/categories.ts +331 -0
- package/services/documents/collab.ts +1 -1
- package/services/documents/comments.client.ts +77 -0
- package/services/documents/comments.ts +479 -0
- package/services/documents/documents.client.ts +26 -182
- package/services/documents/documents.ts +335 -1682
- package/services/documents/templates.client.ts +90 -0
- package/services/documents/templates.ts +591 -0
- package/services/jobs/colleagues.client.ts +129 -0
- package/services/jobs/colleagues.ts +1129 -0
- package/services/jobs/jobs.client.ts +3 -107
- package/services/jobs/jobs.ts +1 -1113
- package/services/mailer/mailer.client.ts +0 -208
- package/services/mailer/mailer.ts +1 -2010
- package/services/mailer/settings.client.ts +103 -0
- package/services/mailer/settings.ts +708 -0
- package/services/mailer/thread.client.ts +155 -0
- package/services/mailer/thread.ts +1343 -0
- package/services/qualifications/exam.client.ts +77 -0
- package/services/qualifications/exam.ts +609 -0
- package/services/qualifications/qualifications.client.ts +1 -53
- package/services/qualifications/qualifications.ts +0 -591
- package/services/settings/accounts.ts +14 -1
- package/services/settings/laws.client.ts +18 -5
- package/services/settings/laws.ts +128 -3
- package/services/sync/sync.client.ts +4 -4
- package/services/sync/sync.ts +23 -0
- package/services/wiki/collab.ts +1 -1
- package/svcs.ts +156 -68
|
@@ -11,15 +11,21 @@ import type { CreateOrUpdateLawResponse } from "./laws";
|
|
|
11
11
|
import type { CreateOrUpdateLawRequest } from "./laws";
|
|
12
12
|
import type { DeleteLawBookResponse } from "./laws";
|
|
13
13
|
import type { DeleteLawBookRequest } from "./laws";
|
|
14
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
15
14
|
import type { CreateOrUpdateLawBookResponse } from "./laws";
|
|
16
15
|
import type { CreateOrUpdateLawBookRequest } from "./laws";
|
|
16
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
17
|
+
import type { ListLawBooksResponse } from "./laws";
|
|
18
|
+
import type { ListLawBooksRequest } from "./laws";
|
|
17
19
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
18
20
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
19
21
|
/**
|
|
20
22
|
* @generated from protobuf service services.settings.LawsService
|
|
21
23
|
*/
|
|
22
24
|
export interface ILawsServiceClient {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf rpc: ListLawBooks
|
|
27
|
+
*/
|
|
28
|
+
listLawBooks(input: ListLawBooksRequest, options?: RpcOptions): UnaryCall<ListLawBooksRequest, ListLawBooksResponse>;
|
|
23
29
|
/**
|
|
24
30
|
* @generated from protobuf rpc: CreateOrUpdateLawBook
|
|
25
31
|
*/
|
|
@@ -46,32 +52,39 @@ export class LawsServiceClient implements ILawsServiceClient, ServiceInfo {
|
|
|
46
52
|
options = LawsService.options;
|
|
47
53
|
constructor(private readonly _transport: RpcTransport) {
|
|
48
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf rpc: ListLawBooks
|
|
57
|
+
*/
|
|
58
|
+
listLawBooks(input: ListLawBooksRequest, options?: RpcOptions): UnaryCall<ListLawBooksRequest, ListLawBooksResponse> {
|
|
59
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
60
|
+
return stackIntercept<ListLawBooksRequest, ListLawBooksResponse>("unary", this._transport, method, opt, input);
|
|
61
|
+
}
|
|
49
62
|
/**
|
|
50
63
|
* @generated from protobuf rpc: CreateOrUpdateLawBook
|
|
51
64
|
*/
|
|
52
65
|
createOrUpdateLawBook(input: CreateOrUpdateLawBookRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLawBookRequest, CreateOrUpdateLawBookResponse> {
|
|
53
|
-
const method = this.methods[
|
|
66
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
54
67
|
return stackIntercept<CreateOrUpdateLawBookRequest, CreateOrUpdateLawBookResponse>("unary", this._transport, method, opt, input);
|
|
55
68
|
}
|
|
56
69
|
/**
|
|
57
70
|
* @generated from protobuf rpc: DeleteLawBook
|
|
58
71
|
*/
|
|
59
72
|
deleteLawBook(input: DeleteLawBookRequest, options?: RpcOptions): UnaryCall<DeleteLawBookRequest, DeleteLawBookResponse> {
|
|
60
|
-
const method = this.methods[
|
|
73
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
61
74
|
return stackIntercept<DeleteLawBookRequest, DeleteLawBookResponse>("unary", this._transport, method, opt, input);
|
|
62
75
|
}
|
|
63
76
|
/**
|
|
64
77
|
* @generated from protobuf rpc: CreateOrUpdateLaw
|
|
65
78
|
*/
|
|
66
79
|
createOrUpdateLaw(input: CreateOrUpdateLawRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLawRequest, CreateOrUpdateLawResponse> {
|
|
67
|
-
const method = this.methods[
|
|
80
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
68
81
|
return stackIntercept<CreateOrUpdateLawRequest, CreateOrUpdateLawResponse>("unary", this._transport, method, opt, input);
|
|
69
82
|
}
|
|
70
83
|
/**
|
|
71
84
|
* @generated from protobuf rpc: DeleteLaw
|
|
72
85
|
*/
|
|
73
86
|
deleteLaw(input: DeleteLawRequest, options?: RpcOptions): UnaryCall<DeleteLawRequest, DeleteLawResponse> {
|
|
74
|
-
const method = this.methods[
|
|
87
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
75
88
|
return stackIntercept<DeleteLawRequest, DeleteLawResponse>("unary", this._transport, method, opt, input);
|
|
76
89
|
}
|
|
77
90
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
6
7
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
8
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
9
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
10
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
11
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
@@ -13,7 +13,22 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
14
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
15
|
import { Law } from "../../resources/laws/laws";
|
|
16
|
+
import { Timestamp } from "../../resources/timestamp/timestamp";
|
|
16
17
|
import { LawBook } from "../../resources/laws/laws";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf message services.settings.ListLawBooksRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ListLawBooksRequest {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf message services.settings.ListLawBooksResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface ListLawBooksResponse {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: repeated resources.laws.LawBook books = 1
|
|
29
|
+
*/
|
|
30
|
+
books: LawBook[];
|
|
31
|
+
}
|
|
17
32
|
/**
|
|
18
33
|
* @generated from protobuf message services.settings.CreateOrUpdateLawBookRequest
|
|
19
34
|
*/
|
|
@@ -45,6 +60,10 @@ export interface DeleteLawBookRequest {
|
|
|
45
60
|
* @generated from protobuf message services.settings.DeleteLawBookResponse
|
|
46
61
|
*/
|
|
47
62
|
export interface DeleteLawBookResponse {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 1
|
|
65
|
+
*/
|
|
66
|
+
deletedAt?: Timestamp;
|
|
48
67
|
}
|
|
49
68
|
/**
|
|
50
69
|
* @generated from protobuf message services.settings.CreateOrUpdateLawRequest
|
|
@@ -77,7 +96,96 @@ export interface DeleteLawRequest {
|
|
|
77
96
|
* @generated from protobuf message services.settings.DeleteLawResponse
|
|
78
97
|
*/
|
|
79
98
|
export interface DeleteLawResponse {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 1
|
|
101
|
+
*/
|
|
102
|
+
deletedAt?: Timestamp;
|
|
103
|
+
}
|
|
104
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
105
|
+
class ListLawBooksRequest$Type extends MessageType<ListLawBooksRequest> {
|
|
106
|
+
constructor() {
|
|
107
|
+
super("services.settings.ListLawBooksRequest", []);
|
|
108
|
+
}
|
|
109
|
+
create(value?: PartialMessage<ListLawBooksRequest>): ListLawBooksRequest {
|
|
110
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
111
|
+
if (value !== undefined)
|
|
112
|
+
reflectionMergePartial<ListLawBooksRequest>(this, message, value);
|
|
113
|
+
return message;
|
|
114
|
+
}
|
|
115
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListLawBooksRequest): ListLawBooksRequest {
|
|
116
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
let [fieldNo, wireType] = reader.tag();
|
|
119
|
+
switch (fieldNo) {
|
|
120
|
+
default:
|
|
121
|
+
let u = options.readUnknownField;
|
|
122
|
+
if (u === "throw")
|
|
123
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
124
|
+
let d = reader.skip(wireType);
|
|
125
|
+
if (u !== false)
|
|
126
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
}
|
|
131
|
+
internalBinaryWrite(message: ListLawBooksRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
132
|
+
let u = options.writeUnknownFields;
|
|
133
|
+
if (u !== false)
|
|
134
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
135
|
+
return writer;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @generated MessageType for protobuf message services.settings.ListLawBooksRequest
|
|
140
|
+
*/
|
|
141
|
+
export const ListLawBooksRequest = new ListLawBooksRequest$Type();
|
|
142
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
143
|
+
class ListLawBooksResponse$Type extends MessageType<ListLawBooksResponse> {
|
|
144
|
+
constructor() {
|
|
145
|
+
super("services.settings.ListLawBooksResponse", [
|
|
146
|
+
{ no: 1, name: "books", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LawBook }
|
|
147
|
+
]);
|
|
148
|
+
}
|
|
149
|
+
create(value?: PartialMessage<ListLawBooksResponse>): ListLawBooksResponse {
|
|
150
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
151
|
+
message.books = [];
|
|
152
|
+
if (value !== undefined)
|
|
153
|
+
reflectionMergePartial<ListLawBooksResponse>(this, message, value);
|
|
154
|
+
return message;
|
|
155
|
+
}
|
|
156
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListLawBooksResponse): ListLawBooksResponse {
|
|
157
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
158
|
+
while (reader.pos < end) {
|
|
159
|
+
let [fieldNo, wireType] = reader.tag();
|
|
160
|
+
switch (fieldNo) {
|
|
161
|
+
case /* repeated resources.laws.LawBook books */ 1:
|
|
162
|
+
message.books.push(LawBook.internalBinaryRead(reader, reader.uint32(), options));
|
|
163
|
+
break;
|
|
164
|
+
default:
|
|
165
|
+
let u = options.readUnknownField;
|
|
166
|
+
if (u === "throw")
|
|
167
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
168
|
+
let d = reader.skip(wireType);
|
|
169
|
+
if (u !== false)
|
|
170
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return message;
|
|
174
|
+
}
|
|
175
|
+
internalBinaryWrite(message: ListLawBooksResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
176
|
+
/* repeated resources.laws.LawBook books = 1; */
|
|
177
|
+
for (let i = 0; i < message.books.length; i++)
|
|
178
|
+
LawBook.internalBinaryWrite(message.books[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
179
|
+
let u = options.writeUnknownFields;
|
|
180
|
+
if (u !== false)
|
|
181
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
182
|
+
return writer;
|
|
183
|
+
}
|
|
80
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated MessageType for protobuf message services.settings.ListLawBooksResponse
|
|
187
|
+
*/
|
|
188
|
+
export const ListLawBooksResponse = new ListLawBooksResponse$Type();
|
|
81
189
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
82
190
|
class CreateOrUpdateLawBookRequest$Type extends MessageType<CreateOrUpdateLawBookRequest> {
|
|
83
191
|
constructor() {
|
|
@@ -220,7 +328,9 @@ export const DeleteLawBookRequest = new DeleteLawBookRequest$Type();
|
|
|
220
328
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
221
329
|
class DeleteLawBookResponse$Type extends MessageType<DeleteLawBookResponse> {
|
|
222
330
|
constructor() {
|
|
223
|
-
super("services.settings.DeleteLawBookResponse", [
|
|
331
|
+
super("services.settings.DeleteLawBookResponse", [
|
|
332
|
+
{ no: 1, name: "deleted_at", kind: "message", T: () => Timestamp }
|
|
333
|
+
]);
|
|
224
334
|
}
|
|
225
335
|
create(value?: PartialMessage<DeleteLawBookResponse>): DeleteLawBookResponse {
|
|
226
336
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -233,6 +343,9 @@ class DeleteLawBookResponse$Type extends MessageType<DeleteLawBookResponse> {
|
|
|
233
343
|
while (reader.pos < end) {
|
|
234
344
|
let [fieldNo, wireType] = reader.tag();
|
|
235
345
|
switch (fieldNo) {
|
|
346
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 1:
|
|
347
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
348
|
+
break;
|
|
236
349
|
default:
|
|
237
350
|
let u = options.readUnknownField;
|
|
238
351
|
if (u === "throw")
|
|
@@ -245,6 +358,9 @@ class DeleteLawBookResponse$Type extends MessageType<DeleteLawBookResponse> {
|
|
|
245
358
|
return message;
|
|
246
359
|
}
|
|
247
360
|
internalBinaryWrite(message: DeleteLawBookResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
361
|
+
/* optional resources.timestamp.Timestamp deleted_at = 1; */
|
|
362
|
+
if (message.deletedAt)
|
|
363
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
248
364
|
let u = options.writeUnknownFields;
|
|
249
365
|
if (u !== false)
|
|
250
366
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -397,7 +513,9 @@ export const DeleteLawRequest = new DeleteLawRequest$Type();
|
|
|
397
513
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
398
514
|
class DeleteLawResponse$Type extends MessageType<DeleteLawResponse> {
|
|
399
515
|
constructor() {
|
|
400
|
-
super("services.settings.DeleteLawResponse", [
|
|
516
|
+
super("services.settings.DeleteLawResponse", [
|
|
517
|
+
{ no: 1, name: "deleted_at", kind: "message", T: () => Timestamp }
|
|
518
|
+
]);
|
|
401
519
|
}
|
|
402
520
|
create(value?: PartialMessage<DeleteLawResponse>): DeleteLawResponse {
|
|
403
521
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -410,6 +528,9 @@ class DeleteLawResponse$Type extends MessageType<DeleteLawResponse> {
|
|
|
410
528
|
while (reader.pos < end) {
|
|
411
529
|
let [fieldNo, wireType] = reader.tag();
|
|
412
530
|
switch (fieldNo) {
|
|
531
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 1:
|
|
532
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
533
|
+
break;
|
|
413
534
|
default:
|
|
414
535
|
let u = options.readUnknownField;
|
|
415
536
|
if (u === "throw")
|
|
@@ -422,6 +543,9 @@ class DeleteLawResponse$Type extends MessageType<DeleteLawResponse> {
|
|
|
422
543
|
return message;
|
|
423
544
|
}
|
|
424
545
|
internalBinaryWrite(message: DeleteLawResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
546
|
+
/* optional resources.timestamp.Timestamp deleted_at = 1; */
|
|
547
|
+
if (message.deletedAt)
|
|
548
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
425
549
|
let u = options.writeUnknownFields;
|
|
426
550
|
if (u !== false)
|
|
427
551
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -436,6 +560,7 @@ export const DeleteLawResponse = new DeleteLawResponse$Type();
|
|
|
436
560
|
* @generated ServiceType for protobuf service services.settings.LawsService
|
|
437
561
|
*/
|
|
438
562
|
export const LawsService = new ServiceType("services.settings.LawsService", [
|
|
563
|
+
{ name: "ListLawBooks", options: { "codegen.perms.perms": { enabled: true, name: "CreateOrUpdateLawBook" } }, I: ListLawBooksRequest, O: ListLawBooksResponse },
|
|
439
564
|
{ name: "CreateOrUpdateLawBook", options: { "codegen.perms.perms": { enabled: true } }, I: CreateOrUpdateLawBookRequest, O: CreateOrUpdateLawBookResponse },
|
|
440
565
|
{ name: "DeleteLawBook", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteLawBookRequest, O: DeleteLawBookResponse },
|
|
441
566
|
{ name: "CreateOrUpdateLaw", options: { "codegen.perms.perms": { enabled: true, name: "CreateOrUpdateLawBook" } }, I: CreateOrUpdateLawRequest, O: CreateOrUpdateLawResponse },
|
|
@@ -158,14 +158,14 @@ export interface ISyncServiceClient {
|
|
|
158
158
|
*/
|
|
159
159
|
addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse>;
|
|
160
160
|
/**
|
|
161
|
-
* DEPRECATED:DBSync's method of sending (mass) data to the FiveNet server for storing.
|
|
161
|
+
* DEPRECATED: DBSync's method of sending (mass) data to the FiveNet server for storing.
|
|
162
162
|
*
|
|
163
163
|
* @deprecated
|
|
164
164
|
* @generated from protobuf rpc: SendData
|
|
165
165
|
*/
|
|
166
166
|
sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse>;
|
|
167
167
|
/**
|
|
168
|
-
* DEPRECATED:Way for the gameserver to delete certain data as well
|
|
168
|
+
* DEPRECATED: Way for the gameserver to delete certain data as well
|
|
169
169
|
*
|
|
170
170
|
* @deprecated
|
|
171
171
|
* @generated from protobuf rpc: DeleteData
|
|
@@ -363,7 +363,7 @@ export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
|
|
|
363
363
|
return stackIntercept<AddActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
|
|
364
364
|
}
|
|
365
365
|
/**
|
|
366
|
-
* DEPRECATED:DBSync's method of sending (mass) data to the FiveNet server for storing.
|
|
366
|
+
* DEPRECATED: DBSync's method of sending (mass) data to the FiveNet server for storing.
|
|
367
367
|
*
|
|
368
368
|
* @deprecated
|
|
369
369
|
* @generated from protobuf rpc: SendData
|
|
@@ -373,7 +373,7 @@ export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
|
|
|
373
373
|
return stackIntercept<SendDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
|
-
* DEPRECATED:Way for the gameserver to delete certain data as well
|
|
376
|
+
* DEPRECATED: Way for the gameserver to delete certain data as well
|
|
377
377
|
*
|
|
378
378
|
* @deprecated
|
|
379
379
|
* @generated from protobuf rpc: DeleteData
|
package/services/sync/sync.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { UserActivity } from "../../resources/users/activity/activity";
|
|
|
36
36
|
import { Dispatch } from "../../resources/centrum/dispatches/dispatches";
|
|
37
37
|
import { UserOAuth2Conn } from "../../resources/sync/activity/activity";
|
|
38
38
|
import { DataStatus } from "../../resources/sync/data/data";
|
|
39
|
+
import { Timestamp } from "../../resources/timestamp/timestamp";
|
|
39
40
|
/**
|
|
40
41
|
* @generated from protobuf message services.sync.GetStatusRequest
|
|
41
42
|
*/
|
|
@@ -45,6 +46,14 @@ export interface GetStatusRequest {
|
|
|
45
46
|
* @generated from protobuf message services.sync.GetStatusResponse
|
|
46
47
|
*/
|
|
47
48
|
export interface GetStatusResponse {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp last_synced_data = 6
|
|
51
|
+
*/
|
|
52
|
+
lastSyncedData?: Timestamp;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp last_synced_activity = 7
|
|
55
|
+
*/
|
|
56
|
+
lastSyncedActivity?: Timestamp;
|
|
48
57
|
/**
|
|
49
58
|
* @generated from protobuf field: resources.sync.data.DataStatus jobs = 1
|
|
50
59
|
*/
|
|
@@ -536,6 +545,8 @@ export const GetStatusRequest = new GetStatusRequest$Type();
|
|
|
536
545
|
class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
|
|
537
546
|
constructor() {
|
|
538
547
|
super("services.sync.GetStatusResponse", [
|
|
548
|
+
{ no: 6, name: "last_synced_data", kind: "message", T: () => Timestamp },
|
|
549
|
+
{ no: 7, name: "last_synced_activity", kind: "message", T: () => Timestamp },
|
|
539
550
|
{ no: 1, name: "jobs", kind: "message", T: () => DataStatus },
|
|
540
551
|
{ no: 2, name: "licenses", kind: "message", T: () => DataStatus },
|
|
541
552
|
{ no: 3, name: "users", kind: "message", T: () => DataStatus },
|
|
@@ -554,6 +565,12 @@ class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
|
|
|
554
565
|
while (reader.pos < end) {
|
|
555
566
|
let [fieldNo, wireType] = reader.tag();
|
|
556
567
|
switch (fieldNo) {
|
|
568
|
+
case /* optional resources.timestamp.Timestamp last_synced_data */ 6:
|
|
569
|
+
message.lastSyncedData = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSyncedData);
|
|
570
|
+
break;
|
|
571
|
+
case /* optional resources.timestamp.Timestamp last_synced_activity */ 7:
|
|
572
|
+
message.lastSyncedActivity = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSyncedActivity);
|
|
573
|
+
break;
|
|
557
574
|
case /* resources.sync.data.DataStatus jobs */ 1:
|
|
558
575
|
message.jobs = DataStatus.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
|
|
559
576
|
break;
|
|
@@ -596,6 +613,12 @@ class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
|
|
|
596
613
|
/* resources.sync.data.DataStatus accounts = 5; */
|
|
597
614
|
if (message.accounts)
|
|
598
615
|
DataStatus.internalBinaryWrite(message.accounts, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
616
|
+
/* optional resources.timestamp.Timestamp last_synced_data = 6; */
|
|
617
|
+
if (message.lastSyncedData)
|
|
618
|
+
Timestamp.internalBinaryWrite(message.lastSyncedData, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
619
|
+
/* optional resources.timestamp.Timestamp last_synced_activity = 7; */
|
|
620
|
+
if (message.lastSyncedActivity)
|
|
621
|
+
Timestamp.internalBinaryWrite(message.lastSyncedActivity, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
599
622
|
let u = options.writeUnknownFields;
|
|
600
623
|
if (u !== false)
|
|
601
624
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/services/wiki/collab.ts
CHANGED
|
@@ -9,5 +9,5 @@ import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
|
9
9
|
* @generated ServiceType for protobuf service services.wiki.CollabService
|
|
10
10
|
*/
|
|
11
11
|
export const CollabService = new ServiceType("services.wiki.CollabService", [
|
|
12
|
-
{ name: "JoinRoom", serverStreaming: true, clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, service: "
|
|
12
|
+
{ name: "JoinRoom", serverStreaming: true, clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, service: "WikiService", name: "UpdatePage" } }, I: ClientPacket, O: ServerPacket }
|
|
13
13
|
]);
|