@sideline/domain 0.0.0 → 0.1.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/ApiGroup/package.json +6 -0
- package/api/Auth/package.json +6 -0
- package/api/Invite/package.json +6 -0
- package/dist/cjs/ApiGroup.js +9 -0
- package/dist/cjs/ApiGroup.js.map +1 -0
- package/dist/cjs/api/Auth.js +85 -0
- package/dist/cjs/api/Auth.js.map +1 -0
- package/dist/cjs/api/Invite.js +61 -0
- package/dist/cjs/api/Invite.js.map +1 -0
- package/dist/cjs/index.js +17 -3
- package/dist/cjs/models/Session.js +22 -0
- package/dist/cjs/models/Session.js.map +1 -0
- package/dist/cjs/models/Team.js +19 -0
- package/dist/cjs/models/Team.js.map +1 -0
- package/dist/cjs/models/TeamInvite.js +26 -0
- package/dist/cjs/models/TeamInvite.js.map +1 -0
- package/dist/cjs/models/TeamMember.js +21 -0
- package/dist/cjs/models/TeamMember.js.map +1 -0
- package/dist/cjs/models/User.js +33 -0
- package/dist/cjs/models/User.js.map +1 -0
- package/dist/dts/ApiGroup.d.ts +3 -0
- package/dist/dts/ApiGroup.d.ts.map +1 -0
- package/dist/dts/api/Auth.d.ts +128 -0
- package/dist/dts/api/Auth.d.ts.map +1 -0
- package/dist/dts/api/Invite.d.ts +78 -0
- package/dist/dts/api/Invite.d.ts.map +1 -0
- package/dist/dts/index.d.ts +8 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/Session.d.ts +82 -0
- package/dist/dts/models/Session.d.ts.map +1 -0
- package/dist/dts/models/Team.d.ts +82 -0
- package/dist/dts/models/Team.d.ts.map +1 -0
- package/dist/dts/models/TeamInvite.d.ts +110 -0
- package/dist/dts/models/TeamInvite.d.ts.map +1 -0
- package/dist/dts/models/TeamMember.d.ts +86 -0
- package/dist/dts/models/TeamMember.d.ts.map +1 -0
- package/dist/dts/models/User.d.ts +227 -0
- package/dist/dts/models/User.d.ts.map +1 -0
- package/dist/esm/ApiGroup.js +2 -0
- package/dist/esm/ApiGroup.js.map +1 -0
- package/dist/esm/api/Auth.js +67 -0
- package/dist/esm/api/Auth.js.map +1 -0
- package/dist/esm/api/Invite.js +48 -0
- package/dist/esm/api/Invite.js.map +1 -0
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/Session.js +15 -0
- package/dist/esm/models/Session.js.map +1 -0
- package/dist/esm/models/Team.js +12 -0
- package/dist/esm/models/Team.js.map +1 -0
- package/dist/esm/models/TeamInvite.js +19 -0
- package/dist/esm/models/TeamInvite.js.map +1 -0
- package/dist/esm/models/TeamMember.js +14 -0
- package/dist/esm/models/TeamMember.js.map +1 -0
- package/dist/esm/models/User.js +26 -0
- package/dist/esm/models/User.js.map +1 -0
- package/models/Session/package.json +6 -0
- package/models/Team/package.json +6 -0
- package/models/TeamInvite/package.json +6 -0
- package/models/TeamMember/package.json +6 -0
- package/models/User/package.json +6 -0
- package/package.json +67 -10
- package/src/ApiGroup.ts +14 -0
- package/src/api/Auth.ts +104 -0
- package/src/api/Invite.ts +70 -0
- package/src/index.ts +14 -1
- package/src/models/Session.ts +16 -0
- package/src/models/Team.ts +14 -0
- package/src/models/TeamInvite.ts +24 -0
- package/src/models/TeamMember.ts +18 -0
- package/src/models/User.ts +36 -0
- package/TodosApi/package.json +0 -6
- package/dist/cjs/TodosApi.js +0 -39
- package/dist/cjs/TodosApi.js.map +0 -1
- package/dist/dts/TodosApi.d.ts +0 -45
- package/dist/dts/TodosApi.d.ts.map +0 -1
- package/dist/esm/TodosApi.js +0 -29
- package/dist/esm/TodosApi.js.map +0 -1
- package/src/TodosApi.ts +0 -48
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAE1C,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAEzC,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { DateTime, Schema } from 'effect';
|
|
3
|
+
declare const Session_base: import("@effect/experimental/VariantSchema").Class<Session, {
|
|
4
|
+
readonly id: Model.Generated<typeof Schema.String>;
|
|
5
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
6
|
+
readonly token: typeof Schema.String;
|
|
7
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
8
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
9
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
10
|
+
readonly id: Model.Generated<typeof Schema.String>;
|
|
11
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
12
|
+
readonly token: typeof Schema.String;
|
|
13
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
14
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
15
|
+
}, true>, {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
} & {
|
|
18
|
+
readonly created_at: DateTime.Utc;
|
|
19
|
+
} & {
|
|
20
|
+
readonly token: string;
|
|
21
|
+
} & {
|
|
22
|
+
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
23
|
+
} & {
|
|
24
|
+
readonly expires_at: DateTime.Utc;
|
|
25
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
26
|
+
readonly id: Model.Generated<typeof Schema.String>;
|
|
27
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
28
|
+
readonly token: typeof Schema.String;
|
|
29
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
30
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
31
|
+
}, true>>, never, {
|
|
32
|
+
readonly id: string;
|
|
33
|
+
} & {
|
|
34
|
+
readonly created_at: DateTime.Utc;
|
|
35
|
+
} & {
|
|
36
|
+
readonly token: string;
|
|
37
|
+
} & {
|
|
38
|
+
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
39
|
+
} & {
|
|
40
|
+
readonly expires_at: DateTime.Utc;
|
|
41
|
+
}> & {
|
|
42
|
+
readonly select: Schema.Struct<{
|
|
43
|
+
readonly id: typeof Schema.String;
|
|
44
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
45
|
+
readonly token: typeof Schema.String;
|
|
46
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
47
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
48
|
+
}>;
|
|
49
|
+
readonly insert: Schema.Struct<{
|
|
50
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
51
|
+
readonly token: typeof Schema.String;
|
|
52
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
53
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<DateTime.Utc, Date, never>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly update: Schema.Struct<{
|
|
56
|
+
readonly id: typeof Schema.String;
|
|
57
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
58
|
+
readonly token: typeof Schema.String;
|
|
59
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly json: Schema.Struct<{
|
|
62
|
+
readonly id: typeof Schema.String;
|
|
63
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
64
|
+
readonly token: typeof Schema.String;
|
|
65
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
66
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
67
|
+
}>;
|
|
68
|
+
readonly jsonCreate: Schema.Struct<{
|
|
69
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
70
|
+
readonly token: typeof Schema.String;
|
|
71
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
72
|
+
}>;
|
|
73
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
74
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
75
|
+
readonly token: typeof Schema.String;
|
|
76
|
+
readonly expires_at: Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>;
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
79
|
+
export declare class Session extends Session_base {
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=Session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/models/Session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1C,qBAAa,OAAQ,SAAQ,YAM3B;CAAG"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const TeamId: Schema.brand<typeof Schema.String, "TeamId">;
|
|
4
|
+
export type TeamId = typeof TeamId.Type;
|
|
5
|
+
declare const Team_base: import("@effect/experimental/VariantSchema").Class<Team, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
|
|
7
|
+
readonly name: typeof Schema.String;
|
|
8
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
9
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
11
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
12
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
|
|
13
|
+
readonly name: typeof Schema.String;
|
|
14
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
15
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
16
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
17
|
+
}, true>, {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
} & {
|
|
20
|
+
readonly id: string & import("effect/Brand").Brand<"TeamId">;
|
|
21
|
+
} & {
|
|
22
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
23
|
+
} & {
|
|
24
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
25
|
+
} & {
|
|
26
|
+
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
27
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
28
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamId">>;
|
|
29
|
+
readonly name: typeof Schema.String;
|
|
30
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
31
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
32
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
33
|
+
}, true>>, never, {
|
|
34
|
+
readonly name: string;
|
|
35
|
+
} & {
|
|
36
|
+
readonly id: string & import("effect/Brand").Brand<"TeamId">;
|
|
37
|
+
} & {
|
|
38
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
39
|
+
} & {
|
|
40
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
41
|
+
} & {
|
|
42
|
+
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
43
|
+
}> & {
|
|
44
|
+
readonly select: Schema.Struct<{
|
|
45
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
46
|
+
readonly name: typeof Schema.String;
|
|
47
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
48
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
49
|
+
readonly updated_at: Model.DateTimeFromDate;
|
|
50
|
+
}>;
|
|
51
|
+
readonly insert: Schema.Struct<{
|
|
52
|
+
readonly name: typeof Schema.String;
|
|
53
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
54
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
55
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
56
|
+
}>;
|
|
57
|
+
readonly update: Schema.Struct<{
|
|
58
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
59
|
+
readonly name: typeof Schema.String;
|
|
60
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
61
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly json: Schema.Struct<{
|
|
64
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
65
|
+
readonly name: typeof Schema.String;
|
|
66
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
67
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
68
|
+
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
69
|
+
}>;
|
|
70
|
+
readonly jsonCreate: Schema.Struct<{
|
|
71
|
+
readonly name: typeof Schema.String;
|
|
72
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
73
|
+
}>;
|
|
74
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
75
|
+
readonly name: typeof Schema.String;
|
|
76
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
79
|
+
export declare class Team extends Team_base {
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=Team.d.ts.map
|
|
@@ -0,0 +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;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAMxB;CAAG"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { DateTime, Schema } from 'effect';
|
|
3
|
+
export declare const TeamInviteId: Schema.brand<typeof Schema.String, "TeamInviteId">;
|
|
4
|
+
export type TeamInviteId = typeof TeamInviteId.Type;
|
|
5
|
+
declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Class<TeamInvite, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamInviteId">>;
|
|
7
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
|
+
readonly code: typeof Schema.String;
|
|
9
|
+
readonly active: typeof Schema.Boolean;
|
|
10
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
11
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
12
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
13
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
14
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamInviteId">>;
|
|
15
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
16
|
+
readonly code: typeof Schema.String;
|
|
17
|
+
readonly active: typeof Schema.Boolean;
|
|
18
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
19
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
20
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
21
|
+
}, true>, {
|
|
22
|
+
readonly id: string & import("effect/Brand").Brand<"TeamInviteId">;
|
|
23
|
+
} & {
|
|
24
|
+
readonly created_at: DateTime.Utc;
|
|
25
|
+
} & {
|
|
26
|
+
readonly code: string;
|
|
27
|
+
} & {
|
|
28
|
+
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
29
|
+
} & {
|
|
30
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
31
|
+
} & {
|
|
32
|
+
readonly active: boolean;
|
|
33
|
+
} & {
|
|
34
|
+
readonly expires_at: DateTime.Utc | null;
|
|
35
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
36
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamInviteId">>;
|
|
37
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
38
|
+
readonly code: typeof Schema.String;
|
|
39
|
+
readonly active: typeof Schema.Boolean;
|
|
40
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
41
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
42
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
43
|
+
}, true>>, never, {
|
|
44
|
+
readonly id: string & import("effect/Brand").Brand<"TeamInviteId">;
|
|
45
|
+
} & {
|
|
46
|
+
readonly created_at: DateTime.Utc;
|
|
47
|
+
} & {
|
|
48
|
+
readonly code: string;
|
|
49
|
+
} & {
|
|
50
|
+
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
51
|
+
} & {
|
|
52
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
53
|
+
} & {
|
|
54
|
+
readonly active: boolean;
|
|
55
|
+
} & {
|
|
56
|
+
readonly expires_at: DateTime.Utc | null;
|
|
57
|
+
}> & {
|
|
58
|
+
readonly select: Schema.Struct<{
|
|
59
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamInviteId">;
|
|
60
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
61
|
+
readonly code: typeof Schema.String;
|
|
62
|
+
readonly active: typeof Schema.Boolean;
|
|
63
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
64
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
65
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
66
|
+
}>;
|
|
67
|
+
readonly insert: Schema.Struct<{
|
|
68
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
69
|
+
readonly code: typeof Schema.String;
|
|
70
|
+
readonly active: typeof Schema.Boolean;
|
|
71
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
72
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<DateTime.Utc, Date, never>;
|
|
73
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
74
|
+
}>;
|
|
75
|
+
readonly update: Schema.Struct<{
|
|
76
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamInviteId">;
|
|
77
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
78
|
+
readonly code: typeof Schema.String;
|
|
79
|
+
readonly active: typeof Schema.Boolean;
|
|
80
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
81
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
82
|
+
}>;
|
|
83
|
+
readonly json: Schema.Struct<{
|
|
84
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamInviteId">;
|
|
85
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
86
|
+
readonly code: typeof Schema.String;
|
|
87
|
+
readonly active: typeof Schema.Boolean;
|
|
88
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
89
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
90
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
91
|
+
}>;
|
|
92
|
+
readonly jsonCreate: Schema.Struct<{
|
|
93
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
94
|
+
readonly code: typeof Schema.String;
|
|
95
|
+
readonly active: typeof Schema.Boolean;
|
|
96
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
97
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
98
|
+
}>;
|
|
99
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
100
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
101
|
+
readonly code: typeof Schema.String;
|
|
102
|
+
readonly active: typeof Schema.Boolean;
|
|
103
|
+
readonly created_by: Schema.brand<typeof Schema.String, "UserId">;
|
|
104
|
+
readonly expires_at: Schema.NullOr<Schema.transform<typeof Schema.DateFromSelf, typeof Schema.DateTimeUtcFromSelf>>;
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
export declare class TeamInvite extends TeamInvite_base {
|
|
108
|
+
}
|
|
109
|
+
export {};
|
|
110
|
+
//# sourceMappingURL=TeamInvite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamInvite.d.ts","sourceRoot":"","sources":["../../../src/models/TeamInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAI1C,eAAO,MAAM,YAAY,oDAAmD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASpD,qBAAa,UAAW,SAAQ,eAQ9B;CAAG"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const TeamMemberId: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
4
|
+
export type TeamMemberId = typeof TeamMemberId.Type;
|
|
5
|
+
export declare const TeamRole: Schema.Literal<["admin", "member"]>;
|
|
6
|
+
export type TeamRole = typeof TeamRole.Type;
|
|
7
|
+
declare const TeamMember_base: import("@effect/experimental/VariantSchema").Class<TeamMember, {
|
|
8
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
9
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
10
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
11
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
12
|
+
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
13
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
14
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
15
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
16
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
17
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
18
|
+
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
19
|
+
}, true>, {
|
|
20
|
+
readonly id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
21
|
+
} & {
|
|
22
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
23
|
+
} & {
|
|
24
|
+
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
25
|
+
} & {
|
|
26
|
+
readonly role: "admin" | "member";
|
|
27
|
+
} & {
|
|
28
|
+
readonly joined_at: import("effect/DateTime").Utc;
|
|
29
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
30
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "TeamMemberId">>;
|
|
31
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
32
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
33
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
34
|
+
readonly joined_at: Model.DateTimeInsertFromDate;
|
|
35
|
+
}, true>>, never, {
|
|
36
|
+
readonly id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
37
|
+
} & {
|
|
38
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
39
|
+
} & {
|
|
40
|
+
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
41
|
+
} & {
|
|
42
|
+
readonly role: "admin" | "member";
|
|
43
|
+
} & {
|
|
44
|
+
readonly joined_at: import("effect/DateTime").Utc;
|
|
45
|
+
}> & {
|
|
46
|
+
readonly select: Schema.Struct<{
|
|
47
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
48
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
49
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
50
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
51
|
+
readonly joined_at: Model.DateTimeFromDate;
|
|
52
|
+
}>;
|
|
53
|
+
readonly insert: Schema.Struct<{
|
|
54
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
55
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
56
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
57
|
+
readonly joined_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
58
|
+
}>;
|
|
59
|
+
readonly update: Schema.Struct<{
|
|
60
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
61
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
62
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
63
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
64
|
+
}>;
|
|
65
|
+
readonly json: Schema.Struct<{
|
|
66
|
+
readonly id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
67
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
68
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
69
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
70
|
+
readonly joined_at: typeof Schema.DateTimeUtc;
|
|
71
|
+
}>;
|
|
72
|
+
readonly jsonCreate: Schema.Struct<{
|
|
73
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
74
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
75
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
76
|
+
}>;
|
|
77
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
78
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
79
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
80
|
+
readonly role: Schema.Literal<["admin", "member"]>;
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
export declare class TeamMember extends TeamMember_base {
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=TeamMember.d.ts.map
|
|
@@ -0,0 +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;AAEpD,eAAO,MAAM,QAAQ,qCAAoC,CAAC;AAC1D,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5C,qBAAa,UAAW,SAAQ,eAM9B;CAAG"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const UserId: Schema.brand<typeof Schema.String, "UserId">;
|
|
4
|
+
export type UserId = typeof UserId.Type;
|
|
5
|
+
export declare const Gender: Schema.Literal<["male", "female", "other"]>;
|
|
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
|
+
export declare const Locale: Schema.Literal<["en", "cs"]>;
|
|
12
|
+
export type Locale = typeof Locale.Type;
|
|
13
|
+
declare const User_base: import("@effect/experimental/VariantSchema").Class<User, {
|
|
14
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
|
|
15
|
+
readonly discord_id: typeof Schema.String;
|
|
16
|
+
readonly discord_username: typeof Schema.String;
|
|
17
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
18
|
+
readonly discord_access_token: Model.Sensitive<typeof Schema.String>;
|
|
19
|
+
readonly discord_refresh_token: Model.Sensitive<Schema.NullOr<typeof Schema.String>>;
|
|
20
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
21
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
22
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
27
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
28
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
29
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
30
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
31
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
|
|
32
|
+
readonly discord_id: typeof Schema.String;
|
|
33
|
+
readonly discord_username: typeof Schema.String;
|
|
34
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
35
|
+
readonly discord_access_token: Model.Sensitive<typeof Schema.String>;
|
|
36
|
+
readonly discord_refresh_token: Model.Sensitive<Schema.NullOr<typeof Schema.String>>;
|
|
37
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
38
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
39
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
44
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
45
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
46
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
47
|
+
}, true>, {
|
|
48
|
+
readonly name: string | null;
|
|
49
|
+
} & {
|
|
50
|
+
readonly id: string & import("effect/Brand").Brand<"UserId">;
|
|
51
|
+
} & {
|
|
52
|
+
readonly discord_avatar: string | null;
|
|
53
|
+
} & {
|
|
54
|
+
readonly discord_access_token: string;
|
|
55
|
+
} & {
|
|
56
|
+
readonly discord_refresh_token: string | null;
|
|
57
|
+
} & {
|
|
58
|
+
readonly birth_year: number | null;
|
|
59
|
+
} & {
|
|
60
|
+
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
|
+
} & {
|
|
68
|
+
readonly discord_id: string;
|
|
69
|
+
} & {
|
|
70
|
+
readonly discord_username: string;
|
|
71
|
+
} & {
|
|
72
|
+
readonly locale: "en" | "cs";
|
|
73
|
+
} & {
|
|
74
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
75
|
+
} & {
|
|
76
|
+
readonly is_profile_complete: boolean;
|
|
77
|
+
} & {
|
|
78
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
79
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
80
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "UserId">>;
|
|
81
|
+
readonly discord_id: typeof Schema.String;
|
|
82
|
+
readonly discord_username: typeof Schema.String;
|
|
83
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
84
|
+
readonly discord_access_token: Model.Sensitive<typeof Schema.String>;
|
|
85
|
+
readonly discord_refresh_token: Model.Sensitive<Schema.NullOr<typeof Schema.String>>;
|
|
86
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
87
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
88
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
93
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
94
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
95
|
+
readonly updated_at: Model.DateTimeUpdateFromDate;
|
|
96
|
+
}, true>>, never, {
|
|
97
|
+
readonly name: string | null;
|
|
98
|
+
} & {
|
|
99
|
+
readonly id: string & import("effect/Brand").Brand<"UserId">;
|
|
100
|
+
} & {
|
|
101
|
+
readonly discord_avatar: string | null;
|
|
102
|
+
} & {
|
|
103
|
+
readonly discord_access_token: string;
|
|
104
|
+
} & {
|
|
105
|
+
readonly discord_refresh_token: string | null;
|
|
106
|
+
} & {
|
|
107
|
+
readonly birth_year: number | null;
|
|
108
|
+
} & {
|
|
109
|
+
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
|
+
} & {
|
|
117
|
+
readonly discord_id: string;
|
|
118
|
+
} & {
|
|
119
|
+
readonly discord_username: string;
|
|
120
|
+
} & {
|
|
121
|
+
readonly locale: "en" | "cs";
|
|
122
|
+
} & {
|
|
123
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
124
|
+
} & {
|
|
125
|
+
readonly is_profile_complete: boolean;
|
|
126
|
+
} & {
|
|
127
|
+
readonly updated_at: import("effect/DateTime").Utc;
|
|
128
|
+
}> & {
|
|
129
|
+
readonly select: Schema.Struct<{
|
|
130
|
+
readonly id: Schema.brand<typeof Schema.String, "UserId">;
|
|
131
|
+
readonly discord_id: typeof Schema.String;
|
|
132
|
+
readonly discord_username: typeof Schema.String;
|
|
133
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
134
|
+
readonly discord_access_token: typeof Schema.String;
|
|
135
|
+
readonly discord_refresh_token: Schema.NullOr<typeof Schema.String>;
|
|
136
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
137
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
138
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
143
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
144
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
145
|
+
readonly updated_at: Model.DateTimeFromDate;
|
|
146
|
+
}>;
|
|
147
|
+
readonly insert: Schema.Struct<{
|
|
148
|
+
readonly discord_id: typeof Schema.String;
|
|
149
|
+
readonly discord_username: typeof Schema.String;
|
|
150
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
151
|
+
readonly discord_access_token: typeof Schema.String;
|
|
152
|
+
readonly discord_refresh_token: Schema.NullOr<typeof Schema.String>;
|
|
153
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
154
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
155
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
160
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
161
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
162
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
163
|
+
}>;
|
|
164
|
+
readonly update: Schema.Struct<{
|
|
165
|
+
readonly id: Schema.brand<typeof Schema.String, "UserId">;
|
|
166
|
+
readonly discord_id: typeof Schema.String;
|
|
167
|
+
readonly discord_username: typeof Schema.String;
|
|
168
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
169
|
+
readonly discord_access_token: typeof Schema.String;
|
|
170
|
+
readonly discord_refresh_token: Schema.NullOr<typeof Schema.String>;
|
|
171
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
172
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
173
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
178
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
179
|
+
readonly updated_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
180
|
+
}>;
|
|
181
|
+
readonly json: Schema.Struct<{
|
|
182
|
+
readonly id: Schema.brand<typeof Schema.String, "UserId">;
|
|
183
|
+
readonly discord_id: typeof Schema.String;
|
|
184
|
+
readonly discord_username: typeof Schema.String;
|
|
185
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
186
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
187
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
188
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
193
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
194
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
195
|
+
readonly updated_at: typeof Schema.DateTimeUtc;
|
|
196
|
+
}>;
|
|
197
|
+
readonly jsonCreate: Schema.Struct<{
|
|
198
|
+
readonly discord_id: typeof Schema.String;
|
|
199
|
+
readonly discord_username: typeof Schema.String;
|
|
200
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
201
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
202
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
203
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
208
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
209
|
+
}>;
|
|
210
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
211
|
+
readonly discord_id: typeof Schema.String;
|
|
212
|
+
readonly discord_username: typeof Schema.String;
|
|
213
|
+
readonly discord_avatar: Schema.NullOr<typeof Schema.String>;
|
|
214
|
+
readonly name: Schema.NullOr<typeof Schema.String>;
|
|
215
|
+
readonly birth_year: Schema.NullOr<typeof Schema.Number>;
|
|
216
|
+
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
|
+
readonly locale: Schema.Literal<["en", "cs"]>;
|
|
221
|
+
readonly is_profile_complete: typeof Schema.Boolean;
|
|
222
|
+
}>;
|
|
223
|
+
};
|
|
224
|
+
export declare class User extends User_base {
|
|
225
|
+
}
|
|
226
|
+
export {};
|
|
227
|
+
//# sourceMappingURL=User.d.ts.map
|
|
@@ -0,0 +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,QAAQ,qEAAoE,CAAC;AAC1F,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAE5C,eAAO,MAAM,WAAW,iEAAgE,CAAC;AACzF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAElD,eAAO,MAAM,MAAM,8BAA6B,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,qBAAa,IAAK,SAAQ,SAiBxB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiGroup.js","names":["getEndpoint","key","group","endpoints"],"sources":["../../src/ApiGroup.ts"],"sourcesContent":[null],"mappings":"AAEA,OAAO,MAAMA,WAAW,GAQpBC,GAAsB,IAEvBC,KAAmE,IAClEA,KAAK,CAACC,SAAS,CAACF,GAAG,CAAC","ignoreList":[]}
|