@sideline/domain 0.4.0 → 0.6.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.
Files changed (254) hide show
  1. package/dist/cjs/api/AgeThresholdApi.js +14 -14
  2. package/dist/cjs/api/AgeThresholdApi.js.map +1 -1
  3. package/dist/cjs/api/Auth.js +31 -7
  4. package/dist/cjs/api/Auth.js.map +1 -1
  5. package/dist/cjs/api/EventApi.js +141 -0
  6. package/dist/cjs/api/EventApi.js.map +1 -0
  7. package/dist/cjs/api/EventRsvpApi.js +66 -0
  8. package/dist/cjs/api/EventRsvpApi.js.map +1 -0
  9. package/dist/cjs/api/EventSeriesApi.js +139 -0
  10. package/dist/cjs/api/EventSeriesApi.js.map +1 -0
  11. package/dist/cjs/api/GroupApi.js +205 -0
  12. package/dist/cjs/api/GroupApi.js.map +1 -0
  13. package/dist/cjs/api/NotificationApi.js +6 -2
  14. package/dist/cjs/api/NotificationApi.js.map +1 -1
  15. package/dist/cjs/api/Roster.js +3 -2
  16. package/dist/cjs/api/Roster.js.map +1 -1
  17. package/dist/cjs/api/TeamSettingsApi.js +55 -0
  18. package/dist/cjs/api/TeamSettingsApi.js.map +1 -0
  19. package/dist/cjs/api/TrainingTypeApi.js +15 -41
  20. package/dist/cjs/api/TrainingTypeApi.js.map +1 -1
  21. package/dist/cjs/index.js +31 -5
  22. package/dist/cjs/models/AgeThresholdRule.js +2 -2
  23. package/dist/cjs/models/AgeThresholdRule.js.map +1 -1
  24. package/dist/cjs/models/ChannelSyncEvent.js +3 -3
  25. package/dist/cjs/models/ChannelSyncEvent.js.map +1 -1
  26. package/dist/cjs/models/DiscordChannelMapping.js +2 -2
  27. package/dist/cjs/models/DiscordChannelMapping.js.map +1 -1
  28. package/dist/cjs/models/Event.js +36 -0
  29. package/dist/cjs/models/Event.js.map +1 -0
  30. package/dist/cjs/models/EventRsvp.js +23 -0
  31. package/dist/cjs/models/EventRsvp.js.map +1 -0
  32. package/dist/cjs/models/EventSeries.js +35 -0
  33. package/dist/cjs/models/EventSeries.js.map +1 -0
  34. package/dist/cjs/models/GroupModel.js +20 -0
  35. package/dist/cjs/models/GroupModel.js.map +1 -0
  36. package/dist/cjs/models/Notification.js +1 -1
  37. package/dist/cjs/models/Notification.js.map +1 -1
  38. package/dist/cjs/models/Role.js +3 -3
  39. package/dist/cjs/models/Role.js.map +1 -1
  40. package/dist/cjs/models/RoleGroup.js +15 -0
  41. package/dist/cjs/models/RoleGroup.js.map +1 -0
  42. package/dist/cjs/models/Session.js +3 -5
  43. package/dist/cjs/models/Session.js.map +1 -1
  44. package/dist/cjs/models/Team.js +2 -0
  45. package/dist/cjs/models/Team.js.map +1 -1
  46. package/dist/cjs/models/TeamInvite.js +3 -5
  47. package/dist/cjs/models/TeamInvite.js.map +1 -1
  48. package/dist/cjs/models/TeamSettings.js +17 -0
  49. package/dist/cjs/models/TeamSettings.js.map +1 -0
  50. package/dist/cjs/models/TrainingType.js +2 -0
  51. package/dist/cjs/models/TrainingType.js.map +1 -1
  52. package/dist/cjs/models/User.js +3 -1
  53. package/dist/cjs/models/User.js.map +1 -1
  54. package/dist/cjs/rpc/SyncRpcs.js +3 -1
  55. package/dist/cjs/rpc/SyncRpcs.js.map +1 -1
  56. package/dist/cjs/rpc/channel/ChannelRpcEvents.js +6 -6
  57. package/dist/cjs/rpc/channel/ChannelRpcEvents.js.map +1 -1
  58. package/dist/cjs/rpc/channel/ChannelRpcGroup.js +3 -3
  59. package/dist/cjs/rpc/channel/ChannelRpcGroup.js.map +1 -1
  60. package/dist/cjs/rpc/channel/ChannelRpcModels.js +1 -1
  61. package/dist/cjs/rpc/channel/ChannelRpcModels.js.map +1 -1
  62. package/dist/cjs/rpc/event/EventRpcEvents.js +45 -0
  63. package/dist/cjs/rpc/event/EventRpcEvents.js.map +1 -0
  64. package/dist/cjs/rpc/event/EventRpcGroup.js +65 -0
  65. package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -0
  66. package/dist/cjs/rpc/event/EventRpcModels.js +47 -0
  67. package/dist/cjs/rpc/event/EventRpcModels.js.map +1 -0
  68. package/dist/cjs/rpc/guild/GuildRpcGroup.js +35 -0
  69. package/dist/cjs/rpc/guild/GuildRpcGroup.js.map +1 -0
  70. package/dist/dts/api/AgeThresholdApi.d.ts +25 -25
  71. package/dist/dts/api/AgeThresholdApi.d.ts.map +1 -1
  72. package/dist/dts/api/Auth.d.ts +42 -13
  73. package/dist/dts/api/Auth.d.ts.map +1 -1
  74. package/dist/dts/api/EventApi.d.ts +273 -0
  75. package/dist/dts/api/EventApi.d.ts.map +1 -0
  76. package/dist/dts/api/EventRsvpApi.d.ts +96 -0
  77. package/dist/dts/api/EventRsvpApi.d.ts.map +1 -0
  78. package/dist/dts/api/EventSeriesApi.d.ts +284 -0
  79. package/dist/dts/api/EventSeriesApi.d.ts.map +1 -0
  80. package/dist/dts/api/GroupApi.d.ts +254 -0
  81. package/dist/dts/api/GroupApi.d.ts.map +1 -0
  82. package/dist/dts/api/NotificationApi.d.ts +10 -6
  83. package/dist/dts/api/NotificationApi.d.ts.map +1 -1
  84. package/dist/dts/api/RoleApi.d.ts +10 -10
  85. package/dist/dts/api/Roster.d.ts +15 -11
  86. package/dist/dts/api/Roster.d.ts.map +1 -1
  87. package/dist/dts/api/TeamSettingsApi.d.ts +107 -0
  88. package/dist/dts/api/TeamSettingsApi.d.ts.map +1 -0
  89. package/dist/dts/api/TrainingTypeApi.d.ts +33 -42
  90. package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -1
  91. package/dist/dts/index.d.ts +15 -2
  92. package/dist/dts/index.d.ts.map +1 -1
  93. package/dist/dts/models/AgeThresholdRule.d.ts +13 -13
  94. package/dist/dts/models/ChannelSyncEvent.d.ts +32 -32
  95. package/dist/dts/models/DiscordChannelMapping.d.ts +11 -11
  96. package/dist/dts/models/Event.d.ts +233 -0
  97. package/dist/dts/models/Event.d.ts.map +1 -0
  98. package/dist/dts/models/EventRsvp.d.ts +110 -0
  99. package/dist/dts/models/EventRsvp.d.ts.map +1 -0
  100. package/dist/dts/models/EventSeries.d.ts +248 -0
  101. package/dist/dts/models/EventSeries.d.ts.map +1 -0
  102. package/dist/dts/models/GroupModel.d.ts +97 -0
  103. package/dist/dts/models/GroupModel.d.ts.map +1 -0
  104. package/dist/dts/models/Notification.d.ts +14 -14
  105. package/dist/dts/models/Notification.d.ts.map +1 -1
  106. package/dist/dts/models/Role.d.ts +4 -4
  107. package/dist/dts/models/Role.d.ts.map +1 -1
  108. package/dist/dts/models/RoleGroup.d.ts +16 -0
  109. package/dist/dts/models/RoleGroup.d.ts.map +1 -0
  110. package/dist/dts/models/RoleSyncEvent.d.ts +8 -8
  111. package/dist/dts/models/Session.d.ts +6 -6
  112. package/dist/dts/models/Session.d.ts.map +1 -1
  113. package/dist/dts/models/Team.d.ts +13 -0
  114. package/dist/dts/models/Team.d.ts.map +1 -1
  115. package/dist/dts/models/TeamInvite.d.ts +6 -6
  116. package/dist/dts/models/TeamInvite.d.ts.map +1 -1
  117. package/dist/dts/models/{SubgroupModel.d.ts → TeamSettings.d.ts} +27 -28
  118. package/dist/dts/models/TeamSettings.d.ts.map +1 -0
  119. package/dist/dts/models/TrainingType.d.ts +13 -0
  120. package/dist/dts/models/TrainingType.d.ts.map +1 -1
  121. package/dist/dts/models/User.d.ts +11 -11
  122. package/dist/dts/models/User.d.ts.map +1 -1
  123. package/dist/dts/rpc/SyncRpcs.d.ts +45 -3
  124. package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
  125. package/dist/dts/rpc/channel/ChannelRpcEvents.d.ts +6 -6
  126. package/dist/dts/rpc/channel/ChannelRpcGroup.d.ts +3 -3
  127. package/dist/dts/rpc/channel/ChannelRpcModels.d.ts +3 -3
  128. package/dist/dts/rpc/event/EventRpcEvents.d.ts +49 -0
  129. package/dist/dts/rpc/event/EventRpcEvents.d.ts.map +1 -0
  130. package/dist/dts/rpc/event/EventRpcGroup.d.ts +32 -0
  131. package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -0
  132. package/dist/dts/rpc/event/EventRpcModels.d.ts +115 -0
  133. package/dist/dts/rpc/event/EventRpcModels.d.ts.map +1 -0
  134. package/dist/dts/rpc/guild/GuildRpcGroup.d.ts +19 -0
  135. package/dist/dts/rpc/guild/GuildRpcGroup.d.ts.map +1 -0
  136. package/dist/esm/api/AgeThresholdApi.js +11 -11
  137. package/dist/esm/api/AgeThresholdApi.js.map +1 -1
  138. package/dist/esm/api/Auth.js +29 -6
  139. package/dist/esm/api/Auth.js.map +1 -1
  140. package/dist/esm/api/EventApi.js +126 -0
  141. package/dist/esm/api/EventApi.js.map +1 -0
  142. package/dist/esm/api/EventRsvpApi.js +53 -0
  143. package/dist/esm/api/EventRsvpApi.js.map +1 -0
  144. package/dist/esm/api/EventSeriesApi.js +126 -0
  145. package/dist/esm/api/EventSeriesApi.js.map +1 -0
  146. package/dist/esm/api/GroupApi.js +185 -0
  147. package/dist/esm/api/GroupApi.js.map +1 -0
  148. package/dist/esm/api/NotificationApi.js +6 -2
  149. package/dist/esm/api/NotificationApi.js.map +1 -1
  150. package/dist/esm/api/Roster.js +3 -2
  151. package/dist/esm/api/Roster.js.map +1 -1
  152. package/dist/esm/api/TeamSettingsApi.js +46 -0
  153. package/dist/esm/api/TeamSettingsApi.js.map +1 -0
  154. package/dist/esm/api/TrainingTypeApi.js +14 -38
  155. package/dist/esm/api/TrainingTypeApi.js.map +1 -1
  156. package/dist/esm/index.js +15 -2
  157. package/dist/esm/index.js.map +1 -1
  158. package/dist/esm/models/AgeThresholdRule.js +2 -2
  159. package/dist/esm/models/AgeThresholdRule.js.map +1 -1
  160. package/dist/esm/models/ChannelSyncEvent.js +3 -3
  161. package/dist/esm/models/ChannelSyncEvent.js.map +1 -1
  162. package/dist/esm/models/DiscordChannelMapping.js +2 -2
  163. package/dist/esm/models/DiscordChannelMapping.js.map +1 -1
  164. package/dist/esm/models/Event.js +28 -0
  165. package/dist/esm/models/Event.js.map +1 -0
  166. package/dist/esm/models/EventRsvp.js +16 -0
  167. package/dist/esm/models/EventRsvp.js.map +1 -0
  168. package/dist/esm/models/EventSeries.js +28 -0
  169. package/dist/esm/models/EventSeries.js.map +1 -0
  170. package/dist/esm/models/GroupModel.js +13 -0
  171. package/dist/esm/models/GroupModel.js.map +1 -0
  172. package/dist/esm/models/Notification.js +1 -1
  173. package/dist/esm/models/Notification.js.map +1 -1
  174. package/dist/esm/models/Role.js +3 -3
  175. package/dist/esm/models/Role.js.map +1 -1
  176. package/dist/esm/models/RoleGroup.js +8 -0
  177. package/dist/esm/models/RoleGroup.js.map +1 -0
  178. package/dist/esm/models/Session.js +3 -6
  179. package/dist/esm/models/Session.js.map +1 -1
  180. package/dist/esm/models/Team.js +2 -0
  181. package/dist/esm/models/Team.js.map +1 -1
  182. package/dist/esm/models/TeamInvite.js +3 -6
  183. package/dist/esm/models/TeamInvite.js.map +1 -1
  184. package/dist/esm/models/TeamSettings.js +10 -0
  185. package/dist/esm/models/TeamSettings.js.map +1 -0
  186. package/dist/esm/models/TrainingType.js +2 -0
  187. package/dist/esm/models/TrainingType.js.map +1 -1
  188. package/dist/esm/models/User.js +2 -1
  189. package/dist/esm/models/User.js.map +1 -1
  190. package/dist/esm/rpc/SyncRpcs.js +3 -1
  191. package/dist/esm/rpc/SyncRpcs.js.map +1 -1
  192. package/dist/esm/rpc/channel/ChannelRpcEvents.js +7 -7
  193. package/dist/esm/rpc/channel/ChannelRpcEvents.js.map +1 -1
  194. package/dist/esm/rpc/channel/ChannelRpcGroup.js +4 -4
  195. package/dist/esm/rpc/channel/ChannelRpcGroup.js.map +1 -1
  196. package/dist/esm/rpc/channel/ChannelRpcModels.js +2 -2
  197. package/dist/esm/rpc/channel/ChannelRpcModels.js.map +1 -1
  198. package/dist/esm/rpc/event/EventRpcEvents.js +36 -0
  199. package/dist/esm/rpc/event/EventRpcEvents.js.map +1 -0
  200. package/dist/esm/rpc/event/EventRpcGroup.js +59 -0
  201. package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -0
  202. package/dist/esm/rpc/event/EventRpcModels.js +33 -0
  203. package/dist/esm/rpc/event/EventRpcModels.js.map +1 -0
  204. package/dist/esm/rpc/guild/GuildRpcGroup.js +29 -0
  205. package/dist/esm/rpc/guild/GuildRpcGroup.js.map +1 -0
  206. package/package.json +3 -2
  207. package/src/api/AgeThresholdApi.ts +12 -12
  208. package/src/api/Auth.ts +36 -12
  209. package/src/api/EventApi.ts +129 -0
  210. package/src/api/EventRsvpApi.ts +67 -0
  211. package/src/api/EventSeriesApi.ts +134 -0
  212. package/src/api/GroupApi.ts +229 -0
  213. package/src/api/NotificationApi.ts +10 -0
  214. package/src/api/Roster.ts +3 -2
  215. package/src/api/TeamSettingsApi.ts +57 -0
  216. package/src/api/TrainingTypeApi.ts +8 -52
  217. package/src/index.ts +25 -3
  218. package/src/models/AgeThresholdRule.ts +2 -2
  219. package/src/models/ChannelSyncEvent.ts +3 -3
  220. package/src/models/DiscordChannelMapping.ts +2 -2
  221. package/src/models/Event.ts +41 -0
  222. package/src/models/EventRsvp.ts +20 -0
  223. package/src/models/EventSeries.ts +36 -0
  224. package/src/models/GroupModel.ts +15 -0
  225. package/src/models/Notification.ts +2 -2
  226. package/src/models/Role.ts +20 -1
  227. package/src/models/RoleGroup.ts +8 -0
  228. package/src/models/Session.ts +3 -7
  229. package/src/models/Team.ts +2 -0
  230. package/src/models/TeamInvite.ts +3 -9
  231. package/src/models/TeamSettings.ts +10 -0
  232. package/src/models/TrainingType.ts +2 -0
  233. package/src/models/User.ts +2 -1
  234. package/src/rpc/SyncRpcs.ts +8 -1
  235. package/src/rpc/channel/ChannelRpcEvents.ts +7 -7
  236. package/src/rpc/channel/ChannelRpcGroup.ts +4 -4
  237. package/src/rpc/channel/ChannelRpcModels.ts +2 -2
  238. package/src/rpc/event/EventRpcEvents.ts +48 -0
  239. package/src/rpc/event/EventRpcGroup.ts +60 -0
  240. package/src/rpc/event/EventRpcModels.ts +49 -0
  241. package/src/rpc/guild/GuildRpcGroup.ts +29 -0
  242. package/dist/cjs/api/SubgroupApi.js +0 -122
  243. package/dist/cjs/api/SubgroupApi.js.map +0 -1
  244. package/dist/cjs/models/SubgroupModel.js +0 -18
  245. package/dist/cjs/models/SubgroupModel.js.map +0 -1
  246. package/dist/dts/api/SubgroupApi.d.ts +0 -140
  247. package/dist/dts/api/SubgroupApi.d.ts.map +0 -1
  248. package/dist/dts/models/SubgroupModel.d.ts.map +0 -1
  249. package/dist/esm/api/SubgroupApi.js +0 -106
  250. package/dist/esm/api/SubgroupApi.js.map +0 -1
  251. package/dist/esm/models/SubgroupModel.js +0 -11
  252. package/dist/esm/models/SubgroupModel.js.map +0 -1
  253. package/src/api/SubgroupApi.ts +0 -146
  254. package/src/models/SubgroupModel.ts +0 -13
