@sideline/domain 0.2.0 → 0.4.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 +6 -6
- package/dist/cjs/api/AgeThresholdApi.js.map +1 -1
- package/dist/cjs/api/Auth.js +2 -13
- package/dist/cjs/api/Auth.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 +115 -0
- package/dist/cjs/api/TrainingTypeApi.js.map +1 -0
- package/dist/cjs/index.js +29 -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/DiscordRoleMapping.js +20 -0
- package/dist/cjs/models/DiscordRoleMapping.js.map +1 -0
- package/dist/cjs/models/RoleSyncEvent.js +28 -0
- package/dist/cjs/models/RoleSyncEvent.js.map +1 -0
- package/dist/cjs/models/TeamMember.js +1 -0
- package/dist/cjs/models/TeamMember.js.map +1 -1
- package/dist/cjs/models/TrainingType.js +18 -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 +12 -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/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 +18 -18
- package/dist/dts/api/Auth.d.ts +0 -40
- package/dist/dts/api/Auth.d.ts.map +1 -1
- package/dist/dts/api/Roster.d.ts +2 -18
- package/dist/dts/api/Roster.d.ts.map +1 -1
- package/dist/dts/api/TrainingTypeApi.d.ts +141 -0
- package/dist/dts/api/TrainingTypeApi.d.ts.map +1 -0
- package/dist/dts/index.d.ts +14 -0
- package/dist/dts/index.d.ts.map +1 -1
- 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/DiscordRoleMapping.d.ts +84 -0
- package/dist/dts/models/DiscordRoleMapping.d.ts.map +1 -0
- package/dist/dts/models/RoleSyncEvent.d.ts +164 -0
- package/dist/dts/models/RoleSyncEvent.d.ts.map +1 -0
- package/dist/dts/models/TeamMember.d.ts +30 -0
- package/dist/dts/models/TeamMember.d.ts.map +1 -1
- package/dist/dts/models/TrainingType.d.ts +71 -0
- 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 +41 -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/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 +6 -6
- package/dist/esm/api/AgeThresholdApi.js.map +1 -1
- package/dist/esm/api/Auth.js +3 -14
- package/dist/esm/api/Auth.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 +99 -0
- package/dist/esm/api/TrainingTypeApi.js.map +1 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.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/DiscordRoleMapping.js +13 -0
- package/dist/esm/models/DiscordRoleMapping.js.map +1 -0
- package/dist/esm/models/RoleSyncEvent.js +21 -0
- package/dist/esm/models/RoleSyncEvent.js.map +1 -0
- package/dist/esm/models/TeamMember.js +1 -0
- package/dist/esm/models/TeamMember.js.map +1 -1
- package/dist/esm/models/TrainingType.js +11 -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 +5 -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/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 +2 -1
- package/src/api/AgeThresholdApi.ts +6 -6
- package/src/api/Auth.ts +1 -12
- package/src/api/Roster.ts +1 -5
- package/src/api/TrainingTypeApi.ts +143 -0
- package/src/index.ts +21 -0
- package/src/models/ChannelSyncEvent.ts +30 -0
- package/src/models/Discord.ts +4 -0
- package/src/models/DiscordChannelMapping.ts +18 -0
- package/src/models/DiscordRoleMapping.ts +15 -0
- package/src/models/RoleSyncEvent.ts +30 -0
- package/src/models/TeamMember.ts +1 -0
- package/src/models/TrainingType.ts +13 -0
- package/src/models/User.ts +0 -9
- package/src/rpc/SyncRpcs.ts +5 -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/role/RoleRpcEvents.ts +48 -0
- package/src/rpc/role/RoleRpcGroup.ts +33 -0
- package/src/rpc/role/RoleRpcModels.ts +9 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const RoleSyncEventId: Schema.brand<typeof Schema.String, "RoleSyncEventId">;
|
|
4
|
+
export type RoleSyncEventId = typeof RoleSyncEventId.Type;
|
|
5
|
+
export declare const RoleSyncEventType: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
6
|
+
export type RoleSyncEventType = typeof RoleSyncEventType.Type;
|
|
7
|
+
declare const RoleSyncEvent_base: import("@effect/experimental/VariantSchema").Class<RoleSyncEvent, {
|
|
8
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleSyncEventId">>;
|
|
9
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
10
|
+
readonly guild_id: typeof Schema.String;
|
|
11
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
12
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
13
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
14
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
15
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
16
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
17
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
18
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
19
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
20
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleSyncEventId">>;
|
|
21
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
22
|
+
readonly guild_id: typeof Schema.String;
|
|
23
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
24
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
25
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
26
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
27
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
28
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
29
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
30
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
31
|
+
}, true>, {
|
|
32
|
+
readonly id: string & import("effect/Brand").Brand<"RoleSyncEventId">;
|
|
33
|
+
} & {
|
|
34
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
35
|
+
} & {
|
|
36
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
37
|
+
} & {
|
|
38
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
39
|
+
} & {
|
|
40
|
+
readonly error: string | null;
|
|
41
|
+
} & {
|
|
42
|
+
readonly team_member_id: (string & import("effect/Brand").Brand<"TeamMemberId">) | null;
|
|
43
|
+
} & {
|
|
44
|
+
readonly discord_user_id: string | null;
|
|
45
|
+
} & {
|
|
46
|
+
readonly processed_at: string | null;
|
|
47
|
+
} & {
|
|
48
|
+
readonly guild_id: string;
|
|
49
|
+
} & {
|
|
50
|
+
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
51
|
+
} & {
|
|
52
|
+
readonly role_name: string | null;
|
|
53
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
54
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleSyncEventId">>;
|
|
55
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
56
|
+
readonly guild_id: typeof Schema.String;
|
|
57
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
58
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
59
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
60
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
61
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
62
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
63
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
64
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
65
|
+
}, true>>, never, {
|
|
66
|
+
readonly id: string & import("effect/Brand").Brand<"RoleSyncEventId">;
|
|
67
|
+
} & {
|
|
68
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
69
|
+
} & {
|
|
70
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
71
|
+
} & {
|
|
72
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
73
|
+
} & {
|
|
74
|
+
readonly error: string | null;
|
|
75
|
+
} & {
|
|
76
|
+
readonly team_member_id: (string & import("effect/Brand").Brand<"TeamMemberId">) | null;
|
|
77
|
+
} & {
|
|
78
|
+
readonly discord_user_id: string | null;
|
|
79
|
+
} & {
|
|
80
|
+
readonly processed_at: string | null;
|
|
81
|
+
} & {
|
|
82
|
+
readonly guild_id: string;
|
|
83
|
+
} & {
|
|
84
|
+
readonly event_type: "role_assigned" | "role_unassigned" | "role_created" | "role_deleted";
|
|
85
|
+
} & {
|
|
86
|
+
readonly role_name: string | null;
|
|
87
|
+
}> & {
|
|
88
|
+
readonly select: Schema.Struct<{
|
|
89
|
+
readonly id: Schema.brand<typeof Schema.String, "RoleSyncEventId">;
|
|
90
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
91
|
+
readonly guild_id: typeof Schema.String;
|
|
92
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
93
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
94
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
95
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
96
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
97
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
98
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
99
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
100
|
+
}>;
|
|
101
|
+
readonly insert: Schema.Struct<{
|
|
102
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
103
|
+
readonly guild_id: typeof Schema.String;
|
|
104
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
105
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
106
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
107
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
108
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
109
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
110
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
111
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
112
|
+
}>;
|
|
113
|
+
readonly update: Schema.Struct<{
|
|
114
|
+
readonly id: Schema.brand<typeof Schema.String, "RoleSyncEventId">;
|
|
115
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
116
|
+
readonly guild_id: typeof Schema.String;
|
|
117
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
118
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
119
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
120
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
121
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
122
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
123
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
124
|
+
}>;
|
|
125
|
+
readonly json: Schema.Struct<{
|
|
126
|
+
readonly id: Schema.brand<typeof Schema.String, "RoleSyncEventId">;
|
|
127
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
128
|
+
readonly guild_id: typeof Schema.String;
|
|
129
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
130
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
131
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
132
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
133
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
134
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
135
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
136
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
137
|
+
}>;
|
|
138
|
+
readonly jsonCreate: Schema.Struct<{
|
|
139
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
140
|
+
readonly guild_id: typeof Schema.String;
|
|
141
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
142
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
143
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
144
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
145
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
146
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
147
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
148
|
+
}>;
|
|
149
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
150
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
151
|
+
readonly guild_id: typeof Schema.String;
|
|
152
|
+
readonly event_type: Schema.Literal<["role_assigned", "role_unassigned", "role_created", "role_deleted"]>;
|
|
153
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
154
|
+
readonly role_name: Schema.NullOr<typeof Schema.String>;
|
|
155
|
+
readonly team_member_id: Schema.NullOr<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
156
|
+
readonly discord_user_id: Schema.NullOr<typeof Schema.String>;
|
|
157
|
+
readonly processed_at: Schema.NullOr<typeof Schema.String>;
|
|
158
|
+
readonly error: Schema.NullOr<typeof Schema.String>;
|
|
159
|
+
}>;
|
|
160
|
+
};
|
|
161
|
+
export declare class RoleSyncEvent extends RoleSyncEvent_base {
|
|
162
|
+
}
|
|
163
|
+
export {};
|
|
164
|
+
//# sourceMappingURL=RoleSyncEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleSyncEvent.d.ts","sourceRoot":"","sources":["../../../src/models/RoleSyncEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,eAAO,MAAM,eAAe,uDAAsD,CAAC;AACnF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAE1D,eAAO,MAAM,iBAAiB,sFAK7B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,qBAAa,aAAc,SAAQ,kBAYjC;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"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
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
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
|
+
readonly name: typeof Schema.String;
|
|
9
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
11
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
12
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
13
|
+
readonly name: typeof Schema.String;
|
|
14
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
15
|
+
}, true>, {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
} & {
|
|
18
|
+
readonly id: string & import("effect/Brand").Brand<"TrainingTypeId">;
|
|
19
|
+
} & {
|
|
20
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
21
|
+
} & {
|
|
22
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
23
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
24
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TrainingTypeId">>;
|
|
25
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
26
|
+
readonly name: typeof Schema.String;
|
|
27
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
28
|
+
}, true>>, never, {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
} & {
|
|
31
|
+
readonly id: string & import("effect/Brand").Brand<"TrainingTypeId">;
|
|
32
|
+
} & {
|
|
33
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
34
|
+
} & {
|
|
35
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
36
|
+
}> & {
|
|
37
|
+
readonly select: Schema.Struct<{
|
|
38
|
+
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
39
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
40
|
+
readonly name: typeof Schema.String;
|
|
41
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
42
|
+
}>;
|
|
43
|
+
readonly insert: Schema.Struct<{
|
|
44
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
45
|
+
readonly name: typeof Schema.String;
|
|
46
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
47
|
+
}>;
|
|
48
|
+
readonly update: Schema.Struct<{
|
|
49
|
+
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
50
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
51
|
+
readonly name: typeof Schema.String;
|
|
52
|
+
}>;
|
|
53
|
+
readonly json: Schema.Struct<{
|
|
54
|
+
readonly id: Schema.brand<typeof Schema.String, "TrainingTypeId">;
|
|
55
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
56
|
+
readonly name: typeof Schema.String;
|
|
57
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
58
|
+
}>;
|
|
59
|
+
readonly jsonCreate: Schema.Struct<{
|
|
60
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
61
|
+
readonly name: typeof Schema.String;
|
|
62
|
+
}>;
|
|
63
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
64
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
65
|
+
readonly name: typeof Schema.String;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
68
|
+
export declare class TrainingType extends TrainingType_base {
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# 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;AAGhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,qBAAa,YAAa,SAAQ,iBAKhC;CAAG"}
|
|
@@ -4,10 +4,6 @@ export declare const UserId: Schema.brand<typeof Schema.String, "UserId">;
|
|
|
4
4
|
export type UserId = typeof UserId.Type;
|
|
5
5
|
export declare const Gender: Schema.Literal<["male", "female", "other"]>;
|
|
6
6
|
export type Gender = typeof Gender.Type;
|
|
7
|
-
export declare const Position: Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>;
|
|
8
|
-
export type Position = typeof Position.Type;
|
|
9
|
-
export declare const Proficiency: Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>;
|
|
10
|
-
export type Proficiency = typeof Proficiency.Type;
|
|
11
7
|
export declare const Locale: Schema.Literal<["en", "cs"]>;
|
|
12
8
|
export type Locale = typeof Locale.Type;
|
|
13
9
|
declare const User_base: import("@effect/experimental/VariantSchema").Class<User, {
|
|
@@ -20,9 +16,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
20
16
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
21
17
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
22
18
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
23
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
24
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
25
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
26
19
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
27
20
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
28
21
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -37,9 +30,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
37
30
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
38
31
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
39
32
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
40
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
41
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
42
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
43
33
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
44
34
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
45
35
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -58,12 +48,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
58
48
|
readonly birth_year: number | null;
|
|
59
49
|
} & {
|
|
60
50
|
readonly gender: "male" | "female" | "other" | null;
|
|
61
|
-
} & {
|
|
62
|
-
readonly jersey_number: number | null;
|
|
63
|
-
} & {
|
|
64
|
-
readonly position: "goalkeeper" | "defender" | "midfielder" | "forward" | null;
|
|
65
|
-
} & {
|
|
66
|
-
readonly proficiency: "beginner" | "intermediate" | "advanced" | "pro" | null;
|
|
67
51
|
} & {
|
|
68
52
|
readonly discord_id: string;
|
|
69
53
|
} & {
|
|
@@ -86,9 +70,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
86
70
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
87
71
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
88
72
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
89
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
90
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
91
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
92
73
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
93
74
|
readonly created_at: Model.DateTimeInsertFromDate;
|
|
94
75
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -107,12 +88,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
107
88
|
readonly birth_year: number | null;
|
|
108
89
|
} & {
|
|
109
90
|
readonly gender: "male" | "female" | "other" | null;
|
|
110
|
-
} & {
|
|
111
|
-
readonly jersey_number: number | null;
|
|
112
|
-
} & {
|
|
113
|
-
readonly position: "goalkeeper" | "defender" | "midfielder" | "forward" | null;
|
|
114
|
-
} & {
|
|
115
|
-
readonly proficiency: "beginner" | "intermediate" | "advanced" | "pro" | null;
|
|
116
91
|
} & {
|
|
117
92
|
readonly discord_id: string;
|
|
118
93
|
} & {
|
|
@@ -136,9 +111,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
136
111
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
137
112
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
138
113
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
139
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
140
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
141
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
142
114
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
143
115
|
readonly created_at: Model.DateTimeFromDate;
|
|
144
116
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -153,9 +125,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
153
125
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
154
126
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
155
127
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
156
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
157
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
158
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
159
128
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
160
129
|
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
161
130
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -171,9 +140,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
171
140
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
172
141
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
173
142
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
174
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
175
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
176
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
177
143
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
178
144
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
179
145
|
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
@@ -186,9 +152,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
186
152
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
187
153
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
188
154
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
189
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
190
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
191
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
192
155
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
193
156
|
readonly created_at: typeof Schema.DateTimeUtc;
|
|
194
157
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
@@ -201,9 +164,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
201
164
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
202
165
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
203
166
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
204
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
205
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
206
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
207
167
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
208
168
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
209
169
|
}>;
|
|
@@ -214,9 +174,6 @@ declare const User_base: import("@effect/experimental/VariantSchema").Class<User
|
|
|
214
174
|
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
215
175
|
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
216
176
|
readonly gender: Schema.NullOr<Schema.Literal<["male", "female", "other"]>>;
|
|
217
|
-
readonly jersey_number: Schema.NullOr<typeof Schema.Number>;
|
|
218
|
-
readonly position: Schema.NullOr<Schema.Literal<["goalkeeper", "defender", "midfielder", "forward"]>>;
|
|
219
|
-
readonly proficiency: Schema.NullOr<Schema.Literal<["beginner", "intermediate", "advanced", "pro"]>>;
|
|
220
177
|
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
221
178
|
readonly is_profile_complete: typeof Schema.Boolean;
|
|
222
179
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,MAAM,6CAA4C,CAAC;AAChE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,MAAM,6CAA4C,CAAC;AAChE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,MAAM,8BAA6B,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAcxB;CAAG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RpcGroup } from '@effect/rpc';
|
|
2
|
+
declare const SyncRpcs_base: RpcGroup.RpcGroup<import("@effect/rpc/Rpc").Rpc<"Channel/GetUnprocessedEvents", import("effect/Schema").Struct<{
|
|
3
|
+
limit: typeof import("effect/Schema").Number;
|
|
4
|
+
}>, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("./channel/ChannelRpcEvents.js").ChannelCreatedEvent, typeof import("./channel/ChannelRpcEvents.js").ChannelDeletedEvent, typeof import("./channel/ChannelRpcEvents.js").ChannelMemberAddedEvent, typeof import("./channel/ChannelRpcEvents.js").ChannelMemberRemovedEvent]>>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/MarkEventProcessed", import("effect/Schema").Struct<{
|
|
5
|
+
id: import("effect/Schema").brand<typeof import("effect/Schema").String, "ChannelSyncEventId">;
|
|
6
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/MarkEventFailed", import("effect/Schema").Struct<{
|
|
7
|
+
id: import("effect/Schema").brand<typeof import("effect/Schema").String, "ChannelSyncEventId">;
|
|
8
|
+
error: typeof import("effect/Schema").String;
|
|
9
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/GetMapping", import("effect/Schema").Struct<{
|
|
10
|
+
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
11
|
+
subgroup_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "SubgroupId">;
|
|
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
|
+
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
14
|
+
subgroup_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "SubgroupId">;
|
|
15
|
+
discord_channel_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
16
|
+
discord_role_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
17
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Channel/DeleteMapping", import("effect/Schema").Struct<{
|
|
18
|
+
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
19
|
+
subgroup_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "SubgroupId">;
|
|
20
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/GetUnprocessedEvents", import("effect/Schema").Struct<{
|
|
21
|
+
limit: typeof import("effect/Schema").Number;
|
|
22
|
+
}>, 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<{
|
|
23
|
+
id: import("effect/Schema").brand<typeof import("effect/Schema").String, "RoleSyncEventId">;
|
|
24
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/MarkEventFailed", import("effect/Schema").Struct<{
|
|
25
|
+
id: import("effect/Schema").brand<typeof import("effect/Schema").String, "RoleSyncEventId">;
|
|
26
|
+
error: typeof import("effect/Schema").String;
|
|
27
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/GetMapping", import("effect/Schema").Struct<{
|
|
28
|
+
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
29
|
+
role_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "RoleId">;
|
|
30
|
+
}>, import("effect/Schema").OptionFromNullOr<typeof import("./role/RoleRpcModels.js").RoleMapping>, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/UpsertMapping", import("effect/Schema").Struct<{
|
|
31
|
+
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
32
|
+
role_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "RoleId">;
|
|
33
|
+
discord_role_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "Snowflake">;
|
|
34
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never> | import("@effect/rpc/Rpc").Rpc<"Role/DeleteMapping", import("effect/Schema").Struct<{
|
|
35
|
+
team_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "TeamId">;
|
|
36
|
+
role_id: import("effect/Schema").brand<typeof import("effect/Schema").String, "RoleId">;
|
|
37
|
+
}>, typeof import("effect/Schema").Void, typeof import("effect/Schema").Never, never>>;
|
|
38
|
+
export declare class SyncRpcs extends SyncRpcs_base {
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=SyncRpcs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyncRpcs.d.ts","sourceRoot":"","sources":["../../../src/rpc/SyncRpcs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIvC,qBAAa,QAAS,SAAQ,aAAoD;CAAG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
declare const ChannelCreatedEvent_base: Schema.TaggedClass<ChannelCreatedEvent, "channel_created", {
|
|
3
|
+
readonly _tag: Schema.tag<"channel_created">;
|
|
4
|
+
} & {
|
|
5
|
+
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
6
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
7
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
8
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
9
|
+
subgroup_name: typeof Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export declare class ChannelCreatedEvent extends ChannelCreatedEvent_base {
|
|
12
|
+
}
|
|
13
|
+
declare const ChannelDeletedEvent_base: Schema.TaggedClass<ChannelDeletedEvent, "channel_deleted", {
|
|
14
|
+
readonly _tag: Schema.tag<"channel_deleted">;
|
|
15
|
+
} & {
|
|
16
|
+
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
17
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
18
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
19
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
20
|
+
}>;
|
|
21
|
+
export declare class ChannelDeletedEvent extends ChannelDeletedEvent_base {
|
|
22
|
+
}
|
|
23
|
+
declare const ChannelMemberAddedEvent_base: Schema.TaggedClass<ChannelMemberAddedEvent, "channel_member_added", {
|
|
24
|
+
readonly _tag: Schema.tag<"channel_member_added">;
|
|
25
|
+
} & {
|
|
26
|
+
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
27
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
28
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
29
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
30
|
+
subgroup_name: typeof Schema.String;
|
|
31
|
+
team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
32
|
+
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
33
|
+
}>;
|
|
34
|
+
export declare class ChannelMemberAddedEvent extends ChannelMemberAddedEvent_base {
|
|
35
|
+
}
|
|
36
|
+
declare const ChannelMemberRemovedEvent_base: Schema.TaggedClass<ChannelMemberRemovedEvent, "channel_member_removed", {
|
|
37
|
+
readonly _tag: Schema.tag<"channel_member_removed">;
|
|
38
|
+
} & {
|
|
39
|
+
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
40
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
41
|
+
guild_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
42
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
43
|
+
team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
44
|
+
discord_user_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
45
|
+
}>;
|
|
46
|
+
export declare class ChannelMemberRemovedEvent extends ChannelMemberRemovedEvent_base {
|
|
47
|
+
}
|
|
48
|
+
export declare const UnprocessedChannelEvent: Schema.Union<[typeof ChannelCreatedEvent, typeof ChannelDeletedEvent, typeof ChannelMemberAddedEvent, typeof ChannelMemberRemovedEvent]>;
|
|
49
|
+
export type UnprocessedChannelEvent = Schema.Schema.Type<typeof UnprocessedChannelEvent>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=ChannelRpcEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelRpcEvents.d.ts","sourceRoot":"","sources":["../../../../src/rpc/channel/ChannelRpcEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;AAGhC,qBAAa,mBAAoB,SAAQ,wBASxC;CAAG;;;;;;;;;AAEJ,qBAAa,mBAAoB,SAAQ,wBAQxC;CAAG;;;;;;;;;;;;AAEJ,qBAAa,uBAAwB,SAAQ,4BAW5C;CAAG;;;;;;;;;;;AAEJ,qBAAa,yBAA0B,SAAQ,8BAU9C;CAAG;AAEJ,eAAO,MAAM,uBAAuB,0IAKnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Rpc, RpcGroup } from '@effect/rpc';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
import { ChannelMapping } from './ChannelRpcModels.js';
|
|
4
|
+
export declare const ChannelRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"Channel/GetUnprocessedEvents", Schema.Struct<{
|
|
5
|
+
limit: typeof Schema.Number;
|
|
6
|
+
}>, Schema.Array$<Schema.Union<[typeof import("./ChannelRpcEvents.js").ChannelCreatedEvent, typeof import("./ChannelRpcEvents.js").ChannelDeletedEvent, typeof import("./ChannelRpcEvents.js").ChannelMemberAddedEvent, typeof import("./ChannelRpcEvents.js").ChannelMemberRemovedEvent]>>, typeof Schema.Never, never> | Rpc.Rpc<"Channel/MarkEventProcessed", Schema.Struct<{
|
|
7
|
+
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
8
|
+
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Channel/MarkEventFailed", Schema.Struct<{
|
|
9
|
+
id: Schema.brand<typeof Schema.String, "ChannelSyncEventId">;
|
|
10
|
+
error: typeof Schema.String;
|
|
11
|
+
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Channel/GetMapping", Schema.Struct<{
|
|
12
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
13
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
14
|
+
}>, Schema.OptionFromNullOr<typeof ChannelMapping>, typeof Schema.Never, never> | Rpc.Rpc<"Channel/UpsertMapping", Schema.Struct<{
|
|
15
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
16
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
17
|
+
discord_channel_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
18
|
+
discord_role_id: Schema.brand<typeof Schema.String, "Snowflake">;
|
|
19
|
+
}>, typeof Schema.Void, typeof Schema.Never, never> | Rpc.Rpc<"Channel/DeleteMapping", Schema.Struct<{
|
|
20
|
+
team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
21
|
+
subgroup_id: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
22
|
+
}>, typeof Schema.Void, typeof Schema.Never, never>>;
|
|
23
|
+
//# sourceMappingURL=ChannelRpcGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelRpcGroup.d.ts","sourceRoot":"","sources":["../../../../src/rpc/channel/ChannelRpcGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;oDA0BR,CAAC"}
|