@sideline/domain 0.3.0 → 0.5.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 +20 -20
- package/dist/cjs/api/AgeThresholdApi.js.map +1 -1
- package/dist/cjs/api/Auth.js +16 -15
- package/dist/cjs/api/Auth.js.map +1 -1
- package/dist/cjs/api/GroupApi.js +205 -0
- package/dist/cjs/api/GroupApi.js.map +1 -0
- package/dist/cjs/api/NotificationApi.js +6 -2
- package/dist/cjs/api/NotificationApi.js.map +1 -1
- package/dist/cjs/api/Roster.js +1 -5
- package/dist/cjs/api/Roster.js.map +1 -1
- package/dist/cjs/api/TrainingTypeApi.js +84 -0
- package/dist/cjs/api/TrainingTypeApi.js.map +1 -0
- package/dist/cjs/index.js +33 -7
- package/dist/cjs/models/AgeThresholdRule.js +2 -2
- package/dist/cjs/models/AgeThresholdRule.js.map +1 -1
- package/dist/cjs/models/ChannelSyncEvent.js +28 -0
- package/dist/cjs/models/ChannelSyncEvent.js.map +1 -0
- package/dist/cjs/models/Discord.js +9 -0
- package/dist/cjs/models/Discord.js.map +1 -0
- package/dist/cjs/models/DiscordChannelMapping.js +21 -0
- package/dist/cjs/models/DiscordChannelMapping.js.map +1 -0
- package/dist/cjs/models/GroupModel.js +20 -0
- package/dist/cjs/models/GroupModel.js.map +1 -0
- package/dist/cjs/models/Notification.js +1 -1
- package/dist/cjs/models/Notification.js.map +1 -1
- package/dist/cjs/models/Role.js +2 -2
- package/dist/cjs/models/Role.js.map +1 -1
- package/dist/cjs/models/RoleGroup.js +15 -0
- package/dist/cjs/models/RoleGroup.js.map +1 -0
- package/dist/cjs/models/Team.js +2 -0
- package/dist/cjs/models/Team.js.map +1 -1
- package/dist/cjs/models/TeamMember.js +1 -0
- package/dist/cjs/models/TeamMember.js.map +1 -1
- package/dist/cjs/models/TrainingType.js +20 -0
- package/dist/cjs/models/TrainingType.js.map +1 -0
- package/dist/cjs/models/User.js +1 -6
- package/dist/cjs/models/User.js.map +1 -1
- package/dist/cjs/rpc/SyncRpcs.js +13 -0
- package/dist/cjs/rpc/SyncRpcs.js.map +1 -0
- package/dist/cjs/rpc/channel/ChannelRpcEvents.js +44 -0
- package/dist/cjs/rpc/channel/ChannelRpcEvents.js.map +1 -0
- package/dist/cjs/rpc/channel/ChannelRpcGroup.js +45 -0
- package/dist/cjs/rpc/channel/ChannelRpcGroup.js.map +1 -0
- package/dist/cjs/rpc/channel/ChannelRpcModels.js +17 -0
- package/dist/cjs/rpc/channel/ChannelRpcModels.js.map +1 -0
- package/dist/cjs/rpc/guild/GuildRpcGroup.js +35 -0
- package/dist/cjs/rpc/guild/GuildRpcGroup.js.map +1 -0
- package/dist/cjs/rpc/role/RoleRpcEvents.js +44 -0
- package/dist/cjs/rpc/role/RoleRpcEvents.js.map +1 -0
- package/dist/cjs/rpc/role/RoleRpcGroup.js +44 -0
- package/dist/cjs/rpc/role/RoleRpcGroup.js.map +1 -0
- package/dist/cjs/rpc/role/RoleRpcModels.js +16 -0
- package/dist/cjs/rpc/role/RoleRpcModels.js.map +1 -0
- package/dist/dts/api/AgeThresholdApi.d.ts +43 -43
- package/dist/dts/api/AgeThresholdApi.d.ts.map +1 -1
- package/dist/dts/api/Auth.d.ts +33 -44
- package/dist/dts/api/Auth.d.ts.map +1 -1
- package/dist/dts/api/GroupApi.d.ts +254 -0
- package/dist/dts/api/GroupApi.d.ts.map +1 -0
- package/dist/dts/api/NotificationApi.d.ts +9 -5
- package/dist/dts/api/NotificationApi.d.ts.map +1 -1
- package/dist/dts/api/RoleApi.d.ts +10 -10
- package/dist/dts/api/Roster.d.ts +7 -23
- package/dist/dts/api/Roster.d.ts.map +1 -1
- package/dist/dts/api/TrainingTypeApi.d.ts +116 -0
- package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -0
- package/dist/dts/index.d.ts +16 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/AgeThresholdRule.d.ts +13 -13
- package/dist/dts/models/ChannelSyncEvent.d.ts +164 -0
- package/dist/dts/models/ChannelSyncEvent.d.ts.map +1 -0
- package/dist/dts/models/Discord.d.ts +4 -0
- package/dist/dts/models/Discord.d.ts.map +1 -0
- package/dist/dts/models/DiscordChannelMapping.d.ts +97 -0
- package/dist/dts/models/DiscordChannelMapping.d.ts.map +1 -0
- package/dist/dts/models/GroupModel.d.ts +97 -0
- package/dist/dts/models/GroupModel.d.ts.map +1 -0
- package/dist/dts/models/Notification.d.ts +12 -12
- package/dist/dts/models/Notification.d.ts.map +1 -1
- package/dist/dts/models/Role.d.ts +4 -4
- package/dist/dts/models/Role.d.ts.map +1 -1
- package/dist/dts/models/RoleGroup.d.ts +16 -0
- package/dist/dts/models/RoleGroup.d.ts.map +1 -0
- package/dist/dts/models/RoleSyncEvent.d.ts +8 -8
- package/dist/dts/models/Team.d.ts +13 -0
- package/dist/dts/models/Team.d.ts.map +1 -1
- package/dist/dts/models/TeamMember.d.ts +30 -0
- package/dist/dts/models/TeamMember.d.ts.map +1 -1
- package/dist/dts/models/{SubgroupModel.d.ts → TrainingType.d.ts} +26 -13
- package/dist/dts/models/TrainingType.d.ts.map +1 -0
- package/dist/dts/models/User.d.ts +0 -43
- package/dist/dts/models/User.d.ts.map +1 -1
- package/dist/dts/rpc/SyncRpcs.d.ts +56 -0
- package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -0
- package/dist/dts/rpc/channel/ChannelRpcEvents.d.ts +51 -0
- package/dist/dts/rpc/channel/ChannelRpcEvents.d.ts.map +1 -0
- package/dist/dts/rpc/channel/ChannelRpcGroup.d.ts +23 -0
- package/dist/dts/rpc/channel/ChannelRpcGroup.d.ts.map +1 -0
- package/dist/dts/rpc/channel/ChannelRpcModels.d.ts +28 -0
- package/dist/dts/rpc/channel/ChannelRpcModels.d.ts.map +1 -0
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts +19 -0
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts.map +1 -0
- package/dist/dts/rpc/role/RoleRpcEvents.d.ts +51 -0
- package/dist/dts/rpc/role/RoleRpcEvents.d.ts.map +1 -0
- package/dist/dts/rpc/role/RoleRpcGroup.d.ts +22 -0
- package/dist/dts/rpc/role/RoleRpcGroup.d.ts.map +1 -0
- package/dist/dts/rpc/role/RoleRpcModels.d.ts +24 -0
- package/dist/dts/rpc/role/RoleRpcModels.d.ts.map +1 -0
- package/dist/esm/api/AgeThresholdApi.js +17 -17
- package/dist/esm/api/AgeThresholdApi.js.map +1 -1
- package/dist/esm/api/Auth.js +15 -15
- package/dist/esm/api/Auth.js.map +1 -1
- package/dist/esm/api/GroupApi.js +185 -0
- package/dist/esm/api/GroupApi.js.map +1 -0
- package/dist/esm/api/NotificationApi.js +6 -2
- package/dist/esm/api/NotificationApi.js.map +1 -1
- package/dist/esm/api/Roster.js +2 -6
- package/dist/esm/api/Roster.js.map +1 -1
- package/dist/esm/api/TrainingTypeApi.js +70 -0
- package/dist/esm/api/TrainingTypeApi.js.map +1 -0
- package/dist/esm/index.js +16 -3
- 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 +21 -0
- package/dist/esm/models/ChannelSyncEvent.js.map +1 -0
- package/dist/esm/models/Discord.js +3 -0
- package/dist/esm/models/Discord.js.map +1 -0
- package/dist/esm/models/DiscordChannelMapping.js +14 -0
- package/dist/esm/models/DiscordChannelMapping.js.map +1 -0
- package/dist/esm/models/GroupModel.js +13 -0
- package/dist/esm/models/GroupModel.js.map +1 -0
- package/dist/esm/models/Notification.js +1 -1
- package/dist/esm/models/Notification.js.map +1 -1
- package/dist/esm/models/Role.js +2 -2
- package/dist/esm/models/Role.js.map +1 -1
- package/dist/esm/models/RoleGroup.js +8 -0
- package/dist/esm/models/RoleGroup.js.map +1 -0
- package/dist/esm/models/Team.js +2 -0
- package/dist/esm/models/Team.js.map +1 -1
- package/dist/esm/models/TeamMember.js +1 -0
- package/dist/esm/models/TeamMember.js.map +1 -1
- package/dist/esm/models/TrainingType.js +13 -0
- package/dist/esm/models/TrainingType.js.map +1 -0
- package/dist/esm/models/User.js +0 -5
- package/dist/esm/models/User.js.map +1 -1
- package/dist/esm/rpc/SyncRpcs.js +6 -0
- package/dist/esm/rpc/SyncRpcs.js.map +1 -0
- package/dist/esm/rpc/channel/ChannelRpcEvents.js +34 -0
- package/dist/esm/rpc/channel/ChannelRpcEvents.js.map +1 -0
- package/dist/esm/rpc/channel/ChannelRpcGroup.js +39 -0
- package/dist/esm/rpc/channel/ChannelRpcGroup.js.map +1 -0
- package/dist/esm/rpc/channel/ChannelRpcModels.js +10 -0
- package/dist/esm/rpc/channel/ChannelRpcModels.js.map +1 -0
- package/dist/esm/rpc/guild/GuildRpcGroup.js +29 -0
- package/dist/esm/rpc/guild/GuildRpcGroup.js.map +1 -0
- package/dist/esm/rpc/role/RoleRpcEvents.js +34 -0
- package/dist/esm/rpc/role/RoleRpcEvents.js.map +1 -0
- package/dist/esm/rpc/role/RoleRpcGroup.js +38 -0
- package/dist/esm/rpc/role/RoleRpcGroup.js.map +1 -0
- package/dist/esm/rpc/role/RoleRpcModels.js +9 -0
- package/dist/esm/rpc/role/RoleRpcModels.js.map +1 -0
- package/package.json +1 -1
- package/src/api/AgeThresholdApi.ts +18 -18
- package/src/api/Auth.ts +17 -12
- package/src/api/GroupApi.ts +229 -0
- package/src/api/NotificationApi.ts +10 -0
- package/src/api/Roster.ts +1 -5
- package/src/api/TrainingTypeApi.ts +96 -0
- package/src/index.ts +23 -5
- package/src/models/AgeThresholdRule.ts +2 -2
- package/src/models/ChannelSyncEvent.ts +30 -0
- package/src/models/Discord.ts +4 -0
- package/src/models/DiscordChannelMapping.ts +18 -0
- package/src/models/GroupModel.ts +15 -0
- package/src/models/Notification.ts +2 -2
- package/src/models/Role.ts +4 -0
- package/src/models/RoleGroup.ts +8 -0
- package/src/models/Team.ts +2 -0
- package/src/models/TeamMember.ts +1 -0
- package/src/models/TrainingType.ts +15 -0
- package/src/models/User.ts +0 -9
- package/src/rpc/SyncRpcs.ts +6 -0
- package/src/rpc/channel/ChannelRpcEvents.ts +57 -0
- package/src/rpc/channel/ChannelRpcGroup.ts +33 -0
- package/src/rpc/channel/ChannelRpcModels.ts +10 -0
- package/src/rpc/guild/GuildRpcGroup.ts +29 -0
- package/src/rpc/role/RoleRpcEvents.ts +48 -0
- package/src/rpc/role/RoleRpcGroup.ts +33 -0
- package/src/rpc/role/RoleRpcModels.ts +9 -0
- package/dist/cjs/api/SubgroupApi.js +0 -122
- package/dist/cjs/api/SubgroupApi.js.map +0 -1
- package/dist/cjs/models/SubgroupModel.js +0 -18
- package/dist/cjs/models/SubgroupModel.js.map +0 -1
- package/dist/cjs/rpc/RoleSyncRpc.js +0 -66
- package/dist/cjs/rpc/RoleSyncRpc.js.map +0 -1
- package/dist/dts/api/SubgroupApi.d.ts +0 -140
- package/dist/dts/api/SubgroupApi.d.ts.map +0 -1
- package/dist/dts/models/SubgroupModel.d.ts.map +0 -1
- package/dist/dts/rpc/RoleSyncRpc.d.ts +0 -82
- package/dist/dts/rpc/RoleSyncRpc.d.ts.map +0 -1
- package/dist/esm/api/SubgroupApi.js +0 -106
- package/dist/esm/api/SubgroupApi.js.map +0 -1
- package/dist/esm/models/SubgroupModel.js +0 -11
- package/dist/esm/models/SubgroupModel.js.map +0 -1
- package/dist/esm/rpc/RoleSyncRpc.js +0 -57
- package/dist/esm/rpc/RoleSyncRpc.js.map +0 -1
- package/src/api/SubgroupApi.ts +0 -146
- package/src/models/SubgroupModel.ts +0 -13
- package/src/rpc/RoleSyncRpc.ts +0 -59
|
@@ -2,13 +2,13 @@ import { Model } from '@effect/sql';
|
|
|
2
2
|
import { Schema } from 'effect';
|
|
3
3
|
export declare const NotificationId: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
4
4
|
export type NotificationId = typeof NotificationId.Type;
|
|
5
|
-
export declare const NotificationType: Schema.Literal<["
|
|
5
|
+
export declare const NotificationType: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
6
6
|
export type NotificationType = typeof NotificationType.Type;
|
|
7
7
|
declare const Notification_base: import("@effect/experimental/VariantSchema").Class<Notification, {
|
|
8
8
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
|
|
9
9
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
10
10
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
11
|
-
readonly type: Schema.Literal<["
|
|
11
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
12
12
|
readonly title: typeof Schema.String;
|
|
13
13
|
readonly body: typeof Schema.String;
|
|
14
14
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -17,7 +17,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
17
17
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
|
|
18
18
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
19
19
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
20
|
-
readonly type: Schema.Literal<["
|
|
20
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
21
21
|
readonly title: typeof Schema.String;
|
|
22
22
|
readonly body: typeof Schema.String;
|
|
23
23
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -31,7 +31,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
31
31
|
} & {
|
|
32
32
|
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
33
33
|
} & {
|
|
34
|
-
readonly type: "
|
|
34
|
+
readonly type: "age_group_added" | "age_group_removed" | "role_assigned" | "role_removed";
|
|
35
35
|
} & {
|
|
36
36
|
readonly title: string;
|
|
37
37
|
} & {
|
|
@@ -42,7 +42,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
42
42
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
|
|
43
43
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
44
44
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
45
|
-
readonly type: Schema.Literal<["
|
|
45
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
46
46
|
readonly title: typeof Schema.String;
|
|
47
47
|
readonly body: typeof Schema.String;
|
|
48
48
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -56,7 +56,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
56
56
|
} & {
|
|
57
57
|
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
58
58
|
} & {
|
|
59
|
-
readonly type: "
|
|
59
|
+
readonly type: "age_group_added" | "age_group_removed" | "role_assigned" | "role_removed";
|
|
60
60
|
} & {
|
|
61
61
|
readonly title: string;
|
|
62
62
|
} & {
|
|
@@ -68,7 +68,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
68
68
|
readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
69
69
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
70
70
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
71
|
-
readonly type: Schema.Literal<["
|
|
71
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
72
72
|
readonly title: typeof Schema.String;
|
|
73
73
|
readonly body: typeof Schema.String;
|
|
74
74
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -77,7 +77,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
77
77
|
readonly insert: Schema.Struct<{
|
|
78
78
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
79
79
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
80
|
-
readonly type: Schema.Literal<["
|
|
80
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
81
81
|
readonly title: typeof Schema.String;
|
|
82
82
|
readonly body: typeof Schema.String;
|
|
83
83
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -87,7 +87,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
87
87
|
readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
88
88
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
89
89
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
90
|
-
readonly type: Schema.Literal<["
|
|
90
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
91
91
|
readonly title: typeof Schema.String;
|
|
92
92
|
readonly body: typeof Schema.String;
|
|
93
93
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -96,7 +96,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
96
96
|
readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
97
97
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
98
98
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
99
|
-
readonly type: Schema.Literal<["
|
|
99
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
100
100
|
readonly title: typeof Schema.String;
|
|
101
101
|
readonly body: typeof Schema.String;
|
|
102
102
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -105,7 +105,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
105
105
|
readonly jsonCreate: Schema.Struct<{
|
|
106
106
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
107
107
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
108
|
-
readonly type: Schema.Literal<["
|
|
108
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
109
109
|
readonly title: typeof Schema.String;
|
|
110
110
|
readonly body: typeof Schema.String;
|
|
111
111
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -113,7 +113,7 @@ declare const Notification_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
113
113
|
readonly jsonUpdate: Schema.Struct<{
|
|
114
114
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
115
115
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
116
|
-
readonly type: Schema.Literal<["
|
|
116
|
+
readonly type: Schema.Literal<["age_group_added", "age_group_removed", "role_assigned", "role_removed"]>;
|
|
117
117
|
readonly title: typeof Schema.String;
|
|
118
118
|
readonly body: typeof Schema.String;
|
|
119
119
|
readonly is_read: typeof Schema.Boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/models/Notification.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,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/models/Notification.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,eAAO,MAAM,gBAAgB,2FAK5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5D,qBAAa,YAAa,SAAQ,iBAShC;CAAG"}
|
|
@@ -2,7 +2,7 @@ import { Model } from '@effect/sql';
|
|
|
2
2
|
import { Schema } from 'effect';
|
|
3
3
|
export declare const RoleId: Schema.brand<typeof Schema.String, "RoleId">;
|
|
4
4
|
export type RoleId = typeof RoleId.Type;
|
|
5
|
-
export declare const Permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
|
|
5
|
+
export declare const Permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage", "training-type:create", "training-type:delete"]>;
|
|
6
6
|
export type Permission = typeof Permission.Type;
|
|
7
7
|
export declare const allPermissions: ReadonlyArray<Permission>;
|
|
8
8
|
export declare const defaultPermissions: Record<string, ReadonlyArray<Permission>>;
|
|
@@ -87,14 +87,14 @@ export declare class Role extends Role_base {
|
|
|
87
87
|
}
|
|
88
88
|
declare const RolePermission_base: Schema.Class<RolePermission, {
|
|
89
89
|
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
90
|
-
permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
|
|
90
|
+
permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage", "training-type:create", "training-type:delete"]>;
|
|
91
91
|
}, Schema.Struct.Encoded<{
|
|
92
92
|
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
93
|
-
permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
|
|
93
|
+
permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage", "training-type:create", "training-type:delete"]>;
|
|
94
94
|
}>, never, {
|
|
95
95
|
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
96
96
|
} & {
|
|
97
|
-
readonly permission: "team:manage" | "team:invite" | "roster:view" | "roster:manage" | "member:view" | "member:edit" | "member:remove" | "role:view" | "role:manage";
|
|
97
|
+
readonly permission: "team:manage" | "team:invite" | "roster:view" | "roster:manage" | "member:view" | "member:edit" | "member:remove" | "role:view" | "role:manage" | "training-type:create" | "training-type:delete";
|
|
98
98
|
}, {}, {}>;
|
|
99
99
|
export declare class RolePermission extends RolePermission_base {
|
|
100
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/models/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/models/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,UAAU,2MAYtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,UAAU,CACH,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAgBxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,yCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExE,qBAAa,IAAK,SAAQ,SAMxB;CAAG;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAGlC;CAAG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
declare const RoleGroup_base: Schema.Class<RoleGroup, {
|
|
3
|
+
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
4
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
5
|
+
}, Schema.Struct.Encoded<{
|
|
6
|
+
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
7
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
8
|
+
}>, never, {
|
|
9
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
10
|
+
} & {
|
|
11
|
+
readonly group_id: string & import("effect/Brand").Brand<"GroupId">;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export declare class RoleGroup extends RoleGroup_base {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=RoleGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleGroup.d.ts","sourceRoot":"","sources":["../../../src/models/RoleGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;AAIhC,qBAAa,SAAU,SAAQ,cAG7B;CAAG"}
|
|
@@ -32,6 +32,8 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
32
32
|
readonly id: string & import("effect/Brand").Brand<"RoleSyncEventId">;
|
|
33
33
|
} & {
|
|
34
34
|
readonly created_at: import("effect/DateTime").Utc;
|
|
35
|
+
} & {
|
|
36
|
+
readonly guild_id: string;
|
|
35
37
|
} & {
|
|
36
38
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
37
39
|
} & {
|
|
@@ -40,16 +42,14 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
40
42
|
readonly error: string | null;
|
|
41
43
|
} & {
|
|
42
44
|
readonly team_member_id: (string & import("effect/Brand").Brand<"TeamMemberId">) | null;
|
|
43
|
-
} & {
|
|
44
|
-
readonly role_name: string | null;
|
|
45
45
|
} & {
|
|
46
46
|
readonly discord_user_id: string | null;
|
|
47
47
|
} & {
|
|
48
48
|
readonly processed_at: string | null;
|
|
49
|
-
} & {
|
|
50
|
-
readonly guild_id: string;
|
|
51
49
|
} & {
|
|
52
50
|
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
51
|
+
} & {
|
|
52
|
+
readonly role_name: string | null;
|
|
53
53
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
54
54
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleSyncEventId">>;
|
|
55
55
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
@@ -66,6 +66,8 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
66
66
|
readonly id: string & import("effect/Brand").Brand<"RoleSyncEventId">;
|
|
67
67
|
} & {
|
|
68
68
|
readonly created_at: import("effect/DateTime").Utc;
|
|
69
|
+
} & {
|
|
70
|
+
readonly guild_id: string;
|
|
69
71
|
} & {
|
|
70
72
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
71
73
|
} & {
|
|
@@ -74,16 +76,14 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
74
76
|
readonly error: string | null;
|
|
75
77
|
} & {
|
|
76
78
|
readonly team_member_id: (string & import("effect/Brand").Brand<"TeamMemberId">) | null;
|
|
77
|
-
} & {
|
|
78
|
-
readonly role_name: string | null;
|
|
79
79
|
} & {
|
|
80
80
|
readonly discord_user_id: string | null;
|
|
81
81
|
} & {
|
|
82
82
|
readonly processed_at: string | null;
|
|
83
|
-
} & {
|
|
84
|
-
readonly guild_id: string;
|
|
85
83
|
} & {
|
|
86
84
|
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
85
|
+
} & {
|
|
86
|
+
readonly role_name: string | null;
|
|
87
87
|
}> & {
|
|
88
88
|
readonly select: Schema.Struct<{
|
|
89
89
|
readonly id: Schema.brand<typeof Schema.String, "RoleSyncEventId">;
|
|
@@ -5,12 +5,14 @@ export type TeamId = typeof TeamId.Type;
|
|
|
5
5
|
declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team, {
|
|
6
6
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
|
|
7
7
|
readonly name: typeof Schema.String;
|
|
8
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
8
9
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
9
10
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
11
|
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
11
12
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
12
13
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
|
|
13
14
|
readonly name: typeof Schema.String;
|
|
15
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
14
16
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
15
17
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
16
18
|
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
@@ -22,11 +24,14 @@ declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team
|
|
|
22
24
|
readonly created_at: import("effect/DateTime").Utc;
|
|
23
25
|
} & {
|
|
24
26
|
readonly updated_at: import("effect/DateTime").Utc;
|
|
27
|
+
} & {
|
|
28
|
+
readonly guild_id: string & import("effect/Brand").Brand<"Snowflake">;
|
|
25
29
|
} & {
|
|
26
30
|
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
27
31
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
28
32
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
|
|
29
33
|
readonly name: typeof Schema.String;
|
|
34
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
30
35
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
31
36
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
32
37
|
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
@@ -38,18 +43,22 @@ declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team
|
|
|
38
43
|
readonly created_at: import("effect/DateTime").Utc;
|
|
39
44
|
} & {
|
|
40
45
|
readonly updated_at: import("effect/DateTime").Utc;
|
|
46
|
+
} & {
|
|
47
|
+
readonly guild_id: string & import("effect/Brand").Brand<"Snowflake">;
|
|
41
48
|
} & {
|
|
42
49
|
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
43
50
|
}> & {
|
|
44
51
|
readonly select: Schema.Struct<{
|
|
45
52
|
readonly id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
46
53
|
readonly name: typeof Schema.String;
|
|
54
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
47
55
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
48
56
|
readonly created_at: Model.DateTimeFromDate;
|
|
49
57
|
readonly updated_at: Model.DateTimeFromDate;
|
|
50
58
|
}>;
|
|
51
59
|
readonly insert: Schema.Struct<{
|
|
52
60
|
readonly name: typeof Schema.String;
|
|
61
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
53
62
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
54
63
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
55
64
|
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
@@ -57,22 +66,26 @@ declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team
|
|
|
57
66
|
readonly update: Schema.Struct<{
|
|
58
67
|
readonly id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
59
68
|
readonly name: typeof Schema.String;
|
|
69
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
60
70
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
61
71
|
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
62
72
|
}>;
|
|
63
73
|
readonly json: Schema.Struct<{
|
|
64
74
|
readonly id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
65
75
|
readonly name: typeof Schema.String;
|
|
76
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
66
77
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
67
78
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
68
79
|
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
69
80
|
}>;
|
|
70
81
|
readonly jsonCreate: Schema.Struct<{
|
|
71
82
|
readonly name: typeof Schema.String;
|
|
83
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
72
84
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
73
85
|
}>;
|
|
74
86
|
readonly jsonUpdate: Schema.Struct<{
|
|
75
87
|
readonly name: typeof Schema.String;
|
|
88
|
+
readonly guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
76
89
|
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
77
90
|
}>;
|
|
78
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Team.d.ts","sourceRoot":"","sources":["../../../src/models/Team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Team.d.ts","sourceRoot":"","sources":["../../../src/models/Team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAOxB;CAAG"}
|
|
@@ -7,17 +7,33 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
7
7
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
8
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
9
9
|
readonly active: typeof Schema.Boolean;
|
|
10
|
+
readonly jersey_number: import("@effect/experimental/VariantSchema").Field<{
|
|
11
|
+
readonly select: Schema.NullOr<typeof Schema.Number>;
|
|
12
|
+
readonly update: Schema.NullOr<typeof Schema.Number>;
|
|
13
|
+
readonly json: Schema.NullOr<typeof Schema.Number>;
|
|
14
|
+
readonly jsonCreate: Schema.NullOr<typeof Schema.Number>;
|
|
15
|
+
readonly jsonUpdate: Schema.NullOr<typeof Schema.Number>;
|
|
16
|
+
}>;
|
|
10
17
|
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
11
18
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
12
19
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
13
20
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
14
21
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
15
22
|
readonly active: typeof Schema.Boolean;
|
|
23
|
+
readonly jersey_number: import("@effect/experimental/VariantSchema").Field<{
|
|
24
|
+
readonly select: Schema.NullOr<typeof Schema.Number>;
|
|
25
|
+
readonly update: Schema.NullOr<typeof Schema.Number>;
|
|
26
|
+
readonly json: Schema.NullOr<typeof Schema.Number>;
|
|
27
|
+
readonly jsonCreate: Schema.NullOr<typeof Schema.Number>;
|
|
28
|
+
readonly jsonUpdate: Schema.NullOr<typeof Schema.Number>;
|
|
29
|
+
}>;
|
|
16
30
|
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
17
31
|
}, true>, {
|
|
18
32
|
readonly id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
19
33
|
} & {
|
|
20
34
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
35
|
+
} & {
|
|
36
|
+
readonly jersey_number: number | null;
|
|
21
37
|
} & {
|
|
22
38
|
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
23
39
|
} & {
|
|
@@ -29,11 +45,20 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
29
45
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
30
46
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
31
47
|
readonly active: typeof Schema.Boolean;
|
|
48
|
+
readonly jersey_number: import("@effect/experimental/VariantSchema").Field<{
|
|
49
|
+
readonly select: Schema.NullOr<typeof Schema.Number>;
|
|
50
|
+
readonly update: Schema.NullOr<typeof Schema.Number>;
|
|
51
|
+
readonly json: Schema.NullOr<typeof Schema.Number>;
|
|
52
|
+
readonly jsonCreate: Schema.NullOr<typeof Schema.Number>;
|
|
53
|
+
readonly jsonUpdate: Schema.NullOr<typeof Schema.Number>;
|
|
54
|
+
}>;
|
|
32
55
|
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
33
56
|
}, true>>, never, {
|
|
34
57
|
readonly id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
35
58
|
} & {
|
|
36
59
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
60
|
+
} & {
|
|
61
|
+
readonly jersey_number: number | null;
|
|
37
62
|
} & {
|
|
38
63
|
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
39
64
|
} & {
|
|
@@ -46,6 +71,7 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
46
71
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
47
72
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
48
73
|
readonly active: typeof Schema.Boolean;
|
|
74
|
+
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
49
75
|
readonly joined_at: Model.DateTimeFromDate;
|
|
50
76
|
}>;
|
|
51
77
|
readonly insert: Schema.Struct<{
|
|
@@ -59,23 +85,27 @@ declare const TeamMember_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
59
85
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
60
86
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
61
87
|
readonly active: typeof Schema.Boolean;
|
|
88
|
+
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
62
89
|
}>;
|
|
63
90
|
readonly json: Schema.Struct<{
|
|
64
91
|
readonly id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
65
92
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
66
93
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
67
94
|
readonly active: typeof Schema.Boolean;
|
|
95
|
+
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
68
96
|
readonly joined_at: typeof Schema.DateTimeUtc;
|
|
69
97
|
}>;
|
|
70
98
|
readonly jsonCreate: Schema.Struct<{
|
|
71
99
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
72
100
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
73
101
|
readonly active: typeof Schema.Boolean;
|
|
102
|
+
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
74
103
|
}>;
|
|
75
104
|
readonly jsonUpdate: Schema.Struct<{
|
|
76
105
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
77
106
|
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
78
107
|
readonly active: typeof Schema.Boolean;
|
|
108
|
+
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
79
109
|
}>;
|
|
80
110
|
};
|
|
81
111
|
export declare class TeamMember extends TeamMember_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamMember.d.ts","sourceRoot":"","sources":["../../../src/models/TeamMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,YAAY,oDAAmD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"TeamMember.d.ts","sourceRoot":"","sources":["../../../src/models/TeamMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,YAAY,oDAAmD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,qBAAa,UAAW,SAAQ,eAO9B;CAAG"}
|
|
@@ -1,71 +1,84 @@
|
|
|
1
1
|
import { Model } from '@effect/sql';
|
|
2
2
|
import { Schema } from 'effect';
|
|
3
|
-
export declare const
|
|
4
|
-
export type
|
|
5
|
-
declare const
|
|
6
|
-
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "
|
|
3
|
+
export declare const TrainingTypeId: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
4
|
+
export type TrainingTypeId = typeof TrainingTypeId.Type;
|
|
5
|
+
declare const TrainingType_base: import("@effect/experimental/VariantSchema").Class<TrainingType, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
7
7
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
8
|
readonly name: typeof Schema.String;
|
|
9
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
9
10
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
11
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
11
|
-
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "
|
|
12
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
12
13
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
13
14
|
readonly name: typeof Schema.String;
|
|
15
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
14
16
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
15
17
|
}, true>, {
|
|
16
18
|
readonly name: string;
|
|
17
19
|
} & {
|
|
18
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
20
|
+
readonly id: string & import("effect/Brand").Brand<"TrainingTypeId">;
|
|
19
21
|
} & {
|
|
20
22
|
readonly created_at: import("effect/DateTime").Utc;
|
|
21
23
|
} & {
|
|
22
24
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
25
|
+
} & {
|
|
26
|
+
readonly group_id: (string & import("effect/Brand").Brand<"GroupId">) | null;
|
|
23
27
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
24
|
-
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "
|
|
28
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
25
29
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
26
30
|
readonly name: typeof Schema.String;
|
|
31
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
27
32
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
28
33
|
}, true>>, never, {
|
|
29
34
|
readonly name: string;
|
|
30
35
|
} & {
|
|
31
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
36
|
+
readonly id: string & import("effect/Brand").Brand<"TrainingTypeId">;
|
|
32
37
|
} & {
|
|
33
38
|
readonly created_at: import("effect/DateTime").Utc;
|
|
34
39
|
} & {
|
|
35
40
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
41
|
+
} & {
|
|
42
|
+
readonly group_id: (string & import("effect/Brand").Brand<"GroupId">) | null;
|
|
36
43
|
}> & {
|
|
37
44
|
readonly select: Schema.Struct<{
|
|
38
|
-
readonly id: Schema.brand<typeof Schema.String, "
|
|
45
|
+
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
39
46
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
40
47
|
readonly name: typeof Schema.String;
|
|
48
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
41
49
|
readonly created_at: Model.DateTimeFromDate;
|
|
42
50
|
}>;
|
|
43
51
|
readonly insert: Schema.Struct<{
|
|
44
52
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
45
53
|
readonly name: typeof Schema.String;
|
|
54
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
46
55
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
47
56
|
}>;
|
|
48
57
|
readonly update: Schema.Struct<{
|
|
49
|
-
readonly id: Schema.brand<typeof Schema.String, "
|
|
58
|
+
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
50
59
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
51
60
|
readonly name: typeof Schema.String;
|
|
61
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
52
62
|
}>;
|
|
53
63
|
readonly json: Schema.Struct<{
|
|
54
|
-
readonly id: Schema.brand<typeof Schema.String, "
|
|
64
|
+
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
55
65
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
56
66
|
readonly name: typeof Schema.String;
|
|
67
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
57
68
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
58
69
|
}>;
|
|
59
70
|
readonly jsonCreate: Schema.Struct<{
|
|
60
71
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
61
72
|
readonly name: typeof Schema.String;
|
|
73
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
62
74
|
}>;
|
|
63
75
|
readonly jsonUpdate: Schema.Struct<{
|
|
64
76
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
65
77
|
readonly name: typeof Schema.String;
|
|
78
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
66
79
|
}>;
|
|
67
80
|
};
|
|
68
|
-
export declare class
|
|
81
|
+
export declare class TrainingType extends TrainingType_base {
|
|
69
82
|
}
|
|
70
83
|
export {};
|
|
71
|
-
//# sourceMappingURL=
|
|
84
|
+
//# sourceMappingURL=TrainingType.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,qBAAa,YAAa,SAAQ,iBAMhC;CAAG"}
|