@sideline/domain 0.1.2 → 0.2.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 +86 -0
- package/dist/cjs/api/AgeThresholdApi.js.map +1 -0
- package/dist/cjs/api/Auth.js +33 -2
- package/dist/cjs/api/Auth.js.map +1 -1
- package/dist/cjs/api/Invite.js +1 -2
- package/dist/cjs/api/Invite.js.map +1 -1
- package/dist/cjs/api/NotificationApi.js +42 -0
- package/dist/cjs/api/NotificationApi.js.map +1 -0
- package/dist/cjs/api/RoleApi.js +123 -0
- package/dist/cjs/api/RoleApi.js.map +1 -0
- package/dist/cjs/api/Roster.js +159 -0
- package/dist/cjs/api/Roster.js.map +1 -0
- package/dist/cjs/api/SubgroupApi.js +122 -0
- package/dist/cjs/api/SubgroupApi.js.map +1 -0
- package/dist/cjs/index.js +25 -1
- package/dist/cjs/models/AgeThresholdRule.js +21 -0
- package/dist/cjs/models/AgeThresholdRule.js.map +1 -0
- package/dist/cjs/models/MemberRole.js +15 -0
- package/dist/cjs/models/MemberRole.js.map +1 -0
- package/dist/cjs/models/Notification.js +24 -0
- package/dist/cjs/models/Notification.js.map +1 -0
- package/dist/cjs/models/Role.js +32 -0
- package/dist/cjs/models/Role.js.map +1 -0
- package/dist/cjs/models/RosterMemberModel.js +19 -0
- package/dist/cjs/models/RosterMemberModel.js.map +1 -0
- package/dist/cjs/models/RosterModel.js +19 -0
- package/dist/cjs/models/RosterModel.js.map +1 -0
- package/dist/cjs/models/SubgroupModel.js +18 -0
- package/dist/cjs/models/SubgroupModel.js.map +1 -0
- package/dist/cjs/models/TeamMember.js +2 -3
- package/dist/cjs/models/TeamMember.js.map +1 -1
- package/dist/dts/api/AgeThresholdApi.d.ts +119 -0
- package/dist/dts/api/AgeThresholdApi.d.ts.map +1 -0
- package/dist/dts/api/Auth.d.ts +60 -1
- package/dist/dts/api/Auth.d.ts.map +1 -1
- package/dist/dts/api/Invite.d.ts +7 -7
- package/dist/dts/api/Invite.d.ts.map +1 -1
- package/dist/dts/api/NotificationApi.d.ts +53 -0
- package/dist/dts/api/NotificationApi.d.ts.map +1 -0
- package/dist/dts/api/RoleApi.d.ts +138 -0
- package/dist/dts/api/RoleApi.d.ts.map +1 -0
- package/dist/dts/api/Roster.d.ts +225 -0
- package/dist/dts/api/Roster.d.ts.map +1 -0
- package/dist/dts/api/SubgroupApi.d.ts +140 -0
- package/dist/dts/api/SubgroupApi.d.ts.map +1 -0
- package/dist/dts/index.d.ts +12 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/models/AgeThresholdRule.d.ts +97 -0
- package/dist/dts/models/AgeThresholdRule.d.ts.map +1 -0
- package/dist/dts/models/MemberRole.d.ts +16 -0
- package/dist/dts/models/MemberRole.d.ts.map +1 -0
- package/dist/dts/models/Notification.d.ts +125 -0
- package/dist/dts/models/Notification.d.ts.map +1 -0
- package/dist/dts/models/Role.d.ts +102 -0
- package/dist/dts/models/Role.d.ts.map +1 -0
- package/dist/dts/models/RosterMemberModel.d.ts +71 -0
- package/dist/dts/models/RosterMemberModel.d.ts.map +1 -0
- package/dist/dts/models/RosterModel.d.ts +84 -0
- package/dist/dts/models/RosterModel.d.ts.map +1 -0
- package/dist/dts/models/SubgroupModel.d.ts +71 -0
- package/dist/dts/models/SubgroupModel.d.ts.map +1 -0
- package/dist/dts/models/TeamInvite.d.ts +4 -4
- package/dist/dts/models/TeamMember.d.ts +11 -13
- package/dist/dts/models/TeamMember.d.ts.map +1 -1
- package/dist/esm/api/AgeThresholdApi.js +72 -0
- package/dist/esm/api/AgeThresholdApi.js.map +1 -0
- package/dist/esm/api/Auth.js +28 -1
- package/dist/esm/api/Auth.js.map +1 -1
- package/dist/esm/api/Invite.js +1 -2
- package/dist/esm/api/Invite.js.map +1 -1
- package/dist/esm/api/NotificationApi.js +32 -0
- package/dist/esm/api/NotificationApi.js.map +1 -0
- package/dist/esm/api/RoleApi.js +106 -0
- package/dist/esm/api/RoleApi.js.map +1 -0
- package/dist/esm/api/Roster.js +142 -0
- package/dist/esm/api/Roster.js.map +1 -0
- package/dist/esm/api/SubgroupApi.js +106 -0
- package/dist/esm/api/SubgroupApi.js.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/AgeThresholdRule.js +14 -0
- package/dist/esm/models/AgeThresholdRule.js.map +1 -0
- package/dist/esm/models/MemberRole.js +8 -0
- package/dist/esm/models/MemberRole.js.map +1 -0
- package/dist/esm/models/Notification.js +17 -0
- package/dist/esm/models/Notification.js.map +1 -0
- package/dist/esm/models/Role.js +24 -0
- package/dist/esm/models/Role.js.map +1 -0
- package/dist/esm/models/RosterMemberModel.js +12 -0
- package/dist/esm/models/RosterMemberModel.js.map +1 -0
- package/dist/esm/models/RosterModel.js +12 -0
- package/dist/esm/models/RosterModel.js.map +1 -0
- package/dist/esm/models/SubgroupModel.js +11 -0
- package/dist/esm/models/SubgroupModel.js.map +1 -0
- package/dist/esm/models/TeamMember.js +1 -2
- package/dist/esm/models/TeamMember.js.map +1 -1
- package/package.json +1 -1
- package/src/api/AgeThresholdApi.ts +99 -0
- package/src/api/Auth.ts +52 -0
- package/src/api/Invite.ts +1 -2
- package/src/api/NotificationApi.ts +49 -0
- package/src/api/RoleApi.ts +130 -0
- package/src/api/Roster.ts +176 -0
- package/src/api/SubgroupApi.ts +146 -0
- package/src/index.ts +24 -0
- package/src/models/AgeThresholdRule.ts +16 -0
- package/src/models/MemberRole.ts +8 -0
- package/src/models/Notification.ts +26 -0
- package/src/models/Role.ts +53 -0
- package/src/models/RosterMemberModel.ts +14 -0
- package/src/models/RosterModel.ts +14 -0
- package/src/models/SubgroupModel.ts +13 -0
- package/src/models/TeamMember.ts +1 -4
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAE1C,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAE1C,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,gBAAgB,MAAM,8BAA8B,CAAC;AAEjE,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAEzC,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAC;AAEnE,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAEvD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,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,97 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const AgeThresholdRuleId: Schema.brand<typeof Schema.String, "AgeThresholdRuleId">;
|
|
4
|
+
export type AgeThresholdRuleId = typeof AgeThresholdRuleId.Type;
|
|
5
|
+
declare const AgeThresholdRule_base: import("@effect/experimental/VariantSchema").Class<AgeThresholdRule, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "AgeThresholdRuleId">>;
|
|
7
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
9
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
10
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
11
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
12
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
13
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "AgeThresholdRuleId">>;
|
|
14
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
15
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
16
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
17
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
18
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
19
|
+
}, true>, {
|
|
20
|
+
readonly id: string & import("effect/Brand").Brand<"AgeThresholdRuleId">;
|
|
21
|
+
} & {
|
|
22
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
23
|
+
} & {
|
|
24
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
25
|
+
} & {
|
|
26
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
27
|
+
} & {
|
|
28
|
+
readonly min_age: number | null;
|
|
29
|
+
} & {
|
|
30
|
+
readonly max_age: number | null;
|
|
31
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
32
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "AgeThresholdRuleId">>;
|
|
33
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
34
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
35
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
36
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
37
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
38
|
+
}, true>>, never, {
|
|
39
|
+
readonly id: string & import("effect/Brand").Brand<"AgeThresholdRuleId">;
|
|
40
|
+
} & {
|
|
41
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
42
|
+
} & {
|
|
43
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
44
|
+
} & {
|
|
45
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
46
|
+
} & {
|
|
47
|
+
readonly min_age: number | null;
|
|
48
|
+
} & {
|
|
49
|
+
readonly max_age: number | null;
|
|
50
|
+
}> & {
|
|
51
|
+
readonly select: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.brand<typeof Schema.String, "AgeThresholdRuleId">;
|
|
53
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
54
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
55
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
56
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
57
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
58
|
+
}>;
|
|
59
|
+
readonly insert: Schema.Struct<{
|
|
60
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
61
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
62
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
63
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
64
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
65
|
+
}>;
|
|
66
|
+
readonly update: Schema.Struct<{
|
|
67
|
+
readonly id: Schema.brand<typeof Schema.String, "AgeThresholdRuleId">;
|
|
68
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
69
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
70
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
71
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
72
|
+
}>;
|
|
73
|
+
readonly json: Schema.Struct<{
|
|
74
|
+
readonly id: Schema.brand<typeof Schema.String, "AgeThresholdRuleId">;
|
|
75
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
76
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
77
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
78
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
79
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
80
|
+
}>;
|
|
81
|
+
readonly jsonCreate: Schema.Struct<{
|
|
82
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
83
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
84
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
85
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
86
|
+
}>;
|
|
87
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
88
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
89
|
+
readonly role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
90
|
+
readonly min_age: Schema.NullOr<typeof Schema.Number>;
|
|
91
|
+
readonly max_age: Schema.NullOr<typeof Schema.Number>;
|
|
92
|
+
}>;
|
|
93
|
+
};
|
|
94
|
+
export declare class AgeThresholdRule extends AgeThresholdRule_base {
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=AgeThresholdRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgeThresholdRule.d.ts","sourceRoot":"","sources":["../../../src/models/AgeThresholdRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,kBAAkB,0DAAyD,CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhE,qBAAa,gBAAiB,SAAQ,qBAOpC;CAAG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
declare const MemberRole_base: Schema.Class<MemberRole, {
|
|
3
|
+
team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
4
|
+
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
5
|
+
}, Schema.Struct.Encoded<{
|
|
6
|
+
team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
7
|
+
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
8
|
+
}>, never, {
|
|
9
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
10
|
+
} & {
|
|
11
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export declare class MemberRole extends MemberRole_base {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=MemberRole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberRole.d.ts","sourceRoot":"","sources":["../../../src/models/MemberRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;AAIhC,qBAAa,UAAW,SAAQ,eAG9B;CAAG"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const NotificationId: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
4
|
+
export type NotificationId = typeof NotificationId.Type;
|
|
5
|
+
export declare const NotificationType: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
6
|
+
export type NotificationType = typeof NotificationType.Type;
|
|
7
|
+
declare const Notification_base: import("@effect/experimental/VariantSchema").Class<Notification, {
|
|
8
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
|
|
9
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
10
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
11
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
12
|
+
readonly title: typeof Schema.String;
|
|
13
|
+
readonly body: typeof Schema.String;
|
|
14
|
+
readonly is_read: typeof Schema.Boolean;
|
|
15
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
16
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
17
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
|
|
18
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
19
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
20
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
21
|
+
readonly title: typeof Schema.String;
|
|
22
|
+
readonly body: typeof Schema.String;
|
|
23
|
+
readonly is_read: typeof Schema.Boolean;
|
|
24
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
25
|
+
}, true>, {
|
|
26
|
+
readonly id: string & import("effect/Brand").Brand<"NotificationId">;
|
|
27
|
+
} & {
|
|
28
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
29
|
+
} & {
|
|
30
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
31
|
+
} & {
|
|
32
|
+
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
33
|
+
} & {
|
|
34
|
+
readonly type: "age_role_assigned" | "age_role_removed" | "role_assigned" | "role_removed";
|
|
35
|
+
} & {
|
|
36
|
+
readonly title: string;
|
|
37
|
+
} & {
|
|
38
|
+
readonly body: string;
|
|
39
|
+
} & {
|
|
40
|
+
readonly is_read: boolean;
|
|
41
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
42
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "NotificationId">>;
|
|
43
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
44
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
45
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
46
|
+
readonly title: typeof Schema.String;
|
|
47
|
+
readonly body: typeof Schema.String;
|
|
48
|
+
readonly is_read: typeof Schema.Boolean;
|
|
49
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
50
|
+
}, true>>, never, {
|
|
51
|
+
readonly id: string & import("effect/Brand").Brand<"NotificationId">;
|
|
52
|
+
} & {
|
|
53
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
54
|
+
} & {
|
|
55
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
56
|
+
} & {
|
|
57
|
+
readonly user_id: string & import("effect/Brand").Brand<"UserId">;
|
|
58
|
+
} & {
|
|
59
|
+
readonly type: "age_role_assigned" | "age_role_removed" | "role_assigned" | "role_removed";
|
|
60
|
+
} & {
|
|
61
|
+
readonly title: string;
|
|
62
|
+
} & {
|
|
63
|
+
readonly body: string;
|
|
64
|
+
} & {
|
|
65
|
+
readonly is_read: boolean;
|
|
66
|
+
}> & {
|
|
67
|
+
readonly select: Schema.Struct<{
|
|
68
|
+
readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
69
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
70
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
71
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
72
|
+
readonly title: typeof Schema.String;
|
|
73
|
+
readonly body: typeof Schema.String;
|
|
74
|
+
readonly is_read: typeof Schema.Boolean;
|
|
75
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
76
|
+
}>;
|
|
77
|
+
readonly insert: Schema.Struct<{
|
|
78
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
79
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
80
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
81
|
+
readonly title: typeof Schema.String;
|
|
82
|
+
readonly body: typeof Schema.String;
|
|
83
|
+
readonly is_read: typeof Schema.Boolean;
|
|
84
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
85
|
+
}>;
|
|
86
|
+
readonly update: Schema.Struct<{
|
|
87
|
+
readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
88
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
89
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
90
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
91
|
+
readonly title: typeof Schema.String;
|
|
92
|
+
readonly body: typeof Schema.String;
|
|
93
|
+
readonly is_read: typeof Schema.Boolean;
|
|
94
|
+
}>;
|
|
95
|
+
readonly json: Schema.Struct<{
|
|
96
|
+
readonly id: Schema.brand<typeof Schema.String, "NotificationId">;
|
|
97
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
98
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
99
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
100
|
+
readonly title: typeof Schema.String;
|
|
101
|
+
readonly body: typeof Schema.String;
|
|
102
|
+
readonly is_read: typeof Schema.Boolean;
|
|
103
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
104
|
+
}>;
|
|
105
|
+
readonly jsonCreate: Schema.Struct<{
|
|
106
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
107
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
108
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
109
|
+
readonly title: typeof Schema.String;
|
|
110
|
+
readonly body: typeof Schema.String;
|
|
111
|
+
readonly is_read: typeof Schema.Boolean;
|
|
112
|
+
}>;
|
|
113
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
114
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
115
|
+
readonly user_id: Schema.brand<typeof Schema.String, "UserId">;
|
|
116
|
+
readonly type: Schema.Literal<["age_role_assigned", "age_role_removed", "role_assigned", "role_removed"]>;
|
|
117
|
+
readonly title: typeof Schema.String;
|
|
118
|
+
readonly body: typeof Schema.String;
|
|
119
|
+
readonly is_read: typeof Schema.Boolean;
|
|
120
|
+
}>;
|
|
121
|
+
};
|
|
122
|
+
export declare class Notification extends Notification_base {
|
|
123
|
+
}
|
|
124
|
+
export {};
|
|
125
|
+
//# sourceMappingURL=Notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/models/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAExD,eAAO,MAAM,gBAAgB,4FAK5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5D,qBAAa,YAAa,SAAQ,iBAShC;CAAG"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const RoleId: Schema.brand<typeof Schema.String, "RoleId">;
|
|
4
|
+
export type RoleId = typeof RoleId.Type;
|
|
5
|
+
export declare const Permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
|
|
6
|
+
export type Permission = typeof Permission.Type;
|
|
7
|
+
export declare const allPermissions: ReadonlyArray<Permission>;
|
|
8
|
+
export declare const defaultPermissions: Record<string, ReadonlyArray<Permission>>;
|
|
9
|
+
export declare const builtInRoleNames: readonly ["Admin", "Captain", "Player"];
|
|
10
|
+
declare const Role_base: import("@effect/experimental/VariantSchema").Class<Role, {
|
|
11
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleId">>;
|
|
12
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
13
|
+
readonly name: typeof Schema.String;
|
|
14
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
15
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
16
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
17
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleId">>;
|
|
18
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
19
|
+
readonly name: typeof Schema.String;
|
|
20
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
21
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
22
|
+
}, true>, {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
} & {
|
|
25
|
+
readonly id: string & import("effect/Brand").Brand<"RoleId">;
|
|
26
|
+
} & {
|
|
27
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
28
|
+
} & {
|
|
29
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
30
|
+
} & {
|
|
31
|
+
readonly is_built_in: boolean;
|
|
32
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
33
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RoleId">>;
|
|
34
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
35
|
+
readonly name: typeof Schema.String;
|
|
36
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
37
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
38
|
+
}, true>>, never, {
|
|
39
|
+
readonly name: string;
|
|
40
|
+
} & {
|
|
41
|
+
readonly id: string & import("effect/Brand").Brand<"RoleId">;
|
|
42
|
+
} & {
|
|
43
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
44
|
+
} & {
|
|
45
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
46
|
+
} & {
|
|
47
|
+
readonly is_built_in: boolean;
|
|
48
|
+
}> & {
|
|
49
|
+
readonly select: Schema.Struct<{
|
|
50
|
+
readonly id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
51
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
52
|
+
readonly name: typeof Schema.String;
|
|
53
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
54
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
55
|
+
}>;
|
|
56
|
+
readonly insert: Schema.Struct<{
|
|
57
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
58
|
+
readonly name: typeof Schema.String;
|
|
59
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
60
|
+
readonly created_at: import("@effect/experimental/VariantSchema").Overrideable<import("effect/DateTime").Utc, Date, never>;
|
|
61
|
+
}>;
|
|
62
|
+
readonly update: Schema.Struct<{
|
|
63
|
+
readonly id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
64
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
65
|
+
readonly name: typeof Schema.String;
|
|
66
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
67
|
+
}>;
|
|
68
|
+
readonly json: Schema.Struct<{
|
|
69
|
+
readonly id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
70
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
71
|
+
readonly name: typeof Schema.String;
|
|
72
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
73
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
74
|
+
}>;
|
|
75
|
+
readonly jsonCreate: Schema.Struct<{
|
|
76
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
77
|
+
readonly name: typeof Schema.String;
|
|
78
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
79
|
+
}>;
|
|
80
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
81
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
82
|
+
readonly name: typeof Schema.String;
|
|
83
|
+
readonly is_built_in: typeof Schema.Boolean;
|
|
84
|
+
}>;
|
|
85
|
+
};
|
|
86
|
+
export declare class Role extends Role_base {
|
|
87
|
+
}
|
|
88
|
+
declare const RolePermission_base: Schema.Class<RolePermission, {
|
|
89
|
+
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
90
|
+
permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
|
|
91
|
+
}, Schema.Struct.Encoded<{
|
|
92
|
+
role_id: Schema.brand<typeof Schema.String, "RoleId">;
|
|
93
|
+
permission: Schema.Literal<["team:manage", "team:invite", "roster:view", "roster:manage", "member:view", "member:edit", "member:remove", "role:view", "role:manage"]>;
|
|
94
|
+
}>, never, {
|
|
95
|
+
readonly role_id: string & import("effect/Brand").Brand<"RoleId">;
|
|
96
|
+
} & {
|
|
97
|
+
readonly permission: "team:manage" | "team:invite" | "roster:view" | "roster:manage" | "member:view" | "member:edit" | "member:remove" | "role:view" | "role:manage";
|
|
98
|
+
}, {}, {}>;
|
|
99
|
+
export declare class RolePermission extends RolePermission_base {
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=Role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/models/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,MAAM,8CAA6C,CAAC;AACjE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,UAAU,2JAUtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,UAAU,CACH,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAcxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,yCAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExE,qBAAa,IAAK,SAAQ,SAMxB;CAAG;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAGlC;CAAG"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const RosterMemberId: Schema.brand<typeof Schema.String, "RosterMemberId">;
|
|
4
|
+
export type RosterMemberId = typeof RosterMemberId.Type;
|
|
5
|
+
declare const RosterMember_base: import("@effect/experimental/VariantSchema").Class<RosterMember, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RosterMemberId">>;
|
|
7
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
8
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
9
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
10
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
11
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RosterMemberId">>;
|
|
12
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
13
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
14
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
15
|
+
}, true>, {
|
|
16
|
+
readonly id: string & import("effect/Brand").Brand<"RosterMemberId">;
|
|
17
|
+
} & {
|
|
18
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
19
|
+
} & {
|
|
20
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
21
|
+
} & {
|
|
22
|
+
readonly roster_id: string & import("effect/Brand").Brand<"RosterId">;
|
|
23
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
24
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RosterMemberId">>;
|
|
25
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
26
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
27
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
28
|
+
}, true>>, never, {
|
|
29
|
+
readonly id: string & import("effect/Brand").Brand<"RosterMemberId">;
|
|
30
|
+
} & {
|
|
31
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
32
|
+
} & {
|
|
33
|
+
readonly team_member_id: string & import("effect/Brand").Brand<"TeamMemberId">;
|
|
34
|
+
} & {
|
|
35
|
+
readonly roster_id: string & import("effect/Brand").Brand<"RosterId">;
|
|
36
|
+
}> & {
|
|
37
|
+
readonly select: Schema.Struct<{
|
|
38
|
+
readonly id: Schema.brand<typeof Schema.String, "RosterMemberId">;
|
|
39
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
40
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
41
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
42
|
+
}>;
|
|
43
|
+
readonly insert: Schema.Struct<{
|
|
44
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
45
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
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, "RosterMemberId">;
|
|
50
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
51
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
52
|
+
}>;
|
|
53
|
+
readonly json: Schema.Struct<{
|
|
54
|
+
readonly id: Schema.brand<typeof Schema.String, "RosterMemberId">;
|
|
55
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
56
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
57
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
58
|
+
}>;
|
|
59
|
+
readonly jsonCreate: Schema.Struct<{
|
|
60
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
61
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
62
|
+
}>;
|
|
63
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
64
|
+
readonly roster_id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
65
|
+
readonly team_member_id: Schema.brand<typeof Schema.String, "TeamMemberId">;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
68
|
+
export declare class RosterMember extends RosterMember_base {
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=RosterMemberModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RosterMemberModel.d.ts","sourceRoot":"","sources":["../../../src/models/RosterMemberModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,cAAc,sDAAqD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,qBAAa,YAAa,SAAQ,iBAKhC;CAAG"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const RosterId: Schema.brand<typeof Schema.String, "RosterId">;
|
|
4
|
+
export type RosterId = typeof RosterId.Type;
|
|
5
|
+
declare const Roster_base: import("@effect/experimental/VariantSchema").Class<Roster, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RosterId">>;
|
|
7
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
8
|
+
readonly name: typeof Schema.String;
|
|
9
|
+
readonly active: typeof Schema.Boolean;
|
|
10
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
11
|
+
}, import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
12
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RosterId">>;
|
|
13
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
14
|
+
readonly name: typeof Schema.String;
|
|
15
|
+
readonly active: typeof Schema.Boolean;
|
|
16
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
17
|
+
}, true>, {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
} & {
|
|
20
|
+
readonly id: string & import("effect/Brand").Brand<"RosterId">;
|
|
21
|
+
} & {
|
|
22
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
23
|
+
} & {
|
|
24
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
25
|
+
} & {
|
|
26
|
+
readonly active: boolean;
|
|
27
|
+
}, Schema.Struct.Encoded<import("@effect/experimental/VariantSchema").ExtractFields<"select", {
|
|
28
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "RosterId">>;
|
|
29
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
30
|
+
readonly name: typeof Schema.String;
|
|
31
|
+
readonly active: typeof Schema.Boolean;
|
|
32
|
+
readonly created_at: Model.DateTimeInsertFromDate;
|
|
33
|
+
}, true>>, never, {
|
|
34
|
+
readonly name: string;
|
|
35
|
+
} & {
|
|
36
|
+
readonly id: string & import("effect/Brand").Brand<"RosterId">;
|
|
37
|
+
} & {
|
|
38
|
+
readonly created_at: import("effect/DateTime").Utc;
|
|
39
|
+
} & {
|
|
40
|
+
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
41
|
+
} & {
|
|
42
|
+
readonly active: boolean;
|
|
43
|
+
}> & {
|
|
44
|
+
readonly select: Schema.Struct<{
|
|
45
|
+
readonly id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
46
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
47
|
+
readonly name: typeof Schema.String;
|
|
48
|
+
readonly active: typeof Schema.Boolean;
|
|
49
|
+
readonly created_at: Model.DateTimeFromDate;
|
|
50
|
+
}>;
|
|
51
|
+
readonly insert: Schema.Struct<{
|
|
52
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
53
|
+
readonly name: typeof Schema.String;
|
|
54
|
+
readonly active: typeof Schema.Boolean;
|
|
55
|
+
readonly created_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, "RosterId">;
|
|
59
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
60
|
+
readonly name: typeof Schema.String;
|
|
61
|
+
readonly active: typeof Schema.Boolean;
|
|
62
|
+
}>;
|
|
63
|
+
readonly json: Schema.Struct<{
|
|
64
|
+
readonly id: Schema.brand<typeof Schema.String, "RosterId">;
|
|
65
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
66
|
+
readonly name: typeof Schema.String;
|
|
67
|
+
readonly active: typeof Schema.Boolean;
|
|
68
|
+
readonly created_at: typeof Schema.DateTimeUtc;
|
|
69
|
+
}>;
|
|
70
|
+
readonly jsonCreate: Schema.Struct<{
|
|
71
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
72
|
+
readonly name: typeof Schema.String;
|
|
73
|
+
readonly active: typeof Schema.Boolean;
|
|
74
|
+
}>;
|
|
75
|
+
readonly jsonUpdate: Schema.Struct<{
|
|
76
|
+
readonly team_id: Schema.brand<typeof Schema.String, "TeamId">;
|
|
77
|
+
readonly name: typeof Schema.String;
|
|
78
|
+
readonly active: typeof Schema.Boolean;
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
export declare class Roster extends Roster_base {
|
|
82
|
+
}
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=RosterModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RosterModel.d.ts","sourceRoot":"","sources":["../../../src/models/RosterModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,QAAQ,gDAA+C,CAAC;AACrE,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5C,qBAAa,MAAO,SAAQ,WAM1B;CAAG"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Model } from '@effect/sql';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
export declare const SubgroupId: Schema.brand<typeof Schema.String, "SubgroupId">;
|
|
4
|
+
export type SubgroupId = typeof SubgroupId.Type;
|
|
5
|
+
declare const Subgroup_base: import("@effect/experimental/VariantSchema").Class<Subgroup, {
|
|
6
|
+
readonly id: Model.Generated<Schema.brand<typeof Schema.String, "SubgroupId">>;
|
|
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, "SubgroupId">>;
|
|
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<"SubgroupId">;
|
|
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, "SubgroupId">>;
|
|
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<"SubgroupId">;
|
|
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, "SubgroupId">;
|
|
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, "SubgroupId">;
|
|
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, "SubgroupId">;
|
|
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 Subgroup extends Subgroup_base {
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=SubgroupModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubgroupModel.d.ts","sourceRoot":"","sources":["../../../src/models/SubgroupModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,UAAU,kDAAiD,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhD,qBAAa,QAAS,SAAQ,aAK5B;CAAG"}
|
|
@@ -22,12 +22,12 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
22
22
|
readonly id: string & import("effect/Brand").Brand<"TeamInviteId">;
|
|
23
23
|
} & {
|
|
24
24
|
readonly created_at: DateTime.Utc;
|
|
25
|
-
} & {
|
|
26
|
-
readonly code: string;
|
|
27
25
|
} & {
|
|
28
26
|
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
29
27
|
} & {
|
|
30
28
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
29
|
+
} & {
|
|
30
|
+
readonly code: string;
|
|
31
31
|
} & {
|
|
32
32
|
readonly active: boolean;
|
|
33
33
|
} & {
|
|
@@ -44,12 +44,12 @@ declare const TeamInvite_base: import("@effect/experimental/VariantSchema").Clas
|
|
|
44
44
|
readonly id: string & import("effect/Brand").Brand<"TeamInviteId">;
|
|
45
45
|
} & {
|
|
46
46
|
readonly created_at: DateTime.Utc;
|
|
47
|
-
} & {
|
|
48
|
-
readonly code: string;
|
|
49
47
|
} & {
|
|
50
48
|
readonly created_by: string & import("effect/Brand").Brand<"UserId">;
|
|
51
49
|
} & {
|
|
52
50
|
readonly team_id: string & import("effect/Brand").Brand<"TeamId">;
|
|
51
|
+
} & {
|
|
52
|
+
readonly code: string;
|
|
53
53
|
} & {
|
|
54
54
|
readonly active: boolean;
|
|
55
55
|
} & {
|