@sideline/domain 0.7.1 → 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 (91) hide show
  1. package/dist/cjs/api/Auth.js +2 -2
  2. package/dist/cjs/api/Auth.js.map +1 -1
  3. package/dist/cjs/api/EventRsvpApi.js +23 -4
  4. package/dist/cjs/api/EventRsvpApi.js.map +1 -1
  5. package/dist/cjs/api/EventSeriesApi.js +6 -3
  6. package/dist/cjs/api/EventSeriesApi.js.map +1 -1
  7. package/dist/cjs/api/GroupApi.js +1 -1
  8. package/dist/cjs/api/GroupApi.js.map +1 -1
  9. package/dist/cjs/api/Roster.js +2 -2
  10. package/dist/cjs/api/Roster.js.map +1 -1
  11. package/dist/cjs/api/TeamSettingsApi.js +8 -0
  12. package/dist/cjs/api/TeamSettingsApi.js.map +1 -1
  13. package/dist/cjs/models/EventSeries.js +3 -2
  14. package/dist/cjs/models/EventSeries.js.map +1 -1
  15. package/dist/cjs/models/TeamSettings.js +2 -0
  16. package/dist/cjs/models/TeamSettings.js.map +1 -1
  17. package/dist/cjs/models/User.js +2 -2
  18. package/dist/cjs/models/User.js.map +1 -1
  19. package/dist/cjs/rpc/event/EventRpcEvents.js +12 -2
  20. package/dist/cjs/rpc/event/EventRpcEvents.js.map +1 -1
  21. package/dist/cjs/rpc/event/EventRpcGroup.js +18 -0
  22. package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -1
  23. package/dist/cjs/rpc/event/EventRpcModels.js +25 -1
  24. package/dist/cjs/rpc/event/EventRpcModels.js.map +1 -1
  25. package/dist/cjs/rpc/guild/GuildRpcGroup.js +4 -4
  26. package/dist/cjs/rpc/guild/GuildRpcGroup.js.map +1 -1
  27. package/dist/dts/api/Auth.d.ts +8 -8
  28. package/dist/dts/api/EventApi.d.ts +4 -4
  29. package/dist/dts/api/EventRsvpApi.d.ts +38 -1
  30. package/dist/dts/api/EventRsvpApi.d.ts.map +1 -1
  31. package/dist/dts/api/EventSeriesApi.d.ts +17 -9
  32. package/dist/dts/api/EventSeriesApi.d.ts.map +1 -1
  33. package/dist/dts/api/GroupApi.d.ts +3 -3
  34. package/dist/dts/api/Roster.d.ts +8 -8
  35. package/dist/dts/api/TeamSettingsApi.d.ts +24 -0
  36. package/dist/dts/api/TeamSettingsApi.d.ts.map +1 -1
  37. package/dist/dts/models/Event.d.ts +6 -6
  38. package/dist/dts/models/EventSeries.d.ts +17 -15
  39. package/dist/dts/models/EventSeries.d.ts.map +1 -1
  40. package/dist/dts/models/TeamSettings.d.ts +26 -0
  41. package/dist/dts/models/TeamSettings.d.ts.map +1 -1
  42. package/dist/dts/models/User.d.ts +22 -22
  43. package/dist/dts/rpc/SyncRpcs.d.ts +17 -6
  44. package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
  45. package/dist/dts/rpc/event/EventRpcEvents.d.ts +14 -1
  46. package/dist/dts/rpc/event/EventRpcEvents.d.ts.map +1 -1
  47. package/dist/dts/rpc/event/EventRpcGroup.d.ts +14 -3
  48. package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -1
  49. package/dist/dts/rpc/event/EventRpcModels.d.ts +66 -0
  50. package/dist/dts/rpc/event/EventRpcModels.d.ts.map +1 -1
  51. package/dist/dts/rpc/guild/GuildRpcGroup.d.ts +4 -4
  52. package/dist/esm/api/Auth.js +2 -2
  53. package/dist/esm/api/Auth.js.map +1 -1
  54. package/dist/esm/api/EventRsvpApi.js +20 -3
  55. package/dist/esm/api/EventRsvpApi.js.map +1 -1
  56. package/dist/esm/api/EventSeriesApi.js +7 -4
  57. package/dist/esm/api/EventSeriesApi.js.map +1 -1
  58. package/dist/esm/api/GroupApi.js +1 -1
  59. package/dist/esm/api/GroupApi.js.map +1 -1
  60. package/dist/esm/api/Roster.js +2 -2
  61. package/dist/esm/api/Roster.js.map +1 -1
  62. package/dist/esm/api/TeamSettingsApi.js +8 -0
  63. package/dist/esm/api/TeamSettingsApi.js.map +1 -1
  64. package/dist/esm/models/EventSeries.js +2 -1
  65. package/dist/esm/models/EventSeries.js.map +1 -1
  66. package/dist/esm/models/TeamSettings.js +2 -0
  67. package/dist/esm/models/TeamSettings.js.map +1 -1
  68. package/dist/esm/models/User.js +2 -2
  69. package/dist/esm/models/User.js.map +1 -1
  70. package/dist/esm/rpc/event/EventRpcEvents.js +10 -1
  71. package/dist/esm/rpc/event/EventRpcEvents.js.map +1 -1
  72. package/dist/esm/rpc/event/EventRpcGroup.js +19 -1
  73. package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -1
  74. package/dist/esm/rpc/event/EventRpcModels.js +18 -0
  75. package/dist/esm/rpc/event/EventRpcModels.js.map +1 -1
  76. package/dist/esm/rpc/guild/GuildRpcGroup.js +4 -4
  77. package/dist/esm/rpc/guild/GuildRpcGroup.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/api/Auth.ts +2 -2
  80. package/src/api/EventRsvpApi.ts +22 -0
  81. package/src/api/EventSeriesApi.ts +5 -4
  82. package/src/api/GroupApi.ts +1 -1
  83. package/src/api/Roster.ts +2 -2
  84. package/src/api/TeamSettingsApi.ts +8 -0
  85. package/src/models/EventSeries.ts +4 -1
  86. package/src/models/TeamSettings.ts +2 -0
  87. package/src/models/User.ts +2 -2
  88. package/src/rpc/event/EventRpcEvents.ts +11 -0
  89. package/src/rpc/event/EventRpcGroup.ts +23 -0
  90. package/src/rpc/event/EventRpcModels.ts +35 -0
  91. package/src/rpc/guild/GuildRpcGroup.ts +4 -4
