@sideline/domain 0.4.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 +14 -14
- package/dist/cjs/api/AgeThresholdApi.js.map +1 -1
- package/dist/cjs/api/Auth.js +14 -2
- 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/TrainingTypeApi.js +9 -40
- package/dist/cjs/api/TrainingTypeApi.js.map +1 -1
- package/dist/cjs/index.js +9 -5
- package/dist/cjs/models/AgeThresholdRule.js +2 -2
- package/dist/cjs/models/AgeThresholdRule.js.map +1 -1
- package/dist/cjs/models/ChannelSyncEvent.js +3 -3
- package/dist/cjs/models/ChannelSyncEvent.js.map +1 -1
- package/dist/cjs/models/DiscordChannelMapping.js +2 -2
- package/dist/cjs/models/DiscordChannelMapping.js.map +1 -1
- package/dist/cjs/models/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/TrainingType.js +2 -0
- 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/channel/ChannelRpcEvents.js +6 -6
- package/dist/cjs/rpc/channel/ChannelRpcEvents.js.map +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcGroup.js +3 -3
- package/dist/cjs/rpc/channel/ChannelRpcGroup.js.map +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcModels.js +1 -1
- package/dist/cjs/rpc/channel/ChannelRpcModels.js.map +1 -1
- package/dist/cjs/rpc/guild/GuildRpcGroup.js +35 -0
- package/dist/cjs/rpc/guild/GuildRpcGroup.js.map +1 -0
- package/dist/dts/api/AgeThresholdApi.d.ts +25 -25
- package/dist/dts/api/AgeThresholdApi.d.ts.map +1 -1
- package/dist/dts/api/Auth.d.ts +33 -4
- 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 +5 -5
- package/dist/dts/api/TrainingTypeApi.d.ts +17 -42
- package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -1
- package/dist/dts/index.d.ts +4 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/AgeThresholdRule.d.ts +13 -13
- package/dist/dts/models/ChannelSyncEvent.d.ts +28 -28
- package/dist/dts/models/DiscordChannelMapping.d.ts +11 -11
- package/dist/dts/models/{SubgroupModel.d.ts → GroupModel.d.ts} +39 -13
- 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 +4 -4
- package/dist/dts/models/Team.d.ts +13 -0
- package/dist/dts/models/Team.d.ts.map +1 -1
- package/dist/dts/models/TrainingType.d.ts +13 -0
- package/dist/dts/models/TrainingType.d.ts.map +1 -1
- package/dist/dts/rpc/SyncRpcs.d.ts +18 -3
- package/dist/dts/rpc/SyncRpcs.d.ts.map +1 -1
- package/dist/dts/rpc/channel/ChannelRpcEvents.d.ts +6 -6
- package/dist/dts/rpc/channel/ChannelRpcGroup.d.ts +3 -3
- package/dist/dts/rpc/channel/ChannelRpcModels.d.ts +3 -3
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts +19 -0
- package/dist/dts/rpc/guild/GuildRpcGroup.d.ts.map +1 -0
- package/dist/esm/api/AgeThresholdApi.js +11 -11
- package/dist/esm/api/AgeThresholdApi.js.map +1 -1
- package/dist/esm/api/Auth.js +12 -1
- 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/TrainingTypeApi.js +8 -37
- package/dist/esm/api/TrainingTypeApi.js.map +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/AgeThresholdRule.js +2 -2
- package/dist/esm/models/AgeThresholdRule.js.map +1 -1
- package/dist/esm/models/ChannelSyncEvent.js +3 -3
- package/dist/esm/models/ChannelSyncEvent.js.map +1 -1
- package/dist/esm/models/DiscordChannelMapping.js +2 -2
- package/dist/esm/models/DiscordChannelMapping.js.map +1 -1
- package/dist/esm/models/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/TrainingType.js +2 -0
- 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/channel/ChannelRpcEvents.js +7 -7
- package/dist/esm/rpc/channel/ChannelRpcEvents.js.map +1 -1
- package/dist/esm/rpc/channel/ChannelRpcGroup.js +4 -4
- package/dist/esm/rpc/channel/ChannelRpcGroup.js.map +1 -1
- package/dist/esm/rpc/channel/ChannelRpcModels.js +2 -2
- package/dist/esm/rpc/channel/ChannelRpcModels.js.map +1 -1
- package/dist/esm/rpc/guild/GuildRpcGroup.js +29 -0
- package/dist/esm/rpc/guild/GuildRpcGroup.js.map +1 -0
- package/package.json +1 -1
- package/src/api/AgeThresholdApi.ts +12 -12
- package/src/api/Auth.ts +16 -0
- package/src/api/GroupApi.ts +229 -0
- package/src/api/NotificationApi.ts +10 -0
- package/src/api/TrainingTypeApi.ts +5 -52
- package/src/index.ts +7 -4
- package/src/models/AgeThresholdRule.ts +2 -2
- package/src/models/ChannelSyncEvent.ts +3 -3
- package/src/models/DiscordChannelMapping.ts +2 -2
- 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/TrainingType.ts +2 -0
- package/src/rpc/SyncRpcs.ts +2 -1
- package/src/rpc/channel/ChannelRpcEvents.ts +7 -7
- package/src/rpc/channel/ChannelRpcGroup.ts +4 -4
- package/src/rpc/channel/ChannelRpcModels.ts +2 -2
- package/src/rpc/guild/GuildRpcGroup.ts +29 -0
- package/dist/cjs/api/SubgroupApi.js +0 -122
- package/dist/cjs/api/SubgroupApi.js.map +0 -1
- package/dist/cjs/models/SubgroupModel.js +0 -18
- package/dist/cjs/models/SubgroupModel.js.map +0 -1
- package/dist/dts/api/SubgroupApi.d.ts +0 -140
- package/dist/dts/api/SubgroupApi.d.ts.map +0 -1
- package/dist/dts/models/SubgroupModel.d.ts.map +0 -1
- package/dist/esm/api/SubgroupApi.js +0 -106
- package/dist/esm/api/SubgroupApi.js.map +0 -1
- package/dist/esm/models/SubgroupModel.js +0 -11
- package/dist/esm/models/SubgroupModel.js.map +0 -1
- package/src/api/SubgroupApi.ts +0 -146
- package/src/models/SubgroupModel.ts +0 -13
|
@@ -1,71 +1,97 @@
|
|
|
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 GroupId: Schema.brand<typeof Schema.String, "GroupId">;
|
|
4
|
+
export type GroupId = typeof GroupId.Type;
|
|
5
|
+
declare const Group_base: import("@effect/experimental/VariantSchema").Class<Group, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
7
7
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
8
9
|
readonly name: typeof Schema.String;
|
|
10
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
9
11
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
12
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
11
|
-
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "
|
|
13
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
12
14
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
15
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
13
16
|
readonly name: typeof Schema.String;
|
|
17
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
14
18
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
15
19
|
}, true>, {
|
|
16
20
|
readonly name: string;
|
|
17
21
|
} & {
|
|
18
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
22
|
+
readonly id: string & import("effect/Brand").Brand<"GroupId">;
|
|
19
23
|
} & {
|
|
20
24
|
readonly created_at: import("effect/DateTime").Utc;
|
|
21
25
|
} & {
|
|
22
26
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
27
|
+
} & {
|
|
28
|
+
readonly parent_id: (string & import("effect/Brand").Brand<"GroupId">) | null;
|
|
29
|
+
} & {
|
|
30
|
+
readonly emoji: string | null;
|
|
23
31
|
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
24
|
-
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "
|
|
32
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
25
33
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
34
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
26
35
|
readonly name: typeof Schema.String;
|
|
36
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
27
37
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
28
38
|
}, true>>, never, {
|
|
29
39
|
readonly name: string;
|
|
30
40
|
} & {
|
|
31
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
41
|
+
readonly id: string & import("effect/Brand").Brand<"GroupId">;
|
|
32
42
|
} & {
|
|
33
43
|
readonly created_at: import("effect/DateTime").Utc;
|
|
34
44
|
} & {
|
|
35
45
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
46
|
+
} & {
|
|
47
|
+
readonly parent_id: (string & import("effect/Brand").Brand<"GroupId">) | null;
|
|
48
|
+
} & {
|
|
49
|
+
readonly emoji: string | null;
|
|
36
50
|
}> & {
|
|
37
51
|
readonly select: Schema.Struct<{
|
|
38
|
-
readonly id: Schema.brand<typeof Schema.String, "
|
|
52
|
+
readonly id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
39
53
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
54
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
40
55
|
readonly name: typeof Schema.String;
|
|
56
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
41
57
|
readonly created_at: Model.DateTimeFromDate;
|
|
42
58
|
}>;
|
|
43
59
|
readonly insert: Schema.Struct<{
|
|
44
60
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
61
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
45
62
|
readonly name: typeof Schema.String;
|
|
63
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
46
64
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
47
65
|
}>;
|
|
48
66
|
readonly update: Schema.Struct<{
|
|
49
|
-
readonly id: Schema.brand<typeof Schema.String, "
|
|
67
|
+
readonly id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
50
68
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
69
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
51
70
|
readonly name: typeof Schema.String;
|
|
71
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
52
72
|
}>;
|
|
53
73
|
readonly json: Schema.Struct<{
|
|
54
|
-
readonly id: Schema.brand<typeof Schema.String, "
|
|
74
|
+
readonly id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
55
75
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
76
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
56
77
|
readonly name: typeof Schema.String;
|
|
78
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
57
79
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
58
80
|
}>;
|
|
59
81
|
readonly jsonCreate: Schema.Struct<{
|
|
60
82
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
83
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
61
84
|
readonly name: typeof Schema.String;
|
|
85
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
62
86
|
}>;
|
|
63
87
|
readonly jsonUpdate: Schema.Struct<{
|
|
64
88
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
89
|
+
readonly parent_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
65
90
|
readonly name: typeof Schema.String;
|
|
91
|
+
readonly emoji: Schema.NullOr<typeof Schema.String>;
|
|
66
92
|
}>;
|
|
67
93
|
};
|
|
68
|
-
export declare class
|
|
94
|
+
export declare class Group extends Group_base {
|
|
69
95
|
}
|
|
70
96
|
export {};
|
|
71
|
-
//# sourceMappingURL=
|
|
97
|
+
//# sourceMappingURL=GroupModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupModel.d.ts","sourceRoot":"","sources":["../../../src/models/GroupModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,OAAO,+CAA8C,CAAC;AACnE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1C,qBAAa,KAAM,SAAQ,UAOzB;CAAG"}
|
|
@@ -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
|
} & {
|
|
@@ -44,8 +46,6 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
44
46
|
readonly discord_user_id: string | null;
|
|
45
47
|
} & {
|
|
46
48
|
readonly processed_at: string | null;
|
|
47
|
-
} & {
|
|
48
|
-
readonly guild_id: string;
|
|
49
49
|
} & {
|
|
50
50
|
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
51
51
|
} & {
|
|
@@ -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
|
} & {
|
|
@@ -78,8 +80,6 @@ declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").C
|
|
|
78
80
|
readonly discord_user_id: string | null;
|
|
79
81
|
} & {
|
|
80
82
|
readonly processed_at: string | null;
|
|
81
|
-
} & {
|
|
82
|
-
readonly guild_id: string;
|
|
83
83
|
} & {
|
|
84
84
|
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
85
85
|
} & {
|
|
@@ -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"}
|
|
@@ -6,11 +6,13 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
6
6
|
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
7
7
|
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
8
|
readonly name: typeof Schema.String;
|
|
9
|
+
readonly group_id: Schema.NullOr<Schema.brand<typeof Schema.String, "GroupId">>;
|
|
9
10
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
11
|
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
11
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;
|
|
@@ -20,10 +22,13 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
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
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;
|
|
@@ -33,36 +38,44 @@ declare const TrainingType_base: import("@effect/experimental/VariantSchema").Cl
|
|
|
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
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
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
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
81
|
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;
|
|
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"}
|
|
@@ -8,15 +8,30 @@ declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Ch
|
|
|
8
8
|
error: typeof import("effect/Schema").String;
|
|
9
9
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/GetMapping", import("effect/Schema").Struct<{
|
|
10
10
|
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
11
|
-
|
|
11
|
+
group_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "GroupId">;
|
|
12
12
|
}>, import("effect/Schema").OptionFromNullOr<typeof import("./channel/ChannelRpcModels.js").ChannelMapping>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/UpsertMapping", import("effect/Schema").Struct<{
|
|
13
13
|
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
14
|
-
|
|
14
|
+
group_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "GroupId">;
|
|
15
15
|
discord_channel_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
16
16
|
discord_role_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
17
17
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/DeleteMapping", import("effect/Schema").Struct<{
|
|
18
18
|
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
19
|
-
|
|
19
|
+
group_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "GroupId">;
|
|
20
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/RegisterGuild", import("effect/Schema").Struct<{
|
|
21
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
22
|
+
guild_name: typeof import("effect/Schema").String;
|
|
23
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/UnregisterGuild", import("effect/Schema").Struct<{
|
|
24
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
25
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/IsGuildRegistered", import("effect/Schema").Struct<{
|
|
26
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
27
|
+
}>, typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Guild/SyncGuildChannels", import("effect/Schema").Struct<{
|
|
28
|
+
guild_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
29
|
+
channels: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
30
|
+
channel_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
31
|
+
name: typeof import("effect/Schema").String;
|
|
32
|
+
type: typeof import("effect/Schema").Number;
|
|
33
|
+
parent_id: import("effect/Schema").NullOr<import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">>;
|
|
34
|
+
}>>;
|
|
20
35
|
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/GetUnprocessedEvents", import("effect/Schema").Struct<{
|
|
21
36
|
limit: typeof import("effect/Schema").Number;
|
|
22
37
|
}>, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("./role/RoleRpcEvents.js").RoleCreatedEvent, typeof import("./role/RoleRpcEvents.js").RoleDeletedEvent, typeof import("./role/RoleRpcEvents.js").RoleAssignedEvent, typeof import("./role/RoleRpcEvents.js").RoleUnassignedEvent]>>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/MarkEventProcessed", import("effect/Schema").Struct<{
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKvC,qBAAa,QAAS,SAAQ,aAAmE;CAAG"}
|
|
@@ -5,8 +5,8 @@ declare const ChannelCreatedEvent_base: Schema.TaggedClass<ChannelCreatedEvent,
|
|
|
5
5
|
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
6
6
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
7
7
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
9
|
+
group_name: typeof Schema.String;
|
|
10
10
|
}>;
|
|
11
11
|
export declare class ChannelCreatedEvent extends ChannelCreatedEvent_base {
|
|
12
12
|
}
|
|
@@ -16,7 +16,7 @@ declare const ChannelDeletedEvent_base: Schema.TaggedClass<ChannelDeletedEvent,
|
|
|
16
16
|
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
17
17
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
18
18
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
19
|
-
|
|
19
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
20
20
|
}>;
|
|
21
21
|
export declare class ChannelDeletedEvent extends ChannelDeletedEvent_base {
|
|
22
22
|
}
|
|
@@ -26,8 +26,8 @@ declare const ChannelMemberAddedEvent_base: Schema.TaggedClass<ChannelMemberAdde
|
|
|
26
26
|
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
27
27
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
28
28
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
30
|
+
group_name: typeof Schema.String;
|
|
31
31
|
team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
32
32
|
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
33
33
|
}>;
|
|
@@ -39,7 +39,7 @@ declare const ChannelMemberRemovedEvent_base: Schema.TaggedClass<ChannelMemberRe
|
|
|
39
39
|
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
40
40
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
41
41
|
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
42
|
-
|
|
42
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
43
43
|
team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
44
44
|
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
45
45
|
}>;
|
|
@@ -10,14 +10,14 @@ export declare const ChannelRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Channel/GetUnpr
|
|
|
10
10
|
error: typeof Schema.String;
|
|
11
11
|
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Channel/GetMapping", Schema.Struct<{
|
|
12
12
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
13
|
-
|
|
13
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
14
14
|
}>, Schema.OptionFromNullOr<typeof ChannelMapping>, typeof Schema.Never, never> | Rpc.Rpc<"Channel/UpsertMapping", Schema.Struct<{
|
|
15
15
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
16
|
-
|
|
16
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
17
17
|
discord_channel_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
18
18
|
discord_role_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
19
19
|
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Channel/DeleteMapping", Schema.Struct<{
|
|
20
20
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
21
|
-
|
|
21
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
22
22
|
}>, typeof Schema.Void, typeof Schema.Never, never>>;
|
|
23
23
|
//# sourceMappingURL=ChannelRpcGroup.d.ts.map
|
|
@@ -2,13 +2,13 @@ import { Schema } from 'effect';
|
|
|
2
2
|
declare const ChannelMapping_base: Schema.Class<ChannelMapping, {
|
|
3
3
|
id: Schema.brand<typeof Schema.String, "DiscordChannelMappingId">;
|
|
4
4
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
5
|
-
|
|
5
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
6
6
|
discord_channel_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
7
7
|
discord_role_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
8
8
|
}, Schema.Struct.Encoded<{
|
|
9
9
|
id: Schema.brand<typeof Schema.String, "DiscordChannelMappingId">;
|
|
10
10
|
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
11
|
-
|
|
11
|
+
group_id: Schema.brand<typeof Schema.String, "GroupId">;
|
|
12
12
|
discord_channel_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
13
13
|
discord_role_id: Schema.OptionFromNullOr<Schema.brand<typeof Schema.String, "Snowflake">>;
|
|
14
14
|
}>, never, {
|
|
@@ -16,7 +16,7 @@ declare const ChannelMapping_base: Schema.Class<ChannelMapping, {
|
|
|
16
16
|
} & {
|
|
17
17
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
18
18
|
} & {
|
|
19
|
-
readonly
|
|
19
|
+
readonly group_id: string & import("effect/Brand").Brand<"GroupId">;
|
|
20
20
|
} & {
|
|
21
21
|
readonly discord_role_id: import("effect/Option").Option<string & import("effect/Brand").Brand<"Snowflake">>;
|
|
22
22
|
} & {
|