@@ -0,0 +1,97 @@
1
+ import { Model } from '@effect/sql';
2
+ import { Schema } from 'effect';
3
+ export declare const GroupId: Schema.brand<typeof Schema.String, "GroupId">;
4
+ export type GroupId = typeof GroupId.Type;
5
+ declare const Group_base: import("@effect/experimental/VariantSchema").Class<Group, {
6
+ readonly id: Model.Generated<Schema.brand<typeof Schema.String, "GroupId">>;
7
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
8
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
9
+ readonly name: typeof Schema.String;
10
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
11
+ readonly created_at: Model.DateTimeInsertFromDate;
12
+ }, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
13
+ readonly id: Model.Generated<Schema.brand<typeof Schema.String, "GroupId">>;
14
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
15
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
16
+ readonly name: typeof Schema.String;
17
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
18
+ readonly created_at: Model.DateTimeInsertFromDate;
19
+ }, true>, {
20
+ readonly name: string;
21
+ } & {
22
+ readonly id: string & import("effect/Brand").Brand<"GroupId">;
23
+ } & {
24
+ readonly created_at: import("effect/DateTime").Utc;
25
+ } & {
26
+ readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
27
+ } & {
28
+ readonly parent_id: (string & import("effect/Brand").Brand<"GroupId">) | null;
29
+ } & {
30
+ readonly emoji: string | null;
31
+ }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
32
+ readonly id: Model.Generated<Schema.brand<typeof Schema.String, "GroupId">>;
33
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
34
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
35
+ readonly name: typeof Schema.String;
36
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
37
+ readonly created_at: Model.DateTimeInsertFromDate;
38
+ }, true>>, never, {
39
+ readonly name: string;
40
+ } & {
41
+ readonly id: string & import("effect/Brand").Brand<"GroupId">;
42
+ } & {
43
+ readonly created_at: import("effect/DateTime").Utc;
44
+ } & {
45
+ readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
46
+ } & {
47
+ readonly parent_id: (string & import("effect/Brand").Brand<"GroupId">) | null;
48
+ } & {
49
+ readonly emoji: string | null;
50
+ }> & {
51
+ readonly select: Schema.Struct<{
52
+ readonly id: Schema.brand<typeof Schema.String, "GroupId">;
53
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
54
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
55
+ readonly name: typeof Schema.String;
56
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
57
+ readonly created_at: Model.DateTimeFromDate;
58
+ }>;
59
+ readonly insert: Schema.Struct<{
60
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
61
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
62
+ readonly name: typeof Schema.String;
63
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
64
+ readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
65
+ }>;
66
+ readonly update: Schema.Struct<{
67
+ readonly id: Schema.brand<typeof Schema.String, "GroupId">;
68
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
69
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
70
+ readonly name: typeof Schema.String;
71
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
72
+ }>;
73
+ readonly json: Schema.Struct<{
74
+ readonly id: Schema.brand<typeof Schema.String, "GroupId">;
75
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
76
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
77
+ readonly name: typeof Schema.String;
78
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
79
+ readonly created_at: typeof Schema.DateTimeUtc;
80
+ }>;
81
+ readonly jsonCreate: Schema.Struct<{
82
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
83
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
84
+ readonly name: typeof Schema.String;
85
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
86
+ }>;
87
+ readonly jsonUpdate: Schema.Struct<{
88
+ readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
89
+ readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
90
+ readonly name: typeof Schema.String;
91
+ readonly emoji: Schema.NullOr<typeof Schema.String>;
92
+ }>;
93
+ };
94
+ export declare class Group extends Group_base {
95
+ }
96
+ export {};
97
+ //# sourceMappingURL=GroupModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupModel.d.ts","sourceRoot":"","sources":["../../../src/models/GroupModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,OAAO,+CAA8C,CAAC;AACnE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1C,qBAAa,KAAM,SAAQ,UAOzB;CAAG"}
@@ -2,13 +2,13 @@ import { Model } from '@effect/sql';
2
2
  import { Schema } from 'effect';
