@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.
Files changed (123) hide show
  1. package/README.md +1 -0
  2. package/google/protobuf/any.ts +322 -0
  3. package/google/protobuf/descriptor.ts +3475 -0
  4. package/google/protobuf/duration.ts +231 -0
  5. package/google/protobuf/timestamp.ts +290 -0
  6. package/package.json +15 -0
  7. package/perms.ts +178 -0
  8. package/resources/accounts/accounts.ts +195 -0
  9. package/resources/accounts/oauth2.ts +230 -0
  10. package/resources/calendar/access.ts +362 -0
  11. package/resources/calendar/calendar.ts +955 -0
  12. package/resources/centrum/access.ts +380 -0
  13. package/resources/centrum/dispatches.ts +854 -0
  14. package/resources/centrum/general.ts +231 -0
  15. package/resources/centrum/settings.ts +303 -0
  16. package/resources/centrum/units.ts +620 -0
  17. package/resources/common/access/dummy.ts +309 -0
  18. package/resources/common/content/content.ts +252 -0
  19. package/resources/common/cron/cron.ts +536 -0
  20. package/resources/common/database/database.ts +306 -0
  21. package/resources/common/error.ts +79 -0
  22. package/resources/common/grpcws/grpcws.ts +615 -0
  23. package/resources/common/i18n.ts +102 -0
  24. package/resources/common/uuid.ts +68 -0
  25. package/resources/documents/access.ts +388 -0
  26. package/resources/documents/activity.ts +803 -0
  27. package/resources/documents/category.ts +132 -0
  28. package/resources/documents/comment.ts +161 -0
  29. package/resources/documents/documents.ts +1124 -0
  30. package/resources/documents/requests.ts +196 -0
  31. package/resources/documents/templates.ts +949 -0
  32. package/resources/documents/workflow.ts +349 -0
  33. package/resources/filestore/file.ts +204 -0
  34. package/resources/internet/ads.ts +257 -0
  35. package/resources/internet/domain.ts +136 -0
  36. package/resources/internet/internet.ts +344 -0
  37. package/resources/internet/page.ts +236 -0
  38. package/resources/internet/search.ts +104 -0
  39. package/resources/jobs/activity.ts +600 -0
  40. package/resources/jobs/colleagues.ts +346 -0
  41. package/resources/jobs/conduct.ts +220 -0
  42. package/resources/jobs/labels.ts +240 -0
  43. package/resources/jobs/timeclock.ts +372 -0
  44. package/resources/laws/laws.ts +293 -0
  45. package/resources/livemap/livemap.ts +728 -0
  46. package/resources/livemap/tracker.ts +81 -0
  47. package/resources/mailer/access.ts +485 -0
  48. package/resources/mailer/email.ts +222 -0
  49. package/resources/mailer/events.ts +196 -0
  50. package/resources/mailer/message.ts +285 -0
  51. package/resources/mailer/settings.ts +95 -0
  52. package/resources/mailer/template.ts +164 -0
  53. package/resources/mailer/thread.ts +422 -0
  54. package/resources/mailer/user.ts +93 -0
  55. package/resources/notifications/events.ts +287 -0
  56. package/resources/notifications/notifications.ts +444 -0
  57. package/resources/permissions/permissions.ts +829 -0
  58. package/resources/qualifications/access.ts +275 -0
  59. package/resources/qualifications/exam.ts +1421 -0
  60. package/resources/qualifications/qualifications.ts +1289 -0
  61. package/resources/rector/audit.ts +226 -0
  62. package/resources/rector/config.ts +922 -0
  63. package/resources/stats/stats.ts +67 -0
  64. package/resources/sync/activity.ts +356 -0
  65. package/resources/sync/data.ts +455 -0
  66. package/resources/timestamp/timestamp.ts +78 -0
  67. package/resources/users/activity.ts +211 -0
  68. package/resources/users/job_props.ts +992 -0
  69. package/resources/users/jobs.ts +171 -0
  70. package/resources/users/labels.ts +161 -0
  71. package/resources/users/props.ts +207 -0
  72. package/resources/users/users.ts +570 -0
  73. package/resources/vehicles/vehicles.ts +114 -0
  74. package/resources/wiki/access.ts +362 -0
  75. package/resources/wiki/activity.ts +591 -0
  76. package/resources/wiki/page.ts +548 -0
  77. package/services/auth/auth.client.ts +171 -0
  78. package/services/auth/auth.ts +1331 -0
  79. package/services/calendar/calendar.client.ts +262 -0
  80. package/services/calendar/calendar.ts +1733 -0
  81. package/services/centrum/centrum.client.ts +365 -0
  82. package/services/centrum/centrum.ts +2619 -0
  83. package/services/citizenstore/citizenstore.client.ts +126 -0
  84. package/services/citizenstore/citizenstore.ts +847 -0
  85. package/services/completor/completor.client.ts +109 -0
  86. package/services/completor/completor.ts +616 -0
  87. package/services/dmv/vehicles.client.ts +41 -0
  88. package/services/dmv/vehicles.ts +191 -0
  89. package/services/docstore/docstore.client.ts +653 -0
  90. package/services/docstore/docstore.ts +4571 -0
  91. package/services/internet/ads.client.ts +41 -0
  92. package/services/internet/ads.ts +145 -0
  93. package/services/internet/internet.client.ts +58 -0
  94. package/services/internet/internet.ts +257 -0
  95. package/services/jobs/conduct.client.ts +92 -0
  96. package/services/jobs/conduct.ts +541 -0
  97. package/services/jobs/jobs.client.ts +194 -0
  98. package/services/jobs/jobs.ts +1301 -0
  99. package/services/jobs/timeclock.client.ts +75 -0
  100. package/services/jobs/timeclock.ts +808 -0
  101. package/services/livemapper/livemap.client.ts +76 -0
  102. package/services/livemapper/livemap.ts +552 -0
  103. package/services/mailer/mailer.client.ts +381 -0
  104. package/services/mailer/mailer.ts +2590 -0
  105. package/services/notificator/notificator.client.ts +76 -0
  106. package/services/notificator/notificator.ts +510 -0
  107. package/services/qualifications/qualifications.client.ts +279 -0
  108. package/services/qualifications/qualifications.ts +2142 -0
  109. package/services/rector/config.client.ts +58 -0
  110. package/services/rector/config.ts +216 -0
  111. package/services/rector/filestore.client.ts +75 -0
  112. package/services/rector/filestore.ts +378 -0
  113. package/services/rector/laws.client.ts +92 -0
  114. package/services/rector/laws.ts +416 -0
  115. package/services/rector/rector.client.ts +211 -0
  116. package/services/rector/rector.ts +1540 -0
  117. package/services/stats/stats.client.ts +37 -0
  118. package/services/stats/stats.ts +128 -0
  119. package/services/sync/sync.client.ts +110 -0
  120. package/services/sync/sync.ts +831 -0
  121. package/services/wiki/wiki.client.ts +126 -0
  122. package/services/wiki/wiki.ts +749 -0
  123. package/svcs.ts +307 -0
