@sideline/domain 0.8.0 → 0.9.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 (61) hide show
  1. package/dist/cjs/api/EventRsvpApi.js +22 -4
  2. package/dist/cjs/api/EventRsvpApi.js.map +1 -1
  3. package/dist/cjs/api/EventSeriesApi.js +6 -3
  4. package/dist/cjs/api/EventSeriesApi.js.map +1 -1
  5. package/dist/cjs/api/TeamSettingsApi.js +8 -0
  6. package/dist/cjs/api/TeamSettingsApi.js.map +1 -1
  7. package/dist/cjs/models/EventSeries.js +3 -2
  8. package/dist/cjs/models/EventSeries.js.map +1 -1
  9. package/dist/cjs/models/TeamSettings.js +2 -0
  10. package/dist/cjs/models/TeamSettings.js.map +1 -1
  11. package/dist/cjs/rpc/event/EventRpcEvents.js +12 -2
  12. package/dist/cjs/rpc/event/EventRpcEvents.js.map +1 -1
  13. package/dist/cjs/rpc/event/EventRpcGroup.js +18 -0
  14. package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -1
  15. package/dist/cjs/rpc/event/EventRpcModels.js +25 -1
  16. package/dist/cjs/rpc/event/EventRpcModels.js.map +1 -1
  17. package/dist/dts/api/EventApi.d.ts +4 -4
  18. package/dist/dts/api/EventRsvpApi.d.ts +34 -1
  19. package/dist/dts/api/EventRsvpApi.d.ts.map +1 -1
  20. package/dist/dts/api/EventSeriesApi.d.ts +17 -9
  21. package/dist/dts/api/EventSeriesApi.d.ts.map +1 -1
  22. package/dist/dts/api/TeamSettingsApi.d.ts +24 -0
  23. package/dist/dts/api/TeamSettingsApi.d.ts.map +1 -1
  24. package/dist/dts/models/Event.d.ts +6 -6
  25. package/dist/dts/models/EventSeries.d.ts +17 -15
  26. package/dist/dts/models/EventSeries.d.ts.map +1 -1
  27. package/dist/dts/models/TeamSettings.d.ts +26 -0
  28. package/dist/dts/models/TeamSettings.d.ts.map +1 -1
  29. package/dist/dts/rpc/SyncRpcs.d.ts +13 -2
  30. package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
  31. package/dist/dts/rpc/event/EventRpcEvents.d.ts +14 -1
  32. package/dist/dts/rpc/event/EventRpcEvents.d.ts.map +1 -1
  33. package/dist/dts/rpc/event/EventRpcGroup.d.ts +14 -3
  34. package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -1
  35. package/dist/dts/rpc/event/EventRpcModels.d.ts +66 -0
  36. package/dist/dts/rpc/event/EventRpcModels.d.ts.map +1 -1
  37. package/dist/esm/api/EventRsvpApi.js +19 -3
  38. package/dist/esm/api/EventRsvpApi.js.map +1 -1
  39. package/dist/esm/api/EventSeriesApi.js +7 -4
  40. package/dist/esm/api/EventSeriesApi.js.map +1 -1
  41. package/dist/esm/api/TeamSettingsApi.js +8 -0
  42. package/dist/esm/api/TeamSettingsApi.js.map +1 -1
  43. package/dist/esm/models/EventSeries.js +2 -1
  44. package/dist/esm/models/EventSeries.js.map +1 -1
  45. package/dist/esm/models/TeamSettings.js +2 -0
  46. package/dist/esm/models/TeamSettings.js.map +1 -1
  47. package/dist/esm/rpc/event/EventRpcEvents.js +10 -1
  48. package/dist/esm/rpc/event/EventRpcEvents.js.map +1 -1
  49. package/dist/esm/rpc/event/EventRpcGroup.js +19 -1
  50. package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -1
  51. package/dist/esm/rpc/event/EventRpcModels.js +18 -0
  52. package/dist/esm/rpc/event/EventRpcModels.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/api/EventRsvpApi.ts +21 -0
  55. package/src/api/EventSeriesApi.ts +5 -4
  56. package/src/api/TeamSettingsApi.ts +8 -0
  57. package/src/models/EventSeries.ts +4 -1
  58. package/src/models/TeamSettings.ts +2 -0
  59. package/src/rpc/event/EventRpcEvents.ts +11 -0
  60. package/src/rpc/event/EventRpcGroup.ts +23 -0
  61. package/src/rpc/event/EventRpcModels.ts +35 -0
