@fivenet-app/gen 2026.5.1 → 2026.7.2

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.
Files changed (80) hide show
  1. package/clients.ts +6 -0
  2. package/codegen/perms/perms.ts +14 -2
  3. package/codegen/sanitizer/sanitizer.ts +6 -0
  4. package/google/protobuf/descriptor.ts +11 -3
  5. package/google/protobuf/timestamp.ts +7 -6
  6. package/package.json +1 -1
  7. package/perms.ts +352 -8
  8. package/resources/access/access.ts +481 -0
  9. package/resources/calendar/access/access.ts +0 -330
  10. package/resources/calendar/calendar.ts +307 -25
  11. package/resources/calendar/entries/entries.ts +204 -11
  12. package/resources/centrum/units/access/access.ts +0 -373
  13. package/resources/centrum/units/units.ts +20 -8
  14. package/resources/citizens/labels/access.ts +0 -191
  15. package/resources/citizens/labels/labels.ts +20 -8
  16. package/resources/clientconfig/clientconfig.ts +11 -0
  17. package/resources/common/content/diff_activity.ts +1 -1
  18. package/resources/cron/cron.ts +1 -1
  19. package/resources/documents/access/access.ts +0 -329
  20. package/resources/documents/activity/activity.ts +49 -45
  21. package/resources/documents/documents.ts +1 -1
  22. package/resources/documents/requests/requests.ts +1 -1
  23. package/resources/documents/stamps/stamp.ts +40 -210
  24. package/resources/documents/templates/templates.ts +158 -318
  25. package/resources/jobs/colleagues/activity/activity.ts +1 -1
  26. package/resources/jobs/conduct/conduct.ts +2 -2
  27. package/resources/jobs/labels/labels.ts +9 -9
  28. package/resources/laws/laws.ts +24 -0
  29. package/resources/livemap/markers/marker_marker.ts +311 -4
  30. package/resources/mailer/access/access.ts +0 -457
  31. package/resources/mailer/emails/email.ts +4 -4
  32. package/resources/notifications/events/events.ts +37 -2
  33. package/resources/qualifications/access/access.ts +0 -248
  34. package/resources/qualifications/qualifications.ts +9 -9
  35. package/resources/settings/config.ts +64 -5
  36. package/resources/settings/data.ts +1 -1
  37. package/resources/stats/stats.ts +32 -20
  38. package/resources/sync/data/data.ts +26 -1
  39. package/resources/timestamp/timestamp.ts +1 -1
  40. package/resources/userinfo/userinfo.ts +202 -51
  41. package/resources/users/activity/activity.ts +1 -1
  42. package/resources/vehicles/activity/activity.ts +146 -10
  43. package/resources/wiki/access/access.ts +0 -330
  44. package/resources/wiki/activity/activity.ts +45 -45
  45. package/resources/wiki/page.ts +9 -9
  46. package/services/auth/auth.client.ts +15 -2
  47. package/services/auth/auth.ts +135 -0
  48. package/services/calendar/calendar.ts +1 -1
  49. package/services/calendar/entries.ts +12 -1
  50. package/services/centrum/dispatches.ts +27 -7
  51. package/services/centrum/units.client.ts +15 -2
  52. package/services/centrum/units.ts +231 -123
  53. package/services/citizens/citizens.ts +1 -1
  54. package/services/citizens/labels.client.ts +7 -20
  55. package/services/citizens/labels.ts +35 -183
  56. package/services/documents/approval.ts +15 -4
  57. package/services/documents/collab.ts +1 -1
  58. package/services/documents/documents.ts +38 -38
  59. package/services/documents/stats.ts +14 -2
  60. package/services/filestore/filestore.ts +4 -4
  61. package/services/jobs/colleagues.ts +3 -3
  62. package/services/jobs/conduct.ts +15 -4
  63. package/services/jobs/groups.client.ts +22 -0
  64. package/services/jobs/groups.ts +9 -0
  65. package/services/jobs/timeclock.ts +2 -2
  66. package/services/mailer/thread.ts +2 -2
  67. package/services/qualifications/qualifications.ts +52 -34
  68. package/services/settings/accounts.ts +5 -5
  69. package/services/settings/config.ts +2 -2
  70. package/services/settings/cron.ts +2 -2
  71. package/services/settings/laws.client.ts +28 -2
  72. package/services/settings/laws.ts +229 -1
  73. package/services/settings/system.ts +6 -6
  74. package/services/sync/sync.client.ts +129 -20
  75. package/services/sync/sync.ts +262 -19
  76. package/services/vehicles/vehicles.client.ts +13 -0
  77. package/services/vehicles/vehicles.ts +181 -13
  78. package/services/wiki/wiki.client.ts +15 -2
  79. package/services/wiki/wiki.ts +122 -0
  80. package/svcs.ts +21 -2
