@fivenet-app/gen 0.9.4-0 → 2025.4.8

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 (130) hide show
  1. package/clients.ts +150 -0
  2. package/google/protobuf/any.ts +10 -6
  3. package/google/protobuf/descriptor.ts +1255 -76
  4. package/google/protobuf/duration.ts +1 -2
  5. package/google/protobuf/timestamp.ts +3 -6
  6. package/package.json +2 -2
  7. package/perms.ts +7 -11
  8. package/resources/accounts/accounts.ts +1 -1
  9. package/resources/accounts/oauth2.ts +1 -1
  10. package/resources/calendar/access.ts +3 -3
  11. package/resources/calendar/calendar.ts +3 -1
  12. package/resources/centrum/access.ts +19 -4
  13. package/resources/centrum/attributes.ts +182 -0
  14. package/resources/centrum/dispatches.ts +11 -9
  15. package/resources/centrum/disponents.ts +81 -0
  16. package/resources/centrum/settings.ts +5 -1
  17. package/resources/centrum/units.ts +9 -9
  18. package/resources/centrum/user_unit.ts +104 -0
  19. package/resources/common/content/content.ts +47 -26
  20. package/resources/common/cron/cron.ts +37 -1
  21. package/resources/common/database/database.ts +37 -19
  22. package/resources/common/error.ts +1 -1
  23. package/resources/common/grpcws/grpcws.ts +59 -33
  24. package/resources/common/i18n.ts +4 -1
  25. package/resources/common/tests/objects.ts +82 -0
  26. package/resources/common/uuid.ts +1 -1
  27. package/resources/documents/access.ts +7 -5
  28. package/resources/documents/activity.ts +3 -1
  29. package/resources/documents/category.ts +1 -1
  30. package/resources/documents/comment.ts +1 -1
  31. package/resources/documents/documents.ts +3 -3
  32. package/resources/documents/requests.ts +1 -1
  33. package/resources/documents/templates.ts +18 -3
  34. package/resources/documents/workflow.ts +3 -1
  35. package/resources/filestore/file.ts +1 -1
  36. package/resources/internet/access.ts +47 -47
  37. package/resources/internet/ads.ts +1 -1
  38. package/resources/internet/domain.ts +44 -11
  39. package/resources/internet/page.ts +194 -4
  40. package/resources/internet/search.ts +34 -10
  41. package/resources/jobs/activity.ts +3 -1
  42. package/resources/jobs/colleagues.ts +1 -1
  43. package/resources/jobs/conduct.ts +1 -1
  44. package/resources/jobs/labels.ts +1 -1
  45. package/resources/jobs/timeclock.ts +1 -1
  46. package/resources/laws/laws.ts +1 -1
  47. package/resources/livemap/livemap.ts +313 -294
  48. package/resources/livemap/tracker.ts +1 -1
  49. package/resources/mailer/access.ts +4 -4
  50. package/resources/mailer/email.ts +1 -1
  51. package/resources/mailer/events.ts +1 -1
  52. package/resources/mailer/message.ts +127 -21
  53. package/resources/mailer/settings.ts +1 -1
  54. package/resources/mailer/template.ts +1 -1
  55. package/resources/mailer/thread.ts +1 -1
  56. package/resources/notifications/events.ts +74 -2
  57. package/resources/notifications/notifications.ts +3 -1
  58. package/resources/permissions/permissions.ts +174 -3
  59. package/resources/qualifications/access.ts +18 -9
  60. package/resources/qualifications/exam.ts +186 -4
  61. package/resources/qualifications/qualifications.ts +35 -7
  62. package/resources/rector/audit.ts +1 -1
  63. package/resources/rector/banner.ts +133 -0
  64. package/resources/rector/config.ts +84 -17
  65. package/resources/stats/stats.ts +1 -1
  66. package/resources/sync/activity.ts +1 -1
  67. package/resources/sync/data.ts +1 -1
  68. package/resources/timestamp/timestamp.ts +1 -1
  69. package/resources/users/activity.ts +3 -1
  70. package/resources/users/job_props.ts +3 -1
  71. package/resources/users/job_settings.ts +47 -3
  72. package/resources/users/jobs.ts +1 -1
  73. package/resources/users/labels.ts +3 -1
  74. package/resources/users/licenses.ts +3 -3
  75. package/resources/users/props.ts +1 -1
  76. package/resources/users/users.ts +1 -1
  77. package/resources/vehicles/vehicles.ts +38 -5
  78. package/resources/wiki/access.ts +4 -8
  79. package/resources/wiki/activity.ts +3 -1
  80. package/resources/wiki/page.ts +1 -1
  81. package/services/auth/auth.client.ts +7 -1
  82. package/services/auth/auth.ts +94 -17
  83. package/services/calendar/calendar.client.ts +44 -27
  84. package/services/calendar/calendar.ts +175 -25
  85. package/services/centrum/centrum.client.ts +1 -1
  86. package/services/centrum/centrum.ts +156 -13
  87. package/services/citizenstore/citizenstore.client.ts +1 -1
  88. package/services/citizenstore/citizenstore.ts +1 -1
  89. package/services/completor/completor.client.ts +1 -1
  90. package/services/completor/completor.ts +15 -2
  91. package/services/dmv/vehicles.client.ts +1 -1
  92. package/services/dmv/vehicles.ts +13 -2
  93. package/services/docstore/docstore.client.ts +3 -3
  94. package/services/docstore/docstore.ts +212 -17
  95. package/services/internet/ads.client.ts +1 -1
  96. package/services/internet/ads.ts +1 -1
  97. package/services/internet/domain.client.ts +13 -30
  98. package/services/internet/domain.ts +159 -196
  99. package/services/internet/internet.client.ts +1 -1
  100. package/services/internet/internet.ts +13 -2
  101. package/services/jobs/conduct.client.ts +1 -1
  102. package/services/jobs/conduct.ts +15 -2
  103. package/services/jobs/jobs.client.ts +1 -1
  104. package/services/jobs/jobs.ts +29 -3
  105. package/services/jobs/timeclock.client.ts +1 -1
  106. package/services/jobs/timeclock.ts +19 -19
  107. package/services/livemapper/livemap.client.ts +1 -1
  108. package/services/livemapper/livemap.ts +129 -27
  109. package/services/mailer/mailer.client.ts +1 -1
  110. package/services/mailer/mailer.ts +57 -5
  111. package/services/notificator/notificator.client.ts +1 -1
  112. package/services/notificator/notificator.ts +15 -2
  113. package/services/qualifications/qualifications.client.ts +11 -11
  114. package/services/qualifications/qualifications.ts +82 -7
  115. package/services/rector/config.client.ts +1 -1
  116. package/services/rector/config.ts +16 -3
  117. package/services/rector/filestore.client.ts +1 -1
  118. package/services/rector/filestore.ts +15 -2
  119. package/services/rector/laws.client.ts +1 -1
  120. package/services/rector/laws.ts +29 -3
  121. package/services/rector/rector.client.ts +1 -1
  122. package/services/rector/rector.ts +72 -7
  123. package/services/stats/stats.client.ts +1 -1
  124. package/services/stats/stats.ts +16 -3
  125. package/services/sync/sync.client.ts +7 -1
  126. package/services/sync/sync.ts +58 -6
  127. package/services/wiki/wiki.client.ts +3 -3
  128. package/services/wiki/wiki.ts +15 -2
  129. package/svcs.ts +8 -4
  130. package/resources/centrum/general.ts +0 -231