@@ -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"}
@@ -9,8 +9,8 @@ export type Locale = typeof Locale.Type;
9
9
  declare const User_base: import("@effect/experimental/VariantSchema").Class<User, {
10
10
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
11
11
  readonly discord_id: typeof Schema.String;
12
- readonly discord_username: typeof Schema.String;
13
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
12
+ readonly username: typeof Schema.String;
13
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
14
14
  readonly name: Schema.NullOr<typeof Schema.String>;
15
15
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
16
16
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -21,8 +21,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
21
21
  }, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
22
22
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
23
23
  readonly discord_id: typeof Schema.String;
24
- readonly discord_username: typeof Schema.String;
25
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
24
+ readonly username: typeof Schema.String;
25
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
26
26
  readonly name: Schema.NullOr<typeof Schema.String>;
27
27
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
28
28
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -35,7 +35,7 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
35
35
  } & {
36
36
  readonly id: string & import("effect/Brand").Brand<"UserId">;
37
37
  } & {
38
- readonly discord_avatar: string | null;
38
+ readonly avatar: string | null;
39
39
  } & {
40
40
  readonly birth_date: import("effect/Option").Option<import("effect/DateTime").Utc>;
41
41
  } & {
@@ -43,7 +43,7 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
43
43
  } & {
44
44
  readonly discord_id: string;
45
45
  } & {
46
- readonly discord_username: string;
46
+ readonly username: string;
47
47
  } & {
48
48
  readonly locale: "en" | "cs";
49
49
  } & {
@@ -55,8 +55,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
55
55
  }, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