@@ -11,8 +11,8 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { PageUserAccess } from "../access/access";
15
- import { PageJobAccess } from "../access/access";
14
+ import { UserAccess } from "../../access/access";
15
+ import { JobAccess } from "../../access/access";
16
16
  import { ContentDiff } from "../../common/content/diff_activity";
17
17
  import { UserShort } from "../../users/short/user";
18
18
  import { Timestamp } from "../../timestamp/timestamp";
@@ -148,34 +148,34 @@ export interface PageAccessUpdated {
148
148
  */
149
149
  export interface PageAccessJobsDiff {
150
150
  /**
151
- * @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_create = 1
151
+ * @generated from protobuf field: repeated resources.access.JobAccess to_create = 1
152
152
  */
153
- toCreate: PageJobAccess[];
153
+ toCreate: JobAccess[];
154
154
  /**
155
- * @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_update = 2
155
+ * @generated from protobuf field: repeated resources.access.JobAccess to_update = 2
156
156
  */
157
- toUpdate: PageJobAccess[];
157
+ toUpdate: JobAccess[];
158
158
  /**
159
- * @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_delete = 3
159
+ * @generated from protobuf field: repeated resources.access.JobAccess to_delete = 3
160
160
  */
161
- toDelete: PageJobAccess[];
161
+ toDelete: JobAccess[];
162
162
  }
163
163
  /**
164
164
  * @generated from protobuf message resources.wiki.activity.PageAccessUsersDiff
165
165
  */
166
166
  export interface PageAccessUsersDiff {
167
167
  /**
168
- * @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_create = 1
168
+ * @generated from protobuf field: repeated resources.access.UserAccess to_create = 1
169
169
  */
170
- toCreate: PageUserAccess[];
170
+ toCreate: UserAccess[];
171
171
  /**
172
- * @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_update = 2
172
+ * @generated from protobuf field: repeated resources.access.UserAccess to_update = 2
173
173
  */
174
- toUpdate: PageUserAccess[];
174
+ toUpdate: UserAccess[];
175
175
  /**
176
- * @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_delete = 3
176
+ * @generated from protobuf field: repeated resources.access.UserAccess to_delete = 3
177
177
  */
178
- toDelete: PageUserAccess[];
178
+ toDelete: UserAccess[];
179
179
  }
180
180
  /**
181
181
  * @generated from protobuf enum resources.wiki.activity.PageActivityType
@@ -219,7 +219,7 @@ class PageActivity$Type extends MessageType<PageActivity> {
219
219
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
220
220
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
221
221
  { no: 3, name: "page_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
222
- { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.activity.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
222
+ { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.activity.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
223
223
  { no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
224
224
  { no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
225
225
  { no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
@@ -585,9 +585,9 @@ export const PageAccessUpdated = new PageAccessUpdated$Type();
585
585
  class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
586
586
  constructor() {
587
587
  super("resources.wiki.activity.PageAccessJobsDiff", [
588
- { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
589
- { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
590
- { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
588
+ { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
589
+ { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
590
+ { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
591
591
  ]);
592
592
  }
593
593
  create(value?: PartialMessage<PageAccessJobsDiff>): PageAccessJobsDiff {
@@ -604,14 +604,14 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
604
604
  while (reader.pos < end) {
605
605
  let [fieldNo, wireType] = reader.tag();
606
606
  switch (fieldNo) {
607
- case /* repeated resources.wiki.access.PageJobAccess to_create */ 1:
608
- message.toCreate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
607
+ case /* repeated resources.access.JobAccess to_create */ 1:
608
+ message.toCreate.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
609
609
  break;
610
- case /* repeated resources.wiki.access.PageJobAccess to_update */ 2:
611
- message.toUpdate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
610
+ case /* repeated resources.access.JobAccess to_update */ 2:
611
+ message.toUpdate.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
612
612
  break;
613
- case /* repeated resources.wiki.access.PageJobAccess to_delete */ 3:
614
- message.toDelete.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
613
+ case /* repeated resources.access.JobAccess to_delete */ 3:
614
+ message.toDelete.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
615
615
  break;
616
616
  default:
617
617
  let u = options.readUnknownField;
@@ -625,15 +625,15 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
625
625
  return message;
626
626
  }