@@ -0,0 +1,211 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/users/activity.proto" (package "resources.users", 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 { UserShort } from "./users";
14
+ import { Timestamp } from "../timestamp/timestamp";
15
+ /**
16
+ * @generated from protobuf message resources.users.UserActivity
17
+ */
18
+ export interface UserActivity {
19
+ /**
20
+ * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
21
+ */
22
+ id: string; // @gotags: alias:"fivenet_user_activity.id"
23
+ /**
24
+ * @generated from protobuf field: resources.users.UserActivityType type = 2;
25
+ */
26
+ type: UserActivityType; // @gotags: alias:"fivenet_user_activity.type"
27
+ /**
28
+ * @generated from protobuf field: resources.timestamp.Timestamp created_at = 3;
29
+ */
30
+ createdAt?: Timestamp; // @gotags: alias:"fivenet_user_activity.created_at"
31
+ /**
32
+ * @generated from protobuf field: optional int32 source_user_id = 4;
33
+ */
34
+ sourceUserId?: number; // @gotags: alias:"source_user_id"
35
+ /**
36
+ * @generated from protobuf field: optional resources.users.UserShort source_user = 5;
37
+ */
38
+ sourceUser?: UserShort; // @gotags: alias:"source_user"
39
+ /**
40
+ * @generated from protobuf field: int32 target_user_id = 6;
41
+ */
42
+ targetUserId: number; // @gotags: alias:"target_user_id"
43
+ /**
44
+ * @generated from protobuf field: resources.users.UserShort target_user = 7;
45
+ */
46
+ targetUser?: UserShort; // @gotags: alias:"target_user"
47
+ /**
48
+ * @sanitize
49
+ *
50
+ * @generated from protobuf field: string key = 8;
51
+ */
52
+ key: string; // @gotags: alias:"fivenet_user_activity.key"
53
+ /**
54
+ * @generated from protobuf field: string old_value = 9;
55
+ */
56
+ oldValue: string; // @gotags: alias:"fivenet_user_activity.old_value"
57
+ /**
58
+ * @generated from protobuf field: string new_value = 10;
59
+ */
60
+ newValue: string; // @gotags: alias:"fivenet_user_activity.new_value"
61
+ /**
62
+ * @sanitize
63
+ *
64
+ * @generated from protobuf field: string reason = 11;
65
+ */
66
+ reason: string; // @gotags: alias:"fivenet_user_activity.reason"
67
+ }
68
+ /**
69
+ * @generated from protobuf enum resources.users.UserActivityType
70
+ */
71
+ export enum UserActivityType {
72
+ /**
73
+ * @generated from protobuf enum value: USER_ACTIVITY_TYPE_UNSPECIFIED = 0;
74
+ */
75
+ UNSPECIFIED = 0,
76
+ /**
77
+ * @generated from protobuf enum value: USER_ACTIVITY_TYPE_CHANGED = 1;
78
+ */
79
+ CHANGED = 1,
80
+ /**
81
+ * @generated from protobuf enum value: USER_ACTIVITY_TYPE_MENTIONED = 2;
82
+ */
83
+ MENTIONED = 2,
84
+ /**
85
+ * @generated from protobuf enum value: USER_ACTIVITY_TYPE_CREATED = 3;
86
+ */
87
+ CREATED = 3
88
+ }
89
+ // @generated message type with reflection information, may provide speed optimized methods
90
+ class UserActivity$Type extends MessageType<UserActivity> {
91
+ constructor() {
92
+ super("resources.users.UserActivity", [
93
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
94
+ { no: 2, name: "type", kind: "enum", T: () => ["resources.users.UserActivityType", UserActivityType, "USER_ACTIVITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
95
+ { no: 3, name: "created_at", kind: "message", T: () => Timestamp },
96
+ { no: 4, name: "source_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
97
+ { no: 5, name: "source_user", kind: "message", T: () => UserShort },
98
+ { no: 6, name: "target_user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
99
+ { no: 7, name: "target_user", kind: "message", T: () => UserShort },
100
+ { no: 8, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "64" } } } },
101
+ { no: 9, name: "old_value", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
102
+ { no: 10, name: "new_value", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
103
+ { no: 11, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } }
104
+ ]);
105
+ }
106
+ create(value?: PartialMessage<UserActivity>): UserActivity {
107
+ const message = globalThis.Object.create((this.messagePrototype!));
108
+ message.id = "0";
109
+ message.type = 0;
110
+ message.targetUserId = 0;
111
+ message.key = "";
112
+ message.oldValue = "";
113
+ message.newValue = "";
114
+ message.reason = "";
115
+ if (value !== undefined)
116
+ reflectionMergePartial<UserActivity>(this, message, value);
117
+ return message;
118
+ }
119
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserActivity): UserActivity {
120
+ let message = target ?? this.create(), end = reader.pos + length;
121
+ while (reader.pos < end) {
122
+ let [fieldNo, wireType] = reader.tag();
123
+ switch (fieldNo) {
124
+ case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
125
+ message.id = reader.uint64().toString();
126
+ break;
127
+ case /* resources.users.UserActivityType type */ 2:
128
+ message.type = reader.int32();
129
+ break;
130
+ case /* resources.timestamp.Timestamp created_at */ 3:
131
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
132
+ break;
133
+ case /* optional int32 source_user_id */ 4:
134
+ message.sourceUserId = reader.int32();
135
+ break;
136
+ case /* optional resources.users.UserShort source_user */ 5:
137
+ message.sourceUser = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.sourceUser);
138
+ break;
139
+ case /* int32 target_user_id */ 6:
140
+ message.targetUserId = reader.int32();
141
+ break;
142
+ case /* resources.users.UserShort target_user */ 7:
143
+ message.targetUser = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.targetUser);
144
+ break;
145
+ case /* string key */ 8:
146
+ message.key = reader.string();
147
+ break;
148
+ case /* string old_value */ 9:
149
+ message.oldValue = reader.string();
150
+ break;
151
+ case /* string new_value */ 10:
152
+ message.newValue = reader.string();
153
+ break;
154
+ case /* string reason */ 11:
155
+ message.reason = reader.string();
156
+ break;
157
+ default:
158
+ let u = options.readUnknownField;
159
+ if (u === "throw")
160
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
161
+ let d = reader.skip(wireType);
162
+ if (u !== false)
163
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
164
+ }
165
+ }
166
+ return message;
167
+ }
168
+ internalBinaryWrite(message: UserActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
169
+ /* uint64 id = 1 [jstype = JS_STRING]; */
170
+ if (message.id !== "0")
171
+ writer.tag(1, WireType.Varint).uint64(message.id);
172
+ /* resources.users.UserActivityType type = 2; */
173
+ if (message.type !== 0)
174
+ writer.tag(2, WireType.Varint).int32(message.type);
175
+ /* resources.timestamp.Timestamp created_at = 3; */
176
+ if (message.createdAt)
177
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
178
+ /* optional int32 source_user_id = 4; */
179
+ if (message.sourceUserId !== undefined)
180
+ writer.tag(4, WireType.Varint).int32(message.sourceUserId);
181
+ /* optional resources.users.UserShort source_user = 5; */
182
+ if (message.sourceUser)
183
+ UserShort.internalBinaryWrite(message.sourceUser, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
184
+ /* int32 target_user_id = 6; */
185
+ if (message.targetUserId !== 0)
186
+ writer.tag(6, WireType.Varint).int32(message.targetUserId);
187
+ /* resources.users.UserShort target_user = 7; */
188
+ if (message.targetUser)
189
+ UserShort.internalBinaryWrite(message.targetUser, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
190
+ /* string key = 8; */
191
+ if (message.key !== "")
192
+ writer.tag(8, WireType.LengthDelimited).string(message.key);
193
+ /* string old_value = 9; */
194
+ if (message.oldValue !== "")
195
+ writer.tag(9, WireType.LengthDelimited).string(message.oldValue);
196
+ /* string new_value = 10; */
197
+ if (message.newValue !== "")
198
+ writer.tag(10, WireType.LengthDelimited).string(message.newValue);
199
+ /* string reason = 11; */
200
+ if (message.reason !== "")
201
+ writer.tag(11, WireType.LengthDelimited).string(message.reason);
202
+ let u = options.writeUnknownFields;
203
+ if (u !== false)
204
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
205
+ return writer;
206
+ }
207
+ }
208
+ /**
209
+ * @generated MessageType for protobuf message resources.users.UserActivity
210
+ */
211
+ export const UserActivity = new UserActivity$Type();