@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,37 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "services/stats/stats.proto" (package "services.stats", syntax proto3)
3
+ // @ts-nocheck
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import { StatsService } from "./stats";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ import type { GetStatsResponse } from "./stats";
9
+ import type { GetStatsRequest } from "./stats";
10
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
11
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
12
+ /**
13
+ * @generated from protobuf service services.stats.StatsService
14
+ */
15
+ export interface IStatsServiceClient {
16
+ /**
17
+ * @generated from protobuf rpc: GetStats(services.stats.GetStatsRequest) returns (services.stats.GetStatsResponse);
18
+ */
19
+ getStats(input: GetStatsRequest, options?: RpcOptions): UnaryCall<GetStatsRequest, GetStatsResponse>;
20
+ }
21
+ /**
22
+ * @generated from protobuf service services.stats.StatsService
23
+ */
24
+ export class StatsServiceClient implements IStatsServiceClient, ServiceInfo {
25
+ typeName = StatsService.typeName;
26
+ methods = StatsService.methods;
27
+ options = StatsService.options;
28
+ constructor(private readonly _transport: RpcTransport) {
29
+ }
30
+ /**
31
+ * @generated from protobuf rpc: GetStats(services.stats.GetStatsRequest) returns (services.stats.GetStatsResponse);
32
+ */
33
+ getStats(input: GetStatsRequest, options?: RpcOptions): UnaryCall<GetStatsRequest, GetStatsResponse> {
34
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
35
+ return stackIntercept<GetStatsRequest, GetStatsResponse>("unary", this._transport, method, opt, input);
36
+ }
37
+ }
@@ -0,0 +1,128 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "services/stats/stats.proto" (package "services.stats", syntax proto3)
3
+ // @ts-nocheck
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import { WireType } from "@protobuf-ts/runtime";
6
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
9
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
10
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ import { Stat } from "../../resources/stats/stats";
15
+ /**
16
+ * @generated from protobuf message services.stats.GetStatsRequest
17
+ */
18
+ export interface GetStatsRequest {
19
+ }
20
+ /**
21
+ * @generated from protobuf message services.stats.GetStatsResponse
22
+ */
23
+ export interface GetStatsResponse {
24
+ /**
25
+ * @generated from protobuf field: map<string, resources.stats.Stat> stats = 1;
26
+ */
27
+ stats: {
28
+ [key: string]: Stat;
29
+ };
30
+ }
31
+ // @generated message type with reflection information, may provide speed optimized methods
32
+ class GetStatsRequest$Type extends MessageType<GetStatsRequest> {
33
+ constructor() {
34
+ super("services.stats.GetStatsRequest", []);
35
+ }
36
+ create(value?: PartialMessage<GetStatsRequest>): GetStatsRequest {
37
+ const message = globalThis.Object.create((this.messagePrototype!));
38
+ if (value !== undefined)
39
+ reflectionMergePartial<GetStatsRequest>(this, message, value);
40
+ return message;
41
+ }
42
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStatsRequest): GetStatsRequest {
43
+ return target ?? this.create();
44
+ }
45
+ internalBinaryWrite(message: GetStatsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
46
+ let u = options.writeUnknownFields;
47
+ if (u !== false)
48
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
49
+ return writer;
50
+ }
51
+ }
52
+ /**
53
+ * @generated MessageType for protobuf message services.stats.GetStatsRequest
54
+ */
55
+ export const GetStatsRequest = new GetStatsRequest$Type();
56
+ // @generated message type with reflection information, may provide speed optimized methods
57
+ class GetStatsResponse$Type extends MessageType<GetStatsResponse> {
58
+ constructor() {
59
+ super("services.stats.GetStatsResponse", [
60
+ { no: 1, name: "stats", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Stat } }
61
+ ]);
62
+ }
63
+ create(value?: PartialMessage<GetStatsResponse>): GetStatsResponse {
64
+ const message = globalThis.Object.create((this.messagePrototype!));
65
+ message.stats = {};
66
+ if (value !== undefined)
67
+ reflectionMergePartial<GetStatsResponse>(this, message, value);
68
+ return message;
69
+ }
70
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStatsResponse): GetStatsResponse {
71
+ let message = target ?? this.create(), end = reader.pos + length;
72
+ while (reader.pos < end) {
73
+ let [fieldNo, wireType] = reader.tag();
74
+ switch (fieldNo) {
75
+ case /* map<string, resources.stats.Stat> stats */ 1:
76
+ this.binaryReadMap1(message.stats, reader, options);
77
+ break;
78
+ default:
79
+ let u = options.readUnknownField;
80
+ if (u === "throw")
81
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
82
+ let d = reader.skip(wireType);
83
+ if (u !== false)
84
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
85
+ }
86
+ }
87
+ return message;
88
+ }
89
+ private binaryReadMap1(map: GetStatsResponse["stats"], reader: IBinaryReader, options: BinaryReadOptions): void {
90
+ let len = reader.uint32(), end = reader.pos + len, key: keyof GetStatsResponse["stats"] | undefined, val: GetStatsResponse["stats"][any] | undefined;
91
+ while (reader.pos < end) {
92
+ let [fieldNo, wireType] = reader.tag();
93
+ switch (fieldNo) {
94
+ case 1:
95
+ key = reader.string();
96
+ break;
97
+ case 2:
98
+ val = Stat.internalBinaryRead(reader, reader.uint32(), options);
99
+ break;
100
+ default: throw new globalThis.Error("unknown map entry field for field services.stats.GetStatsResponse.stats");
101
+ }
102
+ }
103
+ map[key ?? ""] = val ?? Stat.create();
104
+ }
105
+ internalBinaryWrite(message: GetStatsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
106
+ /* map<string, resources.stats.Stat> stats = 1; */
107
+ for (let k of globalThis.Object.keys(message.stats)) {
108
+ writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
109
+ writer.tag(2, WireType.LengthDelimited).fork();
110
+ Stat.internalBinaryWrite(message.stats[k], writer, options);
111
+ writer.join().join();
112
+ }
113
+ let u = options.writeUnknownFields;
114
+ if (u !== false)
115
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
116
+ return writer;
117
+ }
118
+ }
119
+ /**
120
+ * @generated MessageType for protobuf message services.stats.GetStatsResponse
121
+ */
122
+ export const GetStatsResponse = new GetStatsResponse$Type();
123
+ /**
124
+ * @generated ServiceType for protobuf service services.stats.StatsService
125
+ */
126
+ export const StatsService = new ServiceType("services.stats.StatsService", [
127
+ { name: "GetStats", options: {}, I: GetStatsRequest, O: GetStatsResponse }
128
+ ]);
@@ -0,0 +1,110 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "services/sync/sync.proto" (package "services.sync", syntax proto3)
3
+ // @ts-nocheck
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import { SyncService } from "./sync";
7
+ import type { StreamResponse } from "./sync";
8
+ import type { StreamRequest } from "./sync";
9
+ import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
10
+ import type { SendDataResponse } from "./sync";
11
+ import type { SendDataRequest } from "./sync";
12
+ import type { RegisterAccountResponse } from "./sync";
13
+ import type { RegisterAccountRequest } from "./sync";
14
+ import type { AddActivityResponse } from "./sync";
15
+ import type { AddActivityRequest } from "./sync";
16
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
17
+ import type { GetStatusResponse } from "./sync";
18
+ import type { GetStatusRequest } from "./sync";
19
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
20
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
21
+ /**
22
+ * @generated from protobuf service services.sync.SyncService
23
+ */
24
+ export interface ISyncServiceClient {
25
+ /**
26
+ * Get basic "sync state" from server side (currently simply the count of records on the server side).
27
+ *
28
+ * @generated from protobuf rpc: GetStatus(services.sync.GetStatusRequest) returns (services.sync.GetStatusResponse);
29
+ */
30
+ getStatus(input: GetStatusRequest, options?: RpcOptions): UnaryCall<GetStatusRequest, GetStatusResponse>;
31
+ /**
32
+ * For "tracking" activity such as "user received traffic infraction points", timeclock entries, etc.
33
+ *
34
+ * @generated from protobuf rpc: AddActivity(services.sync.AddActivityRequest) returns (services.sync.AddActivityResponse);
35
+ */
36
+ addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse>;
37
+ /**
38
+ * Get registration token for a new user account or return the account id and username, for a given identifier/license.
39
+ *
40
+ * @generated from protobuf rpc: RegisterAccount(services.sync.RegisterAccountRequest) returns (services.sync.RegisterAccountResponse);
41
+ */
42
+ registerAccount(input: RegisterAccountRequest, options?: RpcOptions): UnaryCall<RegisterAccountRequest, RegisterAccountResponse>;
43
+ /**
44
+ * DBSync's method of sending (mass) data to the FiveNet server for storing.
45
+ *
46
+ * @generated from protobuf rpc: SendData(services.sync.SendDataRequest) returns (services.sync.SendDataResponse);
47
+ */
48
+ sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse>;
49
+ /**
50
+ * Used for the server to stream events to the dbsync (e.g., "refresh" of user/char data)
51
+ *
52
+ * @generated from protobuf rpc: Stream(services.sync.StreamRequest) returns (stream services.sync.StreamResponse);
53
+ */
54
+ stream(input: StreamRequest, options?: RpcOptions): ServerStreamingCall<StreamRequest, StreamResponse>;
55
+ }
56
+ /**
57
+ * @generated from protobuf service services.sync.SyncService
58
+ */
59
+ export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
60
+ typeName = SyncService.typeName;
61
+ methods = SyncService.methods;
62
+ options = SyncService.options;
63
+ constructor(private readonly _transport: RpcTransport) {
64
+ }
65
+ /**
66
+ * Get basic "sync state" from server side (currently simply the count of records on the server side).
67
+ *
68
+ * @generated from protobuf rpc: GetStatus(services.sync.GetStatusRequest) returns (services.sync.GetStatusResponse);
69
+ */
70
+ getStatus(input: GetStatusRequest, options?: RpcOptions): UnaryCall<GetStatusRequest, GetStatusResponse> {
71
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
72
+ return stackIntercept<GetStatusRequest, GetStatusResponse>("unary", this._transport, method, opt, input);
73
+ }
74
+ /**
75
+ * For "tracking" activity such as "user received traffic infraction points", timeclock entries, etc.
76
+ *
77
+ * @generated from protobuf rpc: AddActivity(services.sync.AddActivityRequest) returns (services.sync.AddActivityResponse);
78
+ */
79
+ addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse> {
80
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
81
+ return stackIntercept<AddActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
82
+ }
83
+ /**
84
+ * Get registration token for a new user account or return the account id and username, for a given identifier/license.
85
+ *
86
+ * @generated from protobuf rpc: RegisterAccount(services.sync.RegisterAccountRequest) returns (services.sync.RegisterAccountResponse);
87
+ */
88
+ registerAccount(input: RegisterAccountRequest, options?: RpcOptions): UnaryCall<RegisterAccountRequest, RegisterAccountResponse> {
89
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
90
+ return stackIntercept<RegisterAccountRequest, RegisterAccountResponse>("unary", this._transport, method, opt, input);
91
+ }
92
+ /**
93
+ * DBSync's method of sending (mass) data to the FiveNet server for storing.
94
+ *
95
+ * @generated from protobuf rpc: SendData(services.sync.SendDataRequest) returns (services.sync.SendDataResponse);
96
+ */
97
+ sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse> {
98
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
99
+ return stackIntercept<SendDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
100
+ }
101
+ /**
102
+ * Used for the server to stream events to the dbsync (e.g., "refresh" of user/char data)
103
+ *
104
+ * @generated from protobuf rpc: Stream(services.sync.StreamRequest) returns (stream services.sync.StreamResponse);
105
+ */
106
+ stream(input: StreamRequest, options?: RpcOptions): ServerStreamingCall<StreamRequest, StreamResponse> {
107
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
108
+ return stackIntercept<StreamRequest, StreamResponse>("serverStreaming", this._transport, method, opt, input);
109
+ }
110
+ }