@fivenet-app/gen 0.9.3 → 0.9.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/package.json +5 -1
- package/perms.ts +4 -0
- package/resources/accounts/accounts.ts +8 -8
- package/resources/accounts/oauth2.ts +16 -16
- package/resources/calendar/access.ts +32 -32
- package/resources/calendar/calendar.ts +48 -48
- package/resources/centrum/access.ts +40 -40
- package/resources/centrum/dispatches.ts +62 -62
- package/resources/centrum/general.ts +8 -8
- package/resources/centrum/units.ts +40 -40
- package/resources/documents/access.ts +32 -32
- package/resources/documents/activity.ts +16 -16
- package/resources/documents/category.ts +8 -8
- package/resources/documents/comment.ts +16 -16
- package/resources/documents/documents.ts +86 -86
- package/resources/documents/requests.ts +16 -16
- package/resources/documents/templates.ts +32 -32
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +8 -8
- package/resources/internet/domain.ts +182 -23
- package/resources/internet/page.ts +22 -20
- package/resources/internet/search.ts +8 -8
- package/resources/jobs/activity.ts +8 -8
- package/resources/jobs/conduct.ts +8 -8
- package/resources/jobs/labels.ts +8 -8
- package/resources/jobs/timeclock.ts +6 -2
- package/resources/laws/laws.ts +24 -24
- package/resources/livemap/livemap.ts +14 -14
- package/resources/mailer/access.ts +56 -56
- package/resources/mailer/email.ts +8 -8
- package/resources/mailer/events.ts +18 -18
- package/resources/mailer/message.ts +24 -24
- package/resources/mailer/settings.ts +8 -8
- package/resources/mailer/template.ts +16 -16
- package/resources/mailer/thread.ts +56 -56
- package/resources/notifications/events.ts +39 -2
- package/resources/notifications/notifications.ts +20 -20
- package/resources/permissions/permissions.ts +64 -64
- package/resources/qualifications/access.ts +16 -16
- package/resources/qualifications/exam.ts +40 -40
- package/resources/qualifications/qualifications.ts +64 -64
- package/resources/rector/audit.ts +16 -16
- package/resources/sync/activity.ts +92 -14
- package/resources/sync/data.ts +142 -10
- package/resources/users/activity.ts +992 -36
- package/resources/users/job_props.ts +3 -708
- package/resources/users/job_settings.ts +721 -0
- package/resources/users/labels.ts +8 -8
- package/resources/users/licenses.ts +148 -0
- package/resources/users/users.ts +1 -136
- package/resources/wiki/access.ts +32 -32
- package/resources/wiki/activity.ts +16 -16
- package/resources/wiki/page.ts +28 -28
- package/services/auth/auth.ts +16 -16
- package/services/calendar/calendar.ts +55 -55
- package/services/centrum/centrum.ts +112 -112
- package/services/citizenstore/citizenstore.ts +24 -1
- package/services/docstore/docstore.ts +280 -280
- package/services/internet/domain.client.ts +126 -0
- package/services/internet/domain.ts +695 -0
- package/services/internet/internet.ts +3 -3
- package/services/jobs/conduct.ts +15 -15
- package/services/jobs/jobs.ts +14 -14
- package/services/jobs/timeclock.ts +1 -1
- package/services/livemapper/livemap.ts +8 -8
- package/services/mailer/mailer.ts +159 -159
- package/services/notificator/notificator.ts +15 -15
- package/services/qualifications/qualifications.ts +108 -108
- package/services/rector/laws.ts +16 -16
- package/services/rector/rector.ts +63 -63
- package/services/sync/sync.client.ts +36 -2
- package/services/sync/sync.ts +259 -44
- package/services/wiki/wiki.ts +24 -24
- package/svcs.ts +13 -0
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
package/resources/wiki/page.ts
CHANGED
|
@@ -21,9 +21,9 @@ import { Content } from "../common/content/content";
|
|
|
21
21
|
*/
|
|
22
22
|
export interface Page {
|
|
23
23
|
/**
|
|
24
|
-
* @generated from protobuf field: uint64 id = 1
|
|
24
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
25
25
|
*/
|
|
26
|
-
id:
|
|
26
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
27
27
|
/**
|
|
28
28
|
* @sanitize: method=StripTags
|
|
29
29
|
*
|
|
@@ -35,9 +35,9 @@ export interface Page {
|
|
|
35
35
|
*/
|
|
36
36
|
jobLabel?: string;
|
|
37
37
|
/**
|
|
38
|
-
* @generated from protobuf field: optional uint64 parent_id = 4
|
|
38
|
+
* @generated from protobuf field: optional uint64 parent_id = 4;
|
|
39
39
|
*/
|
|
40
|
-
parentId?:
|
|
40
|
+
parentId?: number;
|
|
41
41
|
/**
|
|
42
42
|
* @generated from protobuf field: resources.wiki.PageMeta meta = 5;
|
|
43
43
|
*/
|
|
@@ -117,9 +117,9 @@ export interface PageMeta {
|
|
|
117
117
|
*/
|
|
118
118
|
export interface PageShort {
|
|
119
119
|
/**
|
|
120
|
-
* @generated from protobuf field: uint64 id = 1
|
|
120
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
121
121
|
*/
|
|
122
|
-
id:
|
|
122
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
123
123
|
/**
|
|
124
124
|
* @generated from protobuf field: string job = 2;
|
|
125
125
|
*/
|
|
@@ -129,9 +129,9 @@ export interface PageShort {
|
|
|
129
129
|
*/
|
|
130
130
|
jobLabel?: string;
|
|
131
131
|
/**
|
|
132
|
-
* @generated from protobuf field: optional uint64 parent_id = 4
|
|
132
|
+
* @generated from protobuf field: optional uint64 parent_id = 4;
|
|
133
133
|
*/
|
|
134
|
-
parentId?:
|
|
134
|
+
parentId?: number;
|
|
135
135
|
/**
|
|
136
136
|
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 5;
|
|
137
137
|
*/
|
|
@@ -172,10 +172,10 @@ export interface PageRootInfo {
|
|
|
172
172
|
class Page$Type extends MessageType<Page> {
|
|
173
173
|
constructor() {
|
|
174
174
|
super("resources.wiki.Page", [
|
|
175
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
175
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
176
176
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
177
177
|
{ no: 3, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
178
|
-
{ no: 4, name: "parent_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
178
|
+
{ no: 4, name: "parent_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
179
179
|
{ no: 5, name: "meta", kind: "message", T: () => PageMeta, options: { "validate.rules": { message: { required: true } } } },
|
|
180
180
|
{ no: 6, name: "content", kind: "message", T: () => Content },
|
|
181
181
|
{ no: 7, name: "access", kind: "message", T: () => PageAccess, options: { "validate.rules": { message: { required: true } } } }
|
|
@@ -183,7 +183,7 @@ class Page$Type extends MessageType<Page> {
|
|
|
183
183
|
}
|
|
184
184
|
create(value?: PartialMessage<Page>): Page {
|
|
185
185
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
186
|
-
message.id =
|
|
186
|
+
message.id = 0;
|
|
187
187
|
message.job = "";
|
|
188
188
|
if (value !== undefined)
|
|
189
189
|
reflectionMergePartial<Page>(this, message, value);
|
|
@@ -194,8 +194,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
194
194
|
while (reader.pos < end) {
|
|
195
195
|
let [fieldNo, wireType] = reader.tag();
|
|
196
196
|
switch (fieldNo) {
|
|
197
|
-
case /* uint64 id
|
|
198
|
-
message.id = reader.uint64().
|
|
197
|
+
case /* uint64 id */ 1:
|
|
198
|
+
message.id = reader.uint64().toNumber();
|
|
199
199
|
break;
|
|
200
200
|
case /* string job */ 2:
|
|
201
201
|
message.job = reader.string();
|
|
@@ -203,8 +203,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
203
203
|
case /* optional string job_label */ 3:
|
|
204
204
|
message.jobLabel = reader.string();
|
|
205
205
|
break;
|
|
206
|
-
case /* optional uint64 parent_id
|
|
207
|
-
message.parentId = reader.uint64().
|
|
206
|
+
case /* optional uint64 parent_id */ 4:
|
|
207
|
+
message.parentId = reader.uint64().toNumber();
|
|
208
208
|
break;
|
|
209
209
|
case /* resources.wiki.PageMeta meta */ 5:
|
|
210
210
|
message.meta = PageMeta.internalBinaryRead(reader, reader.uint32(), options, message.meta);
|
|
@@ -227,8 +227,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
227
227
|
return message;
|
|
228
228
|
}
|
|
229
229
|
internalBinaryWrite(message: Page, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
230
|
-
/* uint64 id = 1
|
|
231
|
-
if (message.id !==
|
|
230
|
+
/* uint64 id = 1; */
|
|
231
|
+
if (message.id !== 0)
|
|
232
232
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
233
233
|
/* string job = 2; */
|
|
234
234
|
if (message.job !== "")
|
|
@@ -236,7 +236,7 @@ class Page$Type extends MessageType<Page> {
|
|
|
236
236
|
/* optional string job_label = 3; */
|
|
237
237
|
if (message.jobLabel !== undefined)
|
|
238
238
|
writer.tag(3, WireType.LengthDelimited).string(message.jobLabel);
|
|
239
|
-
/* optional uint64 parent_id = 4
|
|
239
|
+
/* optional uint64 parent_id = 4; */
|
|
240
240
|
if (message.parentId !== undefined)
|
|
241
241
|
writer.tag(4, WireType.Varint).uint64(message.parentId);
|
|
242
242
|
/* resources.wiki.PageMeta meta = 5; */
|
|
@@ -390,10 +390,10 @@ export const PageMeta = new PageMeta$Type();
|
|
|
390
390
|
class PageShort$Type extends MessageType<PageShort> {
|
|
391
391
|
constructor() {
|
|
392
392
|
super("resources.wiki.PageShort", [
|
|
393
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
393
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
394
394
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
395
395
|
{ no: 3, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
396
|
-
{ no: 4, name: "parent_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
396
|
+
{ no: 4, name: "parent_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
397
397
|
{ no: 5, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
398
398
|
{ no: 6, name: "slug", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "100" } } } },
|
|
399
399
|
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -404,7 +404,7 @@ class PageShort$Type extends MessageType<PageShort> {
|
|
|
404
404
|
}
|
|
405
405
|
create(value?: PartialMessage<PageShort>): PageShort {
|
|
406
406
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
407
|
-
message.id =
|
|
407
|
+
message.id = 0;
|
|
408
408
|
message.job = "";
|
|
409
409
|
message.title = "";
|
|
410
410
|
message.description = "";
|
|
@@ -418,8 +418,8 @@ class PageShort$Type extends MessageType<PageShort> {
|
|
|
418
418
|
while (reader.pos < end) {
|
|
419
419
|
let [fieldNo, wireType] = reader.tag();
|
|
420
420
|
switch (fieldNo) {
|
|
421
|
-
case /* uint64 id
|
|
422
|
-
message.id = reader.uint64().
|
|
421
|
+
case /* uint64 id */ 1:
|
|
422
|
+
message.id = reader.uint64().toNumber();
|
|
423
423
|
break;
|
|
424
424
|
case /* string job */ 2:
|
|
425
425
|
message.job = reader.string();
|
|
@@ -427,8 +427,8 @@ class PageShort$Type extends MessageType<PageShort> {
|
|
|
427
427
|
case /* optional string job_label */ 3:
|
|
428
428
|
message.jobLabel = reader.string();
|
|
429
429
|
break;
|
|
430
|
-
case /* optional uint64 parent_id
|
|
431
|
-
message.parentId = reader.uint64().
|
|
430
|
+
case /* optional uint64 parent_id */ 4:
|
|
431
|
+
message.parentId = reader.uint64().toNumber();
|
|
432
432
|
break;
|
|
433
433
|
case /* optional resources.timestamp.Timestamp deleted_at */ 5:
|
|
434
434
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
@@ -460,8 +460,8 @@ class PageShort$Type extends MessageType<PageShort> {
|
|
|
460
460
|
return message;
|
|
461
461
|
}
|
|
462
462
|
internalBinaryWrite(message: PageShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
463
|
-
/* uint64 id = 1
|
|
464
|
-
if (message.id !==
|
|
463
|
+
/* uint64 id = 1; */
|
|
464
|
+
if (message.id !== 0)
|
|
465
465
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
466
466
|
/* string job = 2; */
|
|
467
467
|
if (message.job !== "")
|
|
@@ -469,7 +469,7 @@ class PageShort$Type extends MessageType<PageShort> {
|
|
|
469
469
|
/* optional string job_label = 3; */
|
|
470
470
|
if (message.jobLabel !== undefined)
|
|
471
471
|
writer.tag(3, WireType.LengthDelimited).string(message.jobLabel);
|
|
472
|
-
/* optional uint64 parent_id = 4
|
|
472
|
+
/* optional uint64 parent_id = 4; */
|
|
473
473
|
if (message.parentId !== undefined)
|
|
474
474
|
writer.tag(4, WireType.Varint).uint64(message.parentId);
|
|
475
475
|
/* optional resources.timestamp.Timestamp deleted_at = 5; */
|
package/services/auth/auth.ts
CHANGED
|
@@ -40,9 +40,9 @@ export interface CreateAccountRequest {
|
|
|
40
40
|
*/
|
|
41
41
|
export interface CreateAccountResponse {
|
|
42
42
|
/**
|
|
43
|
-
* @generated from protobuf field: uint64 account_id = 1
|
|
43
|
+
* @generated from protobuf field: uint64 account_id = 1;
|
|
44
44
|
*/
|
|
45
|
-
accountId:
|
|
45
|
+
accountId: number;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* @generated from protobuf message services.auth.LoginRequest
|
|
@@ -66,9 +66,9 @@ export interface LoginResponse {
|
|
|
66
66
|
*/
|
|
67
67
|
expires?: Timestamp;
|
|
68
68
|
/**
|
|
69
|
-
* @generated from protobuf field: uint64 account_id = 2
|
|
69
|
+
* @generated from protobuf field: uint64 account_id = 2;
|
|
70
70
|
*/
|
|
71
|
-
accountId:
|
|
71
|
+
accountId: number;
|
|
72
72
|
/**
|
|
73
73
|
* @generated from protobuf field: optional services.auth.ChooseCharacterResponse char = 3;
|
|
74
74
|
*/
|
|
@@ -331,12 +331,12 @@ export const CreateAccountRequest = new CreateAccountRequest$Type();
|
|
|
331
331
|
class CreateAccountResponse$Type extends MessageType<CreateAccountResponse> {
|
|
332
332
|
constructor() {
|
|
333
333
|
super("services.auth.CreateAccountResponse", [
|
|
334
|
-
{ no: 1, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
334
|
+
{ no: 1, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
335
335
|
]);
|
|
336
336
|
}
|
|
337
337
|
create(value?: PartialMessage<CreateAccountResponse>): CreateAccountResponse {
|
|
338
338
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
339
|
-
message.accountId =
|
|
339
|
+
message.accountId = 0;
|
|
340
340
|
if (value !== undefined)
|
|
341
341
|
reflectionMergePartial<CreateAccountResponse>(this, message, value);
|
|
342
342
|
return message;
|
|
@@ -346,8 +346,8 @@ class CreateAccountResponse$Type extends MessageType<CreateAccountResponse> {
|
|
|
346
346
|
while (reader.pos < end) {
|
|
347
347
|
let [fieldNo, wireType] = reader.tag();
|
|
348
348
|
switch (fieldNo) {
|
|
349
|
-
case /* uint64 account_id
|
|
350
|
-
message.accountId = reader.uint64().
|
|
349
|
+
case /* uint64 account_id */ 1:
|
|
350
|
+
message.accountId = reader.uint64().toNumber();
|
|
351
351
|
break;
|
|
352
352
|
default:
|
|
353
353
|
let u = options.readUnknownField;
|
|
@@ -361,8 +361,8 @@ class CreateAccountResponse$Type extends MessageType<CreateAccountResponse> {
|
|
|
361
361
|
return message;
|
|
362
362
|
}
|
|
363
363
|
internalBinaryWrite(message: CreateAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
364
|
-
/* uint64 account_id = 1
|
|
365
|
-
if (message.accountId !==
|
|
364
|
+
/* uint64 account_id = 1; */
|
|
365
|
+
if (message.accountId !== 0)
|
|
366
366
|
writer.tag(1, WireType.Varint).uint64(message.accountId);
|
|
367
367
|
let u = options.writeUnknownFields;
|
|
368
368
|
if (u !== false)
|
|
@@ -434,13 +434,13 @@ class LoginResponse$Type extends MessageType<LoginResponse> {
|
|
|
434
434
|
constructor() {
|
|
435
435
|
super("services.auth.LoginResponse", [
|
|
436
436
|
{ no: 1, name: "expires", kind: "message", T: () => Timestamp },
|
|
437
|
-
{ no: 2, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
437
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
438
438
|
{ no: 3, name: "char", kind: "message", T: () => ChooseCharacterResponse }
|
|
439
439
|
]);
|
|
440
440
|
}
|
|
441
441
|
create(value?: PartialMessage<LoginResponse>): LoginResponse {
|
|
442
442
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
443
|
-
message.accountId =
|
|
443
|
+
message.accountId = 0;
|
|
444
444
|
if (value !== undefined)
|
|
445
445
|
reflectionMergePartial<LoginResponse>(this, message, value);
|
|
446
446
|
return message;
|
|
@@ -453,8 +453,8 @@ class LoginResponse$Type extends MessageType<LoginResponse> {
|
|
|
453
453
|
case /* resources.timestamp.Timestamp expires */ 1:
|
|
454
454
|
message.expires = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expires);
|
|
455
455
|
break;
|
|
456
|
-
case /* uint64 account_id
|
|
457
|
-
message.accountId = reader.uint64().
|
|
456
|
+
case /* uint64 account_id */ 2:
|
|
457
|
+
message.accountId = reader.uint64().toNumber();
|
|
458
458
|
break;
|
|
459
459
|
case /* optional services.auth.ChooseCharacterResponse char */ 3:
|
|
460
460
|
message.char = ChooseCharacterResponse.internalBinaryRead(reader, reader.uint32(), options, message.char);
|
|
@@ -474,8 +474,8 @@ class LoginResponse$Type extends MessageType<LoginResponse> {
|
|
|
474
474
|
/* resources.timestamp.Timestamp expires = 1; */
|
|
475
475
|
if (message.expires)
|
|
476
476
|
Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
477
|
-
/* uint64 account_id = 2
|
|
478
|
-
if (message.accountId !==
|
|
477
|
+
/* uint64 account_id = 2; */
|
|
478
|
+
if (message.accountId !== 0)
|
|
479
479
|
writer.tag(2, WireType.Varint).uint64(message.accountId);
|
|
480
480
|
/* optional services.auth.ChooseCharacterResponse char = 3; */
|
|
481
481
|
if (message.char)
|
|
@@ -60,9 +60,9 @@ export interface ListCalendarsResponse {
|
|
|
60
60
|
*/
|
|
61
61
|
export interface GetCalendarRequest {
|
|
62
62
|
/**
|
|
63
|
-
* @generated from protobuf field: uint64 calendar_id = 1
|
|
63
|
+
* @generated from protobuf field: uint64 calendar_id = 1;
|
|
64
64
|
*/
|
|
65
|
-
calendarId:
|
|
65
|
+
calendarId: number;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* @generated from protobuf message services.calendar.GetCalendarResponse
|
|
@@ -96,9 +96,9 @@ export interface CreateOrUpdateCalendarResponse {
|
|
|
96
96
|
*/
|
|
97
97
|
export interface DeleteCalendarRequest {
|
|
98
98
|
/**
|
|
99
|
-
* @generated from protobuf field: uint64 calendar_id = 1
|
|
99
|
+
* @generated from protobuf field: uint64 calendar_id = 1;
|
|
100
100
|
*/
|
|
101
|
-
calendarId:
|
|
101
|
+
calendarId: number;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* @generated from protobuf message services.calendar.DeleteCalendarResponse
|
|
@@ -120,9 +120,9 @@ export interface ListCalendarEntriesRequest {
|
|
|
120
120
|
*/
|
|
121
121
|
month: number;
|
|
122
122
|
/**
|
|
123
|
-
* @generated from protobuf field: repeated uint64 calendar_ids = 3
|
|
123
|
+
* @generated from protobuf field: repeated uint64 calendar_ids = 3;
|
|
124
124
|
*/
|
|
125
|
-
calendarIds:
|
|
125
|
+
calendarIds: number[];
|
|
126
126
|
/**
|
|
127
127
|
* @generated from protobuf field: optional bool show_hidden = 4;
|
|
128
128
|
*/
|
|
@@ -164,9 +164,9 @@ export interface GetUpcomingEntriesResponse {
|
|
|
164
164
|
*/
|
|
165
165
|
export interface GetCalendarEntryRequest {
|
|
166
166
|
/**
|
|
167
|
-
* @generated from protobuf field: uint64 entry_id = 1
|
|
167
|
+
* @generated from protobuf field: uint64 entry_id = 1;
|
|
168
168
|
*/
|
|
169
|
-
entryId:
|
|
169
|
+
entryId: number;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* @generated from protobuf message services.calendar.GetCalendarEntryResponse
|
|
@@ -204,9 +204,9 @@ export interface CreateOrUpdateCalendarEntryResponse {
|
|
|
204
204
|
*/
|
|
205
205
|
export interface DeleteCalendarEntryRequest {
|
|
206
206
|
/**
|
|
207
|
-
* @generated from protobuf field: uint64 entry_id = 1
|
|
207
|
+
* @generated from protobuf field: uint64 entry_id = 1;
|
|
208
208
|
*/
|
|
209
|
-
entryId:
|
|
209
|
+
entryId: number;
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* @generated from protobuf message services.calendar.DeleteCalendarEntryResponse
|
|
@@ -218,9 +218,9 @@ export interface DeleteCalendarEntryResponse {
|
|
|
218
218
|
*/
|
|
219
219
|
export interface ShareCalendarEntryRequest {
|
|
220
220
|
/**
|
|
221
|
-
* @generated from protobuf field: uint64 entry_id = 1
|
|
221
|
+
* @generated from protobuf field: uint64 entry_id = 1;
|
|
222
222
|
*/
|
|
223
|
-
entryId:
|
|
223
|
+
entryId: number;
|
|
224
224
|
/**
|
|
225
225
|
* @generated from protobuf field: repeated int32 user_ids = 2;
|
|
226
226
|
*/
|
|
@@ -242,9 +242,9 @@ export interface ListCalendarEntryRSVPRequest {
|
|
|
242
242
|
*/
|
|
243
243
|
pagination?: PaginationRequest;
|
|
244
244
|
/**
|
|
245
|
-
* @generated from protobuf field: uint64 entry_id = 2
|
|
245
|
+
* @generated from protobuf field: uint64 entry_id = 2;
|
|
246
246
|
*/
|
|
247
|
-
entryId:
|
|
247
|
+
entryId: number;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* @generated from protobuf message services.calendar.ListCalendarEntryRSVPResponse
|
|
@@ -457,12 +457,12 @@ export const ListCalendarsResponse = new ListCalendarsResponse$Type();
|
|
|
457
457
|
class GetCalendarRequest$Type extends MessageType<GetCalendarRequest> {
|
|
458
458
|
constructor() {
|
|
459
459
|
super("services.calendar.GetCalendarRequest", [
|
|
460
|
-
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
460
|
+
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
461
461
|
]);
|
|
462
462
|
}
|
|
463
463
|
create(value?: PartialMessage<GetCalendarRequest>): GetCalendarRequest {
|
|
464
464
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
465
|
-
message.calendarId =
|
|
465
|
+
message.calendarId = 0;
|
|
466
466
|
if (value !== undefined)
|
|
467
467
|
reflectionMergePartial<GetCalendarRequest>(this, message, value);
|
|
468
468
|
return message;
|
|
@@ -472,8 +472,8 @@ class GetCalendarRequest$Type extends MessageType<GetCalendarRequest> {
|
|
|
472
472
|
while (reader.pos < end) {
|
|
473
473
|
let [fieldNo, wireType] = reader.tag();
|
|
474
474
|
switch (fieldNo) {
|
|
475
|
-
case /* uint64 calendar_id
|
|
476
|
-
message.calendarId = reader.uint64().
|
|
475
|
+
case /* uint64 calendar_id */ 1:
|
|
476
|
+
message.calendarId = reader.uint64().toNumber();
|
|
477
477
|
break;
|
|
478
478
|
default:
|
|
479
479
|
let u = options.readUnknownField;
|
|
@@ -487,8 +487,8 @@ class GetCalendarRequest$Type extends MessageType<GetCalendarRequest> {
|
|
|
487
487
|
return message;
|
|
488
488
|
}
|
|
489
489
|
internalBinaryWrite(message: GetCalendarRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
490
|
-
/* uint64 calendar_id = 1
|
|
491
|
-
if (message.calendarId !==
|
|
490
|
+
/* uint64 calendar_id = 1; */
|
|
491
|
+
if (message.calendarId !== 0)
|
|
492
492
|
writer.tag(1, WireType.Varint).uint64(message.calendarId);
|
|
493
493
|
let u = options.writeUnknownFields;
|
|
494
494
|
if (u !== false)
|
|
@@ -642,12 +642,12 @@ export const CreateOrUpdateCalendarResponse = new CreateOrUpdateCalendarResponse
|
|
|
642
642
|
class DeleteCalendarRequest$Type extends MessageType<DeleteCalendarRequest> {
|
|
643
643
|
constructor() {
|
|
644
644
|
super("services.calendar.DeleteCalendarRequest", [
|
|
645
|
-
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
645
|
+
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
646
646
|
]);
|
|
647
647
|
}
|
|
648
648
|
create(value?: PartialMessage<DeleteCalendarRequest>): DeleteCalendarRequest {
|
|
649
649
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
650
|
-
message.calendarId =
|
|
650
|
+
message.calendarId = 0;
|
|
651
651
|
if (value !== undefined)
|
|
652
652
|
reflectionMergePartial<DeleteCalendarRequest>(this, message, value);
|
|
653
653
|
return message;
|
|
@@ -657,8 +657,8 @@ class DeleteCalendarRequest$Type extends MessageType<DeleteCalendarRequest> {
|
|
|
657
657
|
while (reader.pos < end) {
|
|
658
658
|
let [fieldNo, wireType] = reader.tag();
|
|
659
659
|
switch (fieldNo) {
|
|
660
|
-
case /* uint64 calendar_id
|
|
661
|
-
message.calendarId = reader.uint64().
|
|
660
|
+
case /* uint64 calendar_id */ 1:
|
|
661
|
+
message.calendarId = reader.uint64().toNumber();
|
|
662
662
|
break;
|
|
663
663
|
default:
|
|
664
664
|
let u = options.readUnknownField;
|
|
@@ -672,8 +672,8 @@ class DeleteCalendarRequest$Type extends MessageType<DeleteCalendarRequest> {
|
|
|
672
672
|
return message;
|
|
673
673
|
}
|
|
674
674
|
internalBinaryWrite(message: DeleteCalendarRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
675
|
-
/* uint64 calendar_id = 1
|
|
676
|
-
if (message.calendarId !==
|
|
675
|
+
/* uint64 calendar_id = 1; */
|
|
676
|
+
if (message.calendarId !== 0)
|
|
677
677
|
writer.tag(1, WireType.Varint).uint64(message.calendarId);
|
|
678
678
|
let u = options.writeUnknownFields;
|
|
679
679
|
if (u !== false)
|
|
@@ -716,7 +716,7 @@ class ListCalendarEntriesRequest$Type extends MessageType<ListCalendarEntriesReq
|
|
|
716
716
|
super("services.calendar.ListCalendarEntriesRequest", [
|
|
717
717
|
{ no: 1, name: "year", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 2023 } } } },
|
|
718
718
|
{ no: 2, name: "month", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 12, gte: 1 } } } },
|
|
719
|
-
{ no: 3, name: "calendar_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/ },
|
|
719
|
+
{ no: 3, name: "calendar_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
720
720
|
{ no: 4, name: "show_hidden", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
721
721
|
{ no: 5, name: "after", kind: "message", T: () => Timestamp }
|
|
722
722
|
]);
|
|
@@ -741,12 +741,12 @@ class ListCalendarEntriesRequest$Type extends MessageType<ListCalendarEntriesReq
|
|
|
741
741
|
case /* int32 month */ 2:
|
|
742
742
|
message.month = reader.int32();
|
|
743
743
|
break;
|
|
744
|
-
case /* repeated uint64 calendar_ids
|
|
744
|
+
case /* repeated uint64 calendar_ids */ 3:
|
|
745
745
|
if (wireType === WireType.LengthDelimited)
|
|
746
746
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
747
|
-
message.calendarIds.push(reader.uint64().
|
|
747
|
+
message.calendarIds.push(reader.uint64().toNumber());
|
|
748
748
|
else
|
|
749
|
-
message.calendarIds.push(reader.uint64().
|
|
749
|
+
message.calendarIds.push(reader.uint64().toNumber());
|
|
750
750
|
break;
|
|
751
751
|
case /* optional bool show_hidden */ 4:
|
|
752
752
|
message.showHidden = reader.bool();
|
|
@@ -772,7 +772,7 @@ class ListCalendarEntriesRequest$Type extends MessageType<ListCalendarEntriesReq
|
|
|
772
772
|
/* int32 month = 2; */
|
|
773
773
|
if (message.month !== 0)
|
|
774
774
|
writer.tag(2, WireType.Varint).int32(message.month);
|
|
775
|
-
/* repeated uint64 calendar_ids = 3
|
|
775
|
+
/* repeated uint64 calendar_ids = 3; */
|
|
776
776
|
if (message.calendarIds.length) {
|
|
777
777
|
writer.tag(3, WireType.LengthDelimited).fork();
|
|
778
778
|
for (let i = 0; i < message.calendarIds.length; i++)
|
|
@@ -940,12 +940,12 @@ export const GetUpcomingEntriesResponse = new GetUpcomingEntriesResponse$Type();
|
|
|
940
940
|
class GetCalendarEntryRequest$Type extends MessageType<GetCalendarEntryRequest> {
|
|
941
941
|
constructor() {
|
|
942
942
|
super("services.calendar.GetCalendarEntryRequest", [
|
|
943
|
-
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
943
|
+
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
944
944
|
]);
|
|
945
945
|
}
|
|
946
946
|
create(value?: PartialMessage<GetCalendarEntryRequest>): GetCalendarEntryRequest {
|
|
947
947
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
948
|
-
message.entryId =
|
|
948
|
+
message.entryId = 0;
|
|
949
949
|
if (value !== undefined)
|
|
950
950
|
reflectionMergePartial<GetCalendarEntryRequest>(this, message, value);
|
|
951
951
|
return message;
|
|
@@ -955,8 +955,8 @@ class GetCalendarEntryRequest$Type extends MessageType<GetCalendarEntryRequest>
|
|
|
955
955
|
while (reader.pos < end) {
|
|
956
956
|
let [fieldNo, wireType] = reader.tag();
|
|
957
957
|
switch (fieldNo) {
|
|
958
|
-
case /* uint64 entry_id
|
|
959
|
-
message.entryId = reader.uint64().
|
|
958
|
+
case /* uint64 entry_id */ 1:
|
|
959
|
+
message.entryId = reader.uint64().toNumber();
|
|
960
960
|
break;
|
|
961
961
|
default:
|
|
962
962
|
let u = options.readUnknownField;
|
|
@@ -970,8 +970,8 @@ class GetCalendarEntryRequest$Type extends MessageType<GetCalendarEntryRequest>
|
|
|
970
970
|
return message;
|
|
971
971
|
}
|
|
972
972
|
internalBinaryWrite(message: GetCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
973
|
-
/* uint64 entry_id = 1
|
|
974
|
-
if (message.entryId !==
|
|
973
|
+
/* uint64 entry_id = 1; */
|
|
974
|
+
if (message.entryId !== 0)
|
|
975
975
|
writer.tag(1, WireType.Varint).uint64(message.entryId);
|
|
976
976
|
let u = options.writeUnknownFields;
|
|
977
977
|
if (u !== false)
|
|
@@ -1141,12 +1141,12 @@ export const CreateOrUpdateCalendarEntryResponse = new CreateOrUpdateCalendarEnt
|
|
|
1141
1141
|
class DeleteCalendarEntryRequest$Type extends MessageType<DeleteCalendarEntryRequest> {
|
|
1142
1142
|
constructor() {
|
|
1143
1143
|
super("services.calendar.DeleteCalendarEntryRequest", [
|
|
1144
|
-
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
1144
|
+
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1145
1145
|
]);
|
|
1146
1146
|
}
|
|
1147
1147
|
create(value?: PartialMessage<DeleteCalendarEntryRequest>): DeleteCalendarEntryRequest {
|
|
1148
1148
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1149
|
-
message.entryId =
|
|
1149
|
+
message.entryId = 0;
|
|
1150
1150
|
if (value !== undefined)
|
|
1151
1151
|
reflectionMergePartial<DeleteCalendarEntryRequest>(this, message, value);
|
|
1152
1152
|
return message;
|
|
@@ -1156,8 +1156,8 @@ class DeleteCalendarEntryRequest$Type extends MessageType<DeleteCalendarEntryReq
|
|
|
1156
1156
|
while (reader.pos < end) {
|
|
1157
1157
|
let [fieldNo, wireType] = reader.tag();
|
|
1158
1158
|
switch (fieldNo) {
|
|
1159
|
-
case /* uint64 entry_id
|
|
1160
|
-
message.entryId = reader.uint64().
|
|
1159
|
+
case /* uint64 entry_id */ 1:
|
|
1160
|
+
message.entryId = reader.uint64().toNumber();
|
|
1161
1161
|
break;
|
|
1162
1162
|
default:
|
|
1163
1163
|
let u = options.readUnknownField;
|
|
@@ -1171,8 +1171,8 @@ class DeleteCalendarEntryRequest$Type extends MessageType<DeleteCalendarEntryReq
|
|
|
1171
1171
|
return message;
|
|
1172
1172
|
}
|
|
1173
1173
|
internalBinaryWrite(message: DeleteCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1174
|
-
/* uint64 entry_id = 1
|
|
1175
|
-
if (message.entryId !==
|
|
1174
|
+
/* uint64 entry_id = 1; */
|
|
1175
|
+
if (message.entryId !== 0)
|
|
1176
1176
|
writer.tag(1, WireType.Varint).uint64(message.entryId);
|
|
1177
1177
|
let u = options.writeUnknownFields;
|
|
1178
1178
|
if (u !== false)
|
|
@@ -1213,13 +1213,13 @@ export const DeleteCalendarEntryResponse = new DeleteCalendarEntryResponse$Type(
|
|
|
1213
1213
|
class ShareCalendarEntryRequest$Type extends MessageType<ShareCalendarEntryRequest> {
|
|
1214
1214
|
constructor() {
|
|
1215
1215
|
super("services.calendar.ShareCalendarEntryRequest", [
|
|
1216
|
-
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1216
|
+
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1217
1217
|
{ no: 2, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
|
|
1218
1218
|
]);
|
|
1219
1219
|
}
|
|
1220
1220
|
create(value?: PartialMessage<ShareCalendarEntryRequest>): ShareCalendarEntryRequest {
|
|
1221
1221
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1222
|
-
message.entryId =
|
|
1222
|
+
message.entryId = 0;
|
|
1223
1223
|
message.userIds = [];
|
|
1224
1224
|
if (value !== undefined)
|
|
1225
1225
|
reflectionMergePartial<ShareCalendarEntryRequest>(this, message, value);
|
|
@@ -1230,8 +1230,8 @@ class ShareCalendarEntryRequest$Type extends MessageType<ShareCalendarEntryReque
|
|
|
1230
1230
|
while (reader.pos < end) {
|
|
1231
1231
|
let [fieldNo, wireType] = reader.tag();
|
|
1232
1232
|
switch (fieldNo) {
|
|
1233
|
-
case /* uint64 entry_id
|
|
1234
|
-
message.entryId = reader.uint64().
|
|
1233
|
+
case /* uint64 entry_id */ 1:
|
|
1234
|
+
message.entryId = reader.uint64().toNumber();
|
|
1235
1235
|
break;
|
|
1236
1236
|
case /* repeated int32 user_ids */ 2:
|
|
1237
1237
|
if (wireType === WireType.LengthDelimited)
|
|
@@ -1252,8 +1252,8 @@ class ShareCalendarEntryRequest$Type extends MessageType<ShareCalendarEntryReque
|
|
|
1252
1252
|
return message;
|
|
1253
1253
|
}
|
|
1254
1254
|
internalBinaryWrite(message: ShareCalendarEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1255
|
-
/* uint64 entry_id = 1
|
|
1256
|
-
if (message.entryId !==
|
|
1255
|
+
/* uint64 entry_id = 1; */
|
|
1256
|
+
if (message.entryId !== 0)
|
|
1257
1257
|
writer.tag(1, WireType.Varint).uint64(message.entryId);
|
|
1258
1258
|
/* repeated int32 user_ids = 2; */
|
|
1259
1259
|
if (message.userIds.length) {
|
|
@@ -1302,12 +1302,12 @@ class ListCalendarEntryRSVPRequest$Type extends MessageType<ListCalendarEntryRSV
|
|
|
1302
1302
|
constructor() {
|
|
1303
1303
|
super("services.calendar.ListCalendarEntryRSVPRequest", [
|
|
1304
1304
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
1305
|
-
{ no: 2, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
1305
|
+
{ no: 2, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1306
1306
|
]);
|
|
1307
1307
|
}
|
|
1308
1308
|
create(value?: PartialMessage<ListCalendarEntryRSVPRequest>): ListCalendarEntryRSVPRequest {
|
|
1309
1309
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1310
|
-
message.entryId =
|
|
1310
|
+
message.entryId = 0;
|
|
1311
1311
|
if (value !== undefined)
|
|
1312
1312
|
reflectionMergePartial<ListCalendarEntryRSVPRequest>(this, message, value);
|
|
1313
1313
|
return message;
|
|
@@ -1320,8 +1320,8 @@ class ListCalendarEntryRSVPRequest$Type extends MessageType<ListCalendarEntryRSV
|
|
|
1320
1320
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
1321
1321
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
1322
1322
|
break;
|
|
1323
|
-
case /* uint64 entry_id
|
|
1324
|
-
message.entryId = reader.uint64().
|
|
1323
|
+
case /* uint64 entry_id */ 2:
|
|
1324
|
+
message.entryId = reader.uint64().toNumber();
|
|
1325
1325
|
break;
|
|
1326
1326
|
default:
|
|
1327
1327
|
let u = options.readUnknownField;
|
|
@@ -1338,8 +1338,8 @@ class ListCalendarEntryRSVPRequest$Type extends MessageType<ListCalendarEntryRSV
|
|
|
1338
1338
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
1339
1339
|
if (message.pagination)
|
|
1340
1340
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1341
|
-
/* uint64 entry_id = 2
|
|
1342
|
-
if (message.entryId !==
|
|
1341
|
+
/* uint64 entry_id = 2; */
|
|
1342
|
+
if (message.entryId !== 0)
|
|
1343
1343
|
writer.tag(2, WireType.Varint).uint64(message.entryId);
|
|
1344
1344
|
let u = options.writeUnknownFields;
|
|
1345
1345
|
if (u !== false)
|