bantr-api-client 11.0.1 → 11.0.2
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/api-type/src/models/assists.d.ts +7 -0
- package/api-type/src/models/base_league.d.ts +45 -0
- package/api-type/src/models/block.d.ts +27 -0
- package/api-type/src/models/chat.d.ts +37 -0
- package/api-type/src/models/chat_members.d.ts +36 -0
- package/api-type/src/models/clap.d.ts +38 -0
- package/api-type/src/models/comment.d.ts +46 -0
- package/api-type/src/models/demo_leads.d.ts +64 -0
- package/api-type/src/models/direct_message.d.ts +34 -0
- package/api-type/src/models/dynamic_group.d.ts +42 -0
- package/api-type/src/models/dynamic_season_league_template.d.ts +120 -0
- package/api-type/src/models/dynamic_stage.d.ts +52 -0
- package/api-type/src/models/dynamic_stage_template.d.ts +50 -0
- package/api-type/src/models/emoji.d.ts +31 -0
- package/api-type/src/models/emoji_media_mapper.d.ts +38 -0
- package/api-type/src/models/event.d.ts +133 -0
- package/api-type/src/models/free_agent_payment.d.ts +108 -0
- package/api-type/src/models/game_stat_model.d.ts +55 -0
- package/api-type/src/models/goals.d.ts +7 -0
- package/api-type/src/models/hooks/chat_member.d.ts +4 -0
- package/api-type/src/models/hooks/event.d.ts +6 -0
- package/api-type/src/models/hooks/league_schedule.d.ts +3 -0
- package/api-type/src/models/hooks/pickup_group_member.d.ts +4 -0
- package/api-type/src/models/hooks/schedule_events.d.ts +2 -0
- package/api-type/src/models/hooks/team_roster.d.ts +4 -0
- package/api-type/src/models/invite.d.ts +108 -0
- package/api-type/src/models/job.d.ts +33 -0
- package/api-type/src/models/job_type.d.ts +26 -0
- package/api-type/src/models/last_seen_team_message.d.ts +31 -0
- package/api-type/src/models/league.d.ts +175 -0
- package/api-type/src/models/league_group_teams.d.ts +38 -0
- package/api-type/src/models/league_media.d.ts +57 -0
- package/api-type/src/models/league_payment.d.ts +93 -0
- package/api-type/src/models/league_price.d.ts +52 -0
- package/api-type/src/models/league_registration.d.ts +41 -0
- package/api-type/src/models/league_schedule.d.ts +116 -0
- package/api-type/src/models/league_schedule_referee.d.ts +29 -0
- package/api-type/src/models/league_standing.d.ts +83 -0
- package/api-type/src/models/league_stripe.d.ts +23 -0
- package/api-type/src/models/league_teams.d.ts +34 -0
- package/api-type/src/models/league_template.d.ts +35 -0
- package/api-type/src/models/league_waitlist.d.ts +39 -0
- package/api-type/src/models/market_post.d.ts +91 -0
- package/api-type/src/models/match_cards.d.ts +42 -0
- package/api-type/src/models/match_notes.d.ts +49 -0
- package/api-type/src/models/member.d.ts +138 -0
- package/api-type/src/models/member_hidden_comment.d.ts +31 -0
- package/api-type/src/models/member_hidden_message.d.ts +48 -0
- package/api-type/src/models/member_muted_chat.d.ts +38 -0
- package/api-type/src/models/member_muted_event.d.ts +25 -0
- package/api-type/src/models/member_organizations.d.ts +65 -0
- package/api-type/src/models/member_stripe.d.ts +23 -0
- package/api-type/src/models/message.d.ts +34 -0
- package/api-type/src/models/mvp_votes.d.ts +42 -0
- package/api-type/src/models/notification.d.ts +46 -0
- package/api-type/src/models/oauth.d.ts +49 -0
- package/api-type/src/models/organization.d.ts +68 -0
- package/api-type/src/models/organization_free_agent.d.ts +70 -0
- package/api-type/src/models/organization_free_agent_price.d.ts +37 -0
- package/api-type/src/models/organization_leagues.d.ts +23 -0
- package/api-type/src/models/organization_learn_more.d.ts +75 -0
- package/api-type/src/models/organization_stripe.d.ts +68 -0
- package/api-type/src/models/organization_waivers.d.ts +59 -0
- package/api-type/src/models/organization_workspace.d.ts +76 -0
- package/api-type/src/models/organizer.d.ts +70 -0
- package/api-type/src/models/organizer_roles.d.ts +26 -0
- package/api-type/src/models/pickup.d.ts +163 -0
- package/api-type/src/models/pickup_config.d.ts +34 -0
- package/api-type/src/models/pickup_group.d.ts +83 -0
- package/api-type/src/models/pickup_group_members.d.ts +42 -0
- package/api-type/src/models/pickup_payments.d.ts +79 -0
- package/api-type/src/models/pickup_price.d.ts +41 -0
- package/api-type/src/models/pickup_registration.d.ts +38 -0
- package/api-type/src/models/pickup_roster.d.ts +41 -0
- package/api-type/src/models/pickup_stripe.d.ts +23 -0
- package/api-type/src/models/pickup_waitlist.d.ts +33 -0
- package/api-type/src/models/post.d.ts +66 -0
- package/api-type/src/models/referee_note.d.ts +35 -0
- package/api-type/src/models/referee_organization.d.ts +29 -0
- package/api-type/src/models/referees.d.ts +63 -0
- package/api-type/src/models/refresh_token.d.ts +39 -0
- package/api-type/src/models/refund.d.ts +57 -0
- package/api-type/src/models/report.d.ts +32 -0
- package/api-type/src/models/reported_comment.d.ts +28 -0
- package/api-type/src/models/reported_event.d.ts +28 -0
- package/api-type/src/models/reported_message.d.ts +28 -0
- package/api-type/src/models/reported_player.d.ts +28 -0
- package/api-type/src/models/role.d.ts +44 -0
- package/api-type/src/models/rsvp.d.ts +47 -0
- package/api-type/src/models/schedule_event.d.ts +59 -0
- package/api-type/src/models/season.d.ts +48 -0
- package/api-type/src/models/season_league_template.d.ts +126 -0
- package/api-type/src/models/setting.d.ts +24 -0
- package/api-type/src/models/signed_member_waivers.d.ts +59 -0
- package/api-type/src/models/stripe_balance.d.ts +59 -0
- package/api-type/src/models/stripe_transaction.d.ts +65 -0
- package/api-type/src/models/stripe_transfer.d.ts +59 -0
- package/api-type/src/models/stripe_webhook.d.ts +26 -0
- package/api-type/src/models/support.d.ts +39 -0
- package/api-type/src/models/team.d.ts +97 -0
- package/api-type/src/models/team_league_season_roster.d.ts +42 -0
- package/api-type/src/models/team_members.d.ts +43 -0
- package/api-type/src/models/team_message.d.ts +33 -0
- package/api-type/src/models/team_roster.d.ts +71 -0
- package/api-type/src/models/transaction.d.ts +155 -0
- package/api-type/src/models/transaction_event.d.ts +49 -0
- package/api-type/src/models/utils/chat.d.ts +6 -0
- package/api-type/src/models/utils/league.d.ts +2 -0
- package/api-type/src/models/utils/organization.d.ts +1 -0
- package/api-type/src/models/utils/team.d.ts +2 -0
- package/package.json +1 -1
@@ -0,0 +1,45 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { LeagueType } from '../types/league';
|
3
|
+
declare const BaseLeague_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
4
|
+
export declare class BaseLeague extends BaseLeague_base {
|
5
|
+
id: number;
|
6
|
+
name: string;
|
7
|
+
creatorId: number;
|
8
|
+
organizationId: number;
|
9
|
+
orgWorkspaceId: number | null;
|
10
|
+
createdAt: Date | string;
|
11
|
+
updatedAt: Date | string;
|
12
|
+
deletedAt: Date | null;
|
13
|
+
leagueType: LeagueType | string;
|
14
|
+
static tableName: string;
|
15
|
+
static get relationMappings(): RelationMappings;
|
16
|
+
static jsonSchema: {
|
17
|
+
type: string;
|
18
|
+
required: string[];
|
19
|
+
properties: {
|
20
|
+
id: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
name: {
|
24
|
+
type: string;
|
25
|
+
minLength: number;
|
26
|
+
maxLength: number;
|
27
|
+
};
|
28
|
+
creatorId: {
|
29
|
+
type: string;
|
30
|
+
};
|
31
|
+
organizationId: {
|
32
|
+
type: string;
|
33
|
+
};
|
34
|
+
orgWorkspaceId: {
|
35
|
+
type: string[];
|
36
|
+
};
|
37
|
+
leagueType: {
|
38
|
+
type: string;
|
39
|
+
enum: LeagueType[];
|
40
|
+
default: LeagueType;
|
41
|
+
};
|
42
|
+
};
|
43
|
+
};
|
44
|
+
}
|
45
|
+
export {};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
declare const Block_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
3
|
+
export declare class Block extends Block_base {
|
4
|
+
id: number;
|
5
|
+
blockerId: number;
|
6
|
+
blockedUserId: number;
|
7
|
+
createdAt: Date | string;
|
8
|
+
updatedAt: Date | string;
|
9
|
+
deletedAt: Date | null;
|
10
|
+
static tableName: string;
|
11
|
+
static jsonSchema: {
|
12
|
+
type: string;
|
13
|
+
required: string[];
|
14
|
+
properties: {
|
15
|
+
id: {
|
16
|
+
type: string;
|
17
|
+
};
|
18
|
+
blockerId: {
|
19
|
+
type: string;
|
20
|
+
};
|
21
|
+
blockedUserId: {
|
22
|
+
type: string;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
26
|
+
}
|
27
|
+
export default Block;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Member } from './member';
|
3
|
+
import { ChatType } from './utils/chat';
|
4
|
+
export declare class Chat extends Model {
|
5
|
+
static tableName: string;
|
6
|
+
id: number;
|
7
|
+
creatorId: number;
|
8
|
+
chatType: ChatType;
|
9
|
+
createdAt: Date | string;
|
10
|
+
updatedAt: Date | string;
|
11
|
+
members?: Member[];
|
12
|
+
static get relationMappings(): RelationMappings;
|
13
|
+
static jsonSchema: {
|
14
|
+
type: string;
|
15
|
+
required: string[];
|
16
|
+
properties: {
|
17
|
+
id: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
creatorId: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
chatType: {
|
24
|
+
type: string;
|
25
|
+
enum: ChatType[];
|
26
|
+
minLength: number;
|
27
|
+
maxLength: number;
|
28
|
+
};
|
29
|
+
createdAt: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
updatedAt: {
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Member } from './member';
|
3
|
+
import { Chat } from './chat';
|
4
|
+
export declare class ChatMember extends Model {
|
5
|
+
static tableName: string;
|
6
|
+
id: number;
|
7
|
+
chatId: number;
|
8
|
+
memberId: number;
|
9
|
+
createdAt: Date | string;
|
10
|
+
updatedAt: Date | string;
|
11
|
+
member?: Member;
|
12
|
+
chat?: Chat;
|
13
|
+
static get relationMappings(): RelationMappings;
|
14
|
+
static jsonSchema: {
|
15
|
+
type: string;
|
16
|
+
required: string[];
|
17
|
+
properties: {
|
18
|
+
id: {
|
19
|
+
type: string;
|
20
|
+
};
|
21
|
+
memberId: {
|
22
|
+
type: string;
|
23
|
+
};
|
24
|
+
chatId: {
|
25
|
+
type: string;
|
26
|
+
};
|
27
|
+
createdAt: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
updatedAt: {
|
31
|
+
type: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
$afterInsert(): Promise<void>;
|
36
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare const enum TargetTypes {
|
3
|
+
post = "post",
|
4
|
+
comment = "comment",
|
5
|
+
direct_message = "direct_message",
|
6
|
+
team_message = "team_message"
|
7
|
+
}
|
8
|
+
export declare class Clap extends Model {
|
9
|
+
id: number;
|
10
|
+
memberId: number;
|
11
|
+
targetType: string;
|
12
|
+
targetId: number;
|
13
|
+
createdAt?: Date;
|
14
|
+
updatedAt?: Date;
|
15
|
+
static tableName: string;
|
16
|
+
static get relationMappings(): RelationMappings;
|
17
|
+
static get idColumn(): string;
|
18
|
+
static jsonSchema: {
|
19
|
+
type: string;
|
20
|
+
required: string[];
|
21
|
+
properties: {
|
22
|
+
id: {
|
23
|
+
type: string;
|
24
|
+
};
|
25
|
+
memberId: {
|
26
|
+
type: string;
|
27
|
+
};
|
28
|
+
targetType: {
|
29
|
+
type: string;
|
30
|
+
enum: TargetTypes[];
|
31
|
+
};
|
32
|
+
targetId: {
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
}
|
38
|
+
export default Clap;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Member } from './member';
|
3
|
+
export declare const enum TargetTypes {
|
4
|
+
post = "post",
|
5
|
+
event = "event",
|
6
|
+
league_event = "league_event",
|
7
|
+
pickup = "pickup"
|
8
|
+
}
|
9
|
+
export declare class Comment extends Model {
|
10
|
+
id: number;
|
11
|
+
content: string;
|
12
|
+
memberId: number;
|
13
|
+
targetType: string;
|
14
|
+
targetId: number;
|
15
|
+
createdAt?: Date;
|
16
|
+
updatedAt?: Date;
|
17
|
+
members?: Member;
|
18
|
+
static tableName: string;
|
19
|
+
static get relationMappings(): RelationMappings;
|
20
|
+
static get idColumn(): string;
|
21
|
+
static jsonSchema: {
|
22
|
+
type: string;
|
23
|
+
required: string[];
|
24
|
+
properties: {
|
25
|
+
id: {
|
26
|
+
type: string;
|
27
|
+
};
|
28
|
+
content: {
|
29
|
+
type: string;
|
30
|
+
minLength: number;
|
31
|
+
maxLength: number;
|
32
|
+
};
|
33
|
+
memberId: {
|
34
|
+
type: string;
|
35
|
+
};
|
36
|
+
targetType: {
|
37
|
+
type: string;
|
38
|
+
enum: TargetTypes[];
|
39
|
+
};
|
40
|
+
targetId: {
|
41
|
+
type: string;
|
42
|
+
};
|
43
|
+
};
|
44
|
+
};
|
45
|
+
}
|
46
|
+
export default Comment;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare class DemoLeads extends Model {
|
3
|
+
id: number;
|
4
|
+
organizationName: string;
|
5
|
+
fullName: string;
|
6
|
+
email: string;
|
7
|
+
state: string;
|
8
|
+
country: string;
|
9
|
+
phoneNumber: string;
|
10
|
+
numOfTeams: number;
|
11
|
+
numOfPlayers: number;
|
12
|
+
notes: string | null;
|
13
|
+
static tableName: string;
|
14
|
+
static get idColumn(): string;
|
15
|
+
static jsonSchema: {
|
16
|
+
type: string;
|
17
|
+
required: string[];
|
18
|
+
properties: {
|
19
|
+
id: {
|
20
|
+
type: string;
|
21
|
+
};
|
22
|
+
organizationName: {
|
23
|
+
type: string;
|
24
|
+
minLength: number;
|
25
|
+
maxLength: number;
|
26
|
+
};
|
27
|
+
fullName: {
|
28
|
+
type: string;
|
29
|
+
minLength: number;
|
30
|
+
maxLength: number;
|
31
|
+
};
|
32
|
+
email: {
|
33
|
+
type: string;
|
34
|
+
minLength: number;
|
35
|
+
maxLength: number;
|
36
|
+
};
|
37
|
+
state: {
|
38
|
+
type: string;
|
39
|
+
minLength: number;
|
40
|
+
maxLength: number;
|
41
|
+
};
|
42
|
+
country: {
|
43
|
+
type: string;
|
44
|
+
minLength: number;
|
45
|
+
maxLength: number;
|
46
|
+
};
|
47
|
+
phoneNumber: {
|
48
|
+
type: string;
|
49
|
+
minLength: number;
|
50
|
+
maxLength: number;
|
51
|
+
};
|
52
|
+
numOfTeams: {
|
53
|
+
type: string;
|
54
|
+
};
|
55
|
+
numOfPlayers: {
|
56
|
+
type: string;
|
57
|
+
};
|
58
|
+
notes: {
|
59
|
+
type: string[];
|
60
|
+
maxLength: number;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
};
|
64
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class DirectMessage extends Model {
|
3
|
+
id: number;
|
4
|
+
senderId: number;
|
5
|
+
receiverId: number;
|
6
|
+
content: string;
|
7
|
+
createdAt?: Date;
|
8
|
+
updatedAt?: Date;
|
9
|
+
readAt?: Date;
|
10
|
+
static tableName: string;
|
11
|
+
static get relationMappings(): RelationMappings;
|
12
|
+
static get idColumn(): string;
|
13
|
+
static jsonSchema: {
|
14
|
+
type: string;
|
15
|
+
required: string[];
|
16
|
+
properties: {
|
17
|
+
id: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
senderId: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
receiverId: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
content: {
|
27
|
+
type: string;
|
28
|
+
minLength: number;
|
29
|
+
maxLength: number;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
}
|
34
|
+
export default DirectMessage;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { DynamicStage } from './dynamic_stage';
|
3
|
+
import { LeagueSchedule } from './league_schedule';
|
4
|
+
import { LeagueGroupTeam } from './league_group_teams';
|
5
|
+
import { LeagueStanding } from './league_standing';
|
6
|
+
declare const DynamicGroup_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
7
|
+
export declare class DynamicGroup extends DynamicGroup_base {
|
8
|
+
id: number;
|
9
|
+
name: string;
|
10
|
+
dynamicStageId: number;
|
11
|
+
createdAt?: Date | string;
|
12
|
+
updatedAt?: Date | string;
|
13
|
+
deletedAt?: Date | null;
|
14
|
+
groupTeams?: LeagueGroupTeam[];
|
15
|
+
stage?: DynamicStage;
|
16
|
+
leagueStandings?: LeagueStanding[];
|
17
|
+
leagueSchedules?: LeagueSchedule[];
|
18
|
+
isPublished?: boolean;
|
19
|
+
stageName?: string;
|
20
|
+
static tableName: string;
|
21
|
+
static get modifiers(): Record<string, (builder: any) => void>;
|
22
|
+
static get relationMappings(): RelationMappings;
|
23
|
+
static jsonSchema: {
|
24
|
+
type: string;
|
25
|
+
required: string[];
|
26
|
+
properties: {
|
27
|
+
id: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
name: {
|
31
|
+
type: string;
|
32
|
+
minLength: number;
|
33
|
+
maxLength: number;
|
34
|
+
};
|
35
|
+
dynamicStageId: {
|
36
|
+
type: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
};
|
40
|
+
hasVacancy(): Promise<boolean>;
|
41
|
+
}
|
42
|
+
export {};
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { DayOfWeek, Gender } from '../types/league';
|
3
|
+
import { Organizer } from './organizer';
|
4
|
+
import { DynamicStageTemplate } from './dynamic_stage_template';
|
5
|
+
declare const DynamicSeasonLeagueTemplate_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
6
|
+
export declare class DynamicSeasonLeagueTemplate extends DynamicSeasonLeagueTemplate_base {
|
7
|
+
id: number;
|
8
|
+
name: string;
|
9
|
+
organizationId: number;
|
10
|
+
orgWorkspaceId: number | null;
|
11
|
+
creatorId: number;
|
12
|
+
seasonId: number | null;
|
13
|
+
baseLeagueId: number | null;
|
14
|
+
format: string;
|
15
|
+
gender: Gender;
|
16
|
+
startDate: string | Date;
|
17
|
+
skillLevel: number;
|
18
|
+
price: number;
|
19
|
+
deposit: number | null;
|
20
|
+
heroImage: string | null;
|
21
|
+
paymentLink: string | null;
|
22
|
+
description: string | null;
|
23
|
+
dayOfWeek: DayOfWeek | null | string;
|
24
|
+
completedAt: Date | null;
|
25
|
+
startTimes: string[] | null;
|
26
|
+
locations?: string[] | null;
|
27
|
+
coordinatorId: number | null;
|
28
|
+
coordinator?: Organizer;
|
29
|
+
createdAt?: Date | string;
|
30
|
+
updatedAt?: Date | string;
|
31
|
+
deletedAt?: Date | null;
|
32
|
+
stageTemplates?: DynamicStageTemplate;
|
33
|
+
static tableName: string;
|
34
|
+
static get relationMappings(): RelationMappings;
|
35
|
+
static jsonSchema: {
|
36
|
+
type: string;
|
37
|
+
required: string[];
|
38
|
+
properties: {
|
39
|
+
id: {
|
40
|
+
type: string;
|
41
|
+
};
|
42
|
+
name: {
|
43
|
+
type: string;
|
44
|
+
minLength: number;
|
45
|
+
maxLength: number;
|
46
|
+
};
|
47
|
+
format: {
|
48
|
+
type: string[];
|
49
|
+
minLength: number;
|
50
|
+
maxLength: number;
|
51
|
+
};
|
52
|
+
gender: {
|
53
|
+
type: string[];
|
54
|
+
enum: (Gender | null)[];
|
55
|
+
minLength: number;
|
56
|
+
maxLength: number;
|
57
|
+
};
|
58
|
+
startDate: {
|
59
|
+
type: string[];
|
60
|
+
};
|
61
|
+
completedAt: {
|
62
|
+
type: string[];
|
63
|
+
};
|
64
|
+
skillLevel: {
|
65
|
+
type: string[];
|
66
|
+
};
|
67
|
+
price: {
|
68
|
+
type: string[];
|
69
|
+
};
|
70
|
+
deposit: {
|
71
|
+
type: string[];
|
72
|
+
};
|
73
|
+
heroImage: {
|
74
|
+
type: string[];
|
75
|
+
};
|
76
|
+
paymentLink: {
|
77
|
+
type: string[];
|
78
|
+
};
|
79
|
+
description: {
|
80
|
+
type: string[];
|
81
|
+
minLength: number;
|
82
|
+
maxLength: number;
|
83
|
+
};
|
84
|
+
dayOfWeek: {
|
85
|
+
type: string[];
|
86
|
+
enum: (DayOfWeek | null)[];
|
87
|
+
minLength: number;
|
88
|
+
maxLength: number;
|
89
|
+
};
|
90
|
+
creatorId: {
|
91
|
+
type: string;
|
92
|
+
};
|
93
|
+
organizationId: {
|
94
|
+
type: string;
|
95
|
+
};
|
96
|
+
orgWorkspaceId: {
|
97
|
+
type: string[];
|
98
|
+
};
|
99
|
+
baseLeagueId: {
|
100
|
+
type: string[];
|
101
|
+
};
|
102
|
+
seasonId: {
|
103
|
+
type: string[];
|
104
|
+
};
|
105
|
+
startTimes: {
|
106
|
+
type: string[];
|
107
|
+
items: {
|
108
|
+
type: string[];
|
109
|
+
};
|
110
|
+
};
|
111
|
+
locations: {
|
112
|
+
type: string[];
|
113
|
+
items: {
|
114
|
+
type: string[];
|
115
|
+
};
|
116
|
+
};
|
117
|
+
};
|
118
|
+
};
|
119
|
+
}
|
120
|
+
export {};
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { DynamicGroup } from './dynamic_group';
|
3
|
+
import { LeagueSchedule } from './league_schedule';
|
4
|
+
declare const DynamicStage_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
+
export declare class DynamicStage extends DynamicStage_base {
|
6
|
+
id: number;
|
7
|
+
leagueId: number;
|
8
|
+
name: string;
|
9
|
+
groupLimit: number;
|
10
|
+
teamsPerGroup: number;
|
11
|
+
minGamesPerTeam: number;
|
12
|
+
orderNum: number;
|
13
|
+
createdAt?: Date | string;
|
14
|
+
updatedAt?: Date | string;
|
15
|
+
deletedAt?: Date | null;
|
16
|
+
groups?: DynamicGroup[];
|
17
|
+
leagueSchedules?: LeagueSchedule[];
|
18
|
+
static tableName: string;
|
19
|
+
static get modifiers(): Record<string, (builder: any) => void>;
|
20
|
+
static get relationMappings(): RelationMappings;
|
21
|
+
static jsonSchema: {
|
22
|
+
type: string;
|
23
|
+
required: string[];
|
24
|
+
properties: {
|
25
|
+
id: {
|
26
|
+
type: string;
|
27
|
+
};
|
28
|
+
leagueId: {
|
29
|
+
type: string;
|
30
|
+
};
|
31
|
+
name: {
|
32
|
+
type: string;
|
33
|
+
minLength: number;
|
34
|
+
maxLength: number;
|
35
|
+
};
|
36
|
+
groupLimit: {
|
37
|
+
type: string;
|
38
|
+
};
|
39
|
+
teamsPerGroup: {
|
40
|
+
type: string;
|
41
|
+
};
|
42
|
+
minGamesPerTeam: {
|
43
|
+
type: string;
|
44
|
+
};
|
45
|
+
orderNum: {
|
46
|
+
type: string;
|
47
|
+
minimum: number;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
};
|
51
|
+
}
|
52
|
+
export {};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
declare const DynamicStageTemplate_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
3
|
+
export declare class DynamicStageTemplate extends DynamicStageTemplate_base {
|
4
|
+
id: number;
|
5
|
+
name: string;
|
6
|
+
groupLimit: number;
|
7
|
+
teamsPerGroup: number;
|
8
|
+
minGamesPerTeam: number;
|
9
|
+
dynamicSeasonLeagueTemplateId: number;
|
10
|
+
orderNum: number;
|
11
|
+
createdAt?: Date | string;
|
12
|
+
updatedAt?: Date | string;
|
13
|
+
deletedAt?: Date | null;
|
14
|
+
static tableName: string;
|
15
|
+
static get relationMappings(): RelationMappings;
|
16
|
+
static jsonSchema: {
|
17
|
+
type: string;
|
18
|
+
required: string[];
|
19
|
+
properties: {
|
20
|
+
id: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
name: {
|
24
|
+
type: string;
|
25
|
+
minLength: number;
|
26
|
+
maxLength: number;
|
27
|
+
};
|
28
|
+
groupLimit: {
|
29
|
+
type: string;
|
30
|
+
default: number;
|
31
|
+
};
|
32
|
+
teamsPerGroup: {
|
33
|
+
type: string;
|
34
|
+
default: number;
|
35
|
+
};
|
36
|
+
minGamesPerTeam: {
|
37
|
+
type: string;
|
38
|
+
default: number;
|
39
|
+
};
|
40
|
+
dynamicSeasonLeagueTemplateId: {
|
41
|
+
type: string;
|
42
|
+
};
|
43
|
+
orderNum: {
|
44
|
+
type: string;
|
45
|
+
minimum: number;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
};
|
49
|
+
}
|
50
|
+
export {};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare class Emoji extends Model {
|
3
|
+
id: number;
|
4
|
+
name: string;
|
5
|
+
url: string;
|
6
|
+
isActive: boolean;
|
7
|
+
updatedAt: Date | string;
|
8
|
+
createdAt: Date | string;
|
9
|
+
static tableName: string;
|
10
|
+
static get idColumn(): string;
|
11
|
+
static jsonSchema: {
|
12
|
+
type: string;
|
13
|
+
required: string[];
|
14
|
+
properties: {
|
15
|
+
id: {
|
16
|
+
type: string;
|
17
|
+
};
|
18
|
+
name: {
|
19
|
+
type: string;
|
20
|
+
};
|
21
|
+
url: {
|
22
|
+
type: string;
|
23
|
+
};
|
24
|
+
isActive: {
|
25
|
+
type: string;
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
30
|
+
}
|
31
|
+
export default Emoji;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Emoji } from './emoji';
|
3
|
+
import { USER_TYPE } from './league_media';
|
4
|
+
export declare class EmojiMediaMapper extends Model {
|
5
|
+
id: number;
|
6
|
+
emojiId: number;
|
7
|
+
mediaId: number;
|
8
|
+
actorId: number | null;
|
9
|
+
actorType: USER_TYPE | null;
|
10
|
+
updatedAt: Date | string;
|
11
|
+
createdAt: Date | string;
|
12
|
+
emoji?: Emoji | null;
|
13
|
+
static tableName: string;
|
14
|
+
static get relationMappings(): RelationMappings;
|
15
|
+
static get idColumn(): string;
|
16
|
+
static jsonSchema: {
|
17
|
+
type: string;
|
18
|
+
required: string[];
|
19
|
+
properties: {
|
20
|
+
id: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
emojiId: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
mediaId: {
|
27
|
+
type: string;
|
28
|
+
};
|
29
|
+
actorId: {
|
30
|
+
type: string[];
|
31
|
+
};
|
32
|
+
actorType: {
|
33
|
+
type: string[];
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
}
|
38
|
+
export default EmojiMediaMapper;
|