@sideline/domain 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/AgeThresholdApi.js +14 -14
- package/dist/cjs/api/AgeThresholdApi.js.map +1 -1
- package/dist/cjs/api/Auth.js +31 -7
- package/dist/cjs/api/Auth.js.map +1 -1
- package/dist/cjs/api/EventApi.js +141 -0
- package/dist/cjs/api/EventApi.js.map +1 -0
- package/dist/cjs/api/EventRsvpApi.js +66 -0
- package/dist/cjs/api/EventRsvpApi.js.map +1 -0
- package/dist/cjs/api/EventSeriesApi.js +139 -0
- package/dist/cjs/api/EventSeriesApi.js.map +1 -0
- package/dist/cjs/api/GroupApi.js +205 -0
- package/dist/cjs/api/GroupApi.js.map +1 -0
- package/dist/cjs/api/NotificationApi.js +6 -2
- package/dist/cjs/api/NotificationApi.js.map +1 -1
- package/dist/cjs/api/Roster.js +3 -2
- package/dist/cjs/api/Roster.js.map +1 -1
- package/dist/cjs/api/TeamSettingsApi.js +55 -0
- package/dist/cjs/api/TeamSettingsApi.js.map +1 -0
- package/dist/cjs/api/TrainingTypeApi.js +15 -41
- package/dist/cjs/api/TrainingTypeApi.js.map +1 -1
- package/dist/cjs/index.js +31 -5
- package/dist/cjs/models/AgeThresholdRule.js +2 -2
- package/dist/cjs/models/AgeThresholdRule.js.map +1 -1
- package/dist/cjs/models/ChannelSyncEvent.js +3 -3
- package/dist/cjs/models/ChannelSyncEvent.js.map +1 -1
- package/dist/cjs/models/DiscordChannelMapping.js +2 -2
- package/dist/cjs/models/DiscordChannelMapping.js.map +1 -1
- package/dist/cjs/models/Event.js +36 -0
- package/dist/cjs/models/Event.js.map +1 -0
- package/dist/cjs/models/EventRsvp.js +23 -0
- package/dist/cjs/models/EventRsvp.js.map +1 -0
- package/dist/cjs/models/EventSeries.js +35 -0
- package/dist/cjs/models/EventSeries.js.map +1 -0
- package/dist/cjs/models/GroupModel.js +20 -0
- package/dist/cjs/models/GroupModel.js.map +1 -0
- package/dist/cjs/models/Notification.js +1 -1
- package/dist/cjs/models/Notification.js.map +1 -1
- package/dist/cjs/models/Role.js +3 -3
- package/dist/cjs/models/Role.js.map +1 -1
- package/dist/cjs/models/RoleGroup.js +15 -0
- package/dist/cjs/models/RoleGroup.js.map +1 -0
- package/dist/cjs/models/Session.js +3 -5
- package/dist/cjs/models/Session.js.map +1 -1
- package/dist/cjs/models/Team.js +2 -0
- package/dist/cjs/models/Team.js.map +1 -1
- package/dist/cjs/models/TeamInvite.js +3 -5
- package/dist/cjs/models/TeamInvite.js.map +1 -1
- package/dist/cjs/models/TeamSettings.js +17 -0
- package/dist/cjs/models/TeamSettings.js.map +1 -0
- package/dist/cjs/models/TrainingType.js +2 -0
- package/dist/cjs/models/TrainingType.js.map +1 -1
- package/dist/cjs/models/User.js +3 -1
- package/dist/cjs/models/User.js.map +1 -1
- package/dist/cjs/rpc/SyncRpcs.js +3 -1
- package/dist/cjs/rpc/SyncRpcs.js.map +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcEvents.js +6 -6
- package/dist/cjs/rpc/channel/ChannelRpcEvents.js.map +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcGroup.js +3 -3
- package/dist/cjs/rpc/channel/ChannelRpcGroup.js.map +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcModels.js +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcModels.js.map +1 -1
- package/dist/cjs/rpc/event/EventRpcEvents.js +45 -0
- package/dist/cjs/rpc/event/EventRpcEvents.js.map +1 -0
- package/dist/cjs/rpc/event/EventRpcGroup.js +65 -0
- package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -0
- package/dist/cjs/rpc/event/EventRpcModels.js +47 -0
- package/dist/cjs/rpc/event/EventRpcModels.js.map +1 -0
- package/dist/cjs/rpc/guild/GuildRpcGroup.js +35 -0
- package/dist/cjs/rpc/guild/GuildRpcGroup.js.map +1 -0
- package/dist/dts/api/AgeThresholdApi.d.ts +25 -25
- package/dist/dts/api/AgeThresholdApi.d.ts.map +1 -1
- package/dist/dts/api/Auth.d.ts +42 -13
- package/dist/dts/api/Auth.d.ts.map +1 -1
- package/dist/dts/api/EventApi.d.ts +273 -0
- package/dist/dts/api/EventApi.d.ts.map +1 -0
- package/dist/dts/api/EventRsvpApi.d.ts +96 -0
- package/dist/dts/api/EventRsvpApi.d.ts.map +1 -0
- package/dist/dts/api/EventSeriesApi.d.ts +284 -0
- package/dist/dts/api/EventSeriesApi.d.ts.map +1 -0
- package/dist/dts/api/GroupApi.d.ts +254 -0
- package/dist/dts/api/GroupApi.d.ts.map +1 -0
- package/dist/dts/api/NotificationApi.d.ts +10 -6
- package/dist/dts/api/NotificationApi.d.ts.map +1 -1
- package/dist/dts/api/RoleApi.d.ts +10 -10
- package/dist/dts/api/Roster.d.ts +15 -11
- package/dist/dts/api/Roster.d.ts.map +1 -1
- package/dist/dts/api/TeamSettingsApi.d.ts +107 -0
- package/dist/dts/api/TeamSettingsApi.d.ts.map +1 -0
- package/dist/dts/api/TrainingTypeApi.d.ts +33 -42
- package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -1
- package/dist/dts/index.d.ts +15 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/AgeThresholdRule.d.ts +13 -13
- package/dist/dts/models/ChannelSyncEvent.d.ts +32 -32
- package/dist/dts/models/DiscordChannelMapping.d.ts +11 -11
- package/dist/dts/models/Event.d.ts +233 -0
- package/dist/dts/models/Event.d.ts.map +1 -0
- package/dist/dts/models/EventRsvp.d.ts +110 -0
- package/dist/dts/models/EventRsvp.d.ts.map +1 -0
- package/dist/dts/models/EventSeries.d.ts +248 -0
- package/dist/dts/models/EventSeries.d.ts.map +1 -0
- package/dist/dts/models/GroupModel.d.ts +97 -0
- package/dist/dts/models/GroupModel.d.ts.map +1 -0
- package/dist/dts/models/Notification.d.ts +14 -14
- package/dist/dts/models/Notification.d.ts.map +1 -1
- package/dist/dts/models/Role.d.ts +4 -4
- package/dist/dts/models/Role.d.ts.map +1 -1
- package/dist/dts/models/RoleGroup.d.ts +16 -0
- package/dist/dts/models/RoleGroup.d.ts.map +1 -0
- package/dist/dts/models/RoleSyncEvent.d.ts +8 -8
- package/dist/dts/models/Session.d.ts +6 -6
- package/dist/dts/models/Session.d.ts.map +1 -1
- package/dist/dts/models/Team.d.ts +13 -0
- package/dist/dts/models/Team.d.ts.map +1 -1
- package/dist/dts/models/TeamInvite.d.ts +6 -6
- package/dist/dts/models/TeamInvite.d.ts.map +1 -1
- package/dist/dts/models/{SubgroupModel.d.ts → TeamSettings.d.ts} +27 -28
- package/dist/dts/models/TeamSettings.d.ts.map +1 -0
- package/dist/dts/models/TrainingType.d.ts +13 -0
- package/dist/dts/models/TrainingType.d.ts.map +1 -1
- package/dist/dts/models/User.d.ts +11 -11
- package/dist/dts/models/User.d.ts.map +1 -1
- package/dist/dts/rpc/SyncRpcs.d.ts +45 -3
- package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
- package/dist/dts/rpc/channel/ChannelRpcEvents.d.ts +6 -6
- package/dist/dts/rpc/channel/ChannelRpcGroup.d.ts +3 -3
- package/dist/dts/rpc/channel/ChannelRpcModels.d.ts +3 -3
- package/dist/dts/rpc/event/EventRpcEvents.d.ts +49 -0
- package/dist/dts/rpc/event/EventRpcEvents.d.ts.map +1 -0
- package/dist/dts/rpc/event/EventRpcGroup.d.ts +32 -0
- package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -0
- package/dist/dts/rpc/event/EventRpcModels.d.ts +115 -0
- package/dist/dts/rpc/event/EventRpcModels.d.ts.map +1 -0
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts +19 -0
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts.map +1 -0
- package/dist/esm/api/AgeThresholdApi.js +11 -11
- package/dist/esm/api/AgeThresholdApi.js.map +1 -1
- package/dist/esm/api/Auth.js +29 -6
- package/dist/esm/api/Auth.js.map +1 -1
- package/dist/esm/api/EventApi.js +126 -0
- package/dist/esm/api/EventApi.js.map +1 -0
- package/dist/esm/api/EventRsvpApi.js +53 -0
- package/dist/esm/api/EventRsvpApi.js.map +1 -0
- package/dist/esm/api/EventSeriesApi.js +126 -0
- package/dist/esm/api/EventSeriesApi.js.map +1 -0
- package/dist/esm/api/GroupApi.js +185 -0
- package/dist/esm/api/GroupApi.js.map +1 -0
- package/dist/esm/api/NotificationApi.js +6 -2
- package/dist/esm/api/NotificationApi.js.map +1 -1
- package/dist/esm/api/Roster.js +3 -2
- package/dist/esm/api/Roster.js.map +1 -1
- package/dist/esm/api/TeamSettingsApi.js +46 -0
- package/dist/esm/api/TeamSettingsApi.js.map +1 -0
- package/dist/esm/api/TrainingTypeApi.js +14 -38
- package/dist/esm/api/TrainingTypeApi.js.map +1 -1
- package/dist/esm/index.js +15 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/AgeThresholdRule.js +2 -2
- package/dist/esm/models/AgeThresholdRule.js.map +1 -1
- package/dist/esm/models/ChannelSyncEvent.js +3 -3
- package/dist/esm/models/ChannelSyncEvent.js.map +1 -1
- package/dist/esm/models/DiscordChannelMapping.js +2 -2
- package/dist/esm/models/DiscordChannelMapping.js.map +1 -1
- package/dist/esm/models/Event.js +28 -0
- package/dist/esm/models/Event.js.map +1 -0
- package/dist/esm/models/EventRsvp.js +16 -0
- package/dist/esm/models/EventRsvp.js.map +1 -0
- package/dist/esm/models/EventSeries.js +28 -0
- package/dist/esm/models/EventSeries.js.map +1 -0
- package/dist/esm/models/GroupModel.js +13 -0
- package/dist/esm/models/GroupModel.js.map +1 -0
- package/dist/esm/models/Notification.js +1 -1
- package/dist/esm/models/Notification.js.map +1 -1
- package/dist/esm/models/Role.js +3 -3
- package/dist/esm/models/Role.js.map +1 -1
- package/dist/esm/models/RoleGroup.js +8 -0
- package/dist/esm/models/RoleGroup.js.map +1 -0
- package/dist/esm/models/Session.js +3 -6
- package/dist/esm/models/Session.js.map +1 -1
- package/dist/esm/models/Team.js +2 -0
- package/dist/esm/models/Team.js.map +1 -1
- package/dist/esm/models/TeamInvite.js +3 -6
- package/dist/esm/models/TeamInvite.js.map +1 -1
- package/dist/esm/models/TeamSettings.js +10 -0
- package/dist/esm/models/TeamSettings.js.map +1 -0
- package/dist/esm/models/TrainingType.js +2 -0
- package/dist/esm/models/TrainingType.js.map +1 -1
- package/dist/esm/models/User.js +2 -1
- package/dist/esm/models/User.js.map +1 -1
- package/dist/esm/rpc/SyncRpcs.js +3 -1
- package/dist/esm/rpc/SyncRpcs.js.map +1 -1
- package/dist/esm/rpc/channel/ChannelRpcEvents.js +7 -7
- package/dist/esm/rpc/channel/ChannelRpcEvents.js.map +1 -1
- package/dist/esm/rpc/channel/ChannelRpcGroup.js +4 -4
- package/dist/esm/rpc/channel/ChannelRpcGroup.js.map +1 -1
- package/dist/esm/rpc/channel/ChannelRpcModels.js +2 -2
- package/dist/esm/rpc/channel/ChannelRpcModels.js.map +1 -1
- package/dist/esm/rpc/event/EventRpcEvents.js +36 -0
- package/dist/esm/rpc/event/EventRpcEvents.js.map +1 -0
- package/dist/esm/rpc/event/EventRpcGroup.js +59 -0
- package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -0
- package/dist/esm/rpc/event/EventRpcModels.js +33 -0
- package/dist/esm/rpc/event/EventRpcModels.js.map +1 -0
- package/dist/esm/rpc/guild/GuildRpcGroup.js +29 -0
- package/dist/esm/rpc/guild/GuildRpcGroup.js.map +1 -0
- package/package.json +3 -2
- package/src/api/AgeThresholdApi.ts +12 -12
- package/src/api/Auth.ts +36 -12
- package/src/api/EventApi.ts +129 -0
- package/src/api/EventRsvpApi.ts +67 -0
- package/src/api/EventSeriesApi.ts +134 -0
- package/src/api/GroupApi.ts +229 -0
- package/src/api/NotificationApi.ts +10 -0
- package/src/api/Roster.ts +3 -2
- package/src/api/TeamSettingsApi.ts +57 -0
- package/src/api/TrainingTypeApi.ts +8 -52
- package/src/index.ts +25 -3
- package/src/models/AgeThresholdRule.ts +2 -2
- package/src/models/ChannelSyncEvent.ts +3 -3
- package/src/models/DiscordChannelMapping.ts +2 -2
- package/src/models/Event.ts +41 -0
- package/src/models/EventRsvp.ts +20 -0
- package/src/models/EventSeries.ts +36 -0
- package/src/models/GroupModel.ts +15 -0
- package/src/models/Notification.ts +2 -2
- package/src/models/Role.ts +20 -1
- package/src/models/RoleGroup.ts +8 -0
- package/src/models/Session.ts +3 -7
- package/src/models/Team.ts +2 -0
- package/src/models/TeamInvite.ts +3 -9
- package/src/models/TeamSettings.ts +10 -0
- package/src/models/TrainingType.ts +2 -0
- package/src/models/User.ts +2 -1
- package/src/rpc/SyncRpcs.ts +8 -1
- package/src/rpc/channel/ChannelRpcEvents.ts +7 -7
- package/src/rpc/channel/ChannelRpcGroup.ts +4 -4
- package/src/rpc/channel/ChannelRpcModels.ts +2 -2
- package/src/rpc/event/EventRpcEvents.ts +48 -0
- package/src/rpc/event/EventRpcGroup.ts +60 -0
- package/src/rpc/event/EventRpcModels.ts +49 -0
- package/src/rpc/guild/GuildRpcGroup.ts +29 -0
- package/dist/cjs/api/SubgroupApi.js +0 -122
- package/dist/cjs/api/SubgroupApi.js.map +0 -1
- package/dist/cjs/models/SubgroupModel.js +0 -18
- package/dist/cjs/models/SubgroupModel.js.map +0 -1
- package/dist/dts/api/SubgroupApi.d.ts +0 -140
- package/dist/dts/api/SubgroupApi.d.ts.map +0 -1
- package/dist/dts/models/SubgroupModel.d.ts.map +0 -1
- package/dist/esm/api/SubgroupApi.js +0 -106
- package/dist/esm/api/SubgroupApi.js.map +0 -1
- package/dist/esm/models/SubgroupModel.js +0 -11
- package/dist/esm/models/SubgroupModel.js.map +0 -1
- package/src/api/SubgroupApi.ts +0 -146
- package/src/models/SubgroupModel.ts +0 -13
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const EventId: Schema.brand<typeof Schema.String, "EventId">;
|
|
4
|
+
export type EventId = typeof EventId.Type;
|
|
5
|
+
export declare const EventType: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
6
|
+
export type EventType = typeof EventType.Type;
|
|
7
|
+
export declare const EventStatus: Schema.Literal<["active", "cancelled"]>;
|
|
8
|
+
export type EventStatus = typeof EventStatus.Type;
|
|
9
|
+
declare const Event_base: import("@effect/experimental/VariantSchema").Class<Event, {
|
|
10
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventId">>;
|
|
11
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
12
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
13
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
14
|
+
readonly title: typeof Schema.String;
|
|
15
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
16
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
17
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
18
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
19
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
20
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
21
|
+
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
22
|
+
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
23
|
+
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
24
|
+
readonly json: Schema.Literal<["active", "cancelled"]>;
|
|
25
|
+
readonly jsonCreate: Schema.Literal<["active", "cancelled"]>;
|
|
26
|
+
readonly jsonUpdate: Schema.Literal<["active", "cancelled"]>;
|
|
27
|
+
}>;
|
|
28
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
29
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
30
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
31
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
32
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventId">>;
|
|
33
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
34
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
35
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
36
|
+
readonly title: typeof Schema.String;
|
|
37
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
38
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
39
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
40
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
41
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
42
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
43
|
+
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
44
|
+
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
45
|
+
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
46
|
+
readonly json: Schema.Literal<["active", "cancelled"]>;
|
|
47
|
+
readonly jsonCreate: Schema.Literal<["active", "cancelled"]>;
|
|
48
|
+
readonly jsonUpdate: Schema.Literal<["active", "cancelled"]>;
|
|
49
|
+
}>;
|
|
50
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
51
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
52
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
53
|
+
}, true>, {
|
|
54
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
55
|
+
} & {
|
|
56
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
57
|
+
} & {
|
|
58
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
59
|
+
} & {
|
|
60
|
+
readonly created_by: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
61
|
+
} & {
|
|
62
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
63
|
+
} & {
|
|
64
|
+
readonly status: "active" | "cancelled";
|
|
65
|
+
} & {
|
|
66
|
+
readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
|
|
67
|
+
} & {
|
|
68
|
+
readonly description: string | null;
|
|
69
|
+
} & {
|
|
70
|
+
readonly location: string | null;
|
|
71
|
+
} & {
|
|
72
|
+
readonly title: string;
|
|
73
|
+
} & {
|
|
74
|
+
readonly end_at: import("effect/DateTime").Utc | null;
|
|
75
|
+
} & {
|
|
76
|
+
readonly series_id: (string & import("effect/Brand").Brand<"EventSeriesId">) | null;
|
|
77
|
+
} & {
|
|
78
|
+
readonly event_type: "other" | "training" | "match" | "tournament" | "meeting" | "social";
|
|
79
|
+
} & {
|
|
80
|
+
readonly start_at: import("effect/DateTime").Utc;
|
|
81
|
+
} & {
|
|
82
|
+
readonly series_modified: boolean;
|
|
83
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
84
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventId">>;
|
|
85
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
86
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
87
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
88
|
+
readonly title: typeof Schema.String;
|
|
89
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
90
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
91
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
92
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
93
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
94
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
95
|
+
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
96
|
+
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
97
|
+
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
98
|
+
readonly json: Schema.Literal<["active", "cancelled"]>;
|
|
99
|
+
readonly jsonCreate: Schema.Literal<["active", "cancelled"]>;
|
|
100
|
+
readonly jsonUpdate: Schema.Literal<["active", "cancelled"]>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
103
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
104
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
105
|
+
}, true>>, never, {
|
|
106
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
107
|
+
} & {
|
|
108
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
109
|
+
} & {
|
|
110
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
111
|
+
} & {
|
|
112
|
+
readonly created_by: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
113
|
+
} & {
|
|
114
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
115
|
+
} & {
|
|
116
|
+
readonly status: "active" | "cancelled";
|
|
117
|
+
} & {
|
|
118
|
+
readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
|
|
119
|
+
} & {
|
|
120
|
+
readonly description: string | null;
|
|
121
|
+
} & {
|
|
122
|
+
readonly location: string | null;
|
|
123
|
+
} & {
|
|
124
|
+
readonly title: string;
|
|
125
|
+
} & {
|
|
126
|
+
readonly end_at: import("effect/DateTime").Utc | null;
|
|
127
|
+
} & {
|
|
128
|
+
readonly series_id: (string & import("effect/Brand").Brand<"EventSeriesId">) | null;
|
|
129
|
+
} & {
|
|
130
|
+
readonly event_type: "other" | "training" | "match" | "tournament" | "meeting" | "social";
|
|
131
|
+
} & {
|
|
132
|
+
readonly start_at: import("effect/DateTime").Utc;
|
|
133
|
+
} & {
|
|
134
|
+
readonly series_modified: boolean;
|
|
135
|
+
}> & {
|
|
136
|
+
readonly select: Schema.Struct<{
|
|
137
|
+
readonly id: Schema.brand<typeof Schema.String, "EventId">;
|
|
138
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
139
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
140
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
141
|
+
readonly title: typeof Schema.String;
|
|
142
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
143
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
144
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
145
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
146
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
147
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
148
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
149
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
150
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
151
|
+
readonly updated_at: Model.DateTimeFromDate;
|
|
152
|
+
}>;
|
|
153
|
+
readonly insert: Schema.Struct<{
|
|
154
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
155
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
156
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
157
|
+
readonly title: typeof Schema.String;
|
|
158
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
159
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
160
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
161
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
162
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
163
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
164
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
165
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
166
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
167
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
168
|
+
}>;
|
|
169
|
+
readonly update: Schema.Struct<{
|
|
170
|
+
readonly id: Schema.brand<typeof Schema.String, "EventId">;
|
|
171
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
172
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
173
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
174
|
+
readonly title: typeof Schema.String;
|
|
175
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
176
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
177
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
178
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
179
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
180
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
181
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
182
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
183
|
+
}>;
|
|
184
|
+
readonly json: Schema.Struct<{
|
|
185
|
+
readonly id: Schema.brand<typeof Schema.String, "EventId">;
|
|
186
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
187
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
188
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
189
|
+
readonly title: typeof Schema.String;
|
|
190
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
191
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
192
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
193
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
194
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
195
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
196
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
197
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
198
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
199
|
+
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
200
|
+
}>;
|
|
201
|
+
readonly jsonCreate: Schema.Struct<{
|
|
202
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
203
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
204
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
205
|
+
readonly title: typeof Schema.String;
|
|
206
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
207
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
208
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
209
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
210
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
211
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
212
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
213
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
214
|
+
}>;
|
|
215
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
216
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
217
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
218
|
+
readonly event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
219
|
+
readonly title: typeof Schema.String;
|
|
220
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
221
|
+
readonly start_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
222
|
+
readonly end_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
223
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
224
|
+
readonly series_id: Schema.NullOr<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
225
|
+
readonly series_modified: typeof Schema.Boolean;
|
|
226
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
227
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
228
|
+
}>;
|
|
229
|
+
};
|
|
230
|
+
export declare class Event extends Event_base {
|
|
231
|
+
}
|
|
232
|
+
export {};
|
|
233
|
+
//# sourceMappingURL=Event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/models/Event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMhC,eAAO,MAAM,OAAO,+CAA8C,CAAC;AACnE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAC;AAE1C,eAAO,MAAM,SAAS,mFAOrB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAE9C,eAAO,MAAM,WAAW,yCAAwC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,qBAAa,KAAM,SAAQ,UAgBzB;CAAG"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const EventRsvpId: Schema.brand<typeof Schema.String, "EventRsvpId">;
|
|
4
|
+
export type EventRsvpId = typeof EventRsvpId.Type;
|
|
5
|
+
export declare const RsvpResponse: Schema.Literal<["yes", "no", "maybe"]>;
|
|
6
|
+
export type RsvpResponse = typeof RsvpResponse.Type;
|
|
7
|
+
declare const EventRsvp_base: import("@effect/experimental/VariantSchema").Class<EventRsvp, {
|
|
8
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventRsvpId">>;
|
|
9
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
10
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
11
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
12
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
13
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
14
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
15
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
16
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventRsvpId">>;
|
|
17
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
18
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
19
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
20
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
21
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
22
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
23
|
+
}, true>, {
|
|
24
|
+
readonly id: string & import("effect/Brand").Brand<"EventRsvpId">;
|
|
25
|
+
} & {
|
|
26
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
27
|
+
} & {
|
|
28
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
29
|
+
} & {
|
|
30
|
+
readonly message: string | null;
|
|
31
|
+
} & {
|
|
32
|
+
readonly event_id: string & import("effect/Brand").Brand<"EventId">;
|
|
33
|
+
} & {
|
|
34
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
35
|
+
} & {
|
|
36
|
+
readonly response: "yes" | "no" | "maybe";
|
|
37
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
38
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventRsvpId">>;
|
|
39
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
40
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
41
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
42
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
43
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
44
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
45
|
+
}, true>>, never, {
|
|
46
|
+
readonly id: string & import("effect/Brand").Brand<"EventRsvpId">;
|
|
47
|
+
} & {
|
|
48
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
49
|
+
} & {
|
|
50
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
51
|
+
} & {
|
|
52
|
+
readonly message: string | null;
|
|
53
|
+
} & {
|
|
54
|
+
readonly event_id: string & import("effect/Brand").Brand<"EventId">;
|
|
55
|
+
} & {
|
|
56
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
57
|
+
} & {
|
|
58
|
+
readonly response: "yes" | "no" | "maybe";
|
|
59
|
+
}> & {
|
|
60
|
+
readonly select: Schema.Struct<{
|
|
61
|
+
readonly id: Schema.brand<typeof Schema.String, "EventRsvpId">;
|
|
62
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
63
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
64
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
65
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
66
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
67
|
+
readonly updated_at: Model.DateTimeFromDate;
|
|
68
|
+
}>;
|
|
69
|
+
readonly insert: Schema.Struct<{
|
|
70
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
71
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
72
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
73
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
74
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
75
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
76
|
+
}>;
|
|
77
|
+
readonly update: Schema.Struct<{
|
|
78
|
+
readonly id: Schema.brand<typeof Schema.String, "EventRsvpId">;
|
|
79
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
80
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
81
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
82
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
83
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
84
|
+
}>;
|
|
85
|
+
readonly json: Schema.Struct<{
|
|
86
|
+
readonly id: Schema.brand<typeof Schema.String, "EventRsvpId">;
|
|
87
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
88
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
89
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
90
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
91
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
92
|
+
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
93
|
+
}>;
|
|
94
|
+
readonly jsonCreate: Schema.Struct<{
|
|
95
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
96
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
97
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
98
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
99
|
+
}>;
|
|
100
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
101
|
+
readonly event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
102
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
103
|
+
readonly response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
104
|
+
readonly message: Schema.NullOr<typeof Schema.String>;
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
export declare class EventRsvp extends EventRsvp_base {
|
|
108
|
+
}
|
|
109
|
+
export {};
|
|
110
|
+
//# sourceMappingURL=EventRsvp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventRsvp.d.ts","sourceRoot":"","sources":["../../../src/models/EventRsvp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,WAAW,mDAAkD,CAAC;AAC3E,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAElD,eAAO,MAAM,YAAY,wCAAuC,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,qBAAa,SAAU,SAAQ,cAQ7B;CAAG"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const EventSeriesId: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
4
|
+
export type EventSeriesId = typeof EventSeriesId.Type;
|
|
5
|
+
export declare const RecurrenceFrequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
6
|
+
export type RecurrenceFrequency = typeof RecurrenceFrequency.Type;
|
|
7
|
+
export declare const DayOfWeek: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
8
|
+
export type DayOfWeek = typeof DayOfWeek.Type;
|
|
9
|
+
export declare const EventSeriesStatus: Schema.Literal<["active", "cancelled"]>;
|
|
10
|
+
export type EventSeriesStatus = typeof EventSeriesStatus.Type;
|
|
11
|
+
declare const EventSeries_base: import("@effect/experimental/VariantSchema").Class<EventSeries, {
|
|
12
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
13
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
14
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
15
|
+
readonly title: typeof Schema.String;
|
|
16
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
17
|
+
readonly start_time: typeof Schema.String;
|
|
18
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
19
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
20
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
21
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
22
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
23
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
24
|
+
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
25
|
+
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
26
|
+
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
27
|
+
readonly json: Schema.Literal<["active", "cancelled"]>;
|
|
28
|
+
readonly jsonCreate: Schema.Literal<["active", "cancelled"]>;
|
|
29
|
+
readonly jsonUpdate: Schema.Literal<["active", "cancelled"]>;
|
|
30
|
+
}>;
|
|
31
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
32
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
33
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
34
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
35
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
36
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
37
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
38
|
+
readonly title: typeof Schema.String;
|
|
39
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
40
|
+
readonly start_time: typeof Schema.String;
|
|
41
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
42
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
43
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
44
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
45
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
46
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
47
|
+
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
48
|
+
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
49
|
+
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
50
|
+
readonly json: Schema.Literal<["active", "cancelled"]>;
|
|
51
|
+
readonly jsonCreate: Schema.Literal<["active", "cancelled"]>;
|
|
52
|
+
readonly jsonUpdate: Schema.Literal<["active", "cancelled"]>;
|
|
53
|
+
}>;
|
|
54
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
55
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
56
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
57
|
+
}, true>, {
|
|
58
|
+
readonly id: string & import("effect/Brand").Brand<"EventSeriesId">;
|
|
59
|
+
} & {
|
|
60
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
61
|
+
} & {
|
|
62
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
63
|
+
} & {
|
|
64
|
+
readonly created_by: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
65
|
+
} & {
|
|
66
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
67
|
+
} & {
|
|
68
|
+
readonly status: "active" | "cancelled";
|
|
69
|
+
} & {
|
|
70
|
+
readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
|
|
71
|
+
} & {
|
|
72
|
+
readonly description: string | null;
|
|
73
|
+
} & {
|
|
74
|
+
readonly end_time: string | null;
|
|
75
|
+
} & {
|
|
76
|
+
readonly location: string | null;
|
|
77
|
+
} & {
|
|
78
|
+
readonly end_date: Date | null;
|
|
79
|
+
} & {
|
|
80
|
+
readonly title: string;
|
|
81
|
+
} & {
|
|
82
|
+
readonly start_time: string;
|
|
83
|
+
} & {
|
|
84
|
+
readonly frequency: "weekly" | "biweekly";
|
|
85
|
+
} & {
|
|
86
|
+
readonly day_of_week: number & import("effect/Brand").Brand<"DayOfWeek">;
|
|
87
|
+
} & {
|
|
88
|
+
readonly start_date: Date;
|
|
89
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
90
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "EventSeriesId">>;
|
|
91
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
92
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
93
|
+
readonly title: typeof Schema.String;
|
|
94
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
95
|
+
readonly start_time: typeof Schema.String;
|
|
96
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
97
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
98
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
99
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
100
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
101
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
102
|
+
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
103
|
+
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
104
|
+
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
105
|
+
readonly json: Schema.Literal<["active", "cancelled"]>;
|
|
106
|
+
readonly jsonCreate: Schema.Literal<["active", "cancelled"]>;
|
|
107
|
+
readonly jsonUpdate: Schema.Literal<["active", "cancelled"]>;
|
|
108
|
+
}>;
|
|
109
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
110
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
111
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
112
|
+
}, true>>, never, {
|
|
113
|
+
readonly id: string & import("effect/Brand").Brand<"EventSeriesId">;
|
|
114
|
+
} & {
|
|
115
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
116
|
+
} & {
|
|
117
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
118
|
+
} & {
|
|
119
|
+
readonly created_by: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
120
|
+
} & {
|
|
121
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
122
|
+
} & {
|
|
123
|
+
readonly status: "active" | "cancelled";
|
|
124
|
+
} & {
|
|
125
|
+
readonly training_type_id: (string & import("effect/Brand").Brand<"TrainingTypeId">) | null;
|
|
126
|
+
} & {
|
|
127
|
+
readonly description: string | null;
|
|
128
|
+
} & {
|
|
129
|
+
readonly end_time: string | null;
|
|
130
|
+
} & {
|
|
131
|
+
readonly location: string | null;
|
|
132
|
+
} & {
|
|
133
|
+
readonly end_date: Date | null;
|
|
134
|
+
} & {
|
|
135
|
+
readonly title: string;
|
|
136
|
+
} & {
|
|
137
|
+
readonly start_time: string;
|
|
138
|
+
} & {
|
|
139
|
+
readonly frequency: "weekly" | "biweekly";
|
|
140
|
+
} & {
|
|
141
|
+
readonly day_of_week: number & import("effect/Brand").Brand<"DayOfWeek">;
|
|
142
|
+
} & {
|
|
143
|
+
readonly start_date: Date;
|
|
144
|
+
}> & {
|
|
145
|
+
readonly select: Schema.Struct<{
|
|
146
|
+
readonly id: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
147
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
148
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
149
|
+
readonly title: typeof Schema.String;
|
|
150
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
151
|
+
readonly start_time: typeof Schema.String;
|
|
152
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
153
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
154
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
155
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
156
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
157
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
158
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
159
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
160
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
161
|
+
readonly updated_at: Model.DateTimeFromDate;
|
|
162
|
+
}>;
|
|
163
|
+
readonly insert: Schema.Struct<{
|
|
164
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
165
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
166
|
+
readonly title: typeof Schema.String;
|
|
167
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
168
|
+
readonly start_time: typeof Schema.String;
|
|
169
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
170
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
171
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
172
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
173
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
174
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
175
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
176
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
177
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
178
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
179
|
+
}>;
|
|
180
|
+
readonly update: Schema.Struct<{
|
|
181
|
+
readonly id: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
182
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
183
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
184
|
+
readonly title: typeof Schema.String;
|
|
185
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
186
|
+
readonly start_time: typeof Schema.String;
|
|
187
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
188
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
189
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
190
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
191
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
192
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
193
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
194
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
195
|
+
}>;
|
|
196
|
+
readonly json: Schema.Struct<{
|
|
197
|
+
readonly id: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
198
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
199
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
200
|
+
readonly title: typeof Schema.String;
|
|
201
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
202
|
+
readonly start_time: typeof Schema.String;
|
|
203
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
204
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
205
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
206
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
207
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
208
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
209
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
210
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
211
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
212
|
+
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
213
|
+
}>;
|
|
214
|
+
readonly jsonCreate: Schema.Struct<{
|
|
215
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
216
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
217
|
+
readonly title: typeof Schema.String;
|
|
218
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
219
|
+
readonly start_time: typeof Schema.String;
|
|
220
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
221
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
222
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
223
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
224
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
225
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
226
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
227
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
228
|
+
}>;
|
|
229
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
230
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
231
|
+
readonly training_type_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
232
|
+
readonly title: typeof Schema.String;
|
|
233
|
+
readonly description: Schema.NullOr<typeof Schema.String>;
|
|
234
|
+
readonly start_time: typeof Schema.String;
|
|
235
|
+
readonly end_time: Schema.NullOr<typeof Schema.String>;
|
|
236
|
+
readonly location: Schema.NullOr<typeof Schema.String>;
|
|
237
|
+
readonly frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
238
|
+
readonly day_of_week: Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">;
|
|
239
|
+
readonly start_date: typeof Schema.DateFromSelf;
|
|
240
|
+
readonly end_date: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
241
|
+
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
242
|
+
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
243
|
+
}>;
|
|
244
|
+
};
|
|
245
|
+
export declare class EventSeries extends EventSeries_base {
|
|
246
|
+
}
|
|
247
|
+
export {};
|
|
248
|
+
//# sourceMappingURL=EventSeries.d.ts.map
|
|
@@ -0,0 +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"}
|