@fivenet-app/gen 0.9.3 → 0.9.5-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/common/cron/cron.proto" (package "resources.common.cron", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -18,34 +18,54 @@ import { Timestamp } from "../../timestamp/timestamp";
|
|
|
18
18
|
*/
|
|
19
19
|
export interface Cronjob {
|
|
20
20
|
/**
|
|
21
|
+
* Cronjob name
|
|
22
|
+
*
|
|
21
23
|
* @generated from protobuf field: string name = 1;
|
|
22
24
|
*/
|
|
23
25
|
name: string;
|
|
24
26
|
/**
|
|
27
|
+
*
|
|
28
|
+
* Cron schedule expression
|
|
29
|
+
* For available valid expressions, see [adhocore/gronx - Cron Expressions Documentation](https://github.com/adhocore/gronx/blob/fea40e3e90e70476877cfb9b50fac10c7de41c5c/README.md#cron-expression).
|
|
30
|
+
*
|
|
31
|
+
* To generate Cronjob schedule expressions, you can also use web tools like https://crontab.guru/.
|
|
32
|
+
*
|
|
25
33
|
* @generated from protobuf field: string schedule = 2;
|
|
26
34
|
*/
|
|
27
35
|
schedule: string;
|
|
28
36
|
/**
|
|
37
|
+
* Cronjob state
|
|
38
|
+
*
|
|
29
39
|
* @generated from protobuf field: resources.common.cron.CronjobState state = 3;
|
|
30
40
|
*/
|
|
31
41
|
state: CronjobState;
|
|
32
42
|
/**
|
|
43
|
+
* Next time the cronjob should be run
|
|
44
|
+
*
|
|
33
45
|
* @generated from protobuf field: resources.timestamp.Timestamp next_schedule_time = 4;
|
|
34
46
|
*/
|
|
35
47
|
nextScheduleTime?: Timestamp;
|
|
36
48
|
/**
|
|
49
|
+
* Last attempted start time of Cronjob
|
|
50
|
+
*
|
|
37
51
|
* @generated from protobuf field: optional resources.timestamp.Timestamp last_attempt_time = 5;
|
|
38
52
|
*/
|
|
39
53
|
lastAttemptTime?: Timestamp;
|
|
40
54
|
/**
|
|
55
|
+
* Time current cronjob was started
|
|
56
|
+
*
|
|
41
57
|
* @generated from protobuf field: optional resources.timestamp.Timestamp started_time = 6;
|
|
42
58
|
*/
|
|
43
59
|
startedTime?: Timestamp;
|
|
44
60
|
/**
|
|
61
|
+
* Optional timeout for cronjob execution
|
|
62
|
+
*
|
|
45
63
|
* @generated from protobuf field: optional google.protobuf.Duration timeout = 7;
|
|
46
64
|
*/
|
|
47
65
|
timeout?: Duration;
|
|
48
66
|
/**
|
|
67
|
+
* Cronjob data
|
|
68
|
+
*
|
|
49
69
|
* @generated from protobuf field: resources.common.cron.CronjobData data = 8;
|
|
50
70
|
*/
|
|
51
71
|
data?: CronjobData;
|
|
@@ -68,6 +88,8 @@ export interface CronjobData {
|
|
|
68
88
|
*/
|
|
69
89
|
export interface CronjobLockOwnerState {
|
|
70
90
|
/**
|
|
91
|
+
* Hostname of the agent the cronjob is running on
|
|
92
|
+
*
|
|
71
93
|
* @generated from protobuf field: string hostname = 1;
|
|
72
94
|
*/
|
|
73
95
|
hostname: string;
|
|
@@ -81,6 +103,8 @@ export interface CronjobLockOwnerState {
|
|
|
81
103
|
*/
|
|
82
104
|
export interface CronjobSchedulerEvent {
|
|
83
105
|
/**
|
|
106
|
+
* Full Cronjob spec
|
|
107
|
+
*
|
|
84
108
|
* @generated from protobuf field: resources.common.cron.Cronjob cronjob = 1;
|
|
85
109
|
*/
|
|
86
110
|
cronjob?: Cronjob;
|
|
@@ -90,22 +114,32 @@ export interface CronjobSchedulerEvent {
|
|
|
90
114
|
*/
|
|
91
115
|
export interface CronjobCompletedEvent {
|
|
92
116
|
/**
|
|
117
|
+
* Cronjob name
|
|
118
|
+
*
|
|
93
119
|
* @generated from protobuf field: string name = 1;
|
|
94
120
|
*/
|
|
95
121
|
name: string;
|
|
96
122
|
/**
|
|
123
|
+
* Cronjob execution success status
|
|
124
|
+
*
|
|
97
125
|
* @generated from protobuf field: bool sucess = 2;
|
|
98
126
|
*/
|
|
99
127
|
sucess: boolean;
|
|
100
128
|
/**
|
|
129
|
+
* Cronjob end time
|
|
130
|
+
*
|
|
101
131
|
* @generated from protobuf field: resources.timestamp.Timestamp endDate = 3;
|
|
102
132
|
*/
|
|
103
133
|
endDate?: Timestamp;
|
|
104
134
|
/**
|
|
135
|
+
* Cronjob execution time/elapsed time
|
|
136
|
+
*
|
|
105
137
|
* @generated from protobuf field: google.protobuf.Duration elapsed = 4;
|
|
106
138
|
*/
|
|
107
139
|
elapsed?: Duration;
|
|
108
140
|
/**
|
|
141
|
+
* Cronjob data (can be empty if not touched by the Cronjob handler)
|
|
142
|
+
*
|
|
109
143
|
* @generated from protobuf field: optional resources.common.cron.CronjobData data = 5;
|
|
110
144
|
*/
|
|
111
145
|
data?: CronjobData;
|
|
@@ -124,6 +158,8 @@ export interface GenericCronData {
|
|
|
124
158
|
};
|
|
125
159
|
}
|
|
126
160
|
/**
|
|
161
|
+
* States of Cronjbo
|
|
162
|
+
*
|
|
127
163
|
* @generated from protobuf enum resources.common.cron.CronjobState
|
|
128
164
|
*/
|
|
129
165
|
export enum CronjobState {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/common/database/database.proto" (package "resources.common.database", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -12,61 +12,79 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Timestamp } from "../../timestamp/timestamp";
|
|
14
14
|
/**
|
|
15
|
+
* Pagination for requests to the server
|
|
16
|
+
*
|
|
15
17
|
* @generated from protobuf message resources.common.database.PaginationRequest
|
|
16
18
|
*/
|
|
17
19
|
export interface PaginationRequest {
|
|
18
20
|
/**
|
|
19
|
-
* @generated from protobuf field: int64 offset = 1
|
|
21
|
+
* @generated from protobuf field: int64 offset = 1;
|
|
20
22
|
*/
|
|
21
23
|
offset: number;
|
|
22
24
|
/**
|
|
23
|
-
* @generated from protobuf field: optional int64 page_size = 2
|
|
25
|
+
* @generated from protobuf field: optional int64 page_size = 2;
|
|
24
26
|
*/
|
|
25
27
|
pageSize?: number;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
30
|
+
* Server Pagination Response
|
|
31
|
+
*
|
|
28
32
|
* @generated from protobuf message resources.common.database.PaginationResponse
|
|
29
33
|
*/
|
|
30
34
|
export interface PaginationResponse {
|
|
31
35
|
/**
|
|
32
|
-
* @generated from protobuf field: int64 total_count = 1
|
|
36
|
+
* @generated from protobuf field: int64 total_count = 1;
|
|
33
37
|
*/
|
|
34
38
|
totalCount: number;
|
|
35
39
|
/**
|
|
36
|
-
* @generated from protobuf field: int64 offset = 2
|
|
40
|
+
* @generated from protobuf field: int64 offset = 2;
|
|
37
41
|
*/
|
|
38
42
|
offset: number;
|
|
39
43
|
/**
|
|
40
|
-
* @generated from protobuf field: int64 end = 3
|
|
44
|
+
* @generated from protobuf field: int64 end = 3;
|
|
41
45
|
*/
|
|
42
46
|
end: number;
|
|
43
47
|
/**
|
|
44
|
-
* @generated from protobuf field: int64 page_size = 4
|
|
48
|
+
* @generated from protobuf field: int64 page_size = 4;
|
|
45
49
|
*/
|
|
46
50
|
pageSize: number;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
53
|
+
* Sort by column
|
|
54
|
+
*
|
|
49
55
|
* @generated from protobuf message resources.common.database.Sort
|
|
50
56
|
*/
|
|
51
57
|
export interface Sort {
|
|
52
58
|
/**
|
|
59
|
+
* Column name
|
|
60
|
+
*
|
|
53
61
|
* @generated from protobuf field: string column = 1;
|
|
54
62
|
*/
|
|
55
63
|
column: string;
|
|
56
64
|
/**
|
|
65
|
+
* Sort direction, must be `asc` (ascending) or `desc` (descending)
|
|
66
|
+
*
|
|
57
67
|
* @generated from protobuf field: string direction = 2;
|
|
58
68
|
*/
|
|
59
69
|
direction: string;
|
|
60
70
|
}
|
|
61
71
|
/**
|
|
72
|
+
*
|
|
73
|
+
* Datetime range (uses Timestamp underneath)
|
|
74
|
+
* It depends on the API method if it will use date or date + time.
|
|
75
|
+
*
|
|
62
76
|
* @generated from protobuf message resources.common.database.DateRange
|
|
63
77
|
*/
|
|
64
78
|
export interface DateRange {
|
|
65
79
|
/**
|
|
80
|
+
* Start time
|
|
81
|
+
*
|
|
66
82
|
* @generated from protobuf field: resources.timestamp.Timestamp start = 1;
|
|
67
83
|
*/
|
|
68
84
|
start?: Timestamp;
|
|
69
85
|
/**
|
|
86
|
+
* End time
|
|
87
|
+
*
|
|
70
88
|
* @generated from protobuf field: resources.timestamp.Timestamp end = 2;
|
|
71
89
|
*/
|
|
72
90
|
end?: Timestamp;
|
|
@@ -91,10 +109,10 @@ class PaginationRequest$Type extends MessageType<PaginationRequest> {
|
|
|
91
109
|
while (reader.pos < end) {
|
|
92
110
|
let [fieldNo, wireType] = reader.tag();
|
|
93
111
|
switch (fieldNo) {
|
|
94
|
-
case /* int64 offset
|
|
112
|
+
case /* int64 offset */ 1:
|
|
95
113
|
message.offset = reader.int64().toNumber();
|
|
96
114
|
break;
|
|
97
|
-
case /* optional int64 page_size
|
|
115
|
+
case /* optional int64 page_size */ 2:
|
|
98
116
|
message.pageSize = reader.int64().toNumber();
|
|
99
117
|
break;
|
|
100
118
|
default:
|
|
@@ -109,10 +127,10 @@ class PaginationRequest$Type extends MessageType<PaginationRequest> {
|
|
|
109
127
|
return message;
|
|
110
128
|
}
|
|
111
129
|
internalBinaryWrite(message: PaginationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
112
|
-
/* int64 offset = 1
|
|
130
|
+
/* int64 offset = 1; */
|
|
113
131
|
if (message.offset !== 0)
|
|
114
132
|
writer.tag(1, WireType.Varint).int64(message.offset);
|
|
115
|
-
/* optional int64 page_size = 2
|
|
133
|
+
/* optional int64 page_size = 2; */
|
|
116
134
|
if (message.pageSize !== undefined)
|
|
117
135
|
writer.tag(2, WireType.Varint).int64(message.pageSize);
|
|
118
136
|
let u = options.writeUnknownFields;
|
|
@@ -150,16 +168,16 @@ class PaginationResponse$Type extends MessageType<PaginationResponse> {
|
|
|
150
168
|
while (reader.pos < end) {
|
|
151
169
|
let [fieldNo, wireType] = reader.tag();
|
|
152
170
|
switch (fieldNo) {
|
|
153
|
-
case /* int64 total_count
|
|
171
|
+
case /* int64 total_count */ 1:
|
|
154
172
|
message.totalCount = reader.int64().toNumber();
|
|
155
173
|
break;
|
|
156
|
-
case /* int64 offset
|
|
174
|
+
case /* int64 offset */ 2:
|
|
157
175
|
message.offset = reader.int64().toNumber();
|
|
158
176
|
break;
|
|
159
|
-
case /* int64 end
|
|
177
|
+
case /* int64 end */ 3:
|
|
160
178
|
message.end = reader.int64().toNumber();
|
|
161
179
|
break;
|
|
162
|
-
case /* int64 page_size
|
|
180
|
+
case /* int64 page_size */ 4:
|
|
163
181
|
message.pageSize = reader.int64().toNumber();
|
|
164
182
|
break;
|
|
165
183
|
default:
|
|
@@ -174,16 +192,16 @@ class PaginationResponse$Type extends MessageType<PaginationResponse> {
|
|
|
174
192
|
return message;
|
|
175
193
|
}
|
|
176
194
|
internalBinaryWrite(message: PaginationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
177
|
-
/* int64 total_count = 1
|
|
195
|
+
/* int64 total_count = 1; */
|
|
178
196
|
if (message.totalCount !== 0)
|
|
179
197
|
writer.tag(1, WireType.Varint).int64(message.totalCount);
|
|
180
|
-
/* int64 offset = 2
|
|
198
|
+
/* int64 offset = 2; */
|
|
181
199
|
if (message.offset !== 0)
|
|
182
200
|
writer.tag(2, WireType.Varint).int64(message.offset);
|
|
183
|
-
/* int64 end = 3
|
|
201
|
+
/* int64 end = 3; */
|
|
184
202
|
if (message.end !== 0)
|
|
185
203
|
writer.tag(3, WireType.Varint).int64(message.end);
|
|
186
|
-
/* int64 page_size = 4
|
|
204
|
+
/* int64 page_size = 4; */
|
|
187
205
|
if (message.pageSize !== 0)
|
|
188
206
|
writer.tag(4, WireType.Varint).int64(message.pageSize);
|
|
189
207
|
let u = options.writeUnknownFields;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/common/error.proto" (package "resources.common", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/common/grpcws/grpcws.proto" (package "resources.common.grpcws", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -24,37 +24,37 @@ export interface GrpcFrame {
|
|
|
24
24
|
payload: {
|
|
25
25
|
oneofKind: "ping";
|
|
26
26
|
/**
|
|
27
|
-
* @generated from protobuf field: resources.common.grpcws.Ping ping =
|
|
27
|
+
* @generated from protobuf field: resources.common.grpcws.Ping ping = 3;
|
|
28
28
|
*/
|
|
29
29
|
ping: Ping;
|
|
30
30
|
} | {
|
|
31
31
|
oneofKind: "header";
|
|
32
32
|
/**
|
|
33
|
-
* @generated from protobuf field: resources.common.grpcws.Header header =
|
|
33
|
+
* @generated from protobuf field: resources.common.grpcws.Header header = 4;
|
|
34
34
|
*/
|
|
35
35
|
header: Header;
|
|
36
36
|
} | {
|
|
37
37
|
oneofKind: "body";
|
|
38
38
|
/**
|
|
39
|
-
* @generated from protobuf field: resources.common.grpcws.Body body =
|
|
39
|
+
* @generated from protobuf field: resources.common.grpcws.Body body = 5;
|
|
40
40
|
*/
|
|
41
41
|
body: Body;
|
|
42
42
|
} | {
|
|
43
43
|
oneofKind: "complete";
|
|
44
44
|
/**
|
|
45
|
-
* @generated from protobuf field: resources.common.grpcws.Complete complete =
|
|
45
|
+
* @generated from protobuf field: resources.common.grpcws.Complete complete = 6;
|
|
46
46
|
*/
|
|
47
47
|
complete: Complete;
|
|
48
48
|
} | {
|
|
49
49
|
oneofKind: "failure";
|
|
50
50
|
/**
|
|
51
|
-
* @generated from protobuf field: resources.common.grpcws.Failure failure =
|
|
51
|
+
* @generated from protobuf field: resources.common.grpcws.Failure failure = 7;
|
|
52
52
|
*/
|
|
53
53
|
failure: Failure;
|
|
54
54
|
} | {
|
|
55
55
|
oneofKind: "cancel";
|
|
56
56
|
/**
|
|
57
|
-
* @generated from protobuf field: resources.common.grpcws.Cancel cancel =
|
|
57
|
+
* @generated from protobuf field: resources.common.grpcws.Cancel cancel = 8;
|
|
58
58
|
*/
|
|
59
59
|
cancel: Cancel;
|
|
60
60
|
} | {
|
|
@@ -145,12 +145,12 @@ class GrpcFrame$Type extends MessageType<GrpcFrame> {
|
|
|
145
145
|
constructor() {
|
|
146
146
|
super("resources.common.grpcws.GrpcFrame", [
|
|
147
147
|
{ no: 1, name: "streamId", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
148
|
-
{ no:
|
|
149
|
-
{ no:
|
|
150
|
-
{ no:
|
|
151
|
-
{ no:
|
|
152
|
-
{ no:
|
|
153
|
-
{ no:
|
|
148
|
+
{ no: 3, name: "ping", kind: "message", oneof: "payload", T: () => Ping },
|
|
149
|
+
{ no: 4, name: "header", kind: "message", oneof: "payload", T: () => Header },
|
|
150
|
+
{ no: 5, name: "body", kind: "message", oneof: "payload", T: () => Body },
|
|
151
|
+
{ no: 6, name: "complete", kind: "message", oneof: "payload", T: () => Complete },
|
|
152
|
+
{ no: 7, name: "failure", kind: "message", oneof: "payload", T: () => Failure },
|
|
153
|
+
{ no: 8, name: "cancel", kind: "message", oneof: "payload", T: () => Cancel }
|
|
154
154
|
]);
|
|
155
155
|
}
|
|
156
156
|
create(value?: PartialMessage<GrpcFrame>): GrpcFrame {
|
|
@@ -169,37 +169,37 @@ class GrpcFrame$Type extends MessageType<GrpcFrame> {
|
|
|
169
169
|
case /* uint32 streamId */ 1:
|
|
170
170
|
message.streamId = reader.uint32();
|
|
171
171
|
break;
|
|
172
|
-
case /* resources.common.grpcws.Ping ping */
|
|
172
|
+
case /* resources.common.grpcws.Ping ping */ 3:
|
|
173
173
|
message.payload = {
|
|
174
174
|
oneofKind: "ping",
|
|
175
175
|
ping: Ping.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).ping)
|
|
176
176
|
};
|
|
177
177
|
break;
|
|
178
|
-
case /* resources.common.grpcws.Header header */
|
|
178
|
+
case /* resources.common.grpcws.Header header */ 4:
|
|
179
179
|
message.payload = {
|
|
180
180
|
oneofKind: "header",
|
|
181
181
|
header: Header.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).header)
|
|
182
182
|
};
|
|
183
183
|
break;
|
|
184
|
-
case /* resources.common.grpcws.Body body */
|
|
184
|
+
case /* resources.common.grpcws.Body body */ 5:
|
|
185
185
|
message.payload = {
|
|
186
186
|
oneofKind: "body",
|
|
187
187
|
body: Body.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).body)
|
|
188
188
|
};
|
|
189
189
|
break;
|
|
190
|
-
case /* resources.common.grpcws.Complete complete */
|
|
190
|
+
case /* resources.common.grpcws.Complete complete */ 6:
|
|
191
191
|
message.payload = {
|
|
192
192
|
oneofKind: "complete",
|
|
193
193
|
complete: Complete.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).complete)
|
|
194
194
|
};
|
|
195
195
|
break;
|
|
196
|
-
case /* resources.common.grpcws.Failure failure */
|
|
196
|
+
case /* resources.common.grpcws.Failure failure */ 7:
|
|
197
197
|
message.payload = {
|
|
198
198
|
oneofKind: "failure",
|
|
199
199
|
failure: Failure.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).failure)
|
|
200
200
|
};
|
|
201
201
|
break;
|
|
202
|
-
case /* resources.common.grpcws.Cancel cancel */
|
|
202
|
+
case /* resources.common.grpcws.Cancel cancel */ 8:
|
|
203
203
|
message.payload = {
|
|
204
204
|
oneofKind: "cancel",
|
|
205
205
|
cancel: Cancel.internalBinaryRead(reader, reader.uint32(), options, (message.payload as any).cancel)
|
|
@@ -220,24 +220,24 @@ class GrpcFrame$Type extends MessageType<GrpcFrame> {
|
|
|
220
220
|
/* uint32 streamId = 1; */
|
|
221
221
|
if (message.streamId !== 0)
|
|
222
222
|
writer.tag(1, WireType.Varint).uint32(message.streamId);
|
|
223
|
-
/* resources.common.grpcws.Ping ping =
|
|
223
|
+
/* resources.common.grpcws.Ping ping = 3; */
|
|
224
224
|
if (message.payload.oneofKind === "ping")
|
|
225
|
-
Ping.internalBinaryWrite(message.payload.ping, writer.tag(
|
|
226
|
-
/* resources.common.grpcws.Header header =
|
|
225
|
+
Ping.internalBinaryWrite(message.payload.ping, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
226
|
+
/* resources.common.grpcws.Header header = 4; */
|
|
227
227
|
if (message.payload.oneofKind === "header")
|
|
228
|
-
Header.internalBinaryWrite(message.payload.header, writer.tag(
|
|
229
|
-
/* resources.common.grpcws.Body body =
|
|
228
|
+
Header.internalBinaryWrite(message.payload.header, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
229
|
+
/* resources.common.grpcws.Body body = 5; */
|
|
230
230
|
if (message.payload.oneofKind === "body")
|
|
231
|
-
Body.internalBinaryWrite(message.payload.body, writer.tag(
|
|
232
|
-
/* resources.common.grpcws.Complete complete =
|
|
231
|
+
Body.internalBinaryWrite(message.payload.body, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
+
/* resources.common.grpcws.Complete complete = 6; */
|
|
233
233
|
if (message.payload.oneofKind === "complete")
|
|
234
|
-
Complete.internalBinaryWrite(message.payload.complete, writer.tag(
|
|
235
|
-
/* resources.common.grpcws.Failure failure =
|
|
234
|
+
Complete.internalBinaryWrite(message.payload.complete, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
+
/* resources.common.grpcws.Failure failure = 7; */
|
|
236
236
|
if (message.payload.oneofKind === "failure")
|
|
237
|
-
Failure.internalBinaryWrite(message.payload.failure, writer.tag(
|
|
238
|
-
/* resources.common.grpcws.Cancel cancel =
|
|
237
|
+
Failure.internalBinaryWrite(message.payload.failure, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
238
|
+
/* resources.common.grpcws.Cancel cancel = 8; */
|
|
239
239
|
if (message.payload.oneofKind === "cancel")
|
|
240
|
-
Cancel.internalBinaryWrite(message.payload.cancel, writer.tag(
|
|
240
|
+
Cancel.internalBinaryWrite(message.payload.cancel, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
241
241
|
let u = options.writeUnknownFields;
|
|
242
242
|
if (u !== false)
|
|
243
243
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -492,7 +492,20 @@ class Complete$Type extends MessageType<Complete> {
|
|
|
492
492
|
return message;
|
|
493
493
|
}
|
|
494
494
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Complete): Complete {
|
|
495
|
-
|
|
495
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
496
|
+
while (reader.pos < end) {
|
|
497
|
+
let [fieldNo, wireType] = reader.tag();
|
|
498
|
+
switch (fieldNo) {
|
|
499
|
+
default:
|
|
500
|
+
let u = options.readUnknownField;
|
|
501
|
+
if (u === "throw")
|
|
502
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
503
|
+
let d = reader.skip(wireType);
|
|
504
|
+
if (u !== false)
|
|
505
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return message;
|
|
496
509
|
}
|
|
497
510
|
internalBinaryWrite(message: Complete, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
498
511
|
let u = options.writeUnknownFields;
|
|
@@ -600,7 +613,20 @@ class Cancel$Type extends MessageType<Cancel> {
|
|
|
600
613
|
return message;
|
|
601
614
|
}
|
|
602
615
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Cancel): Cancel {
|
|
603
|
-
|
|
616
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
617
|
+
while (reader.pos < end) {
|
|
618
|
+
let [fieldNo, wireType] = reader.tag();
|
|
619
|
+
switch (fieldNo) {
|
|
620
|
+
default:
|
|
621
|
+
let u = options.readUnknownField;
|
|
622
|
+
if (u === "throw")
|
|
623
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
624
|
+
let d = reader.skip(wireType);
|
|
625
|
+
if (u !== false)
|
|
626
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return message;
|
|
604
630
|
}
|
|
605
631
|
internalBinaryWrite(message: Cancel, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
606
632
|
let u = options.writeUnknownFields;
|
package/resources/common/i18n.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/common/i18n.proto" (package "resources.common", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,6 +11,9 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
/**
|
|
14
|
+
* Wrapped translated message for the client
|
|
15
|
+
* @dbscanner: json
|
|
16
|
+
*
|
|
14
17
|
* @generated from protobuf message resources.common.TranslateItem
|
|
15
18
|
*/
|
|
16
19
|
export interface TranslateItem {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/common/tests/objects.proto" (package "resources.common.tests", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
/**
|
|
14
|
+
* **INTERNAL ONLY** SimpleObject is used as a test object where proto-based messages are required.
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf message resources.common.tests.SimpleObject
|
|
17
|
+
*/
|
|
18
|
+
export interface SimpleObject {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string field1 = 1;
|
|
21
|
+
*/
|
|
22
|
+
field1: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: bool field2 = 2;
|
|
25
|
+
*/
|
|
26
|
+
field2: boolean;
|
|
27
|
+
}
|
|
28
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
29
|
+
class SimpleObject$Type extends MessageType<SimpleObject> {
|
|
30
|
+
constructor() {
|
|
31
|
+
super("resources.common.tests.SimpleObject", [
|
|
32
|
+
{ no: 1, name: "field1", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
33
|
+
{ no: 2, name: "field2", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
create(value?: PartialMessage<SimpleObject>): SimpleObject {
|
|
37
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
38
|
+
message.field1 = "";
|
|
39
|
+
message.field2 = false;
|
|
40
|
+
if (value !== undefined)
|
|
41
|
+
reflectionMergePartial<SimpleObject>(this, message, value);
|
|
42
|
+
return message;
|
|
43
|
+
}
|
|
44
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SimpleObject): SimpleObject {
|
|
45
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
let [fieldNo, wireType] = reader.tag();
|
|
48
|
+
switch (fieldNo) {
|
|
49
|
+
case /* string field1 */ 1:
|
|
50
|
+
message.field1 = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
case /* bool field2 */ 2:
|
|
53
|
+
message.field2 = reader.bool();
|
|
54
|
+
break;
|
|
55
|
+
default:
|
|
56
|
+
let u = options.readUnknownField;
|
|
57
|
+
if (u === "throw")
|
|
58
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
59
|
+
let d = reader.skip(wireType);
|
|
60
|
+
if (u !== false)
|
|
61
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
}
|
|
66
|
+
internalBinaryWrite(message: SimpleObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
67
|
+
/* string field1 = 1; */
|
|
68
|
+
if (message.field1 !== "")
|
|
69
|
+
writer.tag(1, WireType.LengthDelimited).string(message.field1);
|
|
70
|
+
/* bool field2 = 2; */
|
|
71
|
+
if (message.field2 !== false)
|
|
72
|
+
writer.tag(2, WireType.Varint).bool(message.field2);
|
|
73
|
+
let u = options.writeUnknownFields;
|
|
74
|
+
if (u !== false)
|
|
75
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
76
|
+
return writer;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @generated MessageType for protobuf message resources.common.tests.SimpleObject
|
|
81
|
+
*/
|
|
82
|
+
export const SimpleObject = new SimpleObject$Type();
|
package/resources/common/uuid.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/common/uuid.proto" (package "resources.common", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|