@fivenet-app/gen 0.9.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/package.json +15 -0
- package/perms.ts +178 -0
- package/resources/accounts/accounts.ts +195 -0
- package/resources/accounts/oauth2.ts +230 -0
- package/resources/calendar/access.ts +362 -0
- package/resources/calendar/calendar.ts +955 -0
- package/resources/centrum/access.ts +380 -0
- package/resources/centrum/dispatches.ts +854 -0
- package/resources/centrum/general.ts +231 -0
- package/resources/centrum/settings.ts +303 -0
- package/resources/centrum/units.ts +620 -0
- package/resources/common/access/dummy.ts +309 -0
- package/resources/common/content/content.ts +252 -0
- package/resources/common/cron/cron.ts +536 -0
- package/resources/common/database/database.ts +306 -0
- package/resources/common/error.ts +79 -0
- package/resources/common/grpcws/grpcws.ts +615 -0
- package/resources/common/i18n.ts +102 -0
- package/resources/common/uuid.ts +68 -0
- package/resources/documents/access.ts +388 -0
- package/resources/documents/activity.ts +803 -0
- package/resources/documents/category.ts +132 -0
- package/resources/documents/comment.ts +161 -0
- package/resources/documents/documents.ts +1124 -0
- package/resources/documents/requests.ts +196 -0
- package/resources/documents/templates.ts +949 -0
- package/resources/documents/workflow.ts +349 -0
- package/resources/filestore/file.ts +204 -0
- package/resources/internet/ads.ts +257 -0
- package/resources/internet/domain.ts +136 -0
- package/resources/internet/internet.ts +344 -0
- package/resources/internet/page.ts +236 -0
- package/resources/internet/search.ts +104 -0
- package/resources/jobs/activity.ts +600 -0
- package/resources/jobs/colleagues.ts +346 -0
- package/resources/jobs/conduct.ts +220 -0
- package/resources/jobs/labels.ts +240 -0
- package/resources/jobs/timeclock.ts +372 -0
- package/resources/laws/laws.ts +293 -0
- package/resources/livemap/livemap.ts +728 -0
- package/resources/livemap/tracker.ts +81 -0
- package/resources/mailer/access.ts +485 -0
- package/resources/mailer/email.ts +222 -0
- package/resources/mailer/events.ts +196 -0
- package/resources/mailer/message.ts +285 -0
- package/resources/mailer/settings.ts +95 -0
- package/resources/mailer/template.ts +164 -0
- package/resources/mailer/thread.ts +422 -0
- package/resources/mailer/user.ts +93 -0
- package/resources/notifications/events.ts +287 -0
- package/resources/notifications/notifications.ts +444 -0
- package/resources/permissions/permissions.ts +829 -0
- package/resources/qualifications/access.ts +275 -0
- package/resources/qualifications/exam.ts +1421 -0
- package/resources/qualifications/qualifications.ts +1289 -0
- package/resources/rector/audit.ts +226 -0
- package/resources/rector/config.ts +922 -0
- package/resources/stats/stats.ts +67 -0
- package/resources/sync/activity.ts +356 -0
- package/resources/sync/data.ts +455 -0
- package/resources/timestamp/timestamp.ts +78 -0
- package/resources/users/activity.ts +211 -0
- package/resources/users/job_props.ts +992 -0
- package/resources/users/jobs.ts +171 -0
- package/resources/users/labels.ts +161 -0
- package/resources/users/props.ts +207 -0
- package/resources/users/users.ts +570 -0
- package/resources/vehicles/vehicles.ts +114 -0
- package/resources/wiki/access.ts +362 -0
- package/resources/wiki/activity.ts +591 -0
- package/resources/wiki/page.ts +548 -0
- package/services/auth/auth.client.ts +171 -0
- package/services/auth/auth.ts +1331 -0
- package/services/calendar/calendar.client.ts +262 -0
- package/services/calendar/calendar.ts +1733 -0
- package/services/centrum/centrum.client.ts +365 -0
- package/services/centrum/centrum.ts +2619 -0
- package/services/citizenstore/citizenstore.client.ts +126 -0
- package/services/citizenstore/citizenstore.ts +847 -0
- package/services/completor/completor.client.ts +109 -0
- package/services/completor/completor.ts +616 -0
- package/services/dmv/vehicles.client.ts +41 -0
- package/services/dmv/vehicles.ts +191 -0
- package/services/docstore/docstore.client.ts +653 -0
- package/services/docstore/docstore.ts +4571 -0
- package/services/internet/ads.client.ts +41 -0
- package/services/internet/ads.ts +145 -0
- package/services/internet/internet.client.ts +58 -0
- package/services/internet/internet.ts +257 -0
- package/services/jobs/conduct.client.ts +92 -0
- package/services/jobs/conduct.ts +541 -0
- package/services/jobs/jobs.client.ts +194 -0
- package/services/jobs/jobs.ts +1301 -0
- package/services/jobs/timeclock.client.ts +75 -0
- package/services/jobs/timeclock.ts +808 -0
- package/services/livemapper/livemap.client.ts +76 -0
- package/services/livemapper/livemap.ts +552 -0
- package/services/mailer/mailer.client.ts +381 -0
- package/services/mailer/mailer.ts +2590 -0
- package/services/notificator/notificator.client.ts +76 -0
- package/services/notificator/notificator.ts +510 -0
- package/services/qualifications/qualifications.client.ts +279 -0
- package/services/qualifications/qualifications.ts +2142 -0
- package/services/rector/config.client.ts +58 -0
- package/services/rector/config.ts +216 -0
- package/services/rector/filestore.client.ts +75 -0
- package/services/rector/filestore.ts +378 -0
- package/services/rector/laws.client.ts +92 -0
- package/services/rector/laws.ts +416 -0
- package/services/rector/rector.client.ts +211 -0
- package/services/rector/rector.ts +1540 -0
- package/services/stats/stats.client.ts +37 -0
- package/services/stats/stats.ts +128 -0
- package/services/sync/sync.client.ts +110 -0
- package/services/sync/sync.ts +831 -0
- package/services/wiki/wiki.client.ts +126 -0
- package/services/wiki/wiki.ts +749 -0
- package/svcs.ts +307 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/internet/ads.proto" (package "resources.internet", 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
|
+
import { File } from "../filestore/file";
|
|
14
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf message resources.internet.Ad
|
|
17
|
+
*/
|
|
18
|
+
export interface Ad {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
21
|
+
*/
|
|
22
|
+
id: string; // @gotags: sql:"primary_key" alias:"id"
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
25
|
+
*/
|
|
26
|
+
createdAt?: Timestamp;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
29
|
+
*/
|
|
30
|
+
updatedAt?: Timestamp;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
33
|
+
*/
|
|
34
|
+
deletedAt?: Timestamp;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: bool disabled = 5;
|
|
37
|
+
*/
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: resources.internet.AdType ad_type = 6;
|
|
41
|
+
*/
|
|
42
|
+
adType: AdType;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp starts_at = 7;
|
|
45
|
+
*/
|
|
46
|
+
startsAt?: Timestamp;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp ends_at = 8;
|
|
49
|
+
*/
|
|
50
|
+
endsAt?: Timestamp;
|
|
51
|
+
/**
|
|
52
|
+
* @sanitize: method=StripTags
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf field: string title = 9;
|
|
55
|
+
*/
|
|
56
|
+
title: string;
|
|
57
|
+
/**
|
|
58
|
+
* @sanitize: method=StripTags
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf field: string description = 10;
|
|
61
|
+
*/
|
|
62
|
+
description: string;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: optional resources.filestore.File image = 11;
|
|
65
|
+
*/
|
|
66
|
+
image?: File;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: optional int32 approver_id = 12;
|
|
69
|
+
*/
|
|
70
|
+
approverId?: number;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: optional string approver_job = 13;
|
|
73
|
+
*/
|
|
74
|
+
approverJob?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: optional int32 creator_id = 14;
|
|
77
|
+
*/
|
|
78
|
+
creatorId?: number;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: optional string creator_job = 15;
|
|
81
|
+
*/
|
|
82
|
+
creatorJob?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf enum resources.internet.AdType
|
|
86
|
+
*/
|
|
87
|
+
export enum AdType {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf enum value: AD_TYPE_UNSPECIFIED = 0;
|
|
90
|
+
*/
|
|
91
|
+
UNSPECIFIED = 0,
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf enum value: AD_TYPE_SPONSORED = 1;
|
|
94
|
+
*/
|
|
95
|
+
SPONSORED = 1,
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf enum value: AD_TYPE_SEARCH_RESULT = 2;
|
|
98
|
+
*/
|
|
99
|
+
SEARCH_RESULT = 2,
|
|
100
|
+
/**
|
|
101
|
+
* @generated from protobuf enum value: AD_TYPE_CONTENT_MAIN = 3;
|
|
102
|
+
*/
|
|
103
|
+
CONTENT_MAIN = 3,
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf enum value: AD_TYPE_CONTENT_ASIDE = 4;
|
|
106
|
+
*/
|
|
107
|
+
CONTENT_ASIDE = 4
|
|
108
|
+
}
|
|
109
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
110
|
+
class Ad$Type extends MessageType<Ad> {
|
|
111
|
+
constructor() {
|
|
112
|
+
super("resources.internet.Ad", [
|
|
113
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
114
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
115
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
116
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
117
|
+
{ no: 5, name: "disabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
118
|
+
{ no: 6, name: "ad_type", kind: "enum", T: () => ["resources.internet.AdType", AdType, "AD_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
119
|
+
{ no: 7, name: "starts_at", kind: "message", T: () => Timestamp },
|
|
120
|
+
{ no: 8, name: "ends_at", kind: "message", T: () => Timestamp },
|
|
121
|
+
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "255" } } } },
|
|
122
|
+
{ no: 10, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "1024" } } } },
|
|
123
|
+
{ no: 11, name: "image", kind: "message", T: () => File },
|
|
124
|
+
{ no: 12, name: "approver_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
125
|
+
{ no: 13, name: "approver_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
126
|
+
{ no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
127
|
+
{ no: 15, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
128
|
+
]);
|
|
129
|
+
}
|
|
130
|
+
create(value?: PartialMessage<Ad>): Ad {
|
|
131
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
132
|
+
message.id = "0";
|
|
133
|
+
message.disabled = false;
|
|
134
|
+
message.adType = 0;
|
|
135
|
+
message.title = "";
|
|
136
|
+
message.description = "";
|
|
137
|
+
if (value !== undefined)
|
|
138
|
+
reflectionMergePartial<Ad>(this, message, value);
|
|
139
|
+
return message;
|
|
140
|
+
}
|
|
141
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Ad): Ad {
|
|
142
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
143
|
+
while (reader.pos < end) {
|
|
144
|
+
let [fieldNo, wireType] = reader.tag();
|
|
145
|
+
switch (fieldNo) {
|
|
146
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
147
|
+
message.id = reader.uint64().toString();
|
|
148
|
+
break;
|
|
149
|
+
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
150
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
151
|
+
break;
|
|
152
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
153
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
154
|
+
break;
|
|
155
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
156
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
157
|
+
break;
|
|
158
|
+
case /* bool disabled */ 5:
|
|
159
|
+
message.disabled = reader.bool();
|
|
160
|
+
break;
|
|
161
|
+
case /* resources.internet.AdType ad_type */ 6:
|
|
162
|
+
message.adType = reader.int32();
|
|
163
|
+
break;
|
|
164
|
+
case /* optional resources.timestamp.Timestamp starts_at */ 7:
|
|
165
|
+
message.startsAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startsAt);
|
|
166
|
+
break;
|
|
167
|
+
case /* optional resources.timestamp.Timestamp ends_at */ 8:
|
|
168
|
+
message.endsAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.endsAt);
|
|
169
|
+
break;
|
|
170
|
+
case /* string title */ 9:
|
|
171
|
+
message.title = reader.string();
|
|
172
|
+
break;
|
|
173
|
+
case /* string description */ 10:
|
|
174
|
+
message.description = reader.string();
|
|
175
|
+
break;
|
|
176
|
+
case /* optional resources.filestore.File image */ 11:
|
|
177
|
+
message.image = File.internalBinaryRead(reader, reader.uint32(), options, message.image);
|
|
178
|
+
break;
|
|
179
|
+
case /* optional int32 approver_id */ 12:
|
|
180
|
+
message.approverId = reader.int32();
|
|
181
|
+
break;
|
|
182
|
+
case /* optional string approver_job */ 13:
|
|
183
|
+
message.approverJob = reader.string();
|
|
184
|
+
break;
|
|
185
|
+
case /* optional int32 creator_id */ 14:
|
|
186
|
+
message.creatorId = reader.int32();
|
|
187
|
+
break;
|
|
188
|
+
case /* optional string creator_job */ 15:
|
|
189
|
+
message.creatorJob = reader.string();
|
|
190
|
+
break;
|
|
191
|
+
default:
|
|
192
|
+
let u = options.readUnknownField;
|
|
193
|
+
if (u === "throw")
|
|
194
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
195
|
+
let d = reader.skip(wireType);
|
|
196
|
+
if (u !== false)
|
|
197
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return message;
|
|
201
|
+
}
|
|
202
|
+
internalBinaryWrite(message: Ad, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
203
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
204
|
+
if (message.id !== "0")
|
|
205
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
206
|
+
/* resources.timestamp.Timestamp created_at = 2; */
|
|
207
|
+
if (message.createdAt)
|
|
208
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
209
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
210
|
+
if (message.updatedAt)
|
|
211
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
212
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
213
|
+
if (message.deletedAt)
|
|
214
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
215
|
+
/* bool disabled = 5; */
|
|
216
|
+
if (message.disabled !== false)
|
|
217
|
+
writer.tag(5, WireType.Varint).bool(message.disabled);
|
|
218
|
+
/* resources.internet.AdType ad_type = 6; */
|
|
219
|
+
if (message.adType !== 0)
|
|
220
|
+
writer.tag(6, WireType.Varint).int32(message.adType);
|
|
221
|
+
/* optional resources.timestamp.Timestamp starts_at = 7; */
|
|
222
|
+
if (message.startsAt)
|
|
223
|
+
Timestamp.internalBinaryWrite(message.startsAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
224
|
+
/* optional resources.timestamp.Timestamp ends_at = 8; */
|
|
225
|
+
if (message.endsAt)
|
|
226
|
+
Timestamp.internalBinaryWrite(message.endsAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
227
|
+
/* string title = 9; */
|
|
228
|
+
if (message.title !== "")
|
|
229
|
+
writer.tag(9, WireType.LengthDelimited).string(message.title);
|
|
230
|
+
/* string description = 10; */
|
|
231
|
+
if (message.description !== "")
|
|
232
|
+
writer.tag(10, WireType.LengthDelimited).string(message.description);
|
|
233
|
+
/* optional resources.filestore.File image = 11; */
|
|
234
|
+
if (message.image)
|
|
235
|
+
File.internalBinaryWrite(message.image, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
236
|
+
/* optional int32 approver_id = 12; */
|
|
237
|
+
if (message.approverId !== undefined)
|
|
238
|
+
writer.tag(12, WireType.Varint).int32(message.approverId);
|
|
239
|
+
/* optional string approver_job = 13; */
|
|
240
|
+
if (message.approverJob !== undefined)
|
|
241
|
+
writer.tag(13, WireType.LengthDelimited).string(message.approverJob);
|
|
242
|
+
/* optional int32 creator_id = 14; */
|
|
243
|
+
if (message.creatorId !== undefined)
|
|
244
|
+
writer.tag(14, WireType.Varint).int32(message.creatorId);
|
|
245
|
+
/* optional string creator_job = 15; */
|
|
246
|
+
if (message.creatorJob !== undefined)
|
|
247
|
+
writer.tag(15, WireType.LengthDelimited).string(message.creatorJob);
|
|
248
|
+
let u = options.writeUnknownFields;
|
|
249
|
+
if (u !== false)
|
|
250
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
251
|
+
return writer;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @generated MessageType for protobuf message resources.internet.Ad
|
|
256
|
+
*/
|
|
257
|
+
export const Ad = new Ad$Type();
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/internet/domain.proto" (package "resources.internet", 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
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message resources.internet.Domain
|
|
16
|
+
*/
|
|
17
|
+
export interface Domain {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
24
|
+
*/
|
|
25
|
+
createdAt?: Timestamp;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
28
|
+
*/
|
|
29
|
+
updatedAt?: Timestamp;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
32
|
+
*/
|
|
33
|
+
deletedAt?: Timestamp;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: string name = 5;
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: optional string creator_job = 6;
|
|
40
|
+
*/
|
|
41
|
+
creatorJob?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: optional int32 creator_id = 7;
|
|
44
|
+
*/
|
|
45
|
+
creatorId?: number;
|
|
46
|
+
}
|
|
47
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
48
|
+
class Domain$Type extends MessageType<Domain> {
|
|
49
|
+
constructor() {
|
|
50
|
+
super("resources.internet.Domain", [
|
|
51
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
52
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
53
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
54
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
55
|
+
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
56
|
+
{ no: 6, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
57
|
+
{ no: 7, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
58
|
+
]);
|
|
59
|
+
}
|
|
60
|
+
create(value?: PartialMessage<Domain>): Domain {
|
|
61
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
62
|
+
message.id = "0";
|
|
63
|
+
message.name = "";
|
|
64
|
+
if (value !== undefined)
|
|
65
|
+
reflectionMergePartial<Domain>(this, message, value);
|
|
66
|
+
return message;
|
|
67
|
+
}
|
|
68
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Domain): Domain {
|
|
69
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
70
|
+
while (reader.pos < end) {
|
|
71
|
+
let [fieldNo, wireType] = reader.tag();
|
|
72
|
+
switch (fieldNo) {
|
|
73
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
74
|
+
message.id = reader.uint64().toString();
|
|
75
|
+
break;
|
|
76
|
+
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
77
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
78
|
+
break;
|
|
79
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
80
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
81
|
+
break;
|
|
82
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
83
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
84
|
+
break;
|
|
85
|
+
case /* string name */ 5:
|
|
86
|
+
message.name = reader.string();
|
|
87
|
+
break;
|
|
88
|
+
case /* optional string creator_job */ 6:
|
|
89
|
+
message.creatorJob = reader.string();
|
|
90
|
+
break;
|
|
91
|
+
case /* optional int32 creator_id */ 7:
|
|
92
|
+
message.creatorId = reader.int32();
|
|
93
|
+
break;
|
|
94
|
+
default:
|
|
95
|
+
let u = options.readUnknownField;
|
|
96
|
+
if (u === "throw")
|
|
97
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
98
|
+
let d = reader.skip(wireType);
|
|
99
|
+
if (u !== false)
|
|
100
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
}
|
|
105
|
+
internalBinaryWrite(message: Domain, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
106
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
107
|
+
if (message.id !== "0")
|
|
108
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
109
|
+
/* resources.timestamp.Timestamp created_at = 2; */
|
|
110
|
+
if (message.createdAt)
|
|
111
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
112
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
113
|
+
if (message.updatedAt)
|
|
114
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
115
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
116
|
+
if (message.deletedAt)
|
|
117
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
118
|
+
/* string name = 5; */
|
|
119
|
+
if (message.name !== "")
|
|
120
|
+
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
121
|
+
/* optional string creator_job = 6; */
|
|
122
|
+
if (message.creatorJob !== undefined)
|
|
123
|
+
writer.tag(6, WireType.LengthDelimited).string(message.creatorJob);
|
|
124
|
+
/* optional int32 creator_id = 7; */
|
|
125
|
+
if (message.creatorId !== undefined)
|
|
126
|
+
writer.tag(7, WireType.Varint).int32(message.creatorId);
|
|
127
|
+
let u = options.writeUnknownFields;
|
|
128
|
+
if (u !== false)
|
|
129
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
130
|
+
return writer;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated MessageType for protobuf message resources.internet.Domain
|
|
135
|
+
*/
|
|
136
|
+
export const Domain = new Domain$Type();
|