@sideline/domain 0.10.0 → 0.12.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/ActivityLogApi.js +126 -0
- package/dist/cjs/api/ActivityLogApi.js.map +1 -0
- package/dist/cjs/api/ActivityStatsApi.js +37 -0
- package/dist/cjs/api/ActivityStatsApi.js.map +1 -0
- package/dist/cjs/api/EventApi.js +15 -2
- package/dist/cjs/api/EventApi.js.map +1 -1
- package/dist/cjs/api/EventRsvpApi.js +3 -1
- package/dist/cjs/api/EventRsvpApi.js.map +1 -1
- package/dist/cjs/api/EventSeriesApi.js +19 -2
- package/dist/cjs/api/EventSeriesApi.js.map +1 -1
- package/dist/cjs/api/RoleApi.js +9 -3
- package/dist/cjs/api/RoleApi.js.map +1 -1
- package/dist/cjs/api/Roster.js +9 -3
- package/dist/cjs/api/Roster.js.map +1 -1
- package/dist/cjs/api/TrainingTypeApi.js +14 -4
- package/dist/cjs/api/TrainingTypeApi.js.map +1 -1
- package/dist/cjs/index.js +15 -1
- package/dist/cjs/models/ActivityLog.js +24 -0
- package/dist/cjs/models/ActivityLog.js.map +1 -0
- package/dist/cjs/models/ActivityStats.js +120 -0
- package/dist/cjs/models/ActivityStats.js.map +1 -0
- package/dist/cjs/models/ActivityType.js +10 -0
- package/dist/cjs/models/ActivityType.js.map +1 -0
- package/dist/cjs/models/Event.js +3 -0
- package/dist/cjs/models/Event.js.map +1 -1
- package/dist/cjs/models/EventSeries.js +3 -0
- package/dist/cjs/models/EventSeries.js.map +1 -1
- package/dist/cjs/models/TrainingType.js +2 -1
- package/dist/cjs/models/TrainingType.js.map +1 -1
- package/dist/cjs/rpc/SyncRpcs.js +2 -1
- package/dist/cjs/rpc/SyncRpcs.js.map +1 -1
- package/dist/cjs/rpc/activity/ActivityRpcGroup.js +29 -0
- package/dist/cjs/rpc/activity/ActivityRpcGroup.js.map +1 -0
- package/dist/cjs/rpc/activity/ActivityRpcModels.js +31 -0
- package/dist/cjs/rpc/activity/ActivityRpcModels.js.map +1 -0
- package/dist/cjs/rpc/event/EventRpcGroup.js +8 -2
- package/dist/cjs/rpc/event/EventRpcGroup.js.map +1 -1
- package/dist/cjs/rpc/event/EventRpcModels.js +9 -1
- package/dist/cjs/rpc/event/EventRpcModels.js.map +1 -1
- package/dist/dts/api/ActivityLogApi.d.ts +163 -0
- package/dist/dts/api/ActivityLogApi.d.ts.map +1 -0
- package/dist/dts/api/ActivityStatsApi.d.ts +58 -0
- package/dist/dts/api/ActivityStatsApi.d.ts.map +1 -0
- package/dist/dts/api/AgeThresholdApi.d.ts +2 -2
- package/dist/dts/api/EventApi.d.ts +44 -4
- package/dist/dts/api/EventApi.d.ts.map +1 -1
- package/dist/dts/api/EventRsvpApi.d.ts +1 -1
- package/dist/dts/api/EventSeriesApi.d.ts +56 -0
- package/dist/dts/api/EventSeriesApi.d.ts.map +1 -1
- package/dist/dts/api/GroupApi.d.ts +1 -1
- package/dist/dts/api/RoleApi.d.ts +18 -1
- package/dist/dts/api/RoleApi.d.ts.map +1 -1
- package/dist/dts/api/Roster.d.ts +18 -1
- package/dist/dts/api/Roster.d.ts.map +1 -1
- package/dist/dts/api/TrainingTypeApi.d.ts +48 -16
- package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -1
- package/dist/dts/index.d.ts +7 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/ActivityLog.d.ts +122 -0
- package/dist/dts/models/ActivityLog.d.ts.map +1 -0
- package/dist/dts/models/ActivityStats.d.ts +28 -0
- package/dist/dts/models/ActivityStats.d.ts.map +1 -0
- package/dist/dts/models/ActivityType.d.ts +6 -0
- package/dist/dts/models/ActivityType.d.ts.map +1 -0
- package/dist/dts/models/ChannelSyncEvent.d.ts +4 -4
- package/dist/dts/models/Event.d.ts +28 -2
- package/dist/dts/models/Event.d.ts.map +1 -1
- package/dist/dts/models/EventRsvp.d.ts +4 -4
- package/dist/dts/models/EventSeries.d.ts +26 -0
- package/dist/dts/models/EventSeries.d.ts.map +1 -1
- package/dist/dts/models/RoleSyncEvent.d.ts +4 -4
- package/dist/dts/models/TrainingType.d.ts +24 -11
- package/dist/dts/models/TrainingType.d.ts.map +1 -1
- package/dist/dts/rpc/SyncRpcs.d.ts +15 -3
- package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
- package/dist/dts/rpc/activity/ActivityRpcGroup.d.ts +14 -0
- package/dist/dts/rpc/activity/ActivityRpcGroup.d.ts.map +1 -0
- package/dist/dts/rpc/activity/ActivityRpcModels.d.ts +67 -0
- package/dist/dts/rpc/activity/ActivityRpcModels.d.ts.map +1 -0
- package/dist/dts/rpc/event/EventRpcGroup.d.ts +6 -3
- package/dist/dts/rpc/event/EventRpcGroup.d.ts.map +1 -1
- package/dist/dts/rpc/event/EventRpcModels.d.ts +18 -0
- package/dist/dts/rpc/event/EventRpcModels.d.ts.map +1 -1
- package/dist/esm/api/ActivityLogApi.js +108 -0
- package/dist/esm/api/ActivityLogApi.js.map +1 -0
- package/dist/esm/api/ActivityStatsApi.js +27 -0
- package/dist/esm/api/ActivityStatsApi.js.map +1 -0
- package/dist/esm/api/EventApi.js +15 -2
- package/dist/esm/api/EventApi.js.map +1 -1
- package/dist/esm/api/EventRsvpApi.js +3 -1
- package/dist/esm/api/EventRsvpApi.js.map +1 -1
- package/dist/esm/api/EventSeriesApi.js +19 -2
- package/dist/esm/api/EventSeriesApi.js.map +1 -1
- package/dist/esm/api/RoleApi.js +7 -2
- package/dist/esm/api/RoleApi.js.map +1 -1
- package/dist/esm/api/Roster.js +7 -2
- package/dist/esm/api/Roster.js.map +1 -1
- package/dist/esm/api/TrainingTypeApi.js +14 -4
- package/dist/esm/api/TrainingTypeApi.js.map +1 -1
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/ActivityLog.js +17 -0
- package/dist/esm/models/ActivityLog.js.map +1 -0
- package/dist/esm/models/ActivityStats.js +111 -0
- package/dist/esm/models/ActivityStats.js.map +1 -0
- package/dist/esm/models/ActivityType.js +4 -0
- package/dist/esm/models/ActivityType.js.map +1 -0
- package/dist/esm/models/Event.js +3 -0
- package/dist/esm/models/Event.js.map +1 -1
- package/dist/esm/models/EventSeries.js +3 -0
- package/dist/esm/models/EventSeries.js.map +1 -1
- package/dist/esm/models/TrainingType.js +2 -1
- package/dist/esm/models/TrainingType.js.map +1 -1
- package/dist/esm/rpc/SyncRpcs.js +2 -1
- package/dist/esm/rpc/SyncRpcs.js.map +1 -1
- package/dist/esm/rpc/activity/ActivityRpcGroup.js +23 -0
- package/dist/esm/rpc/activity/ActivityRpcGroup.js.map +1 -0
- package/dist/esm/rpc/activity/ActivityRpcModels.js +21 -0
- package/dist/esm/rpc/activity/ActivityRpcModels.js.map +1 -0
- package/dist/esm/rpc/event/EventRpcGroup.js +10 -4
- package/dist/esm/rpc/event/EventRpcGroup.js.map +1 -1
- package/dist/esm/rpc/event/EventRpcModels.js +6 -0
- package/dist/esm/rpc/event/EventRpcModels.js.map +1 -1
- package/package.json +2 -2
- package/src/api/ActivityLogApi.ts +135 -0
- package/src/api/ActivityStatsApi.ts +42 -0
- package/src/api/EventApi.ts +9 -0
- package/src/api/EventRsvpApi.ts +1 -1
- package/src/api/EventSeriesApi.ts +13 -0
- package/src/api/RoleApi.ts +7 -1
- package/src/api/Roster.ts +7 -1
- package/src/api/TrainingTypeApi.ts +10 -4
- package/src/index.ts +12 -0
- package/src/models/ActivityLog.ts +21 -0
- package/src/models/ActivityStats.ts +131 -0
- package/src/models/ActivityType.ts +7 -0
- package/src/models/Event.ts +3 -0
- package/src/models/EventSeries.ts +3 -0
- package/src/models/TrainingType.ts +2 -1
- package/src/rpc/SyncRpcs.ts +2 -0
- package/src/rpc/activity/ActivityRpcGroup.ts +31 -0
- package/src/rpc/activity/ActivityRpcModels.ts +32 -0
- package/src/rpc/event/EventRpcGroup.ts +14 -2
- package/src/rpc/event/EventRpcModels.ts +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/models/Event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/models/Event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOhC,eAAO,MAAM,OAAO,+CAA8C,CAAC;AACnE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAC;AAE1C,eAAO,MAAM,SAAS,mFAOrB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAE9C,eAAO,MAAM,WAAW,yCAAwC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,qBAAa,KAAM,SAAQ,UAkBzB;CAAG"}
|
|
@@ -26,12 +26,12 @@ declare const EventRsvp_base: import("@effect/experimental/VariantSchema").Class
|
|
|
26
26
|
readonly created_at: import("effect/DateTime").Utc;
|
|
27
27
|
} & {
|
|
28
28
|
readonly updated_at: import("effect/DateTime").Utc;
|
|
29
|
+
} & {
|
|
30
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
29
31
|
} & {
|
|
30
32
|
readonly message: import("effect/Option").Option<string>;
|
|
31
33
|
} & {
|
|
32
34
|
readonly event_id: string & import("effect/Brand").Brand<"EventId">;
|
|
33
|
-
} & {
|
|
34
|
-
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
35
35
|
} & {
|
|
36
36
|
readonly response: "yes" | "no" | "maybe";
|
|
37
37
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
@@ -48,12 +48,12 @@ declare const EventRsvp_base: import("@effect/experimental/VariantSchema").Class
|
|
|
48
48
|
readonly created_at: import("effect/DateTime").Utc;
|
|
49
49
|
} & {
|
|
50
50
|
readonly updated_at: import("effect/DateTime").Utc;
|
|
51
|
+
} & {
|
|
52
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
51
53
|
} & {
|
|
52
54
|
readonly message: import("effect/Option").Option<string>;
|
|
53
55
|
} & {
|
|
54
56
|
readonly event_id: string & import("effect/Brand").Brand<"EventId">;
|
|
55
|
-
} & {
|
|
56
|
-
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
57
57
|
} & {
|
|
58
58
|
readonly response: "yes" | "no" | "maybe";
|
|
59
59
|
}> & {
|
|
@@ -23,6 +23,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
23
23
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
24
24
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
25
25
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
26
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
27
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
26
28
|
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
27
29
|
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
28
30
|
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
@@ -46,6 +48,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
46
48
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
47
49
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
48
50
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
51
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
52
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
49
53
|
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
50
54
|
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
51
55
|
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
@@ -68,6 +72,10 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
68
72
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
69
73
|
} & {
|
|
70
74
|
readonly status: "active" | "cancelled";
|
|
75
|
+
} & {
|
|
76
|
+
readonly owner_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
77
|
+
} & {
|
|
78
|
+
readonly member_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
71
79
|
} & {
|
|
72
80
|
readonly description: import("effect/Option").Option<string>;
|
|
73
81
|
} & {
|
|
@@ -101,6 +109,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
101
109
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
102
110
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
103
111
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
112
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
113
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
104
114
|
readonly status: import("@effect/experimental/VariantSchema").Field<{
|
|
105
115
|
readonly select: Schema.Literal<["active", "cancelled"]>;
|
|
106
116
|
readonly insert: Schema.Literal<["active", "cancelled"]>;
|
|
@@ -123,6 +133,10 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
123
133
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
124
134
|
} & {
|
|
125
135
|
readonly status: "active" | "cancelled";
|
|
136
|
+
} & {
|
|
137
|
+
readonly owner_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
138
|
+
} & {
|
|
139
|
+
readonly member_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
126
140
|
} & {
|
|
127
141
|
readonly description: import("effect/Option").Option<string>;
|
|
128
142
|
} & {
|
|
@@ -157,6 +171,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
157
171
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
158
172
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
159
173
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
174
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
175
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
160
176
|
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
161
177
|
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
162
178
|
readonly created_at: Model.DateTimeFromDate;
|
|
@@ -174,6 +190,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
174
190
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
175
191
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
176
192
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
193
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
194
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
177
195
|
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
178
196
|
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
179
197
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
@@ -192,6 +210,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
192
210
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
193
211
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
194
212
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
213
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
214
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
195
215
|
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
196
216
|
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
197
217
|
}>;
|
|
@@ -208,6 +228,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
208
228
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
209
229
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
210
230
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
231
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
232
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
211
233
|
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
212
234
|
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
213
235
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
@@ -225,6 +247,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
225
247
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
226
248
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
227
249
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
250
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
251
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
228
252
|
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
229
253
|
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
230
254
|
}>;
|
|
@@ -240,6 +264,8 @@ declare const EventSeries_base: import("@effect/experimental/VariantSchema").Cla
|
|
|
240
264
|
readonly days_of_week: Schema.filter<Schema.filter<Schema.Array$<Schema.brand<Schema.filter<typeof Schema.Int>, "DayOfWeek">>>>;
|
|
241
265
|
readonly start_date: typeof Schema.DateFromSelf;
|
|
242
266
|
readonly end_date: Schema.OptionFromNullOr<typeof Schema.DateFromSelf>;
|
|
267
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
268
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
243
269
|
readonly status: Schema.Literal<["active", "cancelled"]>;
|
|
244
270
|
readonly created_by: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
245
271
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventSeries.d.ts","sourceRoot":"","sources":["../../../src/models/EventSeries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"EventSeries.d.ts","sourceRoot":"","sources":["../../../src/models/EventSeries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMhC,eAAO,MAAM,aAAa,qDAAoD,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAEtD,eAAO,MAAM,mBAAmB,wCAAuC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAElE,eAAO,MAAM,SAAS,6DAAmE,CAAC;AAC1F,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAE9C,eAAO,MAAM,UAAU,0GAAuE,CAAC;AAC/F,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,iBAAiB,yCAAwC,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,qBAAa,WAAY,SAAQ,gBAmB/B;CAAG"}
|
|
@@ -40,10 +40,10 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
40
40
|
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
41
41
|
} & {
|
|
42
42
|
readonly error: import("effect/Option").Option<string>;
|
|
43
|
-
} & {
|
|
44
|
-
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
45
43
|
} & {
|
|
46
44
|
readonly team_member_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"TeamMemberId">>;
|
|
45
|
+
} & {
|
|
46
|
+
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
47
47
|
} & {
|
|
48
48
|
readonly discord_user_id: import("effect/Option").Option<string>;
|
|
49
49
|
} & {
|
|
@@ -74,10 +74,10 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
74
74
|
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
75
75
|
} & {
|
|
76
76
|
readonly error: import("effect/Option").Option<string>;
|
|
77
|
-
} & {
|
|
78
|
-
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
79
77
|
} & {
|
|
80
78
|
readonly team_member_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"TeamMemberId">>;
|
|
79
|
+
} & {
|
|
80
|
+
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
81
81
|
} & {
|
|
82
82
|
readonly discord_user_id: import("effect/Option").Option<string>;
|
|
83
83
|
} & {
|
|
@@ -6,13 +6,15 @@ 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
|
|
9
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
10
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
10
11
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
11
12
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
12
13
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
13
14
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
14
15
|
readonly name: typeof Schema.String;
|
|
15
|
-
readonly
|
|
16
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
17
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
16
18
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
17
19
|
}, true>, {
|
|
18
20
|
readonly name: string;
|
|
@@ -23,12 +25,15 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
23
25
|
} & {
|
|
24
26
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
25
27
|
} & {
|
|
26
|
-
readonly
|
|
28
|
+
readonly owner_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
29
|
+
} & {
|
|
30
|
+
readonly member_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
27
31
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
28
32
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
29
33
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
30
34
|
readonly name: typeof Schema.String;
|
|
31
|
-
readonly
|
|
35
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
36
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
32
37
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
33
38
|
}, true>>, never, {
|
|
34
39
|
readonly name: string;
|
|
@@ -39,43 +44,51 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
39
44
|
} & {
|
|
40
45
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
41
46
|
} & {
|
|
42
|
-
readonly
|
|
47
|
+
readonly owner_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
48
|
+
} & {
|
|
49
|
+
readonly member_group_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"GroupId">>;
|
|
43
50
|
}> & {
|
|
44
51
|
readonly select: Schema.Struct<{
|
|
45
52
|
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
46
53
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
47
54
|
readonly name: typeof Schema.String;
|
|
48
|
-
readonly
|
|
55
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
56
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
49
57
|
readonly created_at: Model.DateTimeFromDate;
|
|
50
58
|
}>;
|
|
51
59
|
readonly insert: Schema.Struct<{
|
|
52
60
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
53
61
|
readonly name: typeof Schema.String;
|
|
54
|
-
readonly
|
|
62
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
63
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
55
64
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
56
65
|
}>;
|
|
57
66
|
readonly update: Schema.Struct<{
|
|
58
67
|
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
59
68
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
60
69
|
readonly name: typeof Schema.String;
|
|
61
|
-
readonly
|
|
70
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
71
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
62
72
|
}>;
|
|
63
73
|
readonly json: Schema.Struct<{
|
|
64
74
|
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
65
75
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
66
76
|
readonly name: typeof Schema.String;
|
|
67
|
-
readonly
|
|
77
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
78
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
68
79
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
69
80
|
}>;
|
|
70
81
|
readonly jsonCreate: Schema.Struct<{
|
|
71
82
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
72
83
|
readonly name: typeof Schema.String;
|
|
73
|
-
readonly
|
|
84
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
85
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
74
86
|
}>;
|
|
75
87
|
readonly jsonUpdate: Schema.Struct<{
|
|
76
88
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
77
89
|
readonly name: typeof Schema.String;
|
|
78
|
-
readonly
|
|
90
|
+
readonly owner_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
91
|
+
readonly member_group_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
79
92
|
}>;
|
|
80
93
|
};
|
|
81
94
|
export declare class TrainingType extends TrainingType_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrainingType.d.ts","sourceRoot":"","sources":["../../../src/models/TrainingType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"TrainingType.d.ts","sourceRoot":"","sources":["../../../src/models/TrainingType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,qBAAa,YAAa,SAAQ,iBAOhC;CAAG"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { RpcGroup } from '@effect/rpc';
|
|
2
|
-
declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"
|
|
2
|
+
declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Activity/LogActivity", import("effect/Schema").Struct<{
|
|
3
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
4
|
+
discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
5
|
+
activity_type: typeof import("effect/Schema").String;
|
|
6
|
+
duration_minutes: import("effect/Schema").OptionFromNullOr<import("effect/Schema").filter<typeof import("effect/Schema").Int>>;
|
|
7
|
+
note: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
8
|
+
}>, typeof import("./activity/ActivityRpcModels.js").LogActivityResult, import("effect/Schema").Union<[typeof import("./activity/ActivityRpcModels.js").ActivityMemberNotFound, typeof import("./activity/ActivityRpcModels.js").ActivityGuildNotFound]>, never> | import("@effect/rpc/Rpc").Rpc<"Activity/GetStats", import("effect/Schema").Struct<{
|
|
9
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
10
|
+
discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
11
|
+
}>, typeof import("./activity/ActivityRpcModels.js").GetStatsResult, import("effect/Schema").Union<[typeof import("./activity/ActivityRpcModels.js").ActivityMemberNotFound, typeof import("./activity/ActivityRpcModels.js").ActivityGuildNotFound]>, never> | import("@effect/rpc/Rpc").Rpc<"Channel/GetUnprocessedEvents", import("effect/Schema").Struct<{
|
|
3
12
|
limit: typeof import("effect/Schema").Number;
|
|
4
13
|
}>, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("./channel/ChannelRpcEvents.js").ChannelCreatedEvent, typeof import("./channel/ChannelRpcEvents.js").ChannelDeletedEvent, typeof import("./channel/ChannelRpcEvents.js").ChannelMemberAddedEvent, typeof import("./channel/ChannelRpcEvents.js").ChannelMemberRemovedEvent]>>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/MarkEventProcessed", import("effect/Schema").Struct<{
|
|
5
14
|
id: import("effect/Schema").brand<typeof import("effect/Schema").String, "ChannelSyncEventId">;
|
|
@@ -36,7 +45,7 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
36
45
|
discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
37
46
|
response: import("effect/Schema").Literal<["yes", "no", "maybe"]>;
|
|
38
47
|
message: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
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<{
|
|
48
|
+
}>, 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, typeof import("./event/EventRpcModels.js").RsvpNotGroupMember]>, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetRsvpCounts", import("effect/Schema").Struct<{
|
|
40
49
|
event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
|
|
41
50
|
}>, typeof import("./event/EventRpcModels.js").RsvpCountsResult, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetEventEmbedInfo", import("effect/Schema").Struct<{
|
|
42
51
|
event_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "EventId">;
|
|
@@ -52,7 +61,9 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
52
61
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
53
62
|
offset: typeof import("effect/Schema").Number;
|
|
54
63
|
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/
|
|
64
|
+
}>, typeof import("./event/EventRpcModels.js").GuildEventListResult, typeof import("./event/EventRpcModels.js").GuildNotFound, never> | import("@effect/rpc/Rpc").Rpc<"Event/GetTrainingTypesByGuild", import("effect/Schema").Struct<{
|
|
65
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
66
|
+
}>, import("effect/Schema").Array$<typeof import("./event/EventRpcModels.js").TrainingTypeChoice>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Event/CreateEvent", import("effect/Schema").Struct<{
|
|
56
67
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
57
68
|
discord_user_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
58
69
|
event_type: import("effect/Schema").Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
@@ -61,6 +72,7 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
61
72
|
end_at: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
62
73
|
location: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
63
74
|
description: import("effect/Schema").OptionFromNullOr<typeof import("effect/Schema").String>;
|
|
75
|
+
training_type_id: import("effect/Schema").OptionFromNullOr<import("effect/Schema").brand<typeof import("effect/Schema").String, "TrainingTypeId">>;
|
|
64
76
|
}>, 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<{
|
|
65
77
|
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
66
78
|
guild_name: typeof import("effect/Schema").String;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOvC,qBAAa,QAAS,SAAQ,aAM7B;CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Rpc, RpcGroup } from '@effect/rpc';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
import { ActivityGuildNotFound, ActivityMemberNotFound, GetStatsResult, LogActivityResult } from './ActivityRpcModels.js';
|
|
4
|
+
export declare const ActivityRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Activity/LogActivity", Schema.Struct<{
|
|
5
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
6
|
+
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
7
|
+
activity_type: typeof Schema.String;
|
|
8
|
+
duration_minutes: Schema.OptionFromNullOr<Schema.filter<typeof Schema.Int>>;
|
|
9
|
+
note: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
10
|
+
}>, typeof LogActivityResult, Schema.Union<[typeof ActivityMemberNotFound, typeof ActivityGuildNotFound]>, never> | Rpc.Rpc<"Activity/GetStats", Schema.Struct<{
|
|
11
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
12
|
+
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
13
|
+
}>, typeof GetStatsResult, Schema.Union<[typeof ActivityMemberNotFound, typeof ActivityGuildNotFound]>, never>>;
|
|
14
|
+
//# sourceMappingURL=ActivityRpcGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityRpcGroup.d.ts","sourceRoot":"","sources":["../../../../src/rpc/activity/ActivityRpcGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,gBAAgB;;;;;;;;;+GAoBR,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
declare const LogActivityResult_base: Schema.Class<LogActivityResult, {
|
|
3
|
+
id: Schema.brand<typeof Schema.String, "ActivityLogId">;
|
|
4
|
+
activity_type_id: typeof Schema.String;
|
|
5
|
+
logged_at: typeof Schema.String;
|
|
6
|
+
}, Schema.Struct.Encoded<{
|
|
7
|
+
id: Schema.brand<typeof Schema.String, "ActivityLogId">;
|
|
8
|
+
activity_type_id: typeof Schema.String;
|
|
9
|
+
logged_at: typeof Schema.String;
|
|
10
|
+
}>, never, {
|
|
11
|
+
readonly id: string & import("effect/Brand").Brand<"ActivityLogId">;
|
|
12
|
+
} & {
|
|
13
|
+
readonly activity_type_id: string;
|
|
14
|
+
} & {
|
|
15
|
+
readonly logged_at: string;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export declare class LogActivityResult extends LogActivityResult_base {
|
|
18
|
+
}
|
|
19
|
+
declare const ActivityMemberNotFound_base: Schema.TaggedErrorClass<ActivityMemberNotFound, "ActivityMemberNotFound", {
|
|
20
|
+
readonly _tag: Schema.tag<"ActivityMemberNotFound">;
|
|
21
|
+
}>;
|
|
22
|
+
export declare class ActivityMemberNotFound extends ActivityMemberNotFound_base {
|
|
23
|
+
}
|
|
24
|
+
declare const ActivityGuildNotFound_base: Schema.TaggedErrorClass<ActivityGuildNotFound, "ActivityGuildNotFound", {
|
|
25
|
+
readonly _tag: Schema.tag<"ActivityGuildNotFound">;
|
|
26
|
+
}>;
|
|
27
|
+
export declare class ActivityGuildNotFound extends ActivityGuildNotFound_base {
|
|
28
|
+
}
|
|
29
|
+
declare const GetStatsResult_base: Schema.Class<GetStatsResult, {
|
|
30
|
+
current_streak: typeof Schema.Int;
|
|
31
|
+
longest_streak: typeof Schema.Int;
|
|
32
|
+
total_activities: typeof Schema.Int;
|
|
33
|
+
total_duration_minutes: typeof Schema.Int;
|
|
34
|
+
counts: Schema.Array$<Schema.Struct<{
|
|
35
|
+
activity_type_id: typeof Schema.String;
|
|
36
|
+
activity_type_name: typeof Schema.String;
|
|
37
|
+
count: typeof Schema.Int;
|
|
38
|
+
}>>;
|
|
39
|
+
}, Schema.Struct.Encoded<{
|
|
40
|
+
current_streak: typeof Schema.Int;
|
|
41
|
+
longest_streak: typeof Schema.Int;
|
|
42
|
+
total_activities: typeof Schema.Int;
|
|
43
|
+
total_duration_minutes: typeof Schema.Int;
|
|
44
|
+
counts: Schema.Array$<Schema.Struct<{
|
|
45
|
+
activity_type_id: typeof Schema.String;
|
|
46
|
+
activity_type_name: typeof Schema.String;
|
|
47
|
+
count: typeof Schema.Int;
|
|
48
|
+
}>>;
|
|
49
|
+
}>, never, {
|
|
50
|
+
readonly counts: readonly {
|
|
51
|
+
readonly activity_type_id: string;
|
|
52
|
+
readonly count: number;
|
|
53
|
+
readonly activity_type_name: string;
|
|
54
|
+
}[];
|
|
55
|
+
} & {
|
|
56
|
+
readonly current_streak: number;
|
|
57
|
+
} & {
|
|
58
|
+
readonly longest_streak: number;
|
|
59
|
+
} & {
|
|
60
|
+
readonly total_activities: number;
|
|
61
|
+
} & {
|
|
62
|
+
readonly total_duration_minutes: number;
|
|
63
|
+
}, {}, {}>;
|
|
64
|
+
export declare class GetStatsResult extends GetStatsResult_base {
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=ActivityRpcModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityRpcModels.d.ts","sourceRoot":"","sources":["../../../../src/rpc/activity/ActivityRpcModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;AAGhC,qBAAa,iBAAkB,SAAQ,sBAIrC;CAAG;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAG3C;CAAG;;;;AAEJ,qBAAa,qBAAsB,SAAQ,0BAG1C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,qBAAa,cAAe,SAAQ,mBAYlC;CAAG"}
|
|
@@ -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, GuildEventListResult, GuildNotFound, 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, RsvpNotGroupMember, RsvpReminderSummary, TrainingTypeChoice } 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<{
|
|
@@ -20,7 +20,7 @@ export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnproces
|
|
|
20
20
|
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
21
21
|
response: Schema.Literal<["yes", "no", "maybe"]>;
|
|
22
22
|
message: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
23
|
-
}>, typeof RsvpCountsResult, Schema.Union<[typeof RsvpMemberNotFound, typeof RsvpDeadlinePassed, typeof RsvpEventNotFound]>, never> | Rpc.Rpc<"Event/GetRsvpCounts", Schema.Struct<{
|
|
23
|
+
}>, typeof RsvpCountsResult, Schema.Union<[typeof RsvpMemberNotFound, typeof RsvpDeadlinePassed, typeof RsvpEventNotFound, typeof RsvpNotGroupMember]>, 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">;
|
|
@@ -36,7 +36,9 @@ export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnproces
|
|
|
36
36
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
37
37
|
offset: typeof Schema.Number;
|
|
38
38
|
limit: typeof Schema.Number;
|
|
39
|
-
}>, typeof GuildEventListResult, typeof GuildNotFound, never> | Rpc.Rpc<"Event/
|
|
39
|
+
}>, typeof GuildEventListResult, typeof GuildNotFound, never> | Rpc.Rpc<"Event/GetTrainingTypesByGuild", Schema.Struct<{
|
|
40
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
41
|
+
}>, Schema.Array$<typeof TrainingTypeChoice>, typeof Schema.Never, never> | Rpc.Rpc<"Event/CreateEvent", Schema.Struct<{
|
|
40
42
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
41
43
|
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
42
44
|
event_type: Schema.Literal<["training", "match", "tournament", "meeting", "social", "other"]>;
|
|
@@ -45,5 +47,6 @@ export declare const EventRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Event/GetUnproces
|
|
|
45
47
|
end_at: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
46
48
|
location: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
47
49
|
description: Schema.OptionFromNullOr<typeof Schema.String>;
|
|
50
|
+
training_type_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
48
51
|
}>, typeof CreateEventResult, Schema.Union<[typeof CreateEventNotMember, typeof CreateEventForbidden, typeof CreateEventInvalidDate]>, never>>;
|
|
49
52
|
//# 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,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,
|
|
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,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8IAsFR,CAAC"}
|
|
@@ -122,6 +122,11 @@ declare const RsvpEventNotFound_base: Schema.TaggedErrorClass<RsvpEventNotFound,
|
|
|
122
122
|
}>;
|
|
123
123
|
export declare class RsvpEventNotFound extends RsvpEventNotFound_base {
|
|
124
124
|
}
|
|
125
|
+
declare const RsvpNotGroupMember_base: Schema.TaggedErrorClass<RsvpNotGroupMember, "RsvpNotGroupMember", {
|
|
126
|
+
readonly _tag: Schema.tag<"RsvpNotGroupMember">;
|
|
127
|
+
}>;
|
|
128
|
+
export declare class RsvpNotGroupMember extends RsvpNotGroupMember_base {
|
|
129
|
+
}
|
|
125
130
|
declare const CreateEventNotMember_base: Schema.TaggedErrorClass<CreateEventNotMember, "CreateEventNotMember", {
|
|
126
131
|
readonly _tag: Schema.tag<"CreateEventNotMember">;
|
|
127
132
|
}>;
|
|
@@ -285,5 +290,18 @@ declare const RsvpReminderSummary_base: Schema.Class<RsvpReminderSummary, {
|
|
|
285
290
|
}, {}, {}>;
|
|
286
291
|
export declare class RsvpReminderSummary extends RsvpReminderSummary_base {
|
|
287
292
|
}
|
|
293
|
+
declare const TrainingTypeChoice_base: Schema.Class<TrainingTypeChoice, {
|
|
294
|
+
id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
295
|
+
name: typeof Schema.String;
|
|
296
|
+
}, Schema.Struct.Encoded<{
|
|
297
|
+
id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
298
|
+
name: typeof Schema.String;
|
|
299
|
+
}>, never, {
|
|
300
|
+
readonly name: string;
|
|
301
|
+
} & {
|
|
302
|
+
readonly id: string & import("effect/Brand").Brand<"TrainingTypeId">;
|
|
303
|
+
}, {}, {}>;
|
|
304
|
+
export declare class TrainingTypeChoice extends TrainingTypeChoice_base {
|
|
305
|
+
}
|
|
288
306
|
export {};
|
|
289
307
|
//# sourceMappingURL=EventRpcModels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventRpcModels.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcModels.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"EventRpcModels.d.ts","sourceRoot":"","sources":["../../../../src/rpc/event/EventRpcModels.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;AAIhC,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,gBAAiB,SAAQ,qBAKpC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAOlC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAWrC;CAAG;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAGtC;CAAG;;;;AAEJ,qBAAa,kBAAmB,SAAQ,uBAGvC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAGzC;CAAG;;;;AAEJ,qBAAa,oBAAqB,SAAQ,yBAGzC;CAAG;;;;AAEJ,qBAAa,sBAAuB,SAAQ,2BAG3C;CAAG;;;;;;;;;;;;AAEJ,qBAAa,iBAAkB,SAAQ,sBAGrC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAUvC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAMxC;CAAG;;;;AAEL,qBAAa,aAAc,SAAQ,kBAAwD;CAAG;;;;;;;;;;;;;;;;;;;;AAE9F,qBAAa,iBAAkB,SAAQ,sBAKrC;CAAG;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG;;;;;;;;;;;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAMxC;CAAG;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAKvC;CAAG;;;;;;;;;;;;AAEL,qBAAa,kBAAmB,SAAQ,uBAGtC;CAAG"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from '@effect/platform';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
import { AuthMiddleware } from '../api/Auth.js';
|
|
4
|
+
import { ActivityLogId, ActivitySource } from '../models/ActivityLog.js';
|
|
5
|
+
import { ActivityTypeId } from '../models/ActivityType.js';
|
|
6
|
+
import { TeamId } from '../models/Team.js';
|
|
7
|
+
import { TeamMemberId } from '../models/TeamMember.js';
|
|
8
|
+
export class ActivityLogEntry extends /*#__PURE__*/Schema.Class('ActivityLogEntry')({
|
|
9
|
+
id: ActivityLogId,
|
|
10
|
+
activityTypeId: ActivityTypeId,
|
|
11
|
+
activityTypeName: Schema.String,
|
|
12
|
+
loggedAt: Schema.String,
|
|
13
|
+
durationMinutes: /*#__PURE__*/Schema.OptionFromNullOr(Schema.Int),
|
|
14
|
+
note: /*#__PURE__*/Schema.OptionFromNullOr(Schema.String),
|
|
15
|
+
source: ActivitySource
|
|
16
|
+
}) {}
|
|
17
|
+
export class ActivityLogListResponse extends /*#__PURE__*/Schema.Class('ActivityLogListResponse')({
|
|
18
|
+
logs: /*#__PURE__*/Schema.Array(ActivityLogEntry)
|
|
19
|
+
}) {}
|
|
20
|
+
export class CreateActivityLogRequest extends /*#__PURE__*/Schema.Class('CreateActivityLogRequest')({
|
|
21
|
+
activityTypeId: ActivityTypeId,
|
|
22
|
+
durationMinutes: /*#__PURE__*/Schema.OptionFromNullOr(/*#__PURE__*/Schema.Int.pipe(/*#__PURE__*/Schema.between(1, 1440))),
|
|
23
|
+
note: /*#__PURE__*/Schema.OptionFromNullOr(Schema.String)
|
|
24
|
+
}) {}
|
|
25
|
+
export class UpdateActivityLogRequest extends /*#__PURE__*/Schema.Class('UpdateActivityLogRequest')({
|
|
26
|
+
activityTypeId: /*#__PURE__*/Schema.optionalWith(ActivityTypeId, {
|
|
27
|
+
as: 'Option'
|
|
28
|
+
}),
|
|
29
|
+
durationMinutes: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.OptionFromNullOr(/*#__PURE__*/Schema.Int.pipe(/*#__PURE__*/Schema.between(1, 1440))), {
|
|
30
|
+
as: 'Option'
|
|
31
|
+
}),
|
|
32
|
+
note: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.OptionFromNullOr(Schema.String), {
|
|
33
|
+
as: 'Option'
|
|
34
|
+
})
|
|
35
|
+
}) {}
|
|
36
|
+
export class ActivityTypeEntry extends /*#__PURE__*/Schema.Class('ActivityTypeEntry')({
|
|
37
|
+
id: ActivityTypeId,
|
|
38
|
+
name: Schema.String,
|
|
39
|
+
slug: /*#__PURE__*/Schema.OptionFromNullOr(Schema.String)
|
|
40
|
+
}) {}
|
|
41
|
+
export class ActivityTypeListResponse extends /*#__PURE__*/Schema.Class('ActivityTypeListResponse')({
|
|
42
|
+
activityTypes: /*#__PURE__*/Schema.Array(ActivityTypeEntry)
|
|
43
|
+
}) {}
|
|
44
|
+
export class MemberNotFound extends /*#__PURE__*/Schema.TaggedError()('ActivityLogMemberNotFound', {}, /*#__PURE__*/HttpApiSchema.annotations({
|
|
45
|
+
status: 404
|
|
46
|
+
})) {}
|
|
47
|
+
export class Forbidden extends /*#__PURE__*/Schema.TaggedError()('ActivityLogForbidden', {}, /*#__PURE__*/HttpApiSchema.annotations({
|
|
48
|
+
status: 403
|
|
49
|
+
})) {}
|
|
50
|
+
export class LogNotFound extends /*#__PURE__*/Schema.TaggedError()('ActivityLogNotFound', {}, /*#__PURE__*/HttpApiSchema.annotations({
|
|
51
|
+
status: 404
|
|
52
|
+
})) {}
|
|
53
|
+
export class MemberInactive extends /*#__PURE__*/Schema.TaggedError()('ActivityLogMemberInactive', {}, /*#__PURE__*/HttpApiSchema.annotations({
|
|
54
|
+
status: 403
|
|
55
|
+
})) {}
|
|
56
|
+
export class AutoSourceForbidden extends /*#__PURE__*/Schema.TaggedError()('ActivityLogAutoSourceForbidden', {}, /*#__PURE__*/HttpApiSchema.annotations({
|
|
57
|
+
status: 403
|
|
58
|
+
})) {}
|
|
59
|
+
export class ActivityLogApiGroup extends /*#__PURE__*/HttpApiGroup.make('activityLog').add(HttpApiEndpoint.get('listLogs', '/teams/:teamId/members/:memberId/activity-logs').addSuccess(ActivityLogListResponse).addError(MemberNotFound, {
|
|
60
|
+
status: 404
|
|
61
|
+
}).addError(Forbidden, {
|
|
62
|
+
status: 403
|
|
63
|
+
}).setPath(Schema.Struct({
|
|
64
|
+
teamId: TeamId,
|
|
65
|
+
memberId: TeamMemberId
|
|
66
|
+
})).middleware(AuthMiddleware)).add(HttpApiEndpoint.post('createLog', '/teams/:teamId/members/:memberId/activity-logs').addSuccess(ActivityLogEntry, {
|
|
67
|
+
status: 201
|
|
68
|
+
}).addError(MemberNotFound, {
|
|
69
|
+
status: 404
|
|
70
|
+
}).addError(Forbidden, {
|
|
71
|
+
status: 403
|
|
72
|
+
}).addError(MemberInactive, {
|
|
73
|
+
status: 403
|
|
74
|
+
}).setPath(Schema.Struct({
|
|
75
|
+
teamId: TeamId,
|
|
76
|
+
memberId: TeamMemberId
|
|
77
|
+
})).setPayload(CreateActivityLogRequest).middleware(AuthMiddleware)).add(HttpApiEndpoint.patch('updateLog', '/teams/:teamId/members/:memberId/activity-logs/:logId').addSuccess(ActivityLogEntry).addError(LogNotFound, {
|
|
78
|
+
status: 404
|
|
79
|
+
}).addError(Forbidden, {
|
|
80
|
+
status: 403
|
|
81
|
+
}).addError(MemberInactive, {
|
|
82
|
+
status: 403
|
|
83
|
+
}).addError(AutoSourceForbidden, {
|
|
84
|
+
status: 403
|
|
85
|
+
}).setPath(Schema.Struct({
|
|
86
|
+
teamId: TeamId,
|
|
87
|
+
memberId: TeamMemberId,
|
|
88
|
+
logId: ActivityLogId
|
|
89
|
+
})).setPayload(UpdateActivityLogRequest).middleware(AuthMiddleware)).add(HttpApiEndpoint.post('deleteLog', '/teams/:teamId/members/:memberId/activity-logs/:logId/delete').addSuccess(Schema.Void, {
|
|
90
|
+
status: 204
|
|
91
|
+
}).addError(LogNotFound, {
|
|
92
|
+
status: 404
|
|
93
|
+
}).addError(Forbidden, {
|
|
94
|
+
status: 403
|
|
95
|
+
}).addError(MemberInactive, {
|
|
96
|
+
status: 403
|
|
97
|
+
}).addError(AutoSourceForbidden, {
|
|
98
|
+
status: 403
|
|
99
|
+
}).setPath(Schema.Struct({
|
|
100
|
+
teamId: TeamId,
|
|
101
|
+
memberId: TeamMemberId,
|
|
102
|
+
logId: ActivityLogId
|
|
103
|
+
})).middleware(AuthMiddleware)).add(/*#__PURE__*/HttpApiEndpoint.get('listActivityTypes', '/teams/:teamId/activity-types').addSuccess(ActivityTypeListResponse).addError(Forbidden, {
|
|
104
|
+
status: 403
|
|
105
|
+
}).setPath(Schema.Struct({
|
|
106
|
+
teamId: TeamId
|
|
107
|
+
})).middleware(AuthMiddleware)) {}
|
|
108
|
+
//# sourceMappingURL=ActivityLogApi.js.map
|