@sideline/domain 0.9.0 → 0.10.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 +7 -1
- package/dist/cjs/api/AgeThresholdApi.js.map +1 -1
- package/dist/cjs/api/Auth.js +9 -8
- package/dist/cjs/api/Auth.js.map +1 -1
- package/dist/cjs/api/EventApi.js +26 -23
- package/dist/cjs/api/EventApi.js.map +1 -1
- package/dist/cjs/api/EventRsvpApi.js +8 -8
- package/dist/cjs/api/EventRsvpApi.js.map +1 -1
- package/dist/cjs/api/EventSeriesApi.js +27 -24
- package/dist/cjs/api/EventSeriesApi.js.map +1 -1
- package/dist/cjs/api/GroupApi.js +22 -14
- package/dist/cjs/api/GroupApi.js.map +1 -1
- package/dist/cjs/api/ICalApi.js +25 -0
- package/dist/cjs/api/ICalApi.js.map +1 -0
- package/dist/cjs/api/RoleApi.js +11 -3
- package/dist/cjs/api/RoleApi.js.map +1 -1
- package/dist/cjs/api/Roster.js +10 -10
- package/dist/cjs/api/Roster.js.map +1 -1
- package/dist/cjs/api/TeamSettingsApi.js +13 -12
- package/dist/cjs/api/TeamSettingsApi.js.map +1 -1
- package/dist/cjs/api/TrainingTypeApi.js +17 -8
- package/dist/cjs/api/TrainingTypeApi.js.map +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/models/AgeThresholdRule.js +2 -2
- package/dist/cjs/models/AgeThresholdRule.js.map +1 -1
- package/dist/cjs/models/ChannelSyncEvent.js +5 -5
- package/dist/cjs/models/ChannelSyncEvent.js.map +1 -1
- package/dist/cjs/models/Event.js +5 -5
- package/dist/cjs/models/Event.js.map +1 -1
- package/dist/cjs/models/EventRsvp.js +1 -1
- package/dist/cjs/models/EventRsvp.js.map +1 -1
- package/dist/cjs/models/EventSeries.js +5 -5
- package/dist/cjs/models/EventSeries.js.map +1 -1
- package/dist/cjs/models/GroupModel.js +2 -2
- package/dist/cjs/models/GroupModel.js.map +1 -1
- package/dist/cjs/models/ICalToken.js +17 -0
- package/dist/cjs/models/ICalToken.js.map +1 -0
- package/dist/cjs/models/OAuthConnection.js +1 -1
- package/dist/cjs/models/OAuthConnection.js.map +1 -1
- package/dist/cjs/models/RoleSyncEvent.js +5 -5
- package/dist/cjs/models/RoleSyncEvent.js.map +1 -1
- package/dist/cjs/models/TeamInvite.js +1 -1
- package/dist/cjs/models/TeamInvite.js.map +1 -1
- package/dist/cjs/models/TeamMember.js +1 -1
- package/dist/cjs/models/TeamMember.js.map +1 -1
- package/dist/cjs/models/TrainingType.js +1 -1
- package/dist/cjs/models/TrainingType.js.map +1 -1
- package/dist/cjs/models/User.js +5 -4
- package/dist/cjs/models/User.js.map +1 -1
- package/dist/cjs/rpc/event/EventRpcEvents.js +14 -12
- package/dist/cjs/rpc/event/EventRpcEvents.js.map +1 -1
- package/dist/cjs/rpc/event/EventRpcGroup.js +15 -7
- package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -1
- package/dist/cjs/rpc/event/EventRpcModels.js +39 -16
- package/dist/cjs/rpc/event/EventRpcModels.js.map +1 -1
- package/dist/cjs/rpc/guild/GuildRpcGroup.js +3 -3
- package/dist/cjs/rpc/guild/GuildRpcGroup.js.map +1 -1
- package/dist/dts/api/AgeThresholdApi.d.ts +6 -1
- package/dist/dts/api/AgeThresholdApi.d.ts.map +1 -1
- package/dist/dts/api/Auth.d.ts +22 -21
- package/dist/dts/api/Auth.d.ts.map +1 -1
- package/dist/dts/api/EventApi.d.ts +69 -69
- package/dist/dts/api/EventApi.d.ts.map +1 -1
- package/dist/dts/api/EventRsvpApi.d.ts +24 -24
- package/dist/dts/api/EventSeriesApi.d.ts +72 -72
- package/dist/dts/api/EventSeriesApi.d.ts.map +1 -1
- package/dist/dts/api/GroupApi.d.ts +49 -44
- package/dist/dts/api/GroupApi.d.ts.map +1 -1
- package/dist/dts/api/ICalApi.d.ts +28 -0
- package/dist/dts/api/ICalApi.d.ts.map +1 -0
- package/dist/dts/api/RoleApi.d.ts +13 -8
- package/dist/dts/api/RoleApi.d.ts.map +1 -1
- package/dist/dts/api/Roster.d.ts +32 -32
- package/dist/dts/api/TeamSettingsApi.d.ts +36 -36
- package/dist/dts/api/TeamSettingsApi.d.ts.map +1 -1
- package/dist/dts/api/TrainingTypeApi.d.ts +28 -23
- package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -1
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/AgeThresholdRule.d.ts +22 -22
- package/dist/dts/models/ChannelSyncEvent.d.ts +55 -55
- package/dist/dts/models/Event.d.ts +55 -55
- package/dist/dts/models/EventRsvp.d.ts +11 -11
- package/dist/dts/models/EventSeries.d.ts +55 -55
- package/dist/dts/models/GroupModel.d.ts +22 -22
- package/dist/dts/models/ICalToken.d.ts +69 -0
- package/dist/dts/models/ICalToken.d.ts.map +1 -0
- package/dist/dts/models/OAuthConnection.d.ts +8 -8
- package/dist/dts/models/RoleSyncEvent.d.ts +55 -55
- package/dist/dts/models/TeamInvite.d.ts +11 -11
- package/dist/dts/models/TeamMember.d.ts +22 -22
- package/dist/dts/models/TrainingType.d.ts +11 -11
- package/dist/dts/models/User.d.ts +44 -44
- package/dist/dts/models/User.d.ts.map +1 -1
- package/dist/dts/rpc/SyncRpcs.d.ts +15 -11
- package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
- package/dist/dts/rpc/event/EventRpcEvents.d.ts +12 -12
- package/dist/dts/rpc/event/EventRpcEvents.d.ts.map +1 -1
- package/dist/dts/rpc/event/EventRpcGroup.d.ts +13 -9
- package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -1
- package/dist/dts/rpc/event/EventRpcModels.d.ts +108 -45
- package/dist/dts/rpc/event/EventRpcModels.d.ts.map +1 -1
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts +3 -3
- package/dist/esm/api/AgeThresholdApi.js +5 -0
- package/dist/esm/api/AgeThresholdApi.js.map +1 -1
- package/dist/esm/api/Auth.js +8 -7
- package/dist/esm/api/Auth.js.map +1 -1
- package/dist/esm/api/EventApi.js +25 -23
- package/dist/esm/api/EventApi.js.map +1 -1
- package/dist/esm/api/EventRsvpApi.js +8 -8
- package/dist/esm/api/EventRsvpApi.js.map +1 -1
- package/dist/esm/api/EventSeriesApi.js +26 -24
- package/dist/esm/api/EventSeriesApi.js.map +1 -1
- package/dist/esm/api/GroupApi.js +20 -13
- package/dist/esm/api/GroupApi.js.map +1 -1
- package/dist/esm/api/ICalApi.js +16 -0
- package/dist/esm/api/ICalApi.js.map +1 -0
- package/dist/esm/api/RoleApi.js +9 -2
- package/dist/esm/api/RoleApi.js.map +1 -1
- package/dist/esm/api/Roster.js +10 -10
- package/dist/esm/api/Roster.js.map +1 -1
- package/dist/esm/api/TeamSettingsApi.js +13 -12
- package/dist/esm/api/TeamSettingsApi.js.map +1 -1
- package/dist/esm/api/TrainingTypeApi.js +15 -7
- package/dist/esm/api/TrainingTypeApi.js.map +1 -1
- package/dist/esm/index.js +2 -0
- 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 +5 -5
- package/dist/esm/models/ChannelSyncEvent.js.map +1 -1
- package/dist/esm/models/Event.js +5 -5
- package/dist/esm/models/Event.js.map +1 -1
- package/dist/esm/models/EventRsvp.js +1 -1
- package/dist/esm/models/EventRsvp.js.map +1 -1
- package/dist/esm/models/EventSeries.js +5 -5
- package/dist/esm/models/EventSeries.js.map +1 -1
- package/dist/esm/models/GroupModel.js +2 -2
- package/dist/esm/models/GroupModel.js.map +1 -1
- package/dist/esm/models/ICalToken.js +10 -0
- package/dist/esm/models/ICalToken.js.map +1 -0
- package/dist/esm/models/OAuthConnection.js +1 -1
- package/dist/esm/models/OAuthConnection.js.map +1 -1
- package/dist/esm/models/RoleSyncEvent.js +5 -5
- package/dist/esm/models/RoleSyncEvent.js.map +1 -1
- package/dist/esm/models/TeamInvite.js +1 -1
- package/dist/esm/models/TeamInvite.js.map +1 -1
- package/dist/esm/models/TeamMember.js +1 -1
- package/dist/esm/models/TeamMember.js.map +1 -1
- package/dist/esm/models/TrainingType.js +1 -1
- package/dist/esm/models/TrainingType.js.map +1 -1
- package/dist/esm/models/User.js +5 -4
- package/dist/esm/models/User.js.map +1 -1
- package/dist/esm/rpc/event/EventRpcEvents.js +13 -12
- package/dist/esm/rpc/event/EventRpcEvents.js.map +1 -1
- package/dist/esm/rpc/event/EventRpcGroup.js +16 -8
- package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -1
- package/dist/esm/rpc/event/EventRpcModels.js +34 -15
- package/dist/esm/rpc/event/EventRpcModels.js.map +1 -1
- package/dist/esm/rpc/guild/GuildRpcGroup.js +3 -3
- package/dist/esm/rpc/guild/GuildRpcGroup.js.map +1 -1
- package/package.json +2 -2
- package/src/api/AgeThresholdApi.ts +7 -0
- package/src/api/Auth.ts +8 -7
- package/src/api/EventApi.ts +27 -23
- package/src/api/EventRsvpApi.ts +8 -8
- package/src/api/EventSeriesApi.ts +28 -24
- package/src/api/GroupApi.ts +21 -13
- package/src/api/ICalApi.ts +32 -0
- package/src/api/RoleApi.ts +10 -2
- package/src/api/Roster.ts +10 -10
- package/src/api/TeamSettingsApi.ts +13 -12
- package/src/api/TrainingTypeApi.ts +16 -7
- package/src/index.ts +4 -0
- package/src/models/AgeThresholdRule.ts +2 -2
- package/src/models/ChannelSyncEvent.ts +5 -5
- package/src/models/Event.ts +5 -5
- package/src/models/EventRsvp.ts +1 -1
- package/src/models/EventSeries.ts +5 -5
- package/src/models/GroupModel.ts +2 -2
- package/src/models/ICalToken.ts +10 -0
- package/src/models/OAuthConnection.ts +1 -1
- package/src/models/RoleSyncEvent.ts +5 -5
- package/src/models/TeamInvite.ts +1 -1
- package/src/models/TeamMember.ts +1 -1
- package/src/models/TrainingType.ts +1 -1
- package/src/models/User.ts +5 -4
- package/src/rpc/event/EventRpcEvents.ts +13 -12
- package/src/rpc/event/EventRpcGroup.ts +18 -7
- package/src/rpc/event/EventRpcModels.ts +39 -15
- package/src/rpc/guild/GuildRpcGroup.ts +3 -3
|
@@ -8,11 +8,11 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
8
8
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
9
9
|
readonly active: typeof Schema.Boolean;
|
|
10
10
|
readonly jersey_number: import("@effect/experimental/VariantSchema").Field<{
|
|
11
|
-
readonly select: Schema.
|
|
12
|
-
readonly update: Schema.
|
|
13
|
-
readonly json: Schema.
|
|
14
|
-
readonly jsonCreate: Schema.
|
|
15
|
-
readonly jsonUpdate: Schema.
|
|
11
|
+
readonly select: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
12
|
+
readonly update: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
13
|
+
readonly json: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
14
|
+
readonly jsonCreate: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
15
|
+
readonly jsonUpdate: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
16
16
|
}>;
|
|
17
17
|
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
18
18
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
@@ -21,11 +21,11 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
21
21
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
22
22
|
readonly active: typeof Schema.Boolean;
|
|
23
23
|
readonly jersey_number: import("@effect/experimental/VariantSchema").Field<{
|
|
24
|
-
readonly select: Schema.
|
|
25
|
-
readonly update: Schema.
|
|
26
|
-
readonly json: Schema.
|
|
27
|
-
readonly jsonCreate: Schema.
|
|
28
|
-
readonly jsonUpdate: Schema.
|
|
24
|
+
readonly select: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
25
|
+
readonly update: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
26
|
+
readonly json: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
27
|
+
readonly jsonCreate: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
28
|
+
readonly jsonUpdate: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
29
29
|
}>;
|
|
30
30
|
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
31
31
|
}, true>, {
|
|
@@ -33,7 +33,7 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
33
33
|
} & {
|
|
34
34
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
35
35
|
} & {
|
|
36
|
-
readonly jersey_number: number
|
|
36
|
+
readonly jersey_number: import("effect/Option").Option<number>;
|
|
37
37
|
} & {
|
|
38
38
|
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
39
39
|
} & {
|
|
@@ -46,11 +46,11 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
46
46
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
47
47
|
readonly active: typeof Schema.Boolean;
|
|
48
48
|
readonly jersey_number: import("@effect/experimental/VariantSchema").Field<{
|
|
49
|
-
readonly select: Schema.
|
|
50
|
-
readonly update: Schema.
|
|
51
|
-
readonly json: Schema.
|
|
52
|
-
readonly jsonCreate: Schema.
|
|
53
|
-
readonly jsonUpdate: Schema.
|
|
49
|
+
readonly select: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
50
|
+
readonly update: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
51
|
+
readonly json: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
52
|
+
readonly jsonCreate: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
53
|
+
readonly jsonUpdate: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
54
54
|
}>;
|
|
55
55
|
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
56
56
|
}, true>>, never, {
|
|
@@ -58,7 +58,7 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
58
58
|
} & {
|
|
59
59
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
60
60
|
} & {
|
|
61
|
-
readonly jersey_number: number
|
|
61
|
+
readonly jersey_number: import("effect/Option").Option<number>;
|
|
62
62
|
} & {
|
|
63
63
|
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
64
64
|
} & {
|
|
@@ -71,7 +71,7 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
71
71
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
72
72
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
73
73
|
readonly active: typeof Schema.Boolean;
|
|
74
|
-
readonly jersey_number: Schema.
|
|
74
|
+
readonly jersey_number: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
75
75
|
readonly joined_at: Model.DateTimeFromDate;
|
|
76
76
|
}>;
|
|
77
77
|
readonly insert: Schema.Struct<{
|
|
@@ -85,27 +85,27 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
85
85
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
86
86
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
87
87
|
readonly active: typeof Schema.Boolean;
|
|
88
|
-
readonly jersey_number: Schema.
|
|
88
|
+
readonly jersey_number: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
89
89
|
}>;
|
|
90
90
|
readonly json: Schema.Struct<{
|
|
91
91
|
readonly id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
92
92
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
93
93
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
94
94
|
readonly active: typeof Schema.Boolean;
|
|
95
|
-
readonly jersey_number: Schema.
|
|
95
|
+
readonly jersey_number: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
96
96
|
readonly joined_at: typeof Schema.DateTimeUtc;
|
|
97
97
|
}>;
|
|
98
98
|
readonly jsonCreate: Schema.Struct<{
|
|
99
99
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
100
100
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
101
101
|
readonly active: typeof Schema.Boolean;
|
|
102
|
-
readonly jersey_number: Schema.
|
|
102
|
+
readonly jersey_number: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
103
103
|
}>;
|
|
104
104
|
readonly jsonUpdate: Schema.Struct<{
|
|
105
105
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
106
106
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
107
107
|
readonly active: typeof Schema.Boolean;
|
|
108
|
-
readonly jersey_number: Schema.
|
|
108
|
+
readonly jersey_number: Schema.OptionFromNullOr<typeof Schema.Number>;
|
|
109
109
|
}>;
|
|
110
110
|
};
|
|
111
111
|
export declare class TeamMember extends TeamMember_base {
|
|
@@ -6,13 +6,13 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
6
6
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
7
7
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
8
|
readonly name: typeof Schema.String;
|
|
9
|
-
readonly group_id: Schema.
|
|
9
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
10
10
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
11
11
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
12
12
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
13
13
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
14
14
|
readonly name: typeof Schema.String;
|
|
15
|
-
readonly group_id: Schema.
|
|
15
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
16
16
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
17
17
|
}, true>, {
|
|
18
18
|
readonly name: string;
|
|
@@ -23,12 +23,12 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
23
23
|
} & {
|
|
24
24
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
25
25
|
} & {
|
|
26
|
-
readonly group_id: (string & import("effect/Brand").Brand<"GroupId"
|
|
26
|
+
readonly group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
27
27
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
28
28
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
29
29
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
30
30
|
readonly name: typeof Schema.String;
|
|
31
|
-
readonly group_id: Schema.
|
|
31
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
32
32
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
33
33
|
}, true>>, never, {
|
|
34
34
|
readonly name: string;
|
|
@@ -39,43 +39,43 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
39
39
|
} & {
|
|
40
40
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
41
41
|
} & {
|
|
42
|
-
readonly group_id: (string & import("effect/Brand").Brand<"GroupId"
|
|
42
|
+
readonly group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
43
43
|
}> & {
|
|
44
44
|
readonly select: Schema.Struct<{
|
|
45
45
|
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
46
46
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
47
47
|
readonly name: typeof Schema.String;
|
|
48
|
-
readonly group_id: Schema.
|
|
48
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
49
49
|
readonly created_at: Model.DateTimeFromDate;
|
|
50
50
|
}>;
|
|
51
51
|
readonly insert: Schema.Struct<{
|
|
52
52
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
53
53
|
readonly name: typeof Schema.String;
|
|
54
|
-
readonly group_id: Schema.
|
|
54
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
55
55
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
56
56
|
}>;
|
|
57
57
|
readonly update: Schema.Struct<{
|
|
58
58
|
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
59
59
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
60
60
|
readonly name: typeof Schema.String;
|
|
61
|
-
readonly group_id: Schema.
|
|
61
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
62
62
|
}>;
|
|
63
63
|
readonly json: Schema.Struct<{
|
|
64
64
|
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
65
65
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
66
66
|
readonly name: typeof Schema.String;
|
|
67
|
-
readonly group_id: Schema.
|
|
67
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
68
68
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
69
69
|
}>;
|
|
70
70
|
readonly jsonCreate: Schema.Struct<{
|
|
71
71
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
72
72
|
readonly name: typeof Schema.String;
|
|
73
|
-
readonly group_id: Schema.
|
|
73
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
74
74
|
}>;
|
|
75
75
|
readonly jsonUpdate: Schema.Struct<{
|
|
76
76
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
77
77
|
readonly name: typeof Schema.String;
|
|
78
|
-
readonly group_id: Schema.
|
|
78
|
+
readonly group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
79
79
|
}>;
|
|
80
80
|
};
|
|
81
81
|
export declare class TrainingType extends TrainingType_base {
|
|
@@ -8,40 +8,40 @@ export declare const Locale: Schema.Literal<["en", "cs"]>;
|
|
|
8
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
|
-
readonly discord_id: typeof Schema.String
|
|
11
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
12
12
|
readonly username: typeof Schema.String;
|
|
13
|
-
readonly avatar: Schema.
|
|
14
|
-
readonly name: Schema.
|
|
13
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
14
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
15
15
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
16
|
-
readonly gender: Schema.
|
|
16
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
17
17
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
18
18
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
19
19
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
20
20
|
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
21
21
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
22
22
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
|
|
23
|
-
readonly discord_id: typeof Schema.String
|
|
23
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
24
24
|
readonly username: typeof Schema.String;
|
|
25
|
-
readonly avatar: Schema.
|
|
26
|
-
readonly name: Schema.
|
|
25
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
26
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
27
27
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
28
|
-
readonly gender: Schema.
|
|
28
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
29
29
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
30
30
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
31
31
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
32
32
|
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
33
33
|
}, true>, {
|
|
34
|
-
readonly name: string
|
|
34
|
+
readonly name: import("effect/Option").Option<string>;
|
|
35
35
|
} & {
|
|
36
36
|
readonly id: string & import("effect/Brand").Brand<"UserId">;
|
|
37
37
|
} & {
|
|
38
|
-
readonly avatar: string
|
|
38
|
+
readonly avatar: import("effect/Option").Option<string>;
|
|
39
39
|
} & {
|
|
40
40
|
readonly birth_date: import("effect/Option").Option<import("effect/DateTime").Utc>;
|
|
41
41
|
} & {
|
|
42
|
-
readonly gender: "male" | "female" | "other"
|
|
42
|
+
readonly gender: import("effect/Option").Option<"male" | "female" | "other">;
|
|
43
43
|
} & {
|
|
44
|
-
readonly discord_id: string
|
|
44
|
+
readonly discord_id: string & import("effect/Brand").Brand<"Snowflake">;
|
|
45
45
|
} & {
|
|
46
46
|
readonly username: string;
|
|
47
47
|
} & {
|
|
@@ -54,28 +54,28 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
54
54
|
readonly updated_at: import("effect/DateTime").Utc;
|
|
55
55
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
56
56
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
|
|
57
|
-
readonly discord_id: typeof Schema.String
|
|
57
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
58
58
|
readonly username: typeof Schema.String;
|
|
59
|
-
readonly avatar: Schema.
|
|
60
|
-
readonly name: Schema.
|
|
59
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
60
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
61
61
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
62
|
-
readonly gender: Schema.
|
|
62
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
63
63
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
64
64
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
65
65
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
66
66
|
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
67
67
|
}, true>>, never, {
|
|
68
|
-
readonly name: string
|
|
68
|
+
readonly name: import("effect/Option").Option<string>;
|
|
69
69
|
} & {
|
|
70
70
|
readonly id: string & import("effect/Brand").Brand<"UserId">;
|
|
71
71
|
} & {
|
|
72
|
-
readonly avatar: string
|
|
72
|
+
readonly avatar: import("effect/Option").Option<string>;
|
|
73
73
|
} & {
|
|
74
74
|
readonly birth_date: import("effect/Option").Option<import("effect/DateTime").Utc>;
|
|
75
75
|
} & {
|
|
76
|
-
readonly gender: "male" | "female" | "other"
|
|
76
|
+
readonly gender: import("effect/Option").Option<"male" | "female" | "other">;
|
|
77
77
|
} & {
|
|
78
|
-
readonly discord_id: string
|
|
78
|
+
readonly discord_id: string & import("effect/Brand").Brand<"Snowflake">;
|
|
79
79
|
} & {
|
|
80
80
|
readonly username: string;
|
|
81
81
|
} & {
|
|
@@ -89,24 +89,24 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
89
89
|
}> & {
|
|
90
90
|
readonly select: Schema.Struct<{
|
|
91
91
|
readonly id: Schema.brand<typeof Schema.String, "UserId">;
|
|
92
|
-
readonly discord_id: typeof Schema.String
|
|
92
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
93
93
|
readonly username: typeof Schema.String;
|
|
94
|
-
readonly avatar: Schema.
|
|
95
|
-
readonly name: Schema.
|
|
94
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
95
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
96
96
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
97
|
-
readonly gender: Schema.
|
|
97
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
98
98
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
99
99
|
readonly created_at: Model.DateTimeFromDate;
|
|
100
100
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
101
101
|
readonly updated_at: Model.DateTimeFromDate;
|
|
102
102
|
}>;
|
|
103
103
|
readonly insert: Schema.Struct<{
|
|
104
|
-
readonly discord_id: typeof Schema.String
|
|
104
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
105
105
|
readonly username: typeof Schema.String;
|
|
106
|
-
readonly avatar: Schema.
|
|
107
|
-
readonly name: Schema.
|
|
106
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
107
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
108
108
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
109
|
-
readonly gender: Schema.
|
|
109
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
110
110
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
111
111
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
112
112
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -114,46 +114,46 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
114
114
|
}>;
|
|
115
115
|
readonly update: Schema.Struct<{
|
|
116
116
|
readonly id: Schema.brand<typeof Schema.String, "UserId">;
|
|
117
|
-
readonly discord_id: typeof Schema.String
|
|
117
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
118
118
|
readonly username: typeof Schema.String;
|
|
119
|
-
readonly avatar: Schema.
|
|
120
|
-
readonly name: Schema.
|
|
119
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
120
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
121
121
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
122
|
-
readonly gender: Schema.
|
|
122
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
123
123
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
124
124
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
125
125
|
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
126
126
|
}>;
|
|
127
127
|
readonly json: Schema.Struct<{
|
|
128
128
|
readonly id: Schema.brand<typeof Schema.String, "UserId">;
|
|
129
|
-
readonly discord_id: typeof Schema.String
|
|
129
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
130
130
|
readonly username: typeof Schema.String;
|
|
131
|
-
readonly avatar: Schema.
|
|
132
|
-
readonly name: Schema.
|
|
131
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
132
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
133
133
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
134
|
-
readonly gender: Schema.
|
|
134
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
135
135
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
136
136
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
137
137
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
138
138
|
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
139
139
|
}>;
|
|
140
140
|
readonly jsonCreate: Schema.Struct<{
|
|
141
|
-
readonly discord_id: typeof Schema.String
|
|
141
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
142
142
|
readonly username: typeof Schema.String;
|
|
143
|
-
readonly avatar: Schema.
|
|
144
|
-
readonly name: Schema.
|
|
143
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
144
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
145
145
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
146
|
-
readonly gender: Schema.
|
|
146
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
147
147
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
148
148
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
149
149
|
}>;
|
|
150
150
|
readonly jsonUpdate: Schema.Struct<{
|
|
151
|
-
readonly discord_id: typeof Schema.String
|
|
151
|
+
readonly discord_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
152
152
|
readonly username: typeof Schema.String;
|
|
153
|
-
readonly avatar: Schema.
|
|
154
|
-
readonly name: Schema.
|
|
153
|
+
readonly avatar: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
154
|
+
readonly name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
155
155
|
readonly birth_date: Schema.OptionFromNullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
156
|
-
readonly gender: Schema.
|
|
156
|
+
readonly gender: Schema.OptionFromNullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
157
157
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
158
158
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
159
159
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,MAAM,6CAA4C,CAAC;AAChE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,MAAM,8BAA6B,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAYxB;CAAG"}
|
|
@@ -26,8 +26,8 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
26
26
|
error: typeof import("effect/Schema").String;
|
|
27
27
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/SaveDiscordMessageId", import("effect/Schema").Struct<{
|
|
28
28
|
event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
|
|
29
|
-
discord_channel_id: typeof import("effect/Schema").String
|
|
30
|
-
discord_message_id: typeof import("effect/Schema").String
|
|
29
|
+
discord_channel_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
30
|
+
discord_message_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
31
31
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetDiscordMessageId", import("effect/Schema").Struct<{
|
|
32
32
|
event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
|
|
33
33
|
}>, import("effect/Schema").OptionFromNullOr<typeof import("./event/EventRpcModels.js").EventDiscordMessage>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/SubmitRsvp", import("effect/Schema").Struct<{
|
|
@@ -35,28 +35,32 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
35
35
|
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
36
36
|
discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
37
37
|
response: import("effect/Schema").Literal<["yes", "no", "maybe"]>;
|
|
38
|
-
message: import("effect/Schema").
|
|
38
|
+
message: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
39
39
|
}>, typeof import("./event/EventRpcModels.js").RsvpCountsResult, import("effect/Schema").Union<[typeof import("./event/EventRpcModels.js").RsvpMemberNotFound, typeof import("./event/EventRpcModels.js").RsvpDeadlinePassed, typeof import("./event/EventRpcModels.js").RsvpEventNotFound]>, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetRsvpCounts", import("effect/Schema").Struct<{
|
|
40
40
|
event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
|
|
41
41
|
}>, typeof import("./event/EventRpcModels.js").RsvpCountsResult, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetEventEmbedInfo", import("effect/Schema").Struct<{
|
|
42
42
|
event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
|
|
43
43
|
}>, import("effect/Schema").OptionFromNullOr<typeof import("./event/EventRpcModels.js").EventEmbedInfo>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetChannelEvents", import("effect/Schema").Struct<{
|
|
44
|
-
discord_channel_id: typeof import("effect/Schema").String
|
|
44
|
+
discord_channel_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
45
45
|
}>, import("effect/Schema").Array$<typeof import("./event/EventRpcModels.js").ChannelEventEntry>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetRsvpAttendees", import("effect/Schema").Struct<{
|
|
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
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
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/
|
|
51
|
+
}>, typeof import("./event/EventRpcModels.js").RsvpReminderSummary, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetUpcomingGuildEvents", import("effect/Schema").Struct<{
|
|
52
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
53
|
+
offset: typeof import("effect/Schema").Number;
|
|
54
|
+
limit: typeof import("effect/Schema").Number;
|
|
55
|
+
}>, typeof import("./event/EventRpcModels.js").GuildEventListResult, typeof import("./event/EventRpcModels.js").GuildNotFound, never> | import("@effect/rpc/Rpc").Rpc<"Event/CreateEvent", import("effect/Schema").Struct<{
|
|
52
56
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
53
57
|
discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
54
58
|
event_type: import("effect/Schema").Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
55
59
|
title: typeof import("effect/Schema").String;
|
|
56
60
|
start_at: typeof import("effect/Schema").String;
|
|
57
|
-
end_at: import("effect/Schema").
|
|
58
|
-
location: import("effect/Schema").
|
|
59
|
-
description: import("effect/Schema").
|
|
61
|
+
end_at: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
62
|
+
location: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
63
|
+
description: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
60
64
|
}>, 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<{
|
|
61
65
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
62
66
|
guild_name: typeof import("effect/Schema").String;
|
|
@@ -70,21 +74,21 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
70
74
|
channel_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
71
75
|
name: typeof import("effect/Schema").String;
|
|
72
76
|
type: typeof import("effect/Schema").Number;
|
|
73
|
-
parent_id: import("effect/Schema").
|
|
77
|
+
parent_id: import("effect/Schema").OptionFromNullOr<import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">>;
|
|
74
78
|
}>>;
|
|
75
79
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/ReconcileMembers", import("effect/Schema").Struct<{
|
|
76
80
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
77
81
|
members: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
78
82
|
discord_id: typeof import("effect/Schema").String;
|
|
79
83
|
username: typeof import("effect/Schema").String;
|
|
80
|
-
avatar: import("effect/Schema").
|
|
84
|
+
avatar: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
81
85
|
roles: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
82
86
|
}>>;
|
|
83
87
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/RegisterMember", import("effect/Schema").Struct<{
|
|
84
88
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
85
89
|
discord_id: typeof import("effect/Schema").String;
|
|
86
90
|
username: typeof import("effect/Schema").String;
|
|
87
|
-
avatar: import("effect/Schema").
|
|
91
|
+
avatar: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
88
92
|
roles: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
89
93
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/GetUnprocessedEvents", import("effect/Schema").Struct<{
|
|
90
94
|
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
|
|
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"}
|
|
@@ -7,12 +7,12 @@ declare const EventCreatedEvent_base: Schema.TaggedClass<EventCreatedEvent, "eve
|
|
|
7
7
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
8
8
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
9
9
|
title: typeof Schema.String;
|
|
10
|
-
description: Schema.
|
|
11
|
-
start_at: typeof Schema.String
|
|
12
|
-
end_at: Schema.
|
|
13
|
-
location: Schema.
|
|
10
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
11
|
+
start_at: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
12
|
+
end_at: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
13
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
14
14
|
event_type: typeof Schema.String;
|
|
15
|
-
discord_channel_id: Schema.
|
|
15
|
+
discord_channel_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
16
16
|
}>;
|
|
17
17
|
export declare class EventCreatedEvent extends EventCreatedEvent_base {
|
|
18
18
|
}
|
|
@@ -24,12 +24,12 @@ declare const EventUpdatedEvent_base: Schema.TaggedClass<EventUpdatedEvent, "eve
|
|
|
24
24
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
25
25
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
26
26
|
title: typeof Schema.String;
|
|
27
|
-
description: Schema.
|
|
28
|
-
start_at: typeof Schema.String
|
|
29
|
-
end_at: Schema.
|
|
30
|
-
location: Schema.
|
|
27
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
28
|
+
start_at: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
29
|
+
end_at: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
30
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
31
31
|
event_type: typeof Schema.String;
|
|
32
|
-
discord_channel_id: Schema.
|
|
32
|
+
discord_channel_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
33
33
|
}>;
|
|
34
34
|
export declare class EventUpdatedEvent extends EventUpdatedEvent_base {
|
|
35
35
|
}
|
|
@@ -51,8 +51,8 @@ declare const RsvpReminderEvent_base: Schema.TaggedClass<RsvpReminderEvent, "rsv
|
|
|
51
51
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
52
52
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
53
53
|
title: typeof Schema.String;
|
|
54
|
-
start_at: typeof Schema.String
|
|
55
|
-
discord_channel_id: Schema.
|
|
54
|
+
start_at: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
55
|
+
discord_channel_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
56
56
|
}>;
|
|
57
57
|
export declare class RsvpReminderEvent extends RsvpReminderEvent_base {
|
|
58
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventRpcEvents.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcEvents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventRpcEvents.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcEvents.ts"],"names":[],"mappings":"AACA,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,6 +1,6 @@
|
|
|
1
1
|
import { Rpc, RpcGroup } from '@effect/rpc';
|
|
2
2
|
import { Schema } from 'effect';
|
|
3
|
-
import { ChannelEventEntry, CreateEventForbidden, CreateEventInvalidDate, CreateEventNotMember, CreateEventResult, EventDiscordMessage, EventEmbedInfo, RsvpAttendeesResult, RsvpCountsResult, RsvpDeadlinePassed, RsvpEventNotFound, RsvpMemberNotFound, RsvpReminderSummary } from './EventRpcModels.js';
|
|
3
|
+
import { ChannelEventEntry, CreateEventForbidden, CreateEventInvalidDate, CreateEventNotMember, CreateEventResult, EventDiscordMessage, EventEmbedInfo, GuildEventListResult, GuildNotFound, 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
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<{
|
|
@@ -10,8 +10,8 @@ export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnproces
|
|
|
10
10
|
error: typeof Schema.String;
|
|
11
11
|
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Event/SaveDiscordMessageId", Schema.Struct<{
|
|
12
12
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
13
|
-
discord_channel_id: typeof Schema.String
|
|
14
|
-
discord_message_id: typeof Schema.String
|
|
13
|
+
discord_channel_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
14
|
+
discord_message_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
15
15
|
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetDiscordMessageId", Schema.Struct<{
|
|
16
16
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
17
17
|
}>, Schema.OptionFromNullOr<typeof EventDiscordMessage>, typeof Schema.Never, never> | Rpc.Rpc<"Event/SubmitRsvp", Schema.Struct<{
|
|
@@ -19,27 +19,31 @@ export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnproces
|
|
|
19
19
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
20
20
|
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
21
21
|
response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
22
|
-
message: Schema.
|
|
22
|
+
message: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
23
23
|
}>, typeof RsvpCountsResult, Schema.Union<[typeof RsvpMemberNotFound, typeof RsvpDeadlinePassed, typeof RsvpEventNotFound]>, never> | Rpc.Rpc<"Event/GetRsvpCounts", Schema.Struct<{
|
|
24
24
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
25
25
|
}>, typeof RsvpCountsResult, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetEventEmbedInfo", Schema.Struct<{
|
|
26
26
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
27
27
|
}>, Schema.OptionFromNullOr<typeof EventEmbedInfo>, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetChannelEvents", Schema.Struct<{
|
|
28
|
-
discord_channel_id: typeof Schema.String
|
|
28
|
+
discord_channel_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
29
29
|
}>, Schema.Array$<typeof ChannelEventEntry>, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetRsvpAttendees", Schema.Struct<{
|
|
30
30
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
31
31
|
offset: typeof Schema.Number;
|
|
32
32
|
limit: typeof Schema.Number;
|
|
33
33
|
}>, typeof RsvpAttendeesResult, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetRsvpReminderSummary", Schema.Struct<{
|
|
34
34
|
event_id: Schema.brand<typeof Schema.String, "EventId">;
|
|
35
|
-
}>, typeof RsvpReminderSummary, typeof Schema.Never, never> | Rpc.Rpc<"Event/
|
|
35
|
+
}>, typeof RsvpReminderSummary, typeof Schema.Never, never> | Rpc.Rpc<"Event/GetUpcomingGuildEvents", Schema.Struct<{
|
|
36
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
37
|
+
offset: typeof Schema.Number;
|
|
38
|
+
limit: typeof Schema.Number;
|
|
39
|
+
}>, typeof GuildEventListResult, typeof GuildNotFound, never> | Rpc.Rpc<"Event/CreateEvent", Schema.Struct<{
|
|
36
40
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
37
41
|
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
38
42
|
event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
39
43
|
title: typeof Schema.String;
|
|
40
44
|
start_at: typeof Schema.String;
|
|
41
|
-
end_at: Schema.
|
|
42
|
-
location: Schema.
|
|
43
|
-
description: Schema.
|
|
45
|
+
end_at: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
46
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
47
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
44
48
|
}>, typeof CreateEventResult, Schema.Union<[typeof CreateEventNotMember, typeof CreateEventForbidden, typeof CreateEventInvalidDate]>, never>>;
|
|
45
49
|
//# 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,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
|
|
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,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8IA4ER,CAAC"}
|