@fivenet-app/gen 2026.8.0 → 2026.8.5
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/google/protobuf/descriptor.ts +3 -11
- package/google/protobuf/timestamp.ts +6 -7
- package/package.json +1 -1
- package/perms.ts +17 -4
- package/resources/calendar/calendar.ts +11 -0
- package/resources/calendar/entries/entries.ts +23 -0
- package/resources/centrum/dispatches/dispatches.ts +8 -8
- package/resources/centrum/units/units.ts +5 -5
- package/resources/citizens/labels/access.ts +10 -6
- package/resources/dbsync/state.ts +192 -0
- package/resources/documents/stamps/access.ts +25 -0
- package/resources/documents/stamps/stamp.ts +0 -21
- package/resources/documents/templates/templates.ts +61 -59
- package/resources/documents/workflow/workflow.ts +61 -1
- package/resources/jobs/groups/access/access.ts +29 -0
- package/resources/jobs/groups/activity.ts +332 -0
- package/resources/jobs/groups/group.ts +1666 -0
- package/resources/jobs/user_selector.ts +184 -0
- package/resources/settings/status.ts +197 -105
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +3 -3
- package/services/centrum/units.ts +3 -3
- package/services/completor/completor.ts +2 -2
- package/services/documents/approval.ts +2 -2
- package/services/documents/documents.ts +9 -9
- package/services/documents/templates.ts +13 -13
- package/services/jobs/colleagues.client.ts +34 -8
- package/services/jobs/colleagues.ts +263 -74
- package/services/jobs/conduct.ts +11 -19
- package/services/jobs/groups.client.ts +311 -0
- package/services/jobs/groups.ts +3596 -1
- package/services/jobs/timeclock.ts +30 -27
- package/services/qualifications/qualifications.ts +26 -4
- package/services/settings/settings.ts +1 -1
- package/services/sync/sync.client.ts +69 -33
- package/services/sync/sync.ts +442 -6
- package/services/vehicles/vehicles.ts +2 -2
- package/svcs.ts +29 -1
|
@@ -960,7 +960,7 @@ class UpsertApprovalTasksRequest$Type extends MessageType<UpsertApprovalTasksReq
|
|
|
960
960
|
super("services.documents.UpsertApprovalTasksRequest", [
|
|
961
961
|
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
962
962
|
{ no: 2, name: "snapshot_date", kind: "message", T: () => Timestamp },
|
|
963
|
-
{ no: 3, name: "seeds", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ApprovalTaskSeed }
|
|
963
|
+
{ no: 3, name: "seeds", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ApprovalTaskSeed, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } }
|
|
964
964
|
]);
|
|
965
965
|
}
|
|
966
966
|
create(value?: PartialMessage<UpsertApprovalTasksRequest>): UpsertApprovalTasksRequest {
|
|
@@ -1083,7 +1083,7 @@ class DeleteApprovalTasksRequest$Type extends MessageType<DeleteApprovalTasksReq
|
|
|
1083
1083
|
constructor() {
|
|
1084
1084
|
super("services.documents.DeleteApprovalTasksRequest", [
|
|
1085
1085
|
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
1086
|
-
{ no: 2, name: "task_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1" } } } },
|
|
1086
|
+
{ no: 2, name: "task_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "15" } } } },
|
|
1087
1087
|
{ no: 3, name: "delete_all_pending", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1088
1088
|
]);
|
|
1089
1089
|
}
|
|
@@ -24,7 +24,7 @@ import { File } from "../../resources/file/file";
|
|
|
24
24
|
import { DocumentMeta } from "../../resources/documents/documents";
|
|
25
25
|
import { DocumentData } from "../../resources/documents/data/data";
|
|
26
26
|
import { Content } from "../../resources/common/content/content";
|
|
27
|
-
import {
|
|
27
|
+
import { TemplateSelection } from "../../resources/documents/templates/templates";
|
|
28
28
|
import { ContentType } from "../../resources/common/content/content";
|
|
29
29
|
import { DocumentRelation } from "../../resources/documents/relations/relations";
|
|
30
30
|
import { DocumentReference } from "../../resources/documents/references/references";
|
|
@@ -304,9 +304,9 @@ export interface CreateDocumentRequest {
|
|
|
304
304
|
*/
|
|
305
305
|
templateId?: number;
|
|
306
306
|
/**
|
|
307
|
-
* @generated from protobuf field: optional resources.documents.templates.
|
|
307
|
+
* @generated from protobuf field: optional resources.documents.templates.TemplateSelection template_selection = 4
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
templateSelection?: TemplateSelection;
|
|
310
310
|
}
|
|
311
311
|
/**
|
|
312
312
|
* @generated from protobuf message services.documents.CreateDocumentResponse
|
|
@@ -1835,7 +1835,7 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
1835
1835
|
super("services.documents.CreateDocumentRequest", [
|
|
1836
1836
|
{ no: 1, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
1837
1837
|
{ no: 2, name: "template_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1838
|
-
{ no:
|
|
1838
|
+
{ no: 4, name: "template_selection", kind: "message", T: () => TemplateSelection }
|
|
1839
1839
|
]);
|
|
1840
1840
|
}
|
|
1841
1841
|
create(value?: PartialMessage<CreateDocumentRequest>): CreateDocumentRequest {
|
|
@@ -1856,8 +1856,8 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
1856
1856
|
case /* optional int64 template_id */ 2:
|
|
1857
1857
|
message.templateId = reader.int64().toNumber();
|
|
1858
1858
|
break;
|
|
1859
|
-
case /* optional resources.documents.templates.
|
|
1860
|
-
message.
|
|
1859
|
+
case /* optional resources.documents.templates.TemplateSelection template_selection */ 4:
|
|
1860
|
+
message.templateSelection = TemplateSelection.internalBinaryRead(reader, reader.uint32(), options, message.templateSelection);
|
|
1861
1861
|
break;
|
|
1862
1862
|
default:
|
|
1863
1863
|
let u = options.readUnknownField;
|
|
@@ -1877,9 +1877,9 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
1877
1877
|
/* optional int64 template_id = 2; */
|
|
1878
1878
|
if (message.templateId !== undefined)
|
|
1879
1879
|
writer.tag(2, WireType.Varint).int64(message.templateId);
|
|
1880
|
-
/* optional resources.documents.templates.
|
|
1881
|
-
if (message.
|
|
1882
|
-
|
|
1880
|
+
/* optional resources.documents.templates.TemplateSelection template_selection = 4; */
|
|
1881
|
+
if (message.templateSelection)
|
|
1882
|
+
TemplateSelection.internalBinaryWrite(message.templateSelection, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1883
1883
|
let u = options.writeUnknownFields;
|
|
1884
1884
|
if (u !== false)
|
|
1885
1885
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -13,7 +13,7 @@ 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 { Template } from "../../resources/documents/templates/templates";
|
|
16
|
-
import {
|
|
16
|
+
import { TemplateSelection } from "../../resources/documents/templates/templates";
|
|
17
17
|
import { TemplateShort } from "../../resources/documents/templates/templates";
|
|
18
18
|
/**
|
|
19
19
|
* @generated from protobuf message services.documents.ListTemplatesRequest
|
|
@@ -37,14 +37,14 @@ export interface GetTemplateRequest {
|
|
|
37
37
|
* @generated from protobuf field: int64 template_id = 1
|
|
38
38
|
*/
|
|
39
39
|
templateId: number;
|
|
40
|
-
/**
|
|
41
|
-
* @generated from protobuf field: optional resources.documents.templates.TemplateData data = 2
|
|
42
|
-
*/
|
|
43
|
-
data?: TemplateData;
|
|
44
40
|
/**
|
|
45
41
|
* @generated from protobuf field: optional bool render = 3
|
|
46
42
|
*/
|
|
47
43
|
render?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: optional resources.documents.templates.TemplateSelection selection = 4
|
|
46
|
+
*/
|
|
47
|
+
selection?: TemplateSelection;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* @generated from protobuf message services.documents.GetTemplateResponse
|
|
@@ -221,8 +221,8 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
221
221
|
constructor() {
|
|
222
222
|
super("services.documents.GetTemplateRequest", [
|
|
223
223
|
{ no: 1, name: "template_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
224
|
-
{ no:
|
|
225
|
-
{ no:
|
|
224
|
+
{ no: 3, name: "render", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
225
|
+
{ no: 4, name: "selection", kind: "message", T: () => TemplateSelection }
|
|
226
226
|
]);
|
|
227
227
|
}
|
|
228
228
|
create(value?: PartialMessage<GetTemplateRequest>): GetTemplateRequest {
|
|
@@ -240,12 +240,12 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
240
240
|
case /* int64 template_id */ 1:
|
|
241
241
|
message.templateId = reader.int64().toNumber();
|
|
242
242
|
break;
|
|
243
|
-
case /* optional resources.documents.templates.TemplateData data */ 2:
|
|
244
|
-
message.data = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
245
|
-
break;
|
|
246
243
|
case /* optional bool render */ 3:
|
|
247
244
|
message.render = reader.bool();
|
|
248
245
|
break;
|
|
246
|
+
case /* optional resources.documents.templates.TemplateSelection selection */ 4:
|
|
247
|
+
message.selection = TemplateSelection.internalBinaryRead(reader, reader.uint32(), options, message.selection);
|
|
248
|
+
break;
|
|
249
249
|
default:
|
|
250
250
|
let u = options.readUnknownField;
|
|
251
251
|
if (u === "throw")
|
|
@@ -261,12 +261,12 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
261
261
|
/* int64 template_id = 1; */
|
|
262
262
|
if (message.templateId !== 0)
|
|
263
263
|
writer.tag(1, WireType.Varint).int64(message.templateId);
|
|
264
|
-
/* optional resources.documents.templates.TemplateData data = 2; */
|
|
265
|
-
if (message.data)
|
|
266
|
-
TemplateData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
267
264
|
/* optional bool render = 3; */
|
|
268
265
|
if (message.render !== undefined)
|
|
269
266
|
writer.tag(3, WireType.Varint).bool(message.render);
|
|
267
|
+
/* optional resources.documents.templates.TemplateSelection selection = 4; */
|
|
268
|
+
if (message.selection)
|
|
269
|
+
TemplateSelection.internalBinaryWrite(message.selection, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
270
270
|
let u = options.writeUnknownFields;
|
|
271
271
|
if (u !== false)
|
|
272
272
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7,8 +7,12 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
|
7
7
|
import { ColleaguesService } from "./colleagues";
|
|
8
8
|
import type { GetColleagueLabelsStatsResponse } from "./colleagues";
|
|
9
9
|
import type { GetColleagueLabelsStatsRequest } from "./colleagues";
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
10
|
+
import type { ReorderLabelsResponse } from "./colleagues";
|
|
11
|
+
import type { ReorderLabelsRequest } from "./colleagues";
|
|
12
|
+
import type { DeleteLabelResponse } from "./colleagues";
|
|
13
|
+
import type { DeleteLabelRequest } from "./colleagues";
|
|
14
|
+
import type { CreateOrUpdateLabelResponse } from "./colleagues";
|
|
15
|
+
import type { CreateOrUpdateLabelRequest } from "./colleagues";
|
|
12
16
|
import type { GetColleagueLabelsResponse } from "./colleagues";
|
|
13
17
|
import type { GetColleagueLabelsRequest } from "./colleagues";
|
|
14
18
|
import type { SetColleaguePropsResponse } from "./colleagues";
|
|
@@ -53,9 +57,17 @@ export interface IColleaguesServiceClient {
|
|
|
53
57
|
*/
|
|
54
58
|
getColleagueLabels(input: GetColleagueLabelsRequest, options?: RpcOptions): UnaryCall<GetColleagueLabelsRequest, GetColleagueLabelsResponse>;
|
|
55
59
|
/**
|
|
56
|
-
* @generated from protobuf rpc:
|
|
60
|
+
* @generated from protobuf rpc: CreateOrUpdateLabel
|
|
57
61
|
*/
|
|
58
|
-
|
|
62
|
+
createOrUpdateLabel(input: CreateOrUpdateLabelRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf rpc: DeleteLabel
|
|
65
|
+
*/
|
|
66
|
+
deleteLabel(input: DeleteLabelRequest, options?: RpcOptions): UnaryCall<DeleteLabelRequest, DeleteLabelResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf rpc: ReorderLabels
|
|
69
|
+
*/
|
|
70
|
+
reorderLabels(input: ReorderLabelsRequest, options?: RpcOptions): UnaryCall<ReorderLabelsRequest, ReorderLabelsResponse>;
|
|
59
71
|
/**
|
|
60
72
|
* @generated from protobuf rpc: GetColleagueLabelsStats
|
|
61
73
|
*/
|
|
@@ -113,17 +125,31 @@ export class ColleaguesServiceClient implements IColleaguesServiceClient, Servic
|
|
|
113
125
|
return stackIntercept<GetColleagueLabelsRequest, GetColleagueLabelsResponse>("unary", this._transport, method, opt, input);
|
|
114
126
|
}
|
|
115
127
|
/**
|
|
116
|
-
* @generated from protobuf rpc:
|
|
128
|
+
* @generated from protobuf rpc: CreateOrUpdateLabel
|
|
117
129
|
*/
|
|
118
|
-
|
|
130
|
+
createOrUpdateLabel(input: CreateOrUpdateLabelRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse> {
|
|
119
131
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
120
|
-
return stackIntercept<
|
|
132
|
+
return stackIntercept<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse>("unary", this._transport, method, opt, input);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf rpc: DeleteLabel
|
|
136
|
+
*/
|
|
137
|
+
deleteLabel(input: DeleteLabelRequest, options?: RpcOptions): UnaryCall<DeleteLabelRequest, DeleteLabelResponse> {
|
|
138
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
139
|
+
return stackIntercept<DeleteLabelRequest, DeleteLabelResponse>("unary", this._transport, method, opt, input);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @generated from protobuf rpc: ReorderLabels
|
|
143
|
+
*/
|
|
144
|
+
reorderLabels(input: ReorderLabelsRequest, options?: RpcOptions): UnaryCall<ReorderLabelsRequest, ReorderLabelsResponse> {
|
|
145
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
146
|
+
return stackIntercept<ReorderLabelsRequest, ReorderLabelsResponse>("unary", this._transport, method, opt, input);
|
|
121
147
|
}
|
|
122
148
|
/**
|
|
123
149
|
* @generated from protobuf rpc: GetColleagueLabelsStats
|
|
124
150
|
*/
|
|
125
151
|
getColleagueLabelsStats(input: GetColleagueLabelsStatsRequest, options?: RpcOptions): UnaryCall<GetColleagueLabelsStatsRequest, GetColleagueLabelsStatsResponse> {
|
|
126
|
-
const method = this.methods[
|
|
152
|
+
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
127
153
|
return stackIntercept<GetColleagueLabelsStatsRequest, GetColleagueLabelsStatsResponse>("unary", this._transport, method, opt, input);
|
|
128
154
|
}
|
|
129
155
|
}
|