3
3
  export declare const NotificationId: Schema.brand<typeof Schema.String, "NotificationId">;
4
4
  export type NotificationId = typeof NotificationId.Type;
5
- export declare const NotificationType: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
5
+ export declare const NotificationType: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
6
6
  export type NotificationType = typeof NotificationType.Type;
7
7
  declare const Notification_base: import("@effect/experimental/VariantSchema").Class<Notification, {
8
8
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
9
9
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
10
10
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
11
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
11
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
12
12
  readonly title: typeof Schema.String;
13
13
  readonly body: typeof Schema.String;
14
14
  readonly is_read: typeof Schema.Boolean;
@@ -17,7 +17,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
17
17
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
18
18
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
19
19
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
20
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
20
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
21
21
  readonly title: typeof Schema.String;
22
22
  readonly body: typeof Schema.String;
23
23
  readonly is_read: typeof Schema.Boolean;
@@ -30,10 +30,10 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
30
30
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
31
31
  } & {
32
32
  readonly user_id: string & import("effect/Brand").Brand<"UserId">;
33
- } & {
34
- readonly type: "age_role_assigned" | "age_role_removed" | "role_assigned" | "role_removed";
35
33
  } & {
36
34
  readonly title: string;
35
+ } & {
36
+ readonly type: "age_group_added" | "age_group_removed" | "role_assigned" | "role_removed";
37
37
  } & {
38
38
  readonly body: string;
39
39
  } & {
@@ -42,7 +42,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
42
42
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
43
43
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
44
44
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
45
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
45
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
46
46
  readonly title: typeof Schema.String;
47
47
  readonly body: typeof Schema.String;
48
48
  readonly is_read: typeof Schema.Boolean;
@@ -55,10 +55,10 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
55
55
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
56
56
  } & {
57
57
  readonly user_id: string & import("effect/Brand").Brand<"UserId">;
58
- } & {
59
- readonly type: "age_role_assigned" | "age_role_removed" | "role_assigned" | "role_removed";
60
58
  } & {
61
59
  readonly title: string;
60
+ } & {
61
+ readonly type: "age_group_added" | "age_group_removed" | "role_assigned" | "role_removed";
62
62
  } & {
63
63
  readonly body: string;
64
64
  } & {
@@ -68,7 +68,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
68
68
  readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
69
69
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
70
70
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
71
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
71
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
72
72
  readonly title: typeof Schema.String;
73
73
  readonly body: typeof Schema.String;
74
74
  readonly is_read: typeof Schema.Boolean;
@@ -77,7 +77,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
77
77
  readonly insert: Schema.Struct<{
78
78
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
79
79
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
80
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
80
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
81
81
  readonly title: typeof Schema.String;
82
82
  readonly body: typeof Schema.String;
83
83
  readonly is_read: typeof Schema.Boolean;
@@ -87,7 +87,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
87
87
  readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
88
88
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
89
89
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
90
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
90
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
91
91
  readonly title: typeof Schema.String;
92
92
  readonly body: typeof Schema.String;
93
93
  readonly is_read: typeof Schema.Boolean;
@@ -96,7 +96,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
96
96
  readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
97
97
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
98
98
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
99
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
99
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
100
100
  readonly title: typeof Schema.String;
101
101
  readonly body: typeof Schema.String;
102
102
  readonly is_read: typeof Schema.Boolean;
@@ -105,7 +105,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
105
105
  readonly jsonCreate: Schema.Struct<{
106
106
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
107
107
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
108
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
108
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
109
109
  readonly title: typeof Schema.String;
110
110
  readonly body: typeof Schema.String;
111
111
  readonly is_read: typeof Schema.Boolean;
@@ -113,7 +113,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
113
113
  readonly jsonUpdate: Schema.Struct<{
114
114
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
115
115
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
116
- readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
116
+ readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
117
117
  readonly title: typeof Schema.String;
118
118
  readonly body: typeof Schema.String;
119
119
  readonly is_read: typeof Schema.Boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/models/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAExD,eAAO,MAAM,gBAAgB,4FAK5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5D,qBAAa,YAAa,SAAQ,iBAShC;CAAG"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/models/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAExD,eAAO,MAAM,gBAAgB,2FAK5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5D,qBAAa,YAAa,SAAQ,iBAShC;CAAG"}
@@ -2,7 +2,7 @@ import { Model } from '@effect/sql';
2
2
  import { Schema } from 'effect';
3
3
  export declare const RoleId: Schema.brand<typeof Schema.String, "RoleId">;
4
4
  export type RoleId = typeof RoleId.Type;
5
- export declare const Permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
5
+ export declare const Permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage", "training-type:create", "training-type:delete", "event:create", "event:edit", "event:cancel"]>;
6
6
  export type Permission = typeof Permission.Type;
7
7
  export declare const allPermissions: ReadonlyArray<Permission>;
8
8
  export declare const defaultPermissions: Record<string, ReadonlyArray<Permission>>;
@@ -87,14 +87,14 @@ export declare class Role extends Role_base {
87
87
  }
88
88
  declare const RolePermission_base: Schema.Class<RolePermission, {
89
89
  role_id: Schema.brand<typeof Schema.String, "RoleId">;
90
- permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
90
+ permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage", "training-type:create", "training-type:delete", "event:create", "event:edit", "event:cancel"]>;
91
91
  }, Schema.Struct.Encoded<{
92
92
  role_id: Schema.brand<typeof Schema.String, "RoleId">;
93
- permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
93
+ permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage", "training-type:create", "training-type:delete", "event:create", "event:edit", "event:cancel"]>;
94
94
  }>, never, {
95
95
  readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
96
96
  } & {
97
- readonly permission: "team:manage" | "team:invite" | "roster:view" | "roster:manage" | "member:view" | "member:edit" | "member:remove" | "role:view" | "role:manage";
97
+ readonly permission: "team:manage" | "team:invite" | "roster:view" | "roster:manage" | "member:view" | "member:edit" | "member:remove" | "role:view" | "role:manage" | "training-type:create" | "training-type:delete" | "event:create" | "event:edit" | "event:cancel";
98
98
  }, {}, {}>;
99
99
  export declare class RolePermission extends RolePermission_base {
100
100
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/models/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,UAAU,2JAUtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,UAAU,CACH,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAcxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,yCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExE,qBAAa,IAAK,SAAQ,SAMxB;CAAG;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAGlC;CAAG"}
1
+ {"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/models/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,UAAU,yPAetB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,UAAU,CACH,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CA4BxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,yCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExE,qBAAa,IAAK,SAAQ,SAMxB;CAAG;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAGlC;CAAG"}
@@ -0,0 +1,16 @@
1
+ import { Schema } from 'effect';
2
+ declare const RoleGroup_base: Schema.Class<RoleGroup, {
3
+ role_id: Schema.brand<typeof Schema.String, "RoleId">;
4
+ group_id: Schema.brand<typeof Schema.String, "GroupId">;
5
+ }, Schema.Struct.Encoded<{
6
+ role_id: Schema.brand<typeof Schema.String, "RoleId">;
7
+ group_id: Schema.brand<typeof Schema.String, "GroupId">;
8
+ }>, never, {
9
+ readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
10
+ } & {
11
+ readonly group_id: string & import("effect/Brand").Brand<"GroupId">;
12
+ }, {}, {}>;
13
+ export declare class RoleGroup extends RoleGroup_base {
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=RoleGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleGroup.d.ts","sourceRoot":"","sources":["../../../src/models/RoleGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;AAIhC,qBAAa,SAAU,SAAQ,cAG7B;CAAG"}
@@ -32,22 +32,22 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
32
32
  readonly id: string & import("effect/Brand").Brand<"RoleSyncEventId">;
33
33
  } & {
34
34
  readonly created_at: import("effect/DateTime").Utc;
35
+ } & {
36
+ readonly guild_id: string;
35
37
  } & {
36
38
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
37
39
  } & {
38
40
  readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
39
41
  } & {
40
42
  readonly error: string | null;
43
+ } & {
44
+ readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
41
45
  } & {
42
46
  readonly team_member_id: (string & import("effect/Brand").Brand<"TeamMemberId">) | null;
43
47
  } & {
44
48
  readonly discord_user_id: string | null;
45
49
  } & {
46
50
  readonly processed_at: string | null;
47
- } & {
48
- readonly guild_id: string;
49
- } & {
50
- readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
51
51
  } & {
52
52
  readonly role_name: string | null;
53
53
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
@@ -66,22 +66,22 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
66
66
  readonly id: string & import("effect/Brand").Brand<"RoleSyncEventId">;
67
67
  } & {
68
68
  readonly created_at: import("effect/DateTime").Utc;
69
+ } & {
70
+ readonly guild_id: string;
69
71
  } & {
70
72
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
71
73
  } & {
72
74
  readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
73
75
  } & {
74
76
  readonly error: string | null;
77
+ } & {
78
+ readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
75
79
  } & {
76
80
  readonly team_member_id: (string & import("effect/Brand").Brand<"TeamMemberId">) | null;
77
81
  } & {
78
82
  readonly discord_user_id: string | null;
79
83
  } & {
80
84
  readonly processed_at: string | null;
81
- } & {
82
- readonly guild_id: string;
83
- } & {
84
- readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
85
85
  } & {
86
86
  readonly role_name: string | null;
87
87
  }> & {
@@ -1,5 +1,5 @@
1
1
  import { Model } from '@effect/sql';
2
- import { DateTime, Schema } from 'effect';
2
+ import { Schema } from 'effect';
3
3
  declare const Session_base: import("@effect/experimental/VariantSchema").Class<Session, {
4
4
  readonly id: Model.Generated<typeof Schema.String>;
5
5
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
@@ -15,13 +15,13 @@ declare const Session_base: import("@effect/experimental/VariantSchema").Class<S
15
15
  }, true>, {
16
16
  readonly id: string;
17
17
  } & {
18
- readonly created_at: DateTime.Utc;
18
+ readonly created_at: import("effect/DateTime").Utc;
19
19
  } & {
20
20
  readonly token: string;
21
21
  } & {
22
22
  readonly user_id: string & import("effect/Brand").Brand<"UserId">;
23
23
  } & {
24
- readonly expires_at: DateTime.Utc;
24
+ readonly expires_at: import("effect/DateTime").Utc;
25
25
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
26
26
  readonly id: Model.Generated<typeof Schema.String>;
27
27
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
@@ -31,13 +31,13 @@ declare const Session_base: import("@effect/experimental/VariantSchema").Class<S
31
31
  }, true>>, never, {
32
32
  readonly id: string;
33
33
  } & {
34
- readonly created_at: DateTime.Utc;
34
+ readonly created_at: import("effect/DateTime").Utc;
35
35
  } & {
36
36
  readonly token: string;
37
37
  } & {
38
38
  readonly user_id: string & import("effect/Brand").Brand<"UserId">;
39
39
  } & {
40
- readonly expires_at: DateTime.Utc;
40
+ readonly expires_at: import("effect/DateTime").Utc;
41
41
  }> & {
42
42
  readonly select: Schema.Struct<{
43
43
  readonly id: typeof Schema.String;
@@ -50,7 +50,7 @@ declare const Session_base: import("@effect/experimental/VariantSchema").Class<S
50
50
  readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
51
51
  readonly token: typeof Schema.String;
52
52
  readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
53
- readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<DateTime.Utc, Date, never>;
53
+ readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
54
54
  }>;
55
55
  readonly update: Schema.Struct<{
56
56
  readonly id: typeof Schema.String;
@@ -1 +1 @@
1
- {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/models/Session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1C,qBAAa,OAAQ,SAAQ,YAM3B;CAAG"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/models/Session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,qBAAa,OAAQ,SAAQ,YAM3B;CAAG"}
@@ -5,12 +5,14 @@ export type TeamId = typeof TeamId.Type;
5
5
  declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team, {
6
6
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
7
7
  readonly name: typeof Schema.String;
8
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
8
9
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
9
10
  readonly created_at: Model.DateTimeInsertFromDate;
10
11
  readonly updated_at: Model.DateTimeUpdateFromDate;
11
12
  }, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
12
13
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
13
14
  readonly name: typeof Schema.String;
15
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
14
16
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
15
17
  readonly created_at: Model.DateTimeInsertFromDate;
16
18
  readonly updated_at: Model.DateTimeUpdateFromDate;
@@ -22,11 +24,14 @@ declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team
22
24
  readonly created_at: import("effect/DateTime").Utc;
23
25
  } & {
24
26
  readonly updated_at: import("effect/DateTime").Utc;
27
+ } & {
28
+ readonly guild_id: string & import("effect/Brand").Brand<"Snowflake">;
25
29
  } & {
26
30
  readonly created_by: string & import("effect/Brand").Brand<"UserId">;
27
31
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
28
32
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
29
33
  readonly name: typeof Schema.String;
34
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
30
35
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
31
36
  readonly created_at: Model.DateTimeInsertFromDate;
32
37
  readonly updated_at: Model.DateTimeUpdateFromDate;
@@ -38,18 +43,22 @@ declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team
38
43
  readonly created_at: import("effect/DateTime").Utc;
39
44
  } & {
40
45
  readonly updated_at: import("effect/DateTime").Utc;
46
+ } & {
47
+ readonly guild_id: string & import("effect/Brand").Brand<"Snowflake">;
41
48
  } & {
42
49
  readonly created_by: string & import("effect/Brand").Brand<"UserId">;
43
50
  }> & {
44
51
  readonly select: Schema.Struct<{
45
52
  readonly id: Schema.brand<typeof Schema.String, "TeamId">;
46
53
  readonly name: typeof Schema.String;
54
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
47
55
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
48
56
  readonly created_at: Model.DateTimeFromDate;
49
57
  readonly updated_at: Model.DateTimeFromDate;
50
58
  }>;
51
59
  readonly insert: Schema.Struct<{
52
60
  readonly name: typeof Schema.String;
61
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
53
62
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
54
63
  readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
55
64
  readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
@@ -57,22 +66,26 @@ declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team
57
66
  readonly update: Schema.Struct<{
58
67
  readonly id: Schema.brand<typeof Schema.String, "TeamId">;
59
68
  readonly name: typeof Schema.String;
69
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
60
70
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
61
71
  readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
62
72
  }>;
63
73
  readonly json: Schema.Struct<{
64
74
  readonly id: Schema.brand<typeof Schema.String, "TeamId">;
65
75
  readonly name: typeof Schema.String;
76
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
66
77
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
67
78
  readonly created_at: typeof Schema.DateTimeUtc;
68
79
  readonly updated_at: typeof Schema.DateTimeUtc;
69
80
  }>;
70
81
  readonly jsonCreate: Schema.Struct<{
71
82
  readonly name: typeof Schema.String;
83
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
72
84
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
73
85
  }>;
74
86
  readonly jsonUpdate: Schema.Struct<{
75
87
  readonly name: typeof Schema.String;
88
+ readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
76
89
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
77
90
  }>;
78
91
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Team.d.ts","sourceRoot":"","sources":["../../../src/models/Team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAMxB;CAAG"}
1
+ {"version":3,"file":"Team.d.ts","sourceRoot":"","sources":["../../../src/models/Team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAOxB;CAAG"}
@@ -1,5 +1,5 @@
1
1
  import { Model } from '@effect/sql';
2
- import { DateTime, Schema } from 'effect';
2
+ import { Schema } from 'effect';
3
3
  export declare const TeamInviteId: Schema.brand<typeof Schema.String, "TeamInviteId">;
4
4
  export type TeamInviteId = typeof TeamInviteId.Type;
5
5
  declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Class<TeamInvite, {
@@ -21,7 +21,7 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
21
21
  }, true>, {
22
22
  readonly id: string & import("effect/Brand").Brand<"TeamInviteId">;
23
23
  } & {
24
- readonly created_at: DateTime.Utc;
24
+ readonly created_at: import("effect/DateTime").Utc;
25
25
  } & {
26
26
  readonly created_by: string & import("effect/Brand").Brand<"UserId">;
27
27
  } & {
@@ -31,7 +31,7 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
31
31
  } & {
32
32
  readonly active: boolean;
33
33
  } & {
34
- readonly expires_at: DateTime.Utc | null;
34
+ readonly expires_at: import("effect/DateTime").Utc | null;
35
35
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
36
36
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamInviteId">>;
37
37
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
@@ -43,7 +43,7 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
43
43
  }, true>>, never, {
44
44
  readonly id: string & import("effect/Brand").Brand<"TeamInviteId">;
45
45
  } & {
46
- readonly created_at: DateTime.Utc;
46
+ readonly created_at: import("effect/DateTime").Utc;
47
47
  } & {
48
48
  readonly created_by: string & import("effect/Brand").Brand<"UserId">;
49
49
  } & {
@@ -53,7 +53,7 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
53
53
  } & {
54
54
  readonly active: boolean;
55
55
  } & {
56
- readonly expires_at: DateTime.Utc | null;
56
+ readonly expires_at: import("effect/DateTime").Utc | null;
57
57
  }> & {
58
58
  readonly select: Schema.Struct<{
59
59
  readonly id: Schema.brand<typeof Schema.String, "TeamInviteId">;
@@ -69,7 +69,7 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
69
69
  readonly code: typeof Schema.String;
70
70
  readonly active: typeof Schema.Boolean;
71
71
  readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
72
- readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<DateTime.Utc, Date, never>;
72
+ readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
73
73
  readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
74
74
  }>;
75
75
  readonly update: Schema.Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"TeamInvite.d.ts","sourceRoot":"","sources":["../../../src/models/TeamInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAI1C,eAAO,MAAM,YAAY,oDAAmD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASpD,qBAAa,UAAW,SAAQ,eAQ9B;CAAG"}
1
+ {"version":3,"file":"TeamInvite.d.ts","sourceRoot":"","sources":["../../../src/models/TeamInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,YAAY,oDAAmD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,qBAAa,UAAW,SAAQ,eAQ9B;CAAG"}
@@ -1,71 +1,70 @@
1
1
  import { Model } from '@effect/sql';
2
2
  import { Schema } from 'effect';
3
- export declare const SubgroupId: Schema.brand<typeof Schema.String, "SubgroupId">;
4
- export type SubgroupId = typeof SubgroupId.Type;
5
- declare const Subgroup_base: import("@effect/experimental/VariantSchema").Class<Subgroup, {
6
- readonly id: Model.Generated<Schema.brand<typeof Schema.String, "SubgroupId">>;
3
+ declare const TeamSettings_base: import("@effect/experimental/VariantSchema").Class<TeamSettings, {
7
4
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
8
- readonly name: typeof Schema.String;
5
+ readonly event_horizon_days: typeof Schema.Int;
9
6
  readonly created_at: Model.DateTimeInsertFromDate;
7
+ readonly updated_at: Model.DateTimeUpdateFromDate;
10
8
  }, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
11
- readonly id: Model.Generated<Schema.brand<typeof Schema.String, "SubgroupId">>;
12
9
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
13
- readonly name: typeof Schema.String;
10
+ readonly event_horizon_days: typeof Schema.Int;
14
11
  readonly created_at: Model.DateTimeInsertFromDate;
12
+ readonly updated_at: Model.DateTimeUpdateFromDate;
15
13
  }, true>, {
16
- readonly name: string;
17
- } & {
18
- readonly id: string & import("effect/Brand").Brand<"SubgroupId">;
19
- } & {
20
14
  readonly created_at: import("effect/DateTime").Utc;
15
+ } & {
16
+ readonly updated_at: import("effect/DateTime").Utc;
21
17
  } & {
22
18
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
19
+ } & {
20
+ readonly event_horizon_days: number;
23
21
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
24
- readonly id: Model.Generated<Schema.brand<typeof Schema.String, "SubgroupId">>;
25
22
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
26
- readonly name: typeof Schema.String;
23
+ readonly event_horizon_days: typeof Schema.Int;
27
24
  readonly created_at: Model.DateTimeInsertFromDate;
25
+ readonly updated_at: Model.DateTimeUpdateFromDate;
28
26
  }, true>>, never, {
29
- readonly name: string;
30
- } & {
31
- readonly id: string & import("effect/Brand").Brand<"SubgroupId">;
32
- } & {
33
27
  readonly created_at: import("effect/DateTime").Utc;
28
+ } & {
29
+ readonly updated_at: import("effect/DateTime").Utc;
34
30
  } & {
35
31
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
32
+ } & {
33
+ readonly event_horizon_days: number;
36
34
  }> & {
37
35
  readonly select: Schema.Struct<{
38
- readonly id: Schema.brand<typeof Schema.String, "SubgroupId">;
39
36
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
40
- readonly name: typeof Schema.String;
37
+ readonly event_horizon_days: typeof Schema.Int;
41
38
  readonly created_at: Model.DateTimeFromDate;
39
+ readonly updated_at: Model.DateTimeFromDate;
42
40
  }>;
43
41
  readonly insert: Schema.Struct<{
44
42
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
45
- readonly name: typeof Schema.String;
43
+ readonly event_horizon_days: typeof Schema.Int;
46
44
  readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
45
+ readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
47
46
  }>;
48
47
  readonly update: Schema.Struct<{
49
- readonly id: Schema.brand<typeof Schema.String, "SubgroupId">;
50
48
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
51
- readonly name: typeof Schema.String;
49
+ readonly event_horizon_days: typeof Schema.Int;
50
+ readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
52
51
  }>;
53
52
  readonly json: Schema.Struct<{
54
- readonly id: Schema.brand<typeof Schema.String, "SubgroupId">;
55
53
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
56
- readonly name: typeof Schema.String;
54
+ readonly event_horizon_days: typeof Schema.Int;
57
55
  readonly created_at: typeof Schema.DateTimeUtc;
56
+ readonly updated_at: typeof Schema.DateTimeUtc;
58
57
  }>;
59
58
  readonly jsonCreate: Schema.Struct<{
60
59
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
61
- readonly name: typeof Schema.String;
60
+ readonly event_horizon_days: typeof Schema.Int;
62
61
  }>;
63
62
  readonly jsonUpdate: Schema.Struct<{
64
63
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
65
- readonly name: typeof Schema.String;
64
+ readonly event_horizon_days: typeof Schema.Int;
66
65
  }>;
67
66
  };
68
- export declare class Subgroup extends Subgroup_base {
67
+ export declare class TeamSettings extends TeamSettings_base {
69
68
  }
70
69
  export {};
71
- //# sourceMappingURL=SubgroupModel.d.ts.map
70
+ //# sourceMappingURL=TeamSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamSettings.d.ts","sourceRoot":"","sources":["../../../src/models/TeamSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,qBAAa,YAAa,SAAQ,iBAKhC;CAAG"}