package/clients.ts ADDED
@@ -0,0 +1,150 @@
1
+ // Code generated by protoc-gen-fronthelper. DO NOT EDIT.
2
+
3
+ import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
4
+ import { AuthServiceClient } from '~~/gen/ts/services/auth/auth.client';
5
+ import { CalendarServiceClient } from '~~/gen/ts/services/calendar/calendar.client';
6
+ import { CentrumServiceClient } from '~~/gen/ts/services/centrum/centrum.client';
7
+ import { CitizenStoreServiceClient } from '~~/gen/ts/services/citizenstore/citizenstore.client';
8
+ import { CompletorServiceClient } from '~~/gen/ts/services/completor/completor.client';
9
+ import { DMVServiceClient } from '~~/gen/ts/services/dmv/vehicles.client';
10
+ import { DocStoreServiceClient } from '~~/gen/ts/services/docstore/docstore.client';
11
+ import { AdsServiceClient } from '~~/gen/ts/services/internet/ads.client';
12
+ import { DomainServiceClient } from '~~/gen/ts/services/internet/domain.client';
13
+ import { InternetServiceClient } from '~~/gen/ts/services/internet/internet.client';
14
+ import { JobsConductServiceClient } from '~~/gen/ts/services/jobs/conduct.client';
15
+ import { JobsServiceClient } from '~~/gen/ts/services/jobs/jobs.client';
16
+ import { JobsTimeclockServiceClient } from '~~/gen/ts/services/jobs/timeclock.client';
17
+ import { LivemapperServiceClient } from '~~/gen/ts/services/livemapper/livemap.client';
18
+ import { MailerServiceClient } from '~~/gen/ts/services/mailer/mailer.client';
19
+ import { NotificatorServiceClient } from '~~/gen/ts/services/notificator/notificator.client';
20
+ import { QualificationsServiceClient } from '~~/gen/ts/services/qualifications/qualifications.client';
21
+ import { RectorConfigServiceClient } from '~~/gen/ts/services/rector/config.client';
22
+ import { RectorFilestoreServiceClient } from '~~/gen/ts/services/rector/filestore.client';
23
+ import { RectorLawsServiceClient } from '~~/gen/ts/services/rector/laws.client';
24
+ import { RectorServiceClient } from '~~/gen/ts/services/rector/rector.client';
25
+ import { StatsServiceClient } from '~~/gen/ts/services/stats/stats.client';
26
+ import { SyncServiceClient } from '~~/gen/ts/services/sync/sync.client';
27
+ import { WikiServiceClient } from '~~/gen/ts/services/wiki/wiki.client';
28
+
29
+ export class GRPCClients {
30
+
31
+ public auth: {
32
+ auth: AuthServiceClient;
33
+ };
34
+ public calendar: {
35
+ calendar: CalendarServiceClient;
36
+ };
37
+ public centrum: {
38
+ centrum: CentrumServiceClient;
39
+ };
40
+ public citizenstore: {
41
+ citizenStore: CitizenStoreServiceClient;
42
+ };
43
+ public completor: {
44
+ completor: CompletorServiceClient;
45
+ };
46
+ public dmv: {
47
+ dMV: DMVServiceClient;
48
+ };
49
+ public docstore: {
50
+ docStore: DocStoreServiceClient;
51
+ };
52
+ public internet: {
53
+ ads: AdsServiceClient;
54
+ domain: DomainServiceClient;
55
+ internet: InternetServiceClient;
56
+ };
57
+ public jobs: {
58
+ jobsConduct: JobsConductServiceClient;
59
+ jobs: JobsServiceClient;
60
+ jobsTimeclock: JobsTimeclockServiceClient;
61
+ };
62
+ public livemapper: {
63
+ livemapper: LivemapperServiceClient;
64
+ };
65
+ public mailer: {
66
+ mailer: MailerServiceClient;
67
+ };
68
+ public notificator: {
69
+ notificator: NotificatorServiceClient;
70
+ };
71
+ public qualifications: {
72
+ qualifications: QualificationsServiceClient;
73
+ };
74
+ public rector: {
75
+ rectorConfig: RectorConfigServiceClient;
76
+ rectorFilestore: RectorFilestoreServiceClient;
77
+ rectorLaws: RectorLawsServiceClient;
78
+ rector: RectorServiceClient;
79
+ };
80
+ public stats: {
81
+ stats: StatsServiceClient;
82
+ };
83
+ public sync: {
84
+ sync: SyncServiceClient;
85
+ };
86
+ public wiki: {
87
+ wiki: WikiServiceClient;
88
+ };
89
+
90
+ constructor(transport: RpcTransport) {
91
+ this.auth = {
92
+ auth: new AuthServiceClient(transport),
93
+ };
94
+ this.calendar = {
95
+ calendar: new CalendarServiceClient(transport),
96
+ };
97
+ this.centrum = {
98
+ centrum: new CentrumServiceClient(transport),
99
+ };
100
+ this.citizenstore = {
101
+ citizenStore: new CitizenStoreServiceClient(transport),
102
+ };
103
+ this.completor = {
104
+ completor: new CompletorServiceClient(transport),
105
+ };
106
+ this.dmv = {
107
+ dMV: new DMVServiceClient(transport),
108
+ };
109
+ this.docstore = {
110
+ docStore: new DocStoreServiceClient(transport),
111
+ };
112
+ this.internet = {
113
+ ads: new AdsServiceClient(transport),
114
+ domain: new DomainServiceClient(transport),
115
+ internet: new InternetServiceClient(transport),
116
+ };
117
+ this.jobs = {
118
+ jobsConduct: new JobsConductServiceClient(transport),
119
+ jobs: new JobsServiceClient(transport),
120
+ jobsTimeclock: new JobsTimeclockServiceClient(transport),
121
+ };
122
+ this.livemapper = {
123
+ livemapper: new LivemapperServiceClient(transport),
124
+ };
125
+ this.mailer = {
126
+ mailer: new MailerServiceClient(transport),
127
+ };
128
+ this.notificator = {
129
+ notificator: new NotificatorServiceClient(transport),
130
+ };
131
+ this.qualifications = {
132
+ qualifications: new QualificationsServiceClient(transport),
133
+ };
134
+ this.rector = {
135
+ rectorConfig: new RectorConfigServiceClient(transport),
136
+ rectorFilestore: new RectorFilestoreServiceClient(transport),
137
+ rectorLaws: new RectorLawsServiceClient(transport),
138
+ rector: new RectorServiceClient(transport),
139
+ };
140
+ this.stats = {
141
+ stats: new StatsServiceClient(transport),
142
+ };
143
+ this.sync = {
144
+ sync: new SyncServiceClient(transport),
145
+ };
146
+ this.wiki = {
147
+ wiki: new WikiServiceClient(transport),
148
+ };
149
+ }
150
+ };
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3)
3
3
  // @ts-nocheck