627
627
  internalBinaryWrite(message: PageAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
628
- /* repeated resources.wiki.access.PageJobAccess to_create = 1; */
628
+ /* repeated resources.access.JobAccess to_create = 1; */
629
629
  for (let i = 0; i < message.toCreate.length; i++)
630
- PageJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
631
- /* repeated resources.wiki.access.PageJobAccess to_update = 2; */
630
+ JobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
631
+ /* repeated resources.access.JobAccess to_update = 2; */
632
632
  for (let i = 0; i < message.toUpdate.length; i++)
633
- PageJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
634
- /* repeated resources.wiki.access.PageJobAccess to_delete = 3; */
633
+ JobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
634
+ /* repeated resources.access.JobAccess to_delete = 3; */
635
635
  for (let i = 0; i < message.toDelete.length; i++)
636
- PageJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
636
+ JobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
637
637
  let u = options.writeUnknownFields;
638
638
  if (u !== false)
639
639
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -648,9 +648,9 @@ export const PageAccessJobsDiff = new PageAccessJobsDiff$Type();
648
648
  class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
649
649
  constructor() {
650
650
  super("resources.wiki.activity.PageAccessUsersDiff", [
651
- { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
652
- { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
653
- { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
651
+ { no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
652
+ { no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
653
+ { no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
654
654
  ]);
655
655
  }
656
656
  create(value?: PartialMessage<PageAccessUsersDiff>): PageAccessUsersDiff {
@@ -667,14 +667,14 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
667
667
  while (reader.pos < end) {
668
668
  let [fieldNo, wireType] = reader.tag();
669
669
  switch (fieldNo) {
670
- case /* repeated resources.wiki.access.PageUserAccess to_create */ 1:
671
- message.toCreate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
670
+ case /* repeated resources.access.UserAccess to_create */ 1:
671
+ message.toCreate.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
672
672
  break;
673
- case /* repeated resources.wiki.access.PageUserAccess to_update */ 2:
674
- message.toUpdate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
673
+ case /* repeated resources.access.UserAccess to_update */ 2:
674
+ message.toUpdate.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
675
675
  break;
676
- case /* repeated resources.wiki.access.PageUserAccess to_delete */ 3:
677
- message.toDelete.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
676
+ case /* repeated resources.access.UserAccess to_delete */ 3:
677
+ message.toDelete.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
678
678
  break;
679
679
  default:
680
680
  let u = options.readUnknownField;
@@ -688,15 +688,15 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
688
688
  return message;
689
689
  }
690
690
  internalBinaryWrite(message: PageAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
691
- /* repeated resources.wiki.access.PageUserAccess to_create = 1; */
691
+ /* repeated resources.access.UserAccess to_create = 1; */
692
692
  for (let i = 0; i < message.toCreate.length; i++)
693
- PageUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
694
- /* repeated resources.wiki.access.PageUserAccess to_update = 2; */
693
+ UserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
694
+ /* repeated resources.access.UserAccess to_update = 2; */
695
695
  for (let i = 0; i < message.toUpdate.length; i++)
696
- PageUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
697
- /* repeated resources.wiki.access.PageUserAccess to_delete = 3; */
696
+ UserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
697
+ /* repeated resources.access.UserAccess to_delete = 3; */
698
698
  for (let i = 0; i < message.toDelete.length; i++)
699
- PageUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
699
+ UserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
700
700
  let u = options.writeUnknownFields;
701
701
  if (u !== false)
702
702
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -15,7 +15,7 @@ import { ContentType } from "../common/content/content";
15
15
  import { UserShort } from "../users/short/user";
16
16
  import { Timestamp } from "../timestamp/timestamp";
17
17
  import { File } from "../file/file";
18
- import { PageAccess } from "./access/access";
18
+ import { Access } from "../access/access";
19
19
  import { Content } from "../common/content/content";
20
20
  /**
21
21
  * @generated from protobuf message resources.wiki.Page
@@ -46,9 +46,9 @@ export interface Page {
46
46
  */
47
47
  content?: Content;
48
48
  /**
49
- * @generated from protobuf field: resources.wiki.access.PageAccess access = 7
49
+ * @generated from protobuf field: resources.access.Access access = 7
50
50
  */
51
- access?: PageAccess;
51
+ access?: Access;
52
52
  /**
53
53
  * @generated from protobuf field: repeated resources.file.File files = 8
54
54
  */
@@ -195,8 +195,8 @@ class Page$Type extends MessageType<Page> {
195
195
  { no: 4, name: "parent_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
196
196
  { no: 5, name: "meta", kind: "message", T: () => PageMeta, options: { "buf.validate.field": { required: true } } },
197
197
  { no: 6, name: "content", kind: "message", T: () => Content },
198
- { no: 7, name: "access", kind: "message", T: () => PageAccess, options: { "buf.validate.field": { required: true } } },
199
- { no: 8, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "tagger.tags": "alias:\"files\"" } }
198
+ { no: 7, name: "access", kind: "message", T: () => Access, options: { "buf.validate.field": { required: true } } },
199
+ { no: 8, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "buf.validate.field": { repeated: { maxItems: "5" } }, "tagger.tags": "alias:\"files\"" } }
200
200
  ]);
201
201
  }
202
202
  create(value?: PartialMessage<Page>): Page {
@@ -231,8 +231,8 @@ class Page$Type extends MessageType<Page> {
231
231
  case /* resources.common.content.Content content */ 6:
232
232
  message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
233
233
  break;
234
- case /* resources.wiki.access.PageAccess access */ 7:
235
- message.access = PageAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
234
+ case /* resources.access.Access access */ 7:
235
+ message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
236
236
  break;
237
237
  case /* repeated resources.file.File files */ 8:
238
238
  message.files.push(File.internalBinaryRead(reader, reader.uint32(), options));
@@ -267,9 +267,9 @@ class Page$Type extends MessageType<Page> {
267
267
  /* resources.common.content.Content content = 6; */
268
268
  if (message.content)
269
269
  Content.internalBinaryWrite(message.content, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
270
- /* resources.wiki.access.PageAccess access = 7; */
270
+ /* resources.access.Access access = 7; */
271
271
  if (message.access)
272
- PageAccess.internalBinaryWrite(message.access, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
272
+ Access.internalBinaryWrite(message.access, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
273
273
  /* repeated resources.file.File files = 8; */
274
274
  for (let i = 0; i < message.files.length; i++)
275
275
  File.internalBinaryWrite(message.files[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
@@ -9,6 +9,8 @@ import type { SetSuperuserModeResponse } from "./auth";
9
9
  import type { SetSuperuserModeRequest } from "./auth";
10
10
  import type { DeleteSocialLoginResponse } from "./auth";
11
11
  import type { DeleteSocialLoginRequest } from "./auth";
12
+ import type { RefreshAccountSessionResponse } from "./auth";
13
+ import type { RefreshAccountSessionRequest } from "./auth";
12
14
  import type { GetAccountInfoResponse } from "./auth";
13
15
  import type { GetAccountInfoRequest } from "./auth";
14
16
  import type { ImpersonateJobResponse } from "./auth";
@@ -79,6 +81,10 @@ export interface IAuthServiceClient {
79
81
  * @generated from protobuf rpc: GetAccountInfo
80
82
  */
81
83
  getAccountInfo(input: GetAccountInfoRequest, options?: RpcOptions): UnaryCall<GetAccountInfoRequest, GetAccountInfoResponse>;
84
+ /**
85
+ * @generated from protobuf rpc: RefreshAccountSession
86
+ */
87
+ refreshAccountSession(input: RefreshAccountSessionRequest, options?: RpcOptions): UnaryCall<RefreshAccountSessionRequest, RefreshAccountSessionResponse>;
82
88
  /**
83
89
  * @generated from protobuf rpc: DeleteSocialLogin
84
90
  */
@@ -170,18 +176,25 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
170
176
  const method = this.methods[9], opt = this._transport.mergeOptions(options);
171
177
  return stackIntercept<GetAccountInfoRequest, GetAccountInfoResponse>("unary", this._transport, method, opt, input);
172
178
  }
179
+ /**
180
+ * @generated from protobuf rpc: RefreshAccountSession
181
+ */
182
+ refreshAccountSession(input: RefreshAccountSessionRequest, options?: RpcOptions): UnaryCall<RefreshAccountSessionRequest, RefreshAccountSessionResponse> {
183
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
184
+ return stackIntercept<RefreshAccountSessionRequest, RefreshAccountSessionResponse>("unary", this._transport, method, opt, input);
185
+ }
173
186
  /**
174
187
  * @generated from protobuf rpc: DeleteSocialLogin
175
188
  */
176
189
  deleteSocialLogin(input: DeleteSocialLoginRequest, options?: RpcOptions): UnaryCall<DeleteSocialLoginRequest, DeleteSocialLoginResponse> {
177
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
190
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
178
191
  return stackIntercept<DeleteSocialLoginRequest, DeleteSocialLoginResponse>("unary", this._transport, method, opt, input);
179
192
  }
180
193
  /**
181
194
  * @generated from protobuf rpc: SetSuperuserMode
182
195
  */
183
196
  setSuperuserMode(input: SetSuperuserModeRequest, options?: RpcOptions): UnaryCall<SetSuperuserModeRequest, SetSuperuserModeResponse> {
184
- const method = this.methods[11], opt = this._transport.mergeOptions(options);
197
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
185
198
  return stackIntercept<SetSuperuserModeRequest, SetSuperuserModeResponse>("unary", this._transport, method, opt, input);
186
199
  }
187
200
  }
@@ -167,6 +167,32 @@ export interface GetAccountInfoResponse {
167
167
  */
168
168
  oauth2Connections: OAuth2Account[];
169
169
  }
170
+ /**
171
+ * @generated from protobuf message services.auth.RefreshAccountSessionRequest
172
+ */
173
+ export interface RefreshAccountSessionRequest {
174
+ }
175
+ /**
176
+ * @generated from protobuf message services.auth.RefreshAccountSessionResponse
177
+ */
178
+ export interface RefreshAccountSessionResponse {
179
+ /**
180
+ * @generated from protobuf field: resources.timestamp.Timestamp expires = 1
181
+ */
182
+ expires?: Timestamp;
183
+ /**
184
+ * @generated from protobuf field: int64 account_id = 2
185
+ */
186
+ accountId: number;
187
+ /**
188
+ * @generated from protobuf field: string username = 3
189
+ */
190
+ username: string;
191
+ /**
192
+ * @generated from protobuf field: bool can_be_config_admin = 4
193
+ */
194
+ canBeConfigAdmin: boolean;
195
+ }
170
196
  /**
171
197
  * @generated from protobuf message services.auth.GetCharactersRequest
172
198
  */
@@ -1012,6 +1038,114 @@ class GetAccountInfoResponse$Type extends MessageType<GetAccountInfoResponse> {
1012
1038
  */
1013
1039
  export const GetAccountInfoResponse = new GetAccountInfoResponse$Type();
1014
1040
  // @generated message type with reflection information, may provide speed optimized methods
1041
+ class RefreshAccountSessionRequest$Type extends MessageType<RefreshAccountSessionRequest> {
1042
+ constructor() {
1043
+ super("services.auth.RefreshAccountSessionRequest", []);
1044
+ }
1045
+ create(value?: PartialMessage<RefreshAccountSessionRequest>): RefreshAccountSessionRequest {
1046
+ const message = globalThis.Object.create((this.messagePrototype!));
1047
+ if (value !== undefined)
1048
+ reflectionMergePartial<RefreshAccountSessionRequest>(this, message, value);
1049
+ return message;
1050
+ }
1051
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshAccountSessionRequest): RefreshAccountSessionRequest {
1052
+ let message = target ?? this.create(), end = reader.pos + length;
1053
+ while (reader.pos < end) {
1054
+ let [fieldNo, wireType] = reader.tag();
1055
+ switch (fieldNo) {
1056
+ default:
1057
+ let u = options.readUnknownField;
1058
+ if (u === "throw")
1059
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1060
+ let d = reader.skip(wireType);
1061
+ if (u !== false)
1062
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1063
+ }
1064
+ }
1065
+ return message;
1066
+ }
1067
+ internalBinaryWrite(message: RefreshAccountSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1068
+ let u = options.writeUnknownFields;
1069
+ if (u !== false)
1070
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1071
+ return writer;
1072
+ }
1073
+ }
1074
+ /**
1075
+ * @generated MessageType for protobuf message services.auth.RefreshAccountSessionRequest
1076
+ */
1077
+ export const RefreshAccountSessionRequest = new RefreshAccountSessionRequest$Type();
1078
+ // @generated message type with reflection information, may provide speed optimized methods
1079
+ class RefreshAccountSessionResponse$Type extends MessageType<RefreshAccountSessionResponse> {
1080
+ constructor() {
1081
+ super("services.auth.RefreshAccountSessionResponse", [
1082
+ { no: 1, name: "expires", kind: "message", T: () => Timestamp },
1083
+ { no: 2, name: "account_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1084
+ { no: 3, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1085
+ { no: 4, name: "can_be_config_admin", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1086
+ ]);
1087
+ }
1088
+ create(value?: PartialMessage<RefreshAccountSessionResponse>): RefreshAccountSessionResponse {
1089
+ const message = globalThis.Object.create((this.messagePrototype!));
1090
+ message.accountId = 0;
1091
+ message.username = "";
1092
+ message.canBeConfigAdmin = false;
1093
+ if (value !== undefined)
1094
+ reflectionMergePartial<RefreshAccountSessionResponse>(this, message, value);
1095
+ return message;
1096
+ }
1097
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshAccountSessionResponse): RefreshAccountSessionResponse {
1098
+ let message = target ?? this.create(), end = reader.pos + length;
1099
+ while (reader.pos < end) {
1100
+ let [fieldNo, wireType] = reader.tag();
1101
+ switch (fieldNo) {
1102
+ case /* resources.timestamp.Timestamp expires */ 1:
1103
+ message.expires = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expires);
1104
+ break;
1105
+ case /* int64 account_id */ 2:
1106
+ message.accountId = reader.int64().toNumber();
1107
+ break;
1108
+ case /* string username */ 3:
1109
+ message.username = reader.string();
1110
+ break;
1111
+ case /* bool can_be_config_admin */ 4:
1112
+ message.canBeConfigAdmin = reader.bool();
1113
+ break;
1114
+ default:
1115
+ let u = options.readUnknownField;
1116
+ if (u === "throw")
1117
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1118
+ let d = reader.skip(wireType);
1119
+ if (u !== false)
1120
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1121
+ }
1122
+ }
1123
+ return message;
1124
+ }
1125
+ internalBinaryWrite(message: RefreshAccountSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1126
+ /* resources.timestamp.Timestamp expires = 1; */
1127
+ if (message.expires)
1128
+ Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1129
+ /* int64 account_id = 2; */
1130
+ if (message.accountId !== 0)
1131
+ writer.tag(2, WireType.Varint).int64(message.accountId);
1132
+ /* string username = 3; */
1133
+ if (message.username !== "")
1134
+ writer.tag(3, WireType.LengthDelimited).string(message.username);
1135
+ /* bool can_be_config_admin = 4; */
1136
+ if (message.canBeConfigAdmin !== false)
1137
+ writer.tag(4, WireType.Varint).bool(message.canBeConfigAdmin);
1138
+ let u = options.writeUnknownFields;
1139
+ if (u !== false)
1140
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1141
+ return writer;
1142
+ }
1143
+ }
1144
+ /**
1145
+ * @generated MessageType for protobuf message services.auth.RefreshAccountSessionResponse
1146
+ */
1147
+ export const RefreshAccountSessionResponse = new RefreshAccountSessionResponse$Type();
1148
+ // @generated message type with reflection information, may provide speed optimized methods
1015
1149
  class GetCharactersRequest$Type extends MessageType<GetCharactersRequest> {
1016
1150
  constructor() {
1017
1151
  super("services.auth.GetCharactersRequest", []);
@@ -1613,6 +1747,7 @@ export const AuthService = new ServiceType("services.auth.AuthService", [
1613
1747
  { name: "ChooseCharacter", options: { "codegen.perms.perms": { enabled: true } }, I: ChooseCharacterRequest, O: ChooseCharacterResponse },
1614
1748
  { name: "ImpersonateJob", options: { "codegen.perms.perms": { enabled: true, namespace: "settings", service: "SettingsService", name: "UpdateRolePerms" } }, I: ImpersonateJobRequest, O: ImpersonateJobResponse },
1615
1749
  { name: "GetAccountInfo", options: {}, I: GetAccountInfoRequest, O: GetAccountInfoResponse },
1750
+ { name: "RefreshAccountSession", options: {}, I: RefreshAccountSessionRequest, O: RefreshAccountSessionResponse },
1616
1751
  { name: "DeleteSocialLogin", options: {}, I: DeleteSocialLoginRequest, O: DeleteSocialLoginResponse },
1617
1752
  { name: "SetSuperuserMode", options: {}, I: SetSuperuserModeRequest, O: SetSuperuserModeResponse }
1618
1753
  ], { "codegen.perms.perms_svc": { icon: "i-mdi-key-outline" } });
@@ -180,7 +180,7 @@ class ListCalendarsRequest$Type extends MessageType<ListCalendarsRequest> {
180
180
  super("services.calendar.ListCalendarsRequest", [
181
181
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
182
182
  { no: 2, name: "only_public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
183
- { no: 3, name: "min_access_level", kind: "enum", opt: true, T: () => ["resources.calendar.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"] },
183
+ { no: 3, name: "min_access_level", kind: "enum", opt: true, T: () => ["resources.calendar.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
184
184
  { no: 4, name: "after", kind: "message", T: () => Timestamp },
185
185
  { no: 5, name: "calendar_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
186
186
  ]);
@@ -187,6 +187,10 @@ export interface RSVPCalendarEntryRequest {
187
187
  * @generated from protobuf field: optional bool remove = 3
188
188
  */
189
189
  remove?: boolean;
190
+ /**
191
+ * @generated from protobuf field: optional string occurrence_key = 4
192
+ */
193
+ occurrenceKey?: string;
190
194
  }
191
195
  /**
192
196
  * @generated from protobuf message services.calendar.RSVPCalendarEntryResponse
@@ -924,7 +928,8 @@ class RSVPCalendarEntryRequest$Type extends MessageType<RSVPCalendarEntryRequest
924
928
  super("services.calendar.RSVPCalendarEntryRequest", [
925
929
  { no: 1, name: "entry", kind: "message", T: () => CalendarEntryRSVP },
926
930
  { no: 2, name: "subscribe", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
927
- { no: 3, name: "remove", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
931
+ { no: 3, name: "remove", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
932
+ { no: 4, name: "occurrence_key", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } }
928
933
  ]);
929
934
  }
930
935
  create(value?: PartialMessage<RSVPCalendarEntryRequest>): RSVPCalendarEntryRequest {
@@ -948,6 +953,9 @@ class RSVPCalendarEntryRequest$Type extends MessageType<RSVPCalendarEntryRequest
948
953
  case /* optional bool remove */ 3:
949
954
  message.remove = reader.bool();
950
955
  break;
956
+ case /* optional string occurrence_key */ 4:
957
+ message.occurrenceKey = reader.string();
958
+ break;
951
959
  default:
952
960
  let u = options.readUnknownField;
953
961
  if (u === "throw")
@@ -969,6 +977,9 @@ class RSVPCalendarEntryRequest$Type extends MessageType<RSVPCalendarEntryRequest
969
977
  /* optional bool remove = 3; */
970
978
  if (message.remove !== undefined)
971
979
  writer.tag(3, WireType.Varint).bool(message.remove);
980
+ /* optional string occurrence_key = 4; */
981
+ if (message.occurrenceKey !== undefined)
982
+ writer.tag(4, WireType.LengthDelimited).string(message.occurrenceKey);
972
983
  let u = options.writeUnknownFields;
973
984
  if (u !== false)
974
985
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -43,6 +43,10 @@ export interface ListDispatchesRequest {
43
43
  * @generated from protobuf field: optional string postal = 5
44
44
  */
45
45
  postal?: string;
46
+ /**
47
+ * @generated from protobuf field: repeated int32 creator_ids = 6
48
+ */
49
+ creatorIds: number[];
46
50
  }
47
51
  /**
48
52
  * @generated from protobuf message services.centrum.ListDispatchesResponse
@@ -244,10 +248,11 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
244
248
  constructor() {
245
249
  super("services.centrum.ListDispatchesRequest", [
246
250
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
247
- { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
248
- { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
249
- { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } },
250
- { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } }
251
+ { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { definedOnly: true } } } } } },
252
+ { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { definedOnly: true } } } } } },
253
+ { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
254
+ { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } },
255
+ { no: 6, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int32: { gt: 0 } } } } } }
251
256
  ]);
252
257
  }
253
258
  create(value?: PartialMessage<ListDispatchesRequest>): ListDispatchesRequest {
@@ -255,6 +260,7 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
255
260
  message.status = [];
256
261
  message.notStatus = [];
257
262
  message.ids = [];
263
+ message.creatorIds = [];
258
264
  if (value !== undefined)
259
265
  reflectionMergePartial<ListDispatchesRequest>(this, message, value);
260
266
  return message;
@@ -291,6 +297,13 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
291
297
  case /* optional string postal */ 5:
292
298
  message.postal = reader.string();
293
299
  break;
300
+ case /* repeated int32 creator_ids */ 6:
301
+ if (wireType === WireType.LengthDelimited)
302
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
303
+ message.creatorIds.push(reader.int32());
304
+ else
305
+ message.creatorIds.push(reader.int32());
306
+ break;
294
307
  default:
295
308
  let u = options.readUnknownField;
296
309
  if (u === "throw")
@@ -330,6 +343,13 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
330
343
  /* optional string postal = 5; */
331
344
  if (message.postal !== undefined)
332
345
  writer.tag(5, WireType.LengthDelimited).string(message.postal);
346
+ /* repeated int32 creator_ids = 6; */
347
+ if (message.creatorIds.length) {
348
+ writer.tag(6, WireType.LengthDelimited).fork();
349
+ for (let i = 0; i < message.creatorIds.length; i++)
350
+ writer.int32(message.creatorIds[i]);
351
+ writer.join();
352
+ }
333
353
  let u = options.writeUnknownFields;
334
354
  if (u !== false)
335
355
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1061,8 +1081,8 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
1061
1081
  constructor() {
1062
1082
  super("services.centrum.AssignDispatchRequest", [
1063
1083
  { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1064
- { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1065
- { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1084
+ { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
1085
+ { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
1066
1086
  { no: 4, name: "forced", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
1067
1087
  ]);
1068
1088
  }
@@ -1184,7 +1204,7 @@ export const AssignDispatchResponse = new AssignDispatchResponse$Type();
1184
1204
  class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
1185
1205
  constructor() {
1186
1206
  super("services.centrum.TakeDispatchRequest", [
1187
- { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1" } } } },
1207
+ { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "10", items: { int64: { gt: "0" } } } } } },
1188
1208
  { no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.dispatches.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1189
1209
  { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1190
1210
  ]);
@@ -9,6 +9,8 @@ import type { UpdateUnitStatusResponse } from "./units";
9
9
  import type { UpdateUnitStatusRequest } from "./units";
10
10
  import type { AssignUnitResponse } from "./units";
11
11
  import type { AssignUnitRequest } from "./units";
12
+ import type { ReorderUnitsResponse } from "./units";
13
+ import type { ReorderUnitsRequest } from "./units";
12
14
  import type { DeleteUnitResponse } from "./units";
13
15
  import type { DeleteUnitRequest } from "./units";
14
16
  import type { CreateOrUpdateUnitResponse } from "./units";
@@ -46,6 +48,10 @@ export interface IUnitsServiceClient {
46
48
  * @generated from protobuf rpc: DeleteUnit
47
49
  */
48
50
  deleteUnit(input: DeleteUnitRequest, options?: RpcOptions): UnaryCall<DeleteUnitRequest, DeleteUnitResponse>;
51
+ /**
52
+ * @generated from protobuf rpc: ReorderUnits
53
+ */
54
+ reorderUnits(input: ReorderUnitsRequest, options?: RpcOptions): UnaryCall<ReorderUnitsRequest, ReorderUnitsResponse>;
49
55
  /**
50
56
  * @generated from protobuf rpc: AssignUnit
51
57
  */
@@ -99,18 +105,25 @@ export class UnitsServiceClient implements IUnitsServiceClient, ServiceInfo {
99
105
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
100
106
  return stackIntercept<DeleteUnitRequest, DeleteUnitResponse>("unary", this._transport, method, opt, input);
101
107
  }
108
+ /**
109
+ * @generated from protobuf rpc: ReorderUnits
110
+ */
111
+ reorderUnits(input: ReorderUnitsRequest, options?: RpcOptions): UnaryCall<ReorderUnitsRequest, ReorderUnitsResponse> {
112
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
113
+ return stackIntercept<ReorderUnitsRequest, ReorderUnitsResponse>("unary", this._transport, method, opt, input);
114
+ }
102
115
  /**
103
116
  * @generated from protobuf rpc: AssignUnit
104
117
  */
105
118
  assignUnit(input: AssignUnitRequest, options?: RpcOptions): UnaryCall<AssignUnitRequest, AssignUnitResponse> {
106
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
119
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
107
120
  return stackIntercept<AssignUnitRequest, AssignUnitResponse>("unary", this._transport, method, opt, input);
108
121
  }
109
122
  /**
110
123
  * @generated from protobuf rpc: UpdateUnitStatus
111
124
  */
112
125
  updateUnitStatus(input: UpdateUnitStatusRequest, options?: RpcOptions): UnaryCall<UpdateUnitStatusRequest, UpdateUnitStatusResponse> {
113
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
126
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
114
127
  return stackIntercept<UpdateUnitStatusRequest, UpdateUnitStatusResponse>("unary", this._transport, method, opt, input);
115
128
  }
116
129
  }