@sideline/domain 0.9.0 → 0.11.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 +39 -23
- package/dist/cjs/api/EventApi.js.map +1 -1
- package/dist/cjs/api/EventRsvpApi.js +11 -9
- package/dist/cjs/api/EventRsvpApi.js.map +1 -1
- package/dist/cjs/api/EventSeriesApi.js +44 -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 +19 -5
- package/dist/cjs/api/RoleApi.js.map +1 -1
- package/dist/cjs/api/Roster.js +19 -13
- 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 +27 -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 +8 -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 +8 -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 +2 -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 +16 -8
- package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -1
- package/dist/cjs/rpc/event/EventRpcModels.js +41 -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 +109 -69
- package/dist/dts/api/EventApi.d.ts.map +1 -1
- package/dist/dts/api/EventRsvpApi.d.ts +25 -25
- package/dist/dts/api/EventSeriesApi.d.ts +128 -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 +31 -9
- package/dist/dts/api/RoleApi.d.ts.map +1 -1
- package/dist/dts/api/Roster.d.ts +50 -33
- package/dist/dts/api/Roster.d.ts.map +1 -1
- 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 +62 -25
- 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 +81 -55
- package/dist/dts/models/Event.d.ts.map +1 -1
- package/dist/dts/models/EventRsvp.d.ts +11 -11
- package/dist/dts/models/EventSeries.d.ts +81 -55
- package/dist/dts/models/EventSeries.d.ts.map +1 -1
- 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 +24 -11
- package/dist/dts/models/TrainingType.d.ts.map +1 -1
- 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 +16 -12
- 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 +14 -10
- package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -1
- package/dist/dts/rpc/event/EventRpcModels.d.ts +113 -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 +38 -23
- package/dist/esm/api/EventApi.js.map +1 -1
- package/dist/esm/api/EventRsvpApi.js +11 -9
- package/dist/esm/api/EventRsvpApi.js.map +1 -1
- package/dist/esm/api/EventSeriesApi.js +43 -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 +16 -4
- package/dist/esm/api/RoleApi.js.map +1 -1
- package/dist/esm/api/Roster.js +17 -12
- 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 +25 -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 +8 -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 +8 -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 +2 -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 +17 -9
- package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -1
- package/dist/esm/rpc/event/EventRpcModels.js +35 -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 +36 -23
- package/src/api/EventRsvpApi.ts +9 -9
- package/src/api/EventSeriesApi.ts +41 -24
- package/src/api/GroupApi.ts +21 -13
- package/src/api/ICalApi.ts +32 -0
- package/src/api/RoleApi.ts +17 -3
- package/src/api/Roster.ts +17 -11
- package/src/api/TeamSettingsApi.ts +13 -12
- package/src/api/TrainingTypeApi.ts +22 -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 +8 -5
- package/src/models/EventRsvp.ts +1 -1
- package/src/models/EventSeries.ts +8 -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 +2 -1
- package/src/models/User.ts +5 -4
- package/src/rpc/event/EventRpcEvents.ts +13 -12
- package/src/rpc/event/EventRpcGroup.ts +25 -8
- package/src/rpc/event/EventRpcModels.ts +44 -15
- package/src/rpc/guild/GuildRpcGroup.ts +3 -3
|
@@ -8,58 +8,74 @@ declare const EventSeriesInfo_base: Schema.Class<EventSeriesInfo, {
|
|
|
8
8
|
title: typeof Schema.String;
|
|
9
9
|
frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
10
10
|
daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
11
|
-
startDate: typeof Schema.String
|
|
12
|
-
endDate: Schema.
|
|
11
|
+
startDate: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
12
|
+
endDate: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
13
13
|
status: Schema.Literal<["active", "cancelled"]>;
|
|
14
|
-
trainingTypeId: Schema.
|
|
15
|
-
trainingTypeName: Schema.
|
|
14
|
+
trainingTypeId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
15
|
+
trainingTypeName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
16
16
|
startTime: typeof Schema.String;
|
|
17
|
-
endTime: Schema.
|
|
18
|
-
location: Schema.
|
|
19
|
-
discordChannelId: Schema.
|
|
17
|
+
endTime: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
18
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
19
|
+
discordChannelId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
20
|
+
ownerGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
21
|
+
ownerGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
22
|
+
memberGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
23
|
+
memberGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
20
24
|
}, Schema.Struct.Encoded<{
|
|
21
25
|
seriesId: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
22
26
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
23
27
|
title: typeof Schema.String;
|
|
24
28
|
frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
25
29
|
daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
26
|
-
startDate: typeof Schema.String
|
|
27
|
-
endDate: Schema.
|
|
30
|
+
startDate: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
31
|
+
endDate: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
28
32
|
status: Schema.Literal<["active", "cancelled"]>;
|
|
29
|
-
trainingTypeId: Schema.
|
|
30
|
-
trainingTypeName: Schema.
|
|
33
|
+
trainingTypeId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
34
|
+
trainingTypeName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
31
35
|
startTime: typeof Schema.String;
|
|
32
|
-
endTime: Schema.
|
|
33
|
-
location: Schema.
|
|
34
|
-
discordChannelId: Schema.
|
|
36
|
+
endTime: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
37
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
38
|
+
discordChannelId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
39
|
+
ownerGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
40
|
+
ownerGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
41
|
+
memberGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
42
|
+
memberGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
35
43
|
}>, never, {
|
|
36
44
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
37
45
|
} & {
|
|
38
46
|
readonly status: "active" | "cancelled";
|
|
39
47
|
} & {
|
|
40
|
-
readonly location: string
|
|
48
|
+
readonly location: import("effect/Option").Option<string>;
|
|
41
49
|
} & {
|
|
42
50
|
readonly title: string;
|
|
43
51
|
} & {
|
|
44
52
|
readonly frequency: "weekly" | "biweekly";
|
|
45
53
|
} & {
|
|
46
|
-
readonly trainingTypeName: string
|
|
54
|
+
readonly trainingTypeName: import("effect/Option").Option<string>;
|
|
47
55
|
} & {
|
|
48
56
|
readonly seriesId: string & import("effect/Brand").Brand<"EventSeriesId">;
|
|
49
57
|
} & {
|
|
50
|
-
readonly trainingTypeId: (string & import("effect/Brand").Brand<"TrainingTypeId"
|
|
58
|
+
readonly trainingTypeId: import("effect/Option").Option<string & import("effect/Brand").Brand<"TrainingTypeId">>;
|
|
51
59
|
} & {
|
|
52
|
-
readonly discordChannelId: string
|
|
60
|
+
readonly discordChannelId: import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>;
|
|
61
|
+
} & {
|
|
62
|
+
readonly ownerGroupId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
63
|
+
} & {
|
|
64
|
+
readonly ownerGroupName: import("effect/Option").Option<string>;
|
|
65
|
+
} & {
|
|
66
|
+
readonly memberGroupId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
67
|
+
} & {
|
|
68
|
+
readonly memberGroupName: import("effect/Option").Option<string>;
|
|
53
69
|
} & {
|
|
54
70
|
readonly daysOfWeek: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
|
|
55
71
|
} & {
|
|
56
|
-
readonly startDate:
|
|
72
|
+
readonly startDate: import("effect/DateTime").Utc;
|
|
57
73
|
} & {
|
|
58
74
|
readonly startTime: string;
|
|
59
75
|
} & {
|
|
60
|
-
readonly endDate:
|
|
76
|
+
readonly endDate: import("effect/Option").Option<import("effect/DateTime").Utc>;
|
|
61
77
|
} & {
|
|
62
|
-
readonly endTime: string
|
|
78
|
+
readonly endTime: import("effect/Option").Option<string>;
|
|
63
79
|
}, {}, {}>;
|
|
64
80
|
export declare class EventSeriesInfo extends EventSeriesInfo_base {
|
|
65
81
|
}
|
|
@@ -67,36 +83,44 @@ declare const EventSeriesDetail_base: Schema.Class<EventSeriesDetail, {
|
|
|
67
83
|
seriesId: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
68
84
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
69
85
|
title: typeof Schema.String;
|
|
70
|
-
description: Schema.
|
|
86
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
71
87
|
frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
72
88
|
daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
73
|
-
startDate: typeof Schema.String
|
|
74
|
-
endDate: Schema.
|
|
89
|
+
startDate: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
90
|
+
endDate: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
75
91
|
status: Schema.Literal<["active", "cancelled"]>;
|
|
76
|
-
trainingTypeId: Schema.
|
|
77
|
-
trainingTypeName: Schema.
|
|
92
|
+
trainingTypeId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
93
|
+
trainingTypeName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
78
94
|
startTime: typeof Schema.String;
|
|
79
|
-
endTime: Schema.
|
|
80
|
-
location: Schema.
|
|
81
|
-
discordChannelId: Schema.
|
|
95
|
+
endTime: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
96
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
97
|
+
discordChannelId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
98
|
+
ownerGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
99
|
+
ownerGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
100
|
+
memberGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
101
|
+
memberGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
82
102
|
canEdit: typeof Schema.Boolean;
|
|
83
103
|
canCancel: typeof Schema.Boolean;
|
|
84
104
|
}, Schema.Struct.Encoded<{
|
|
85
105
|
seriesId: Schema.brand<typeof Schema.String, "EventSeriesId">;
|
|
86
106
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
87
107
|
title: typeof Schema.String;
|
|
88
|
-
description: Schema.
|
|
108
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
89
109
|
frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
90
110
|
daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
91
|
-
startDate: typeof Schema.String
|
|
92
|
-
endDate: Schema.
|
|
111
|
+
startDate: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
112
|
+
endDate: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
93
113
|
status: Schema.Literal<["active", "cancelled"]>;
|
|
94
|
-
trainingTypeId: Schema.
|
|
95
|
-
trainingTypeName: Schema.
|
|
114
|
+
trainingTypeId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
115
|
+
trainingTypeName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
96
116
|
startTime: typeof Schema.String;
|
|
97
|
-
endTime: Schema.
|
|
98
|
-
location: Schema.
|
|
99
|
-
discordChannelId: Schema.
|
|
117
|
+
endTime: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
118
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
119
|
+
discordChannelId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
120
|
+
ownerGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
121
|
+
ownerGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
122
|
+
memberGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
123
|
+
memberGroupName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
100
124
|
canEdit: typeof Schema.Boolean;
|
|
101
125
|
canCancel: typeof Schema.Boolean;
|
|
102
126
|
}>, never, {
|
|
@@ -104,15 +128,15 @@ declare const EventSeriesDetail_base: Schema.Class<EventSeriesDetail, {
|
|
|
104
128
|
} & {
|
|
105
129
|
readonly status: "active" | "cancelled";
|
|
106
130
|
} & {
|
|
107
|
-
readonly description: string
|
|
131
|
+
readonly description: import("effect/Option").Option<string>;
|
|
108
132
|
} & {
|
|
109
|
-
readonly location: string
|
|
133
|
+
readonly location: import("effect/Option").Option<string>;
|
|
110
134
|
} & {
|
|
111
135
|
readonly title: string;
|
|
112
136
|
} & {
|
|
113
137
|
readonly frequency: "weekly" | "biweekly";
|
|
114
138
|
} & {
|
|
115
|
-
readonly trainingTypeName: string
|
|
139
|
+
readonly trainingTypeName: import("effect/Option").Option<string>;
|
|
116
140
|
} & {
|
|
117
141
|
readonly seriesId: string & import("effect/Brand").Brand<"EventSeriesId">;
|
|
118
142
|
} & {
|
|
@@ -120,68 +144,84 @@ declare const EventSeriesDetail_base: Schema.Class<EventSeriesDetail, {
|
|
|
120
144
|
} & {
|
|
121
145
|
readonly canCancel: boolean;
|
|
122
146
|
} & {
|
|
123
|
-
readonly trainingTypeId: (string & import("effect/Brand").Brand<"TrainingTypeId"
|
|
147
|
+
readonly trainingTypeId: import("effect/Option").Option<string & import("effect/Brand").Brand<"TrainingTypeId">>;
|
|
148
|
+
} & {
|
|
149
|
+
readonly discordChannelId: import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>;
|
|
124
150
|
} & {
|
|
125
|
-
readonly
|
|
151
|
+
readonly ownerGroupId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
152
|
+
} & {
|
|
153
|
+
readonly ownerGroupName: import("effect/Option").Option<string>;
|
|
154
|
+
} & {
|
|
155
|
+
readonly memberGroupId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
156
|
+
} & {
|
|
157
|
+
readonly memberGroupName: import("effect/Option").Option<string>;
|
|
126
158
|
} & {
|
|
127
159
|
readonly daysOfWeek: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
|
|
128
160
|
} & {
|
|
129
|
-
readonly startDate:
|
|
161
|
+
readonly startDate: import("effect/DateTime").Utc;
|
|
130
162
|
} & {
|
|
131
163
|
readonly startTime: string;
|
|
132
164
|
} & {
|
|
133
|
-
readonly endDate:
|
|
165
|
+
readonly endDate: import("effect/Option").Option<import("effect/DateTime").Utc>;
|
|
134
166
|
} & {
|
|
135
|
-
readonly endTime: string
|
|
167
|
+
readonly endTime: import("effect/Option").Option<string>;
|
|
136
168
|
}, {}, {}>;
|
|
137
169
|
export declare class EventSeriesDetail extends EventSeriesDetail_base {
|
|
138
170
|
}
|
|
139
171
|
declare const CreateEventSeriesRequest_base: Schema.Class<CreateEventSeriesRequest, {
|
|
140
172
|
title: typeof Schema.NonEmptyString;
|
|
141
|
-
trainingTypeId: Schema.
|
|
142
|
-
description: Schema.
|
|
173
|
+
trainingTypeId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
174
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
143
175
|
frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
144
176
|
daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
145
|
-
startDate: typeof Schema.String
|
|
146
|
-
endDate: Schema.
|
|
177
|
+
startDate: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
178
|
+
endDate: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
147
179
|
startTime: typeof Schema.String;
|
|
148
|
-
endTime: Schema.
|
|
149
|
-
location: Schema.
|
|
150
|
-
discordChannelId: Schema.
|
|
180
|
+
endTime: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
181
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
182
|
+
discordChannelId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
183
|
+
ownerGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
184
|
+
memberGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
151
185
|
}, Schema.Struct.Encoded<{
|
|
152
186
|
title: typeof Schema.NonEmptyString;
|
|
153
|
-
trainingTypeId: Schema.
|
|
154
|
-
description: Schema.
|
|
187
|
+
trainingTypeId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
188
|
+
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
155
189
|
frequency: Schema.Literal<["weekly", "biweekly"]>;
|
|
156
190
|
daysOfWeek: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
157
|
-
startDate: typeof Schema.String
|
|
158
|
-
endDate: Schema.
|
|
191
|
+
startDate: Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>;
|
|
192
|
+
endDate: Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>;
|
|
159
193
|
startTime: typeof Schema.String;
|
|
160
|
-
endTime: Schema.
|
|
161
|
-
location: Schema.
|
|
162
|
-
discordChannelId: Schema.
|
|
194
|
+
endTime: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
195
|
+
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
196
|
+
discordChannelId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
197
|
+
ownerGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
198
|
+
memberGroupId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
163
199
|
}>, never, {
|
|
164
|
-
readonly description: string
|
|
200
|
+
readonly description: import("effect/Option").Option<string>;
|
|
165
201
|
} & {
|
|
166
|
-
readonly location: string
|
|
202
|
+
readonly location: import("effect/Option").Option<string>;
|
|
167
203
|
} & {
|
|
168
204
|
readonly title: string;
|
|
169
205
|
} & {
|
|
170
206
|
readonly frequency: "weekly" | "biweekly";
|
|
171
207
|
} & {
|
|
172
|
-
readonly trainingTypeId: (string & import("effect/Brand").Brand<"TrainingTypeId"
|
|
208
|
+
readonly trainingTypeId: import("effect/Option").Option<string & import("effect/Brand").Brand<"TrainingTypeId">>;
|
|
209
|
+
} & {
|
|
210
|
+
readonly discordChannelId: import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>;
|
|
211
|
+
} & {
|
|
212
|
+
readonly ownerGroupId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
173
213
|
} & {
|
|
174
|
-
readonly
|
|
214
|
+
readonly memberGroupId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
175
215
|
} & {
|
|
176
216
|
readonly daysOfWeek: readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[];
|
|
177
217
|
} & {
|
|
178
|
-
readonly startDate:
|
|
218
|
+
readonly startDate: import("effect/DateTime").Utc;
|
|
179
219
|
} & {
|
|
180
220
|
readonly startTime: string;
|
|
181
221
|
} & {
|
|
182
|
-
readonly endDate:
|
|
222
|
+
readonly endDate: import("effect/Option").Option<import("effect/DateTime").Utc>;
|
|
183
223
|
} & {
|
|
184
|
-
readonly endTime: string
|
|
224
|
+
readonly endTime: import("effect/Option").Option<string>;
|
|
185
225
|
}, {}, {}>;
|
|
186
226
|
export declare class CreateEventSeriesRequest extends CreateEventSeriesRequest_base {
|
|
187
227
|
}
|
|
@@ -207,10 +247,16 @@ declare const UpdateEventSeriesRequest_base: Schema.Class<UpdateEventSeriesReque
|
|
|
207
247
|
location: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String>, {
|
|
208
248
|
as: "Option";
|
|
209
249
|
}>;
|
|
210
|
-
endDate: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String
|
|
250
|
+
endDate: Schema.optionalWith<Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>, {
|
|
211
251
|
as: "Option";
|
|
212
252
|
}>;
|
|
213
|
-
discordChannelId: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String
|
|
253
|
+
discordChannelId: Schema.optionalWith<Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>, {
|
|
254
|
+
as: "Option";
|
|
255
|
+
}>;
|
|
256
|
+
ownerGroupId: Schema.optionalWith<Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>, {
|
|
257
|
+
as: "Option";
|
|
258
|
+
}>;
|
|
259
|
+
memberGroupId: Schema.optionalWith<Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>, {
|
|
214
260
|
as: "Option";
|
|
215
261
|
}>;
|
|
216
262
|
}, Schema.Struct.Encoded<{
|
|
@@ -235,10 +281,16 @@ declare const UpdateEventSeriesRequest_base: Schema.Class<UpdateEventSeriesReque
|
|
|
235
281
|
location: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String>, {
|
|
236
282
|
as: "Option";
|
|
237
283
|
}>;
|
|
238
|
-
endDate: Schema.optionalWith<Schema.OptionFromNullOr<typeof Schema.String
|
|
284
|
+
endDate: Schema.optionalWith<Schema.OptionFromNullOr<Schema.transform<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf>>, {
|
|
285
|
+
as: "Option";
|
|
286
|
+
}>;
|
|
287
|
+
discordChannelId: Schema.optionalWith<Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>, {
|
|
288
|
+
as: "Option";
|
|
289
|
+
}>;
|
|
290
|
+
ownerGroupId: Schema.optionalWith<Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>, {
|
|
239
291
|
as: "Option";
|
|
240
292
|
}>;
|
|
241
|
-
|
|
293
|
+
memberGroupId: Schema.optionalWith<Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>, {
|
|
242
294
|
as: "Option";
|
|
243
295
|
}>;
|
|
244
296
|
}>, never, {
|
|
@@ -250,13 +302,17 @@ declare const UpdateEventSeriesRequest_base: Schema.Class<UpdateEventSeriesReque
|
|
|
250
302
|
} & {
|
|
251
303
|
readonly trainingTypeId: import("effect/Option").Option<import("effect/Option").Option<string & import("effect/Brand").Brand<"TrainingTypeId">>>;
|
|
252
304
|
} & {
|
|
253
|
-
readonly discordChannelId: import("effect/Option").Option<import("effect/Option").Option<string
|
|
305
|
+
readonly discordChannelId: import("effect/Option").Option<import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>>;
|
|
306
|
+
} & {
|
|
307
|
+
readonly ownerGroupId: import("effect/Option").Option<import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>>;
|
|
308
|
+
} & {
|
|
309
|
+
readonly memberGroupId: import("effect/Option").Option<import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>>;
|
|
254
310
|
} & {
|
|
255
311
|
readonly daysOfWeek: import("effect/Option").Option<readonly (number & import("effect/Brand").Brand<"DayOfWeek">)[]>;
|
|
256
312
|
} & {
|
|
257
313
|
readonly startTime: import("effect/Option").Option<string>;
|
|
258
314
|
} & {
|
|
259
|
-
readonly endDate: import("effect/Option").Option<import("effect/Option").Option<
|
|
315
|
+
readonly endDate: import("effect/Option").Option<import("effect/Option").Option<import("effect/DateTime").Utc>>;
|
|
260
316
|
} & {
|
|
261
317
|
readonly endTime: import("effect/Option").Option<import("effect/Option").Option<string>>;
|
|
262
318
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventSeriesApi.d.ts","sourceRoot":"","sources":["../../../src/api/EventSeriesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"EventSeriesApi.d.ts","sourceRoot":"","sources":["../../../src/api/EventSeriesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAY9C,qBAAa,eAAgB,SAAQ,oBAmBnC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAsBrC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAgB5C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAgB5C;CAAG;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAIxC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAIzC;CAAG;;;;;;;;;;;;;;;AAEJ,qBAAa,mBAAoB,SAAQ,wBA0CtC;CAAG"}
|
|
@@ -4,113 +4,113 @@ import { AuthMiddleware } from '../api/Auth.js';
|
|
|
4
4
|
declare const GroupInfo_base: Schema.Class<GroupInfo, {
|
|
5
5
|
groupId: Schema.brand<typeof Schema.String, "GroupId">;
|
|
6
6
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
7
|
-
parentId: Schema.
|
|
7
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
8
8
|
name: typeof Schema.String;
|
|
9
|
-
emoji: Schema.
|
|
9
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
10
10
|
memberCount: typeof Schema.Number;
|
|
11
11
|
}, Schema.Struct.Encoded<{
|
|
12
12
|
groupId: Schema.brand<typeof Schema.String, "GroupId">;
|
|
13
13
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
14
|
-
parentId: Schema.
|
|
14
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
15
15
|
name: typeof Schema.String;
|
|
16
|
-
emoji: Schema.
|
|
16
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
17
17
|
memberCount: typeof Schema.Number;
|
|
18
18
|
}>, never, {
|
|
19
19
|
readonly name: string;
|
|
20
20
|
} & {
|
|
21
21
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
22
22
|
} & {
|
|
23
|
-
readonly emoji: string
|
|
23
|
+
readonly emoji: import("effect/Option").Option<string>;
|
|
24
24
|
} & {
|
|
25
25
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
26
26
|
} & {
|
|
27
27
|
readonly memberCount: number;
|
|
28
28
|
} & {
|
|
29
|
-
readonly parentId: (string & import("effect/Brand").Brand<"GroupId"
|
|
29
|
+
readonly parentId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
30
30
|
}, {}, {}>;
|
|
31
31
|
export declare class GroupInfo extends GroupInfo_base {
|
|
32
32
|
}
|
|
33
33
|
declare const GroupDetail_base: Schema.Class<GroupDetail, {
|
|
34
34
|
groupId: Schema.brand<typeof Schema.String, "GroupId">;
|
|
35
35
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
36
|
-
parentId: Schema.
|
|
36
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
37
37
|
name: typeof Schema.String;
|
|
38
|
-
emoji: Schema.
|
|
38
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
39
39
|
roles: Schema.Array$<Schema.Struct<{
|
|
40
40
|
roleId: Schema.brand<typeof Schema.String, "RoleId">;
|
|
41
41
|
roleName: typeof Schema.String;
|
|
42
42
|
}>>;
|
|
43
43
|
members: Schema.Array$<Schema.Struct<{
|
|
44
44
|
memberId: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
45
|
-
name: Schema.
|
|
45
|
+
name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
46
46
|
username: typeof Schema.String;
|
|
47
47
|
}>>;
|
|
48
48
|
}, Schema.Struct.Encoded<{
|
|
49
49
|
groupId: Schema.brand<typeof Schema.String, "GroupId">;
|
|
50
50
|
teamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
51
|
-
parentId: Schema.
|
|
51
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
52
52
|
name: typeof Schema.String;
|
|
53
|
-
emoji: Schema.
|
|
53
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
54
54
|
roles: Schema.Array$<Schema.Struct<{
|
|
55
55
|
roleId: Schema.brand<typeof Schema.String, "RoleId">;
|
|
56
56
|
roleName: typeof Schema.String;
|
|
57
57
|
}>>;
|
|
58
58
|
members: Schema.Array$<Schema.Struct<{
|
|
59
59
|
memberId: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
60
|
-
name: Schema.
|
|
60
|
+
name: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
61
61
|
username: typeof Schema.String;
|
|
62
62
|
}>>;
|
|
63
63
|
}>, never, {
|
|
64
64
|
readonly name: string;
|
|
65
|
-
} & {
|
|
66
|
-
readonly members: readonly {
|
|
67
|
-
readonly name: string | null;
|
|
68
|
-
readonly username: string;
|
|
69
|
-
readonly memberId: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
70
|
-
}[];
|
|
71
65
|
} & {
|
|
72
66
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
73
67
|
} & {
|
|
74
|
-
readonly emoji: string
|
|
68
|
+
readonly emoji: import("effect/Option").Option<string>;
|
|
75
69
|
} & {
|
|
76
70
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
77
71
|
} & {
|
|
78
|
-
readonly parentId: (string & import("effect/Brand").Brand<"GroupId"
|
|
72
|
+
readonly parentId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
79
73
|
} & {
|
|
80
74
|
readonly roles: readonly {
|
|
81
75
|
readonly roleId: string & import("effect/Brand").Brand<"RoleId">;
|
|
82
76
|
readonly roleName: string;
|
|
83
77
|
}[];
|
|
78
|
+
} & {
|
|
79
|
+
readonly members: readonly {
|
|
80
|
+
readonly name: import("effect/Option").Option<string>;
|
|
81
|
+
readonly username: string;
|
|
82
|
+
readonly memberId: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
83
|
+
}[];
|
|
84
84
|
}, {}, {}>;
|
|
85
85
|
export declare class GroupDetail extends GroupDetail_base {
|
|
86
86
|
}
|
|
87
87
|
declare const CreateGroupRequest_base: Schema.Class<CreateGroupRequest, {
|
|
88
88
|
name: typeof Schema.NonEmptyString;
|
|
89
|
-
parentId: Schema.
|
|
90
|
-
emoji: Schema.
|
|
89
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
90
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
91
91
|
}, Schema.Struct.Encoded<{
|
|
92
92
|
name: typeof Schema.NonEmptyString;
|
|
93
|
-
parentId: Schema.
|
|
94
|
-
emoji: Schema.
|
|
93
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
94
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
95
95
|
}>, never, {
|
|
96
96
|
readonly name: string;
|
|
97
97
|
} & {
|
|
98
|
-
readonly emoji: string
|
|
98
|
+
readonly emoji: import("effect/Option").Option<string>;
|
|
99
99
|
} & {
|
|
100
|
-
readonly parentId: (string & import("effect/Brand").Brand<"GroupId"
|
|
100
|
+
readonly parentId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
101
101
|
}, {}, {}>;
|
|
102
102
|
export declare class CreateGroupRequest extends CreateGroupRequest_base {
|
|
103
103
|
}
|
|
104
104
|
declare const UpdateGroupRequest_base: Schema.Class<UpdateGroupRequest, {
|
|
105
105
|
name: typeof Schema.NonEmptyString;
|
|
106
|
-
emoji: Schema.
|
|
106
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
107
107
|
}, Schema.Struct.Encoded<{
|
|
108
108
|
name: typeof Schema.NonEmptyString;
|
|
109
|
-
emoji: Schema.
|
|
109
|
+
emoji: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
110
110
|
}>, never, {
|
|
111
111
|
readonly name: string;
|
|
112
112
|
} & {
|
|
113
|
-
readonly emoji: string
|
|
113
|
+
readonly emoji: import("effect/Option").Option<string>;
|
|
114
114
|
}, {}, {}>;
|
|
115
115
|
export declare class UpdateGroupRequest extends UpdateGroupRequest_base {
|
|
116
116
|
}
|
|
@@ -133,28 +133,28 @@ declare const AssignGroupRoleRequest_base: Schema.Class<AssignGroupRoleRequest,
|
|
|
133
133
|
export declare class AssignGroupRoleRequest extends AssignGroupRoleRequest_base {
|
|
134
134
|
}
|
|
135
135
|
declare const MoveGroupRequest_base: Schema.Class<MoveGroupRequest, {
|
|
136
|
-
parentId: Schema.
|
|
136
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
137
137
|
}, Schema.Struct.Encoded<{
|
|
138
|
-
parentId: Schema.
|
|
138
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
139
139
|
}>, never, {
|
|
140
|
-
readonly parentId: (string & import("effect/Brand").Brand<"GroupId"
|
|
140
|
+
readonly parentId: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
141
141
|
}, {}, {}>;
|
|
142
142
|
export declare class MoveGroupRequest extends MoveGroupRequest_base {
|
|
143
143
|
}
|
|
144
144
|
declare const ChannelMappingInfo_base: Schema.Class<ChannelMappingInfo, {
|
|
145
145
|
discordChannelId: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
146
|
-
discordChannelName: Schema.
|
|
147
|
-
discordRoleId: Schema.
|
|
146
|
+
discordChannelName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
147
|
+
discordRoleId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
148
148
|
}, Schema.Struct.Encoded<{
|
|
149
149
|
discordChannelId: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
150
|
-
discordChannelName: Schema.
|
|
151
|
-
discordRoleId: Schema.
|
|
150
|
+
discordChannelName: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
151
|
+
discordRoleId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
152
152
|
}>, never, {
|
|
153
153
|
readonly discordChannelId: string & import("effect/Brand").Brand<"Snowflake">;
|
|
154
154
|
} & {
|
|
155
|
-
readonly discordChannelName: string
|
|
155
|
+
readonly discordChannelName: import("effect/Option").Option<string>;
|
|
156
156
|
} & {
|
|
157
|
-
readonly discordRoleId: (string & import("effect/Brand").Brand<"Snowflake"
|
|
157
|
+
readonly discordRoleId: import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>;
|
|
158
158
|
}, {}, {}>;
|
|
159
159
|
export declare class ChannelMappingInfo extends ChannelMappingInfo_base {
|
|
160
160
|
}
|
|
@@ -171,18 +171,18 @@ declare const DiscordChannelInfo_base: Schema.Class<DiscordChannelInfo, {
|
|
|
171
171
|
id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
172
172
|
name: typeof Schema.String;
|
|
173
173
|
type: typeof Schema.Number;
|
|
174
|
-
parentId: Schema.
|
|
174
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
175
175
|
}, Schema.Struct.Encoded<{
|
|
176
176
|
id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
177
177
|
name: typeof Schema.String;
|
|
178
178
|
type: typeof Schema.Number;
|
|
179
|
-
parentId: Schema.
|
|
179
|
+
parentId: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
180
180
|
}>, never, {
|
|
181
181
|
readonly name: string;
|
|
182
182
|
} & {
|
|
183
183
|
readonly id: string & import("effect/Brand").Brand<"Snowflake">;
|
|
184
184
|
} & {
|
|
185
|
-
readonly parentId: (string & import("effect/Brand").Brand<"Snowflake"
|
|
185
|
+
readonly parentId: import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>;
|
|
186
186
|
} & {
|
|
187
187
|
readonly type: number;
|
|
188
188
|
}, {}, {}>;
|
|
@@ -203,17 +203,22 @@ declare const MemberNotFound_base: Schema.TaggedErrorClass<MemberNotFound, "Grou
|
|
|
203
203
|
}>;
|
|
204
204
|
export declare class MemberNotFound extends MemberNotFound_base {
|
|
205
205
|
}
|
|
206
|
+
declare const GroupNameAlreadyTaken_base: Schema.TaggedErrorClass<GroupNameAlreadyTaken, "GroupNameAlreadyTaken", {
|
|
207
|
+
readonly _tag: Schema.tag<"GroupNameAlreadyTaken">;
|
|
208
|
+
}>;
|
|
209
|
+
export declare class GroupNameAlreadyTaken extends GroupNameAlreadyTaken_base {
|
|
210
|
+
}
|
|
206
211
|
declare const GroupApiGroup_base: HttpApiGroup.HttpApiGroup<"group", HttpApiEndpoint.HttpApiEndpoint<"listGroups", "GET", {
|
|
207
212
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
208
213
|
}, never, never, never, readonly GroupInfo[], import("../api/Auth.js").Unauthorized | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"createGroup", "POST", {
|
|
209
214
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
210
|
-
}, never, CreateGroupRequest, never, GroupInfo, import("../api/Auth.js").Unauthorized | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"getGroup", "GET", {
|
|
215
|
+
}, never, CreateGroupRequest, never, GroupInfo, import("../api/Auth.js").Unauthorized | Forbidden | GroupNameAlreadyTaken, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"getGroup", "GET", {
|
|
211
216
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
212
217
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
213
218
|
}, never, never, never, GroupDetail, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"updateGroup", "PATCH", {
|
|
214
219
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
215
220
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
216
|
-
}, never, UpdateGroupRequest, never, GroupInfo, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteGroup", "DELETE", {
|
|
221
|
+
}, never, UpdateGroupRequest, never, GroupInfo, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden | GroupNameAlreadyTaken, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteGroup", "DELETE", {
|
|
217
222
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
218
223
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
219
224
|
}, never, never, never, void, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"addGroupMember", "POST", {
|
|
@@ -236,7 +241,7 @@ declare const GroupApiGroup_base: HttpApiGroup.HttpApiGroup<"group", HttpApiEndp
|
|
|
236
241
|
}, never, MoveGroupRequest, never, GroupInfo, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"getChannelMapping", "GET", {
|
|
237
242
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
238
243
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
239
|
-
}, never, never, never, ChannelMappingInfo
|
|
244
|
+
}, never, never, never, import("effect/Option").Option<ChannelMappingInfo>, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"setChannelMapping", "PUT", {
|
|
240
245
|
readonly teamId: string & import("effect/Brand").Brand<"TeamId">;
|
|
241
246
|
readonly groupId: string & import("effect/Brand").Brand<"GroupId">;
|
|
242
247
|
}, never, SetChannelMappingRequest, never, ChannelMappingInfo, import("../api/Auth.js").Unauthorized | GroupNotFound | Forbidden, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteChannelMapping", "DELETE", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupApi.d.ts","sourceRoot":"","sources":["../../../src/api/GroupApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAO/C,qBAAa,SAAU,SAAQ,cAO7B;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAmB/B;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAItC;CAAG;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAGtC;CAAG;;;;;;;;AAEL,qBAAa,qBAAsB,SAAQ,0BAIzC;CAAG;;;;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAI1C;CAAG;;;;;;;;AAEL,qBAAa,gBAAiB,SAAQ,qBAEpC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAItC;CAAG;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAI5C;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAKtC;CAAG;;;;AAEL,qBAAa,aAAc,SAAQ,kBAIlC;CAAG;;;;AAEJ,qBAAa,SAAU,SAAQ,cAI9B;CAAG;;;;AAEJ,qBAAa,cAAe,SAAQ,mBAInC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,qBAAa,aAAc,SAAQ,
|
|
1
|
+
{"version":3,"file":"GroupApi.d.ts","sourceRoot":"","sources":["../../../src/api/GroupApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAO/C,qBAAa,SAAU,SAAQ,cAO7B;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAmB/B;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAItC;CAAG;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAGtC;CAAG;;;;;;;;AAEL,qBAAa,qBAAsB,SAAQ,0BAIzC;CAAG;;;;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAI1C;CAAG;;;;;;;;AAEL,qBAAa,gBAAiB,SAAQ,qBAEpC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAItC;CAAG;;;;;;;;AAEL,qBAAa,wBAAyB,SAAQ,6BAI5C;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAKtC;CAAG;;;;AAEL,qBAAa,aAAc,SAAQ,kBAIlC;CAAG;;;;AAEJ,qBAAa,SAAU,SAAQ,cAI9B;CAAG;;;;AAEJ,qBAAa,cAAe,SAAQ,mBAInC;CAAG;;;;AAEJ,qBAAa,qBAAsB,SAAQ,0BAI1C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,qBAAa,aAAc,SAAQ,kBA+HhC;CAAG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpApiEndpoint, HttpApiGroup } from '@effect/platform';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
import { AuthMiddleware } from '../api/Auth.js';
|
|
4
|
+
declare const ICalTokenResponse_base: Schema.Class<ICalTokenResponse, {
|
|
5
|
+
token: typeof Schema.String;
|
|
6
|
+
url: typeof Schema.String;
|
|
7
|
+
}, Schema.Struct.Encoded<{
|
|
8
|
+
token: typeof Schema.String;
|
|
9
|
+
url: typeof Schema.String;
|
|
10
|
+
}>, never, {
|
|
11
|
+
readonly token: string;
|
|
12
|
+
} & {
|
|
13
|
+
readonly url: string;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export declare class ICalTokenResponse extends ICalTokenResponse_base {
|
|
16
|
+
}
|
|
17
|
+
declare const ICalTokenNotFound_base: Schema.TaggedErrorClass<ICalTokenNotFound, "ICalTokenNotFound", {
|
|
18
|
+
readonly _tag: Schema.tag<"ICalTokenNotFound">;
|
|
19
|
+
}>;
|
|
20
|
+
export declare class ICalTokenNotFound extends ICalTokenNotFound_base {
|
|
21
|
+
}
|
|
22
|
+
declare const ICalApiGroup_base: HttpApiGroup.HttpApiGroup<"ical", HttpApiEndpoint.HttpApiEndpoint<"getICalToken", "GET", never, never, never, never, ICalTokenResponse, import("../api/Auth.js").Unauthorized, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"regenerateICalToken", "POST", never, never, never, never, ICalTokenResponse, import("../api/Auth.js").Unauthorized, AuthMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"getICalFeed", "GET", {
|
|
23
|
+
readonly token: string;
|
|
24
|
+
}, never, never, never, void, ICalTokenNotFound, never, never>, never, never, false>;
|
|
25
|
+
export declare class ICalApiGroup extends ICalApiGroup_base {
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=ICalApi.d.ts.map
|