4
4
  //
@@ -73,8 +73,12 @@ import { MessageType } from "@protobuf-ts/runtime";
73
73
  * if (any.is(Foo.class)) {
74
74
  * foo = any.unpack(Foo.class);
75
75
  * }
76
+ * // or ...
77
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
78
+ * foo = any.unpack(Foo.getDefaultInstance());
79
+ * }
76
80
  *
77
- * Example 3: Pack and unpack a message in Python.
81
+ * Example 3: Pack and unpack a message in Python.
78
82
  *
79
83
  * foo = Foo(...)
80
84
  * any = Any()
@@ -84,7 +88,7 @@ import { MessageType } from "@protobuf-ts/runtime";
84
88
  * any.Unpack(foo)
85
89
  * ...
86
90
  *
87
- * Example 4: Pack and unpack a message in Go
91
+ * Example 4: Pack and unpack a message in Go
88
92
  *
89
93
  * foo := &pb.Foo{...}
90
94
  * any, err := anypb.New(foo)
@@ -103,9 +107,8 @@ import { MessageType } from "@protobuf-ts/runtime";
103
107
  * in the type URL, for example "foo.bar.com/x/y.z" will yield type
104
108
  * name "y.z".
105
109
  *
106
- *
107
110
  * JSON
108
- *
111
+ * ====
109
112
  * The JSON representation of an `Any` value uses the regular
110
113
  * representation of the deserialized, embedded message, with an
111
114
  * additional field `@type` which contains the type URL. Example:
@@ -160,7 +163,8 @@ export interface Any {
160
163
  *
161
164
  * Note: this functionality is not currently available in the official
162
165
  * protobuf release, and it is not used for type URLs beginning with
163
- * type.googleapis.com.
166
+ * type.googleapis.com. As of May 2023, there are no widely used type server
167
+ * implementations and no plans to implement one.
164
168
  *
165
169
  * Schemes other than `http`, `https` (or the empty scheme) might be
166
170
  * used with implementation specific semantics.