@@ -7,7 +7,7 @@ declare const EventSeriesInfo_base: Schema.Class<EventSeriesInfo, {
7
7
  teamId: Schema.brand<typeof Schema.String, "TeamId">;
8
8
  title: typeof Schema.String;
9
9
  frequency: Schema.Literal<["weekly", "biweekly"]>;
10
- dayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
10
+ daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
11
11
  startDate: typeof Schema.String;
12
12
  endDate: Schema.NullOr<typeof Schema.String>;
13
13
  status: Schema.Literal<["active", "cancelled"]>;
@@ -22,7 +22,7 @@ declare const EventSeriesInfo_base: Schema.Class<EventSeriesInfo, {
22
22
  teamId: Schema.brand<typeof Schema.String, "TeamId">;
23
23
  title: typeof Schema.String;
24
24
  frequency: Schema.Literal<["weekly", "biweekly"]>;
25
- dayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
25
+ daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
26
26
  startDate: typeof Schema.String;
27
27
  endDate: Schema.NullOr<typeof Schema.String>;
28
28
  status: Schema.Literal<["active", "cancelled"]>;
@@ -51,7 +51,7 @@ declare const EventSeriesInfo_base: Schema.Class<EventSeriesInfo, {
51
51
  } & {
52
52
  readonly discordChannelId: string | null;
53
53
  } & {
54
- readonly dayOfWeek: number & import("effect/Brand").Brand<"DayOfWeek">;
54
+ readonly daysOfWeek: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
55
55
  } & {
56
56
  readonly startDate: string;
57
57
  } & {
@@ -69,7 +69,7 @@ declare const EventSeriesDetail_base: Schema.Class<EventSeriesDetail, {
69
69
  title: typeof Schema.String;
70
70
  description: Schema.NullOr<typeof Schema.String>;
71
71
  frequency: Schema.Literal<["weekly", "biweekly"]>;
72
- dayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
72
+ daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
73
73
  startDate: typeof Schema.String;
74
74
  endDate: Schema.NullOr<typeof Schema.String>;
75
75
  status: Schema.Literal<["active", "cancelled"]>;
@@ -87,7 +87,7 @@ declare const EventSeriesDetail_base: Schema.Class<EventSeriesDetail, {
87
87
  title: typeof Schema.String;
88
88
  description: Schema.NullOr<typeof Schema.String>;
89
89
  frequency: Schema.Literal<["weekly", "biweekly"]>;
90
- dayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
90
+ daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
91
91
  startDate: typeof Schema.String;
92
92
  endDate: Schema.NullOr<typeof Schema.String>;
93
93
  status: Schema.Literal<["active", "cancelled"]>;
@@ -124,7 +124,7 @@ declare const EventSeriesDetail_base: Schema.Class<EventSeriesDetail, {
124
124
  } & {
125
125
  readonly discordChannelId: string | null;
126
126
  } & {
127
- readonly dayOfWeek: number & import("effect/Brand").Brand<"DayOfWeek">;
127
+ readonly daysOfWeek: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
128
128
  } & {
129
129
  readonly startDate: string;
130
130
  } & {
@@ -141,7 +141,7 @@ declare const CreateEventSeriesRequest_base: Schema.Class<CreateEventSeriesReque
141
141
  trainingTypeId: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
142
142
  description: Schema.NullOr<typeof Schema.String>;
143
143
  frequency: Schema.Literal<["weekly", "biweekly"]>;
144
- dayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
144
+ daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
145
145
  startDate: typeof Schema.String;
146
146
  endDate: Schema.NullOr<typeof Schema.String>;
147
147
  startTime: typeof Schema.String;
@@ -153,7 +153,7 @@ declare const CreateEventSeriesRequest_base: Schema.Class<CreateEventSeriesReque
153
153
  trainingTypeId: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
154
154
  description: Schema.NullOr<typeof Schema.String>;
155
155
  frequency: Schema.Literal<["weekly", "biweekly"]>;
156
- dayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
156
+ daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
157
157
  startDate: typeof Schema.String;
158
158
  endDate: Schema.NullOr<typeof Schema.String>;
159
159
  startTime: typeof Schema.String;
@@ -173,7 +173,7 @@ declare const CreateEventSeriesRequest_base: Schema.Class<CreateEventSeriesReque
173
173
  } & {
174
174
  readonly discordChannelId: string | null;
175
175
  } & {
176
- readonly dayOfWeek: number & import("effect/Brand").Brand<"DayOfWeek">;
176
+ readonly daysOfWeek: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
177
177
  } & {
178
178
  readonly startDate: string;
179
179
  } & {
@@ -195,6 +195,9 @@ declare const UpdateEventSeriesRequest_base: Schema.Class<UpdateEventSeriesReque
195
195
  description: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String>, {
196
196
  as: "Option";
197
197
  }>;
198
+ daysOfWeek: Schema.optionalWith<Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>, {
199
+ as: "Option";
200
+ }>;
198
201
  startTime: Schema.optionalWith<typeof Schema.String, {
199
202
  as: "Option";
200
203
  }>;
@@ -220,6 +223,9 @@ declare const UpdateEventSeriesRequest_base: Schema.Class<UpdateEventSeriesReque
220
223
  description: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String>, {
221
224
  as: "Option";
222
225
  }>;
226
+ daysOfWeek: Schema.optionalWith<Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>, {
227
+ as: "Option";
228
+ }>;
223
229
  startTime: Schema.optionalWith<typeof Schema.String, {
224
230
  as: "Option";
225
231
  }>;
@@ -245,6 +251,8 @@ declare const UpdateEventSeriesRequest_base: Schema.Class<UpdateEventSeriesReque
245
251
  readonly trainingTypeId: import("effect/Option").Option<import("effect/Option").Option<string & import("effect/Brand").Brand<"TrainingTypeId">>>;
246
252
  } & {
247
253
  readonly discordChannelId: import("effect/Option").Option<import("effect/Option").Option<string>>;
254
+ } & {
255
+ readonly daysOfWeek: import("effect/Option").Option<readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[]>;
248
256
  } & {
249
257
  readonly startTime: import("effect/Option").Option<string>;
250
258
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"EventSeriesApi.d.ts","sourceRoot":"","sources":["../../../src/api/EventSeriesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU9C,qBAAa,eAAgB,SAAQ,oBAenC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAkBrC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAc5C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAW5C;CAAG;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAIxC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAIzC;CAAG;;;;;;;;;;;;;;;AAEJ,qBAAa,mBAAoB,SAAQ,wBA0CtC;CAAG"}
1
+ {"version":3,"file":"EventSeriesApi.d.ts","sourceRoot":"","sources":["../../../src/api/EventSeriesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU9C,qBAAa,eAAgB,SAAQ,oBAenC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAkBrC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAc5C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAY5C;CAAG;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAIxC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAIzC;CAAG;;;;;;;;;;;;;;;AAEJ,qBAAa,mBAAoB,SAAQ,wBA0CtC;CAAG"}
@@ -5,6 +5,8 @@ import { Forbidden } from '../api/EventApi.js';
5
5
  declare const TeamSettingsInfo_base: Schema.Class<TeamSettingsInfo, {
6
6
  teamId: Schema.brand<typeof Schema.String, "TeamId">;
7
7
  eventHorizonDays: typeof Schema.Int;
8
+ minPlayersThreshold: typeof Schema.Int;
9
+ rsvpReminderHours: typeof Schema.Int;
8
10
  discordChannelTraining: Schema.NullOr<typeof Schema.String>;
9
11
  discordChannelMatch: Schema.NullOr<typeof Schema.String>;
10
12
  discordChannelTournament: Schema.NullOr<typeof Schema.String>;
@@ -14,6 +16,8 @@ declare const TeamSettingsInfo_base: Schema.Class<TeamSettingsInfo, {
14
16
  }, Schema.Struct.Encoded<{
15
17
  teamId: Schema.brand<typeof Schema.String, "TeamId">;
16
18
  eventHorizonDays: typeof Schema.Int;
19
+ minPlayersThreshold: typeof Schema.Int;
20
+ rsvpReminderHours: typeof Schema.Int;
17
21
  discordChannelTraining: Schema.NullOr<typeof Schema.String>;
18
22
  discordChannelMatch: Schema.NullOr<typeof Schema.String>;
19
23
  discordChannelTournament: Schema.NullOr<typeof Schema.String>;
@@ -22,8 +26,12 @@ declare const TeamSettingsInfo_base: Schema.Class<TeamSettingsInfo, {
22
26
  discordChannelOther: Schema.NullOr<typeof Schema.String>;
23
27
  }>, never, {
24
28
  readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
29
+ } & {
30
+ readonly minPlayersThreshold: number;
25
31
  } & {
26
32
  readonly eventHorizonDays: number;
33
+ } & {
34
+ readonly rsvpReminderHours: number;
27
35
  } & {
28
36
  readonly discordChannelTraining: string | null;
29
37
  } & {
@@ -41,6 +49,12 @@ export declare class TeamSettingsInfo extends TeamSettingsInfo_base {
41
49
  }
42
50
  declare const UpdateTeamSettingsRequest_base: Schema.Class<UpdateTeamSettingsRequest, {
43
51
  eventHorizonDays: Schema.filter<typeof Schema.Int>;
52
+ minPlayersThreshold: Schema.optionalWith<Schema.filter<typeof Schema.Int>, {
53
+ as: "Option";
54
+ }>;
55
+ rsvpReminderHours: Schema.optionalWith<Schema.filter<typeof Schema.Int>, {
56
+ as: "Option";
57
+ }>;
44
58
  discordChannelTraining: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String>, {
45
59
  as: "Option";
46
60
  }>;
@@ -61,6 +75,12 @@ declare const UpdateTeamSettingsRequest_base: Schema.Class<UpdateTeamSettingsReq
61
75
  }>;
62
76
  }, Schema.Struct.Encoded<{
63
77
  eventHorizonDays: Schema.filter<typeof Schema.Int>;
78
+ minPlayersThreshold: Schema.optionalWith<Schema.filter<typeof Schema.Int>, {
79
+ as: "Option";
80
+ }>;
81
+ rsvpReminderHours: Schema.optionalWith<Schema.filter<typeof Schema.Int>, {
82
+ as: "Option";
83
+ }>;
64
84
  discordChannelTraining: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String>, {
65
85
  as: "Option";
66
86
  }>;
@@ -80,7 +100,11 @@ declare const UpdateTeamSettingsRequest_base: Schema.Class<UpdateTeamSettingsReq
80
100
  as: "Option";
81
101
  }>;
82
102
  }>, never, {
103
+ readonly minPlayersThreshold: import("effect/Option").Option<number>;
104
+ } & {
83
105
  readonly eventHorizonDays: number;
106
+ } & {
107
+ readonly rsvpReminderHours: import("effect/Option").Option<number>;
84
108
  } & {
85
109
  readonly discordChannelTraining: import("effect/Option").Option<import("effect/Option").Option<string>>;
86
110
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"TeamSettingsApi.d.ts","sourceRoot":"","sources":["../../../src/api/TeamSettingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG9C,qBAAa,gBAAiB,SAAQ,qBASpC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,yBAA0B,SAAQ,8BAsB7C;CAAG;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAevC;CAAG"}
1
+ {"version":3,"file":"TeamSettingsApi.d.ts","sourceRoot":"","sources":["../../../src/api/TeamSettingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG9C,qBAAa,gBAAiB,SAAQ,qBAWpC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,yBAA0B,SAAQ,8BA4B7C;CAAG;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAevC;CAAG"}
@@ -62,10 +62,10 @@ declare const Event_base: import("@effect/experimental/VariantSchema").Class<Eve
62
62
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
63
63
  } & {
64
64
  readonly status: "active" | "cancelled";
65
- } & {
66
- readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
67
65
  } & {
68
66
  readonly description: string | null;
67
+ } & {
68
+ readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
69
69
  } & {
70
70
  readonly location: string | null;
71
71
  } & {
@@ -75,7 +75,7 @@ declare const Event_base: import("@effect/experimental/VariantSchema").Class<Eve
75
75
  } & {
76
76
  readonly series_id: (string & import("effect/Brand").Brand<"EventSeriesId">) | null;
77
77
  } & {
78
- readonly event_type: "other" | "training" | "match" | "tournament" | "meeting" | "social";
78
+ readonly event_type: "other" | "match" | "training" | "tournament" | "meeting" | "social";
79
79
  } & {
80
80
  readonly start_at: import("effect/DateTime").Utc;
81
81
  } & {
@@ -114,10 +114,10 @@ declare const Event_base: import("@effect/experimental/VariantSchema").Class<Eve
114
114
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
115
115
  } & {
116
116
  readonly status: "active" | "cancelled";
117
- } & {
118
- readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
119
117
  } & {
120
118
  readonly description: string | null;
119
+ } & {
120
+ readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
121
121
  } & {
122
122
  readonly location: string | null;
123
123
  } & {
@@ -127,7 +127,7 @@ declare const Event_base: import("@effect/experimental/VariantSchema").Class<Eve
127
127
  } & {
128
128
  readonly series_id: (string & import("effect/Brand").Brand<"EventSeriesId">) | null;
129
129
  } & {
130
- readonly event_type: "other" | "training" | "match" | "tournament" | "meeting" | "social";
130
+ readonly event_type: "other" | "match" | "training" | "tournament" | "meeting" | "social";
131
131
  } & {
132
132
  readonly start_at: import("effect/DateTime").Utc;
133
133
  } & {
@@ -6,6 +6,8 @@ export declare const RecurrenceFrequency: Schema.Literal<["weekly", "biweekly"]>
6
6
  export type RecurrenceFrequency = typeof RecurrenceFrequency.Type;
7
7
  export declare const DayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
8
8
  export type DayOfWeek = typeof DayOfWeek.Type;
9
+ export declare const DaysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
10
+ export type DaysOfWeek = typeof DaysOfWeek.Type;
9
11
  export declare const EventSeriesStatus: Schema.Literal<["active", "cancelled"]>;
10
12
  export type EventSeriesStatus = typeof EventSeriesStatus.Type;
11
13
  declare const EventSeries_base: import("@effect/experimental/VariantSchema").Class<EventSeries, {
@@ -18,7 +20,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
18
20
  readonly end_time: Schema.NullOr<typeof Schema.String>;
19
21
  readonly location: Schema.NullOr<typeof Schema.String>;
20
22
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
21
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
23
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
22
24
  readonly start_date: typeof Schema.DateFromSelf;
23
25
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
24
26
  readonly status: import("@effect/experimental/VariantSchema").Field<{
@@ -41,7 +43,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
41
43
  readonly end_time: Schema.NullOr<typeof Schema.String>;
42
44
  readonly location: Schema.NullOr<typeof Schema.String>;
43
45
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
44
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
46
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
45
47
  readonly start_date: typeof Schema.DateFromSelf;
46
48
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
47
49
  readonly status: import("@effect/experimental/VariantSchema").Field<{
@@ -66,10 +68,10 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
66
68
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
67
69
  } & {
68
70
  readonly status: "active" | "cancelled";
69
- } & {
70
- readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
71
71
  } & {
72
72
  readonly description: string | null;
73
+ } & {
74
+ readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
73
75
  } & {
74
76
  readonly end_time: string | null;
75
77
  } & {
@@ -83,7 +85,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
83
85
  } & {
84
86
  readonly frequency: "weekly" | "biweekly";
85
87
  } & {
86
- readonly day_of_week: number & import("effect/Brand").Brand<"DayOfWeek">;
88
+ readonly days_of_week: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
87
89
  } & {
88
90
  readonly start_date: Date;
89
91
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
@@ -96,7 +98,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
96
98
  readonly end_time: Schema.NullOr<typeof Schema.String>;
97
99
  readonly location: Schema.NullOr<typeof Schema.String>;
98
100
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
99
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
101
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
100
102
  readonly start_date: typeof Schema.DateFromSelf;
101
103
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
102
104
  readonly status: import("@effect/experimental/VariantSchema").Field<{
@@ -121,10 +123,10 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
121
123
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
122
124
  } & {
123
125
  readonly status: "active" | "cancelled";
124
- } & {
125
- readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
126
126
  } & {
127
127
  readonly description: string | null;
128
+ } & {
129
+ readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
128
130
  } & {
129
131
  readonly end_time: string | null;
130
132
  } & {
@@ -138,7 +140,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
138
140
  } & {
139
141
  readonly frequency: "weekly" | "biweekly";
140
142
  } & {
141
- readonly day_of_week: number & import("effect/Brand").Brand<"DayOfWeek">;
143
+ readonly days_of_week: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
142
144
  } & {
143
145
  readonly start_date: Date;
144
146
  }> & {
@@ -152,7 +154,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
152
154
  readonly end_time: Schema.NullOr<typeof Schema.String>;
153
155
  readonly location: Schema.NullOr<typeof Schema.String>;
154
156
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
155
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
157
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
156
158
  readonly start_date: typeof Schema.DateFromSelf;
157
159
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
158
160
  readonly status: Schema.Literal<["active", "cancelled"]>;
@@ -169,7 +171,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
169
171
  readonly end_time: Schema.NullOr<typeof Schema.String>;
170
172
  readonly location: Schema.NullOr<typeof Schema.String>;
171
173
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
172
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
174
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
173
175
  readonly start_date: typeof Schema.DateFromSelf;
174
176
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
175
177
  readonly status: Schema.Literal<["active", "cancelled"]>;
@@ -187,7 +189,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
187
189
  readonly end_time: Schema.NullOr<typeof Schema.String>;
188
190
  readonly location: Schema.NullOr<typeof Schema.String>;
189
191
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
190
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
192
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
191
193
  readonly start_date: typeof Schema.DateFromSelf;
192
194
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
193
195
  readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
@@ -203,7 +205,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
203
205
  readonly end_time: Schema.NullOr<typeof Schema.String>;
204
206
  readonly location: Schema.NullOr<typeof Schema.String>;
205
207
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
206
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
208
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
207
209
  readonly start_date: typeof Schema.DateFromSelf;
208
210
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
209
211
  readonly status: Schema.Literal<["active", "cancelled"]>;
@@ -220,7 +222,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
220
222
  readonly end_time: Schema.NullOr<typeof Schema.String>;
221
223
  readonly location: Schema.NullOr<typeof Schema.String>;
222
224
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
223
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
225
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
224
226
  readonly start_date: typeof Schema.DateFromSelf;
225
227
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
226
228
  readonly status: Schema.Literal<["active", "cancelled"]>;
@@ -235,7 +237,7 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
235
237
  readonly end_time: Schema.NullOr<typeof Schema.String>;
236
238
  readonly location: Schema.NullOr<typeof Schema.String>;
237
239
  readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
238
- readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
240
+ readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
239
241
  readonly start_date: typeof Schema.DateFromSelf;
240
242
  readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
241
243
  readonly status: Schema.Literal<["active", "cancelled"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"EventSeries.d.ts","sourceRoot":"","sources":["../../../src/models/EventSeries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,eAAO,MAAM,aAAa,qDAAoD,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAEtD,eAAO,MAAM,mBAAmB,wCAAuC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAElE,eAAO,MAAM,SAAS,6DAAmE,CAAC;AAC1F,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAE9C,eAAO,MAAM,iBAAiB,yCAAwC,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,qBAAa,WAAY,SAAQ,gBAiB/B;CAAG"}
1
+ {"version":3,"file":"EventSeries.d.ts","sourceRoot":"","sources":["../../../src/models/EventSeries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,eAAO,MAAM,aAAa,qDAAoD,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAEtD,eAAO,MAAM,mBAAmB,wCAAuC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAElE,eAAO,MAAM,SAAS,6DAAmE,CAAC;AAC1F,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAE9C,eAAO,MAAM,UAAU,0GAAuE,CAAC;AAC/F,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,iBAAiB,yCAAwC,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,qBAAa,WAAY,SAAQ,gBAiB/B;CAAG"}
@@ -3,11 +3,15 @@ import { Schema } from 'effect';
3
3
  declare const TeamSettings_base: import("@effect/experimental/VariantSchema").Class<TeamSettings, {
4
4
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
5
5
  readonly event_horizon_days: typeof Schema.Int;
6
+ readonly min_players_threshold: typeof Schema.Int;
7
+ readonly rsvp_reminder_hours: typeof Schema.Int;
6
8
  readonly created_at: Model.DateTimeInsertFromDate;
7
9
  readonly updated_at: Model.DateTimeUpdateFromDate;
8
10
  }, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
9
11
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
10
12
  readonly event_horizon_days: typeof Schema.Int;
13
+ readonly min_players_threshold: typeof Schema.Int;
14
+ readonly rsvp_reminder_hours: typeof Schema.Int;
11
15
  readonly created_at: Model.DateTimeInsertFromDate;
12
16
  readonly updated_at: Model.DateTimeUpdateFromDate;
13
17
  }, true>, {
@@ -18,9 +22,15 @@ declare const TeamSettings_base: import("@effect/experimental/VariantSchema").Cl
18
22
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
19
23
  } & {
20
24
  readonly event_horizon_days: number;
25
+ } & {
26
+ readonly min_players_threshold: number;
27
+ } & {
28
+ readonly rsvp_reminder_hours: number;
21
29
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
22
30
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
23
31
  readonly event_horizon_days: typeof Schema.Int;
32
+ readonly min_players_threshold: typeof Schema.Int;
33
+ readonly rsvp_reminder_hours: typeof Schema.Int;
24
34
  readonly created_at: Model.DateTimeInsertFromDate;
25
35
  readonly updated_at: Model.DateTimeUpdateFromDate;
26
36
  }, true>>, never, {
@@ -31,37 +41,53 @@ declare const TeamSettings_base: import("@effect/experimental/VariantSchema").Cl
31
41
  readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
32
42
  } & {
33
43
  readonly event_horizon_days: number;
44
+ } & {
45
+ readonly min_players_threshold: number;
46
+ } & {
47
+ readonly rsvp_reminder_hours: number;
34
48
  }> & {
35
49
  readonly select: Schema.Struct<{
36
50
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
37
51
  readonly event_horizon_days: typeof Schema.Int;
52
+ readonly min_players_threshold: typeof Schema.Int;
53
+ readonly rsvp_reminder_hours: typeof Schema.Int;
38
54
  readonly created_at: Model.DateTimeFromDate;
39
55
  readonly updated_at: Model.DateTimeFromDate;
40
56
  }>;
41
57
  readonly insert: Schema.Struct<{
42
58
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
43
59
  readonly event_horizon_days: typeof Schema.Int;
60
+ readonly min_players_threshold: typeof Schema.Int;
61
+ readonly rsvp_reminder_hours: typeof Schema.Int;
44
62
  readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
45
63
  readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
46
64
  }>;
47
65
  readonly update: Schema.Struct<{
48
66
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
49
67
  readonly event_horizon_days: typeof Schema.Int;
68
+ readonly min_players_threshold: typeof Schema.Int;
69
+ readonly rsvp_reminder_hours: typeof Schema.Int;
50
70
  readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
51
71
  }>;
52
72
  readonly json: Schema.Struct<{
53
73
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
54
74
  readonly event_horizon_days: typeof Schema.Int;
75
+ readonly min_players_threshold: typeof Schema.Int;
76
+ readonly rsvp_reminder_hours: typeof Schema.Int;
55
77
  readonly created_at: typeof Schema.DateTimeUtc;
56
78
  readonly updated_at: typeof Schema.DateTimeUtc;
57
79
  }>;
58
80
  readonly jsonCreate: Schema.Struct<{
59
81
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
60
82
  readonly event_horizon_days: typeof Schema.Int;
83
+ readonly min_players_threshold: typeof Schema.Int;
84
+ readonly rsvp_reminder_hours: typeof Schema.Int;
61
85
  }>;
62
86
  readonly jsonUpdate: Schema.Struct<{
63
87
  readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
64
88
  readonly event_horizon_days: typeof Schema.Int;
89
+ readonly min_players_threshold: typeof Schema.Int;
90
+ readonly rsvp_reminder_hours: typeof Schema.Int;
65
91
  }>;
66
92
  };
67
93
  export declare class TeamSettings extends TeamSettings_base {
@@ -1 +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"}
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,iBAOhC;CAAG"}
@@ -19,7 +19,7 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
19
19
  group_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "GroupId">;
20
20
  }>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetUnprocessedEvents", import("effect/Schema").Struct<{
21
21
  limit: typeof import("effect/Schema").Number;
22
- }>, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("./event/EventRpcEvents.js").EventCreatedEvent, typeof import("./event/EventRpcEvents.js").EventUpdatedEvent, typeof import("./event/EventRpcEvents.js").EventCancelledEvent]>>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/MarkEventProcessed", import("effect/Schema").Struct<{
22
+ }>, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("./event/EventRpcEvents.js").EventCreatedEvent, typeof import("./event/EventRpcEvents.js").EventUpdatedEvent, typeof import("./event/EventRpcEvents.js").EventCancelledEvent, typeof import("./event/EventRpcEvents.js").RsvpReminderEvent]>>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/MarkEventProcessed", import("effect/Schema").Struct<{
23
23
  id: typeof import("effect/Schema").String;
24
24
  }>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/MarkEventFailed", import("effect/Schema").Struct<{
25
25
  id: typeof import("effect/Schema").String;
@@ -46,7 +46,18 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
46
46
  event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
47
47
  offset: typeof import("effect/Schema").Number;
48
48
  limit: typeof import("effect/Schema").Number;
49
- }>, typeof import("./event/EventRpcModels.js").RsvpAttendeesResult, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/RegisterGuild", import("effect/Schema").Struct<{
49
+ }>, typeof import("./event/EventRpcModels.js").RsvpAttendeesResult, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetRsvpReminderSummary", import("effect/Schema").Struct<{
50
+ event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
51
+ }>, typeof import("./event/EventRpcModels.js").RsvpReminderSummary, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/CreateEvent", import("effect/Schema").Struct<{
52
+ guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
53
+ discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
54
+ event_type: import("effect/Schema").Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
55
+ title: typeof import("effect/Schema").String;
56
+ start_at: typeof import("effect/Schema").String;
57
+ end_at: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
58
+ location: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
59
+ description: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
60
+ }>, typeof import("./event/EventRpcModels.js").CreateEventResult, import("effect/Schema").Union<[typeof import("./event/EventRpcModels.js").CreateEventNotMember, typeof import("./event/EventRpcModels.js").CreateEventForbidden, typeof import("./event/EventRpcModels.js").CreateEventInvalidDate]>, never> | import("@effect/rpc/Rpc").Rpc<"Guild/RegisterGuild", import("effect/Schema").Struct<{
50
61
  guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
51
62
  guild_name: typeof import("effect/Schema").String;
52
63
  }>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/UnregisterGuild", import("effect/Schema").Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"SyncRpcs.d.ts","sourceRoot":"","sources":["../../../src/rpc/SyncRpcs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMvC,qBAAa,QAAS,SAAQ,aAK7B;CAAG"}
1
+ {"version":3,"file":"SyncRpcs.d.ts","sourceRoot":"","sources":["../../../src/rpc/SyncRpcs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMvC,qBAAa,QAAS,SAAQ,aAK7B;CAAG"}
@@ -43,7 +43,20 @@ declare const EventCancelledEvent_base: Schema.TaggedClass<EventCancelledEvent,
43
43
  }>;
44
44
  export declare class EventCancelledEvent extends EventCancelledEvent_base {
45
45
  }
46
- export declare const UnprocessedEventSyncEvent: Schema.Union<[typeof EventCreatedEvent, typeof EventUpdatedEvent, typeof EventCancelledEvent]>;
46
+ declare const RsvpReminderEvent_base: Schema.TaggedClass<RsvpReminderEvent, "rsvp_reminder", {
47
+ readonly _tag: Schema.tag<"rsvp_reminder">;
48
+ } & {
49
+ id: typeof Schema.String;
50
+ team_id: Schema.brand<typeof Schema.String, "TeamId">;
51
+ guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
52
+ event_id: Schema.brand<typeof Schema.String, "EventId">;
53
+ title: typeof Schema.String;
54
+ start_at: typeof Schema.String;
55
+ discord_channel_id: Schema.NullOr<typeof Schema.String>;
56
+ }>;
57
+ export declare class RsvpReminderEvent extends RsvpReminderEvent_base {
58
+ }
59
+ export declare const UnprocessedEventSyncEvent: Schema.Union<[typeof EventCreatedEvent, typeof EventUpdatedEvent, typeof EventCancelledEvent, typeof RsvpReminderEvent]>;
47
60
  export type UnprocessedEventSyncEvent = Schema.Schema.Type<typeof UnprocessedEventSyncEvent>;
48
61
  export {};
49
62
  //# sourceMappingURL=EventRpcEvents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventRpcEvents.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;AAGhC,qBAAa,iBAAkB,SAAQ,sBAYrC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAYrC;CAAG;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAQxC;CAAG;AAEJ,eAAO,MAAM,yBAAyB,gGAIrC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"EventRpcEvents.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;AAGhC,qBAAa,iBAAkB,SAAQ,sBAYrC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAYrC;CAAG;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAQxC;CAAG;;;;;;;;;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAQrC;CAAG;AAEL,eAAO,MAAM,yBAAyB,0HAKrC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { Rpc, RpcGroup } from '@effect/rpc';
2
2
  import { Schema } from 'effect';
3
- import { ChannelEventEntry, EventDiscordMessage, EventEmbedInfo, RsvpAttendeesResult, RsvpCountsResult, RsvpDeadlinePassed, RsvpEventNotFound, RsvpMemberNotFound } from './EventRpcModels.js';
3
+ import { ChannelEventEntry, CreateEventForbidden, CreateEventInvalidDate, CreateEventNotMember, CreateEventResult, EventDiscordMessage, EventEmbedInfo, RsvpAttendeesResult, RsvpCountsResult, RsvpDeadlinePassed, RsvpEventNotFound, RsvpMemberNotFound, RsvpReminderSummary } from './EventRpcModels.js';
4
4
  export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnprocessedEvents", Schema.Struct<{
5
5
  limit: typeof Schema.Number;
6
- }>, Schema.Array$<Schema.Union<[typeof import("./EventRpcEvents.js").EventCreatedEvent, typeof import("./EventRpcEvents.js").EventUpdatedEvent, typeof import("./EventRpcEvents.js").EventCancelledEvent]>>, typeof Schema.Never, never> | Rpc.Rpc<"Event/MarkEventProcessed", Schema.Struct<{
6
+ }>, Schema.Array$<Schema.Union<[typeof import("./EventRpcEvents.js").EventCreatedEvent, typeof import("./EventRpcEvents.js").EventUpdatedEvent, typeof import("./EventRpcEvents.js").EventCancelledEvent, typeof import("./EventRpcEvents.js").RsvpReminderEvent]>>, typeof Schema.Never, never> | Rpc.Rpc<"Event/MarkEventProcessed", Schema.Struct<{
7
7
  id: typeof Schema.String;
8
8
  }>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Event/MarkEventFailed", Schema.Struct<{
9
9
  id: typeof Schema.String;
@@ -30,5 +30,16 @@ export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnproces
30
30
  event_id: Schema.brand<typeof Schema.String, "EventId">;
31
31
  offset: typeof Schema.Number;
32
32
  limit: typeof Schema.Number;
33
- }>, typeof RsvpAttendeesResult, typeof Schema.Never, never>>;
33
+ }>, typeof RsvpAttendeesResult, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetRsvpReminderSummary", Schema.Struct<{
34
+ event_id: Schema.brand<typeof Schema.String, "EventId">;
35
+ }>, typeof RsvpReminderSummary, typeof Schema.Never, never> | Rpc.Rpc<"Event/CreateEvent", Schema.Struct<{
36
+ guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
37
+ discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
38
+ event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
39
+ title: typeof Schema.String;
40
+ start_at: typeof Schema.String;
41
+ end_at: Schema.NullOr<typeof Schema.String>;
42
+ location: Schema.NullOr<typeof Schema.String>;
43
+ description: Schema.NullOr<typeof Schema.String>;
44
+ }>, typeof CreateEventResult, Schema.Union<[typeof CreateEventNotMember, typeof CreateEventForbidden, typeof CreateEventInvalidDate]>, never>>;
34
45
  //# sourceMappingURL=EventRpcGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventRpcGroup.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAiDR,CAAC"}
1
+ {"version":3,"file":"EventRpcGroup.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8IAmER,CAAC"}