56
56
  readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
57
57
  readonly discord_id: typeof Schema.String;
58
- readonly discord_username: typeof Schema.String;
59
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
58
+ readonly username: typeof Schema.String;
59
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
60
60
  readonly name: Schema.NullOr<typeof Schema.String>;
61
61
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
62
62
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -69,7 +69,7 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
69
69
  } & {
70
70
  readonly id: string & import("effect/Brand").Brand<"UserId">;
71
71
  } & {
72
- readonly discord_avatar: string | null;
72
+ readonly avatar: string | null;
73
73
  } & {
74
74
  readonly birth_date: import("effect/Option").Option<import("effect/DateTime").Utc>;
75
75
  } & {
@@ -77,7 +77,7 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
77
77
  } & {
78
78
  readonly discord_id: string;
79
79
  } & {
80
- readonly discord_username: string;
80
+ readonly username: string;
81
81
  } & {
82
82
  readonly locale: "en" | "cs";
83
83
  } & {
@@ -90,8 +90,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
90
90
  readonly select: Schema.Struct<{
91
91
  readonly id: Schema.brand<typeof Schema.String, "UserId">;
92
92
  readonly discord_id: typeof Schema.String;
93
- readonly discord_username: typeof Schema.String;
94
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
93
+ readonly username: typeof Schema.String;
94
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
95
95
  readonly name: Schema.NullOr<typeof Schema.String>;
96
96
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
97
97
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -102,8 +102,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
102
102
  }>;
103
103
  readonly insert: Schema.Struct<{
104
104
  readonly discord_id: typeof Schema.String;
105
- readonly discord_username: typeof Schema.String;
106
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
105
+ readonly username: typeof Schema.String;
106
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
107
107
  readonly name: Schema.NullOr<typeof Schema.String>;
108
108
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
109
109
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -115,8 +115,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
115
115
  readonly update: Schema.Struct<{
116
116
  readonly id: Schema.brand<typeof Schema.String, "UserId">;
117
117
  readonly discord_id: typeof Schema.String;
118
- readonly discord_username: typeof Schema.String;
119
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
118
+ readonly username: typeof Schema.String;
119
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
120
120
  readonly name: Schema.NullOr<typeof Schema.String>;
121
121
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
122
122
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -127,8 +127,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
127
127
  readonly json: Schema.Struct<{
128
128
  readonly id: Schema.brand<typeof Schema.String, "UserId">;
129
129
  readonly discord_id: typeof Schema.String;
130
- readonly discord_username: typeof Schema.String;
131
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
130
+ readonly username: typeof Schema.String;
131
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
132
132
  readonly name: Schema.NullOr<typeof Schema.String>;
133
133
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
134
134
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -139,8 +139,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
139
139
  }>;
140
140
  readonly jsonCreate: Schema.Struct<{
141
141
  readonly discord_id: typeof Schema.String;
142
- readonly discord_username: typeof Schema.String;
143
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
142
+ readonly username: typeof Schema.String;
143
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
144
144
  readonly name: Schema.NullOr<typeof Schema.String>;
145
145
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
146
146
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -149,8 +149,8 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
149
149
  }>;
150
150
  readonly jsonUpdate: Schema.Struct<{
151
151
  readonly discord_id: typeof Schema.String;
152
- readonly discord_username: typeof Schema.String;
153
- readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
152
+ readonly username: typeof Schema.String;
153
+ readonly avatar: Schema.NullOr<typeof Schema.String>;
154
154
  readonly name: Schema.NullOr<typeof Schema.String>;
155
155
  readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
156
156
  readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
@@ -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<{
@@ -65,15 +76,15 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
65
76
  guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
66
77
  members: import("effect/Schema").Array$<import("effect/Schema").Struct<{
67
78
  discord_id: typeof import("effect/Schema").String;
68
- discord_username: typeof import("effect/Schema").String;
69
- discord_avatar: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
79
+ username: typeof import("effect/Schema").String;
80
+ avatar: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
70
81
  roles: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
71
82
  }>>;
72
83
  }>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/RegisterMember", import("effect/Schema").Struct<{
73
84
  guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
74
85
  discord_id: typeof import("effect/Schema").String;
75
- discord_username: typeof import("effect/Schema").String;
76
- discord_avatar: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
86
+ username: typeof import("effect/Schema").String;
87
+ avatar: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
77
88
  roles: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
78
89
  }>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/GetUnprocessedEvents", import("effect/Schema").Struct<{
79
90
  limit: typeof import("effect/Schema").Number;
@@ -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"}
@@ -122,6 +122,34 @@ declare const RsvpEventNotFound_base: Schema.TaggedErrorClass<RsvpEventNotFound,
122
122
  }>;
123
123
  export declare class RsvpEventNotFound extends RsvpEventNotFound_base {
124
124
  }
125
+ declare const CreateEventNotMember_base: Schema.TaggedErrorClass<CreateEventNotMember, "CreateEventNotMember", {
126
+ readonly _tag: Schema.tag<"CreateEventNotMember">;
127
+ }>;
128
+ export declare class CreateEventNotMember extends CreateEventNotMember_base {
129
+ }
130
+ declare const CreateEventForbidden_base: Schema.TaggedErrorClass<CreateEventForbidden, "CreateEventForbidden", {
131
+ readonly _tag: Schema.tag<"CreateEventForbidden">;
132
+ }>;
133
+ export declare class CreateEventForbidden extends CreateEventForbidden_base {
134
+ }
135
+ declare const CreateEventInvalidDate_base: Schema.TaggedErrorClass<CreateEventInvalidDate, "CreateEventInvalidDate", {
136
+ readonly _tag: Schema.tag<"CreateEventInvalidDate">;
137
+ }>;
138
+ export declare class CreateEventInvalidDate extends CreateEventInvalidDate_base {
139
+ }
140
+ declare const CreateEventResult_base: Schema.Class<CreateEventResult, {
141
+ event_id: typeof Schema.String;
142
+ title: typeof Schema.String;
143
+ }, Schema.Struct.Encoded<{
144
+ event_id: typeof Schema.String;
145
+ title: typeof Schema.String;
146
+ }>, never, {
147
+ readonly title: string;
148
+ } & {
149
+ readonly event_id: string;
150
+ }, {}, {}>;
151
+ export declare class CreateEventResult extends CreateEventResult_base {
152
+ }
125
153
  declare const RsvpAttendeeEntry_base: Schema.Class<RsvpAttendeeEntry, {
126
154
  discord_id: Schema.NullOr<typeof Schema.String>;
127
155
  name: Schema.NullOr<typeof Schema.String>;
@@ -156,5 +184,43 @@ declare const RsvpAttendeesResult_base: Schema.Class<RsvpAttendeesResult, {
156
184
  }, {}, {}>;
157
185
  export declare class RsvpAttendeesResult extends RsvpAttendeesResult_base {
158
186
  }
187
+ declare const NonResponderRpcEntry_base: Schema.Class<NonResponderRpcEntry, {
188
+ discord_id: Schema.NullOr<typeof Schema.String>;
189
+ name: Schema.NullOr<typeof Schema.String>;
190
+ username: Schema.NullOr<typeof Schema.String>;
191
+ }, Schema.Struct.Encoded<{
192
+ discord_id: Schema.NullOr<typeof Schema.String>;
193
+ name: Schema.NullOr<typeof Schema.String>;
194
+ username: Schema.NullOr<typeof Schema.String>;
195
+ }>, never, {
196
+ readonly name: string | null;
197
+ } & {
198
+ readonly discord_id: string | null;
199
+ } & {
200
+ readonly username: string | null;
201
+ }, {}, {}>;
202
+ export declare class NonResponderRpcEntry extends NonResponderRpcEntry_base {
203
+ }
204
+ declare const RsvpReminderSummary_base: Schema.Class<RsvpReminderSummary, {
205
+ yesCount: typeof Schema.Number;
206
+ noCount: typeof Schema.Number;
207
+ maybeCount: typeof Schema.Number;
208
+ nonResponders: Schema.Array$<typeof NonResponderRpcEntry>;
209
+ }, Schema.Struct.Encoded<{
210
+ yesCount: typeof Schema.Number;
211
+ noCount: typeof Schema.Number;
212
+ maybeCount: typeof Schema.Number;
213
+ nonResponders: Schema.Array$<typeof NonResponderRpcEntry>;
214
+ }>, never, {
215
+ readonly yesCount: number;
216
+ } & {
217
+ readonly noCount: number;
218
+ } & {
219
+ readonly maybeCount: number;
220
+ } & {
221
+ readonly nonResponders: readonly NonResponderRpcEntry[];
222
+ }, {}, {}>;
223
+ export declare class RsvpReminderSummary extends RsvpReminderSummary_base {
224
+ }
159
225
  export {};
160
226
  //# sourceMappingURL=EventRpcModels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventRpcModels.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;AAEhC,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,gBAAiB,SAAQ,qBAKpC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAOlC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAWrC;CAAG;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAGtC;CAAG;;;;;;;;;;;;;;;;;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAKrC;CAAG;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG"}
1
+ {"version":3,"file":"EventRpcModels.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;AAEhC,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,gBAAiB,SAAQ,qBAKpC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAOlC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAWrC;CAAG;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAGtC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAGzC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAGzC;CAAG;;;;AAEJ,qBAAa,sBAAuB,SAAQ,2BAG3C;CAAG;;;;;;;;;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAGrC;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAKrC;CAAG;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAMxC;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAKvC;CAAG"}
@@ -19,15 +19,15 @@ export declare const GuildRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Guild/RegisterGui
19
19
  guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
20
20
  members: Schema.Array$<Schema.Struct<{
21
21
  discord_id: typeof Schema.String;
22
- discord_username: typeof Schema.String;
23
- discord_avatar: Schema.NullOr<typeof Schema.String>;
22
+ username: typeof Schema.String;
23
+ avatar: Schema.NullOr<typeof Schema.String>;
24
24
  roles: Schema.Array$<typeof Schema.String>;
25
25
  }>>;
26
26
  }>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Guild/RegisterMember", Schema.Struct<{
27
27
  guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
28
28
  discord_id: typeof Schema.String;
29
- discord_username: typeof Schema.String;
30
- discord_avatar: Schema.NullOr<typeof Schema.String>;
29
+ username: typeof Schema.String;
30
+ avatar: Schema.NullOr<typeof Schema.String>;
31
31
  roles: Schema.Array$<typeof Schema.String>;
32
32
  }>, typeof Schema.Void, typeof Schema.Never, never>>;
33
33
  //# sourceMappingURL=GuildRpcGroup.d.ts.map
@@ -15,8 +15,8 @@ export class UserTeam extends /*#__PURE__*/Schema.Class('UserTeam')({
15
15
  export class CurrentUser extends /*#__PURE__*/Schema.Class('CurrentUser')({
16
16
  id: UserId,
17
17
  discordId: Schema.String,
18
- discordUsername: Schema.String,
19
- discordAvatar: /*#__PURE__*/Schema.NullOr(Schema.String),
18
+ username: Schema.String,
19
+ avatar: /*#__PURE__*/Schema.NullOr(Schema.String),
20
20
  isProfileComplete: Schema.Boolean,
21
21
  name: /*#__PURE__*/Schema.NullOr(Schema.String),
22
22
  birthDate: /*#__PURE__*/Schema.NullOr(Schema.String),