bantr-api-client 1.6.0 → 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/api-type/src/trpcRouter/discount_code.router.d.ts +12 -12
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +3 -3
- package/api-type/src/trpcRouter/league_payments.router.d.ts +21 -21
- package/api-type/src/trpcRouter/oauth.router.d.ts +1 -1
- package/api-type/src/trpcRouter/organization.router.d.ts +2 -2
- package/api-type/src/trpcRouter/pickup_payments.router.d.ts +3 -3
- package/api-type/src/trpcRouter/product.router.d.ts +2 -2
- package/api-type/src/trpcRouter/router.d.ts +148 -148
- package/api-type/src/trpcRouter/team.d.ts +16 -16
- package/api-type/src/trpcRouter/transaction.router.d.ts +14 -14
- package/dist/src/index.d.ts +222 -222
- package/dist/src/provider.d.ts +148 -148
- package/dist/src/query.d.ts +74 -74
- package/package.json +1 -1
- package/tsconfig.json +1 -1
@@ -0,0 +1,66 @@
|
|
1
|
+
import { Transaction } from 'knex';
|
2
|
+
import { Model, RelationMappings } from 'objection';
|
3
|
+
import { LeagueSchedule } from './league_schedule';
|
4
|
+
export declare const enum PostTypes {
|
5
|
+
broadcast = "broadcast",
|
6
|
+
gameRecap = "gameRecap",
|
7
|
+
mediaGallery = "mediaGallery"
|
8
|
+
}
|
9
|
+
declare const Post_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
10
|
+
export declare class Post extends Post_base {
|
11
|
+
id: number;
|
12
|
+
content: string;
|
13
|
+
teamId: number | null;
|
14
|
+
creatorId?: number;
|
15
|
+
eventId?: number;
|
16
|
+
leagueScheduleId?: number;
|
17
|
+
postType: string;
|
18
|
+
eventMeta?: Record<any, any>;
|
19
|
+
createdAt?: Date | string;
|
20
|
+
updatedAt?: Date | string;
|
21
|
+
deletedAt: Date | null;
|
22
|
+
static tableName: string;
|
23
|
+
static get relationMappings(): RelationMappings;
|
24
|
+
static get idColumn(): string;
|
25
|
+
static jsonSchema: {
|
26
|
+
type: string;
|
27
|
+
required: string[];
|
28
|
+
properties: {
|
29
|
+
id: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
content: {
|
33
|
+
type: string;
|
34
|
+
minLength: number;
|
35
|
+
};
|
36
|
+
teamId: {
|
37
|
+
type: string[];
|
38
|
+
};
|
39
|
+
creatorId: {
|
40
|
+
type: string;
|
41
|
+
};
|
42
|
+
leagueId: {
|
43
|
+
type: string;
|
44
|
+
};
|
45
|
+
eventId: {
|
46
|
+
type: string;
|
47
|
+
};
|
48
|
+
postType: {
|
49
|
+
type: string;
|
50
|
+
enum: PostTypes[];
|
51
|
+
};
|
52
|
+
};
|
53
|
+
if: {
|
54
|
+
properties: {
|
55
|
+
postType: {
|
56
|
+
const: PostTypes;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
};
|
60
|
+
then: {
|
61
|
+
required: string[];
|
62
|
+
};
|
63
|
+
};
|
64
|
+
static syncEventMeta(leagueSchedule: LeagueSchedule, trx?: Transaction): Promise<void>;
|
65
|
+
}
|
66
|
+
export default Post;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare class RefereeNotes extends Model {
|
3
|
+
id: number;
|
4
|
+
note: string;
|
5
|
+
organizerId: number | null;
|
6
|
+
refereeId: number | null;
|
7
|
+
organizationId: number;
|
8
|
+
static tableName: string;
|
9
|
+
static jsonSchema: {
|
10
|
+
type: string;
|
11
|
+
required: string[];
|
12
|
+
properties: {
|
13
|
+
id: {
|
14
|
+
type: string;
|
15
|
+
};
|
16
|
+
note: {
|
17
|
+
type: string;
|
18
|
+
MinLength: number;
|
19
|
+
maxLength: number;
|
20
|
+
};
|
21
|
+
organizerId: {
|
22
|
+
type: string[];
|
23
|
+
default: null;
|
24
|
+
};
|
25
|
+
refereeId: {
|
26
|
+
type: string[];
|
27
|
+
default: null;
|
28
|
+
};
|
29
|
+
organizationId: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
};
|
34
|
+
}
|
35
|
+
export default RefereeNotes;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare class RefereeOrganization extends Model {
|
3
|
+
id: number;
|
4
|
+
refereeId: number | null;
|
5
|
+
organizationId: number;
|
6
|
+
isArchived: boolean;
|
7
|
+
static tableName: string;
|
8
|
+
static jsonSchema: {
|
9
|
+
type: string;
|
10
|
+
required: string[];
|
11
|
+
properties: {
|
12
|
+
id: {
|
13
|
+
type: string;
|
14
|
+
};
|
15
|
+
refereeId: {
|
16
|
+
type: string[];
|
17
|
+
default: null;
|
18
|
+
};
|
19
|
+
organizationId: {
|
20
|
+
type: string;
|
21
|
+
};
|
22
|
+
isArchived: {
|
23
|
+
type: string[];
|
24
|
+
default: boolean;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
29
|
+
export default RefereeOrganization;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { TPublicInfo } from '../types/referee';
|
3
|
+
import { Organization } from './organization';
|
4
|
+
declare const Referee_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
+
export declare class Referee extends Referee_base {
|
6
|
+
id: number;
|
7
|
+
firstName: string;
|
8
|
+
lastName: string;
|
9
|
+
email: string;
|
10
|
+
password: string;
|
11
|
+
avatar?: string | null;
|
12
|
+
phoneNumber?: string;
|
13
|
+
deletedAt: Date | null;
|
14
|
+
updatedAt: Date | string;
|
15
|
+
createdAt: Date | string;
|
16
|
+
organizations?: Organization[];
|
17
|
+
static tableName: string;
|
18
|
+
static get relationMappings(): RelationMappings;
|
19
|
+
static get modifiers(): Record<string, (builder: any) => void>;
|
20
|
+
static jsonSchema: {
|
21
|
+
type: string;
|
22
|
+
required: string[];
|
23
|
+
properties: {
|
24
|
+
id: {
|
25
|
+
type: string;
|
26
|
+
};
|
27
|
+
firstName: {
|
28
|
+
type: string;
|
29
|
+
minLength: number;
|
30
|
+
maxLength: number;
|
31
|
+
};
|
32
|
+
lastName: {
|
33
|
+
type: string;
|
34
|
+
minLength: number;
|
35
|
+
maxLength: number;
|
36
|
+
};
|
37
|
+
email: {
|
38
|
+
type: string;
|
39
|
+
minLength: number;
|
40
|
+
maxLength: number;
|
41
|
+
};
|
42
|
+
password: {
|
43
|
+
type: string;
|
44
|
+
minLength: number;
|
45
|
+
maxLength: number;
|
46
|
+
};
|
47
|
+
phoneNumber: {
|
48
|
+
type: string;
|
49
|
+
minLength: number;
|
50
|
+
maxLength: number;
|
51
|
+
};
|
52
|
+
avatar: {
|
53
|
+
type: string[];
|
54
|
+
minLength: number;
|
55
|
+
maxLength: number;
|
56
|
+
default: null;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
};
|
60
|
+
static isEmailTaken(email: string): Promise<boolean>;
|
61
|
+
getPublicInfo(): TPublicInfo;
|
62
|
+
}
|
63
|
+
export default Referee;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class RefreshToken extends Model {
|
3
|
+
static tableName: string;
|
4
|
+
id: number;
|
5
|
+
token: string;
|
6
|
+
memberId: number | null;
|
7
|
+
organizerId: number | null;
|
8
|
+
refereeId: number | null;
|
9
|
+
createdAt: Date | string;
|
10
|
+
updatedAt: Date | string;
|
11
|
+
static get relationMappings(): RelationMappings;
|
12
|
+
static jsonSchema: {
|
13
|
+
type: string;
|
14
|
+
required: string[];
|
15
|
+
properties: {
|
16
|
+
id: {
|
17
|
+
type: string;
|
18
|
+
};
|
19
|
+
memberId: {
|
20
|
+
type: string[];
|
21
|
+
};
|
22
|
+
organizerId: {
|
23
|
+
type: string[];
|
24
|
+
};
|
25
|
+
refereeId: {
|
26
|
+
type: string[];
|
27
|
+
};
|
28
|
+
token: {
|
29
|
+
type: string;
|
30
|
+
};
|
31
|
+
createdAt: {
|
32
|
+
type: string;
|
33
|
+
};
|
34
|
+
updatedAt: {
|
35
|
+
type: string;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
};
|
39
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { StripeRefundStatus } from '../types/common';
|
3
|
+
import { LeaguePayment } from './league_payment';
|
4
|
+
import { PickupPayment } from './pickup_payments';
|
5
|
+
import { FreeAgentPayment } from './free_agent_payment';
|
6
|
+
import { QueryBuilder } from 'objection';
|
7
|
+
declare const Refund_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
8
|
+
export declare class Refund extends Refund_base {
|
9
|
+
id: number;
|
10
|
+
leaguePaymentId: number | null;
|
11
|
+
pickupPaymentId: number | null;
|
12
|
+
freeAgentPaymentId: number | null;
|
13
|
+
refundAmount: number;
|
14
|
+
stripeRefundStatus: StripeRefundStatus;
|
15
|
+
stripeRefundId: string;
|
16
|
+
createdAt: Date | string;
|
17
|
+
updatedAt: Date | string;
|
18
|
+
deletedAt: Date | null;
|
19
|
+
leaguePayment?: LeaguePayment;
|
20
|
+
pickupPayment?: PickupPayment;
|
21
|
+
freeAgentPayment?: FreeAgentPayment;
|
22
|
+
static tableName: string;
|
23
|
+
static get idColumn(): string;
|
24
|
+
static modifiers: {
|
25
|
+
filterStripe(query: QueryBuilder<Refund>): void;
|
26
|
+
successfulRefunds(query: QueryBuilder<Refund>): void;
|
27
|
+
};
|
28
|
+
static get relationMappings(): RelationMappings;
|
29
|
+
static jsonSchema: {
|
30
|
+
type: string;
|
31
|
+
required: string[];
|
32
|
+
properties: {
|
33
|
+
id: {
|
34
|
+
type: string;
|
35
|
+
};
|
36
|
+
leaguePaymentId: {
|
37
|
+
type: string[];
|
38
|
+
};
|
39
|
+
pickupPaymentId: {
|
40
|
+
type: string[];
|
41
|
+
};
|
42
|
+
freeAgentPaymentId: {
|
43
|
+
type: string[];
|
44
|
+
};
|
45
|
+
refundAmount: {
|
46
|
+
type: string[];
|
47
|
+
};
|
48
|
+
stripeRefundStatus: {
|
49
|
+
enum: StripeRefundStatus[];
|
50
|
+
};
|
51
|
+
stripeRefundId: {
|
52
|
+
type: string[];
|
53
|
+
};
|
54
|
+
};
|
55
|
+
};
|
56
|
+
}
|
57
|
+
export {};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { ReportType } from '../types/report';
|
3
|
+
export declare class Report extends Model {
|
4
|
+
static tableName: string;
|
5
|
+
id: number;
|
6
|
+
memberId: number;
|
7
|
+
reportType: ReportType;
|
8
|
+
createdAt: Date | string;
|
9
|
+
updatedAt: Date | string;
|
10
|
+
static get relationMappings(): RelationMappings;
|
11
|
+
static jsonSchema: {
|
12
|
+
type: string;
|
13
|
+
required: string[];
|
14
|
+
properties: {
|
15
|
+
id: {
|
16
|
+
type: string;
|
17
|
+
};
|
18
|
+
memberId: {
|
19
|
+
type: string;
|
20
|
+
};
|
21
|
+
reportType: {
|
22
|
+
type: string;
|
23
|
+
enum: ReportType[];
|
24
|
+
minLength: number;
|
25
|
+
maxLength: number;
|
26
|
+
};
|
27
|
+
createdAt: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class ReportedComment extends Model {
|
3
|
+
static tableName: string;
|
4
|
+
id: number;
|
5
|
+
commentId: number;
|
6
|
+
reportId: number;
|
7
|
+
createdAt: Date | string;
|
8
|
+
updatedAt: Date | string;
|
9
|
+
static get relationMappings(): RelationMappings;
|
10
|
+
static jsonSchema: {
|
11
|
+
type: string;
|
12
|
+
required: string[];
|
13
|
+
properties: {
|
14
|
+
id: {
|
15
|
+
type: string;
|
16
|
+
};
|
17
|
+
commentId: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
reportId: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
createdAt: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class ReportedEvent extends Model {
|
3
|
+
static tableName: string;
|
4
|
+
id: number;
|
5
|
+
eventId: number;
|
6
|
+
reportId: number;
|
7
|
+
createdAt: Date | string;
|
8
|
+
updatedAt: Date | string;
|
9
|
+
static get relationMappings(): RelationMappings;
|
10
|
+
static jsonSchema: {
|
11
|
+
type: string;
|
12
|
+
required: string[];
|
13
|
+
properties: {
|
14
|
+
id: {
|
15
|
+
type: string;
|
16
|
+
};
|
17
|
+
eventId: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
reportId: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
createdAt: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class ReportedMessage extends Model {
|
3
|
+
static tableName: string;
|
4
|
+
id: number;
|
5
|
+
messageId: string;
|
6
|
+
reportId: number;
|
7
|
+
createdAt: Date | string;
|
8
|
+
updatedAt: Date | string;
|
9
|
+
static get relationMappings(): RelationMappings;
|
10
|
+
static jsonSchema: {
|
11
|
+
type: string;
|
12
|
+
required: string[];
|
13
|
+
properties: {
|
14
|
+
id: {
|
15
|
+
type: string;
|
16
|
+
};
|
17
|
+
messageId: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
reportId: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
createdAt: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class ReportedPlayer extends Model {
|
3
|
+
static tableName: string;
|
4
|
+
id: number;
|
5
|
+
reportedPlayerId: number;
|
6
|
+
reportId: number;
|
7
|
+
createdAt: Date | string;
|
8
|
+
updatedAt: Date | string;
|
9
|
+
static get relationMappings(): RelationMappings;
|
10
|
+
static jsonSchema: {
|
11
|
+
type: string;
|
12
|
+
required: string[];
|
13
|
+
properties: {
|
14
|
+
id: {
|
15
|
+
type: string;
|
16
|
+
};
|
17
|
+
reportedPlayerId: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
reportId: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
createdAt: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { AnyQueryBuilder, Model } from 'objection';
|
2
|
+
export declare const enum BantrUserRole {
|
3
|
+
OWNER = "owner",
|
4
|
+
ADMINISTRATOR = "administrator",
|
5
|
+
COORDINATOR = "coordinator",
|
6
|
+
MANAGER = "manager",
|
7
|
+
PLAYER = "player",
|
8
|
+
FAN = "fan"
|
9
|
+
}
|
10
|
+
export declare enum BantrUserRoleIds {
|
11
|
+
OWNER = 1,
|
12
|
+
ADMINISTRATOR = 2,
|
13
|
+
COORDINATOR = 3
|
14
|
+
}
|
15
|
+
declare const Role_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
16
|
+
export declare class Role extends Role_base {
|
17
|
+
id: number;
|
18
|
+
name: string;
|
19
|
+
key: BantrUserRole;
|
20
|
+
deletedAt: Date | null;
|
21
|
+
static tableName: string;
|
22
|
+
static get idColumn(): string;
|
23
|
+
static get modifiers(): Record<string, (builder: AnyQueryBuilder) => void>;
|
24
|
+
static jsonSchema: {
|
25
|
+
type: string;
|
26
|
+
required: string[];
|
27
|
+
properties: {
|
28
|
+
id: {
|
29
|
+
type: string;
|
30
|
+
};
|
31
|
+
name: {
|
32
|
+
type: string;
|
33
|
+
minLength: number;
|
34
|
+
maxLength: number;
|
35
|
+
};
|
36
|
+
key: {
|
37
|
+
type: string;
|
38
|
+
minLength: number;
|
39
|
+
maxLength: number;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
}
|
44
|
+
export {};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Event } from './event';
|
3
|
+
import { Member } from './member';
|
4
|
+
export declare const enum Status {
|
5
|
+
unknown = "unknown",
|
6
|
+
yes = "yes",
|
7
|
+
no = "no"
|
8
|
+
}
|
9
|
+
export declare class Rsvp extends Model {
|
10
|
+
id: number;
|
11
|
+
eventId: number;
|
12
|
+
memberId: number;
|
13
|
+
status: Status;
|
14
|
+
lastUpdatedBy: number;
|
15
|
+
lastUpdatedByOrg: number;
|
16
|
+
lastUpdatedByReferee: number;
|
17
|
+
createdAt: Date;
|
18
|
+
updatedAt: Date;
|
19
|
+
attendingCount?: number;
|
20
|
+
event?: Event;
|
21
|
+
member?: Member;
|
22
|
+
static tableName: string;
|
23
|
+
static get relationMappings(): RelationMappings;
|
24
|
+
static get idColumn(): string;
|
25
|
+
static jsonSchema: {
|
26
|
+
type: string;
|
27
|
+
required: string[];
|
28
|
+
properties: {
|
29
|
+
id: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
eventId: {
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
memberId: {
|
36
|
+
type: string;
|
37
|
+
};
|
38
|
+
status: {
|
39
|
+
type: string;
|
40
|
+
enum: Status[];
|
41
|
+
minLength: number;
|
42
|
+
maxLength: number;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
};
|
46
|
+
}
|
47
|
+
export default Rsvp;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Event } from './event';
|
3
|
+
export declare class ScheduleEvent extends Model {
|
4
|
+
id: number;
|
5
|
+
team1EventId: number;
|
6
|
+
team2EventId: number;
|
7
|
+
team1PostId: number;
|
8
|
+
team2PostId: number;
|
9
|
+
team1Score: number | null;
|
10
|
+
team2Score: number | null;
|
11
|
+
confirmedByOrganizer: boolean;
|
12
|
+
updatedAt: Date | string;
|
13
|
+
createdAt: Date | string;
|
14
|
+
team1Event?: Event | null;
|
15
|
+
team2Event?: Event | null;
|
16
|
+
leagueName?: string;
|
17
|
+
fieldLocation?: string;
|
18
|
+
orgName?: string;
|
19
|
+
orgContactEmail?: string;
|
20
|
+
orgWorkspaceContactEmail?: string;
|
21
|
+
leagueCreatorId?: number;
|
22
|
+
leagueCoordinatorId?: number;
|
23
|
+
leagueScheduleId?: number;
|
24
|
+
leagueId?: number;
|
25
|
+
static tableName: string;
|
26
|
+
static get idColumn(): string;
|
27
|
+
static get relationMappings(): RelationMappings;
|
28
|
+
static jsonSchema: {
|
29
|
+
type: string;
|
30
|
+
required: string[];
|
31
|
+
properties: {
|
32
|
+
id: {
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
team1EventId: {
|
36
|
+
type: string[];
|
37
|
+
};
|
38
|
+
team2EventId: {
|
39
|
+
type: string[];
|
40
|
+
};
|
41
|
+
team1PostId: {
|
42
|
+
type: string[];
|
43
|
+
};
|
44
|
+
team2PostId: {
|
45
|
+
type: string[];
|
46
|
+
};
|
47
|
+
team1Score: {
|
48
|
+
type: string[];
|
49
|
+
};
|
50
|
+
team2Score: {
|
51
|
+
type: string[];
|
52
|
+
};
|
53
|
+
confirmedByOrganizer: {
|
54
|
+
type: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
$afterUpdate(): Promise<void>;
|
59
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { League } from './league';
|
3
|
+
declare const Season_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
4
|
+
export declare class Season extends Season_base {
|
5
|
+
id: number;
|
6
|
+
name: string;
|
7
|
+
isPublished: boolean;
|
8
|
+
creatorId: number;
|
9
|
+
organizationId: number;
|
10
|
+
orgWorkspaceId: number | null;
|
11
|
+
completedAt: Date | null;
|
12
|
+
createdAt: Date | string;
|
13
|
+
updatedAt: Date | string;
|
14
|
+
deletedAt: Date | null;
|
15
|
+
leagues?: League[] | null;
|
16
|
+
static tableName: string;
|
17
|
+
static get relationMappings(): RelationMappings;
|
18
|
+
static jsonSchema: {
|
19
|
+
type: string;
|
20
|
+
required: string[];
|
21
|
+
properties: {
|
22
|
+
id: {
|
23
|
+
type: string;
|
24
|
+
};
|
25
|
+
name: {
|
26
|
+
type: string;
|
27
|
+
minLength: number;
|
28
|
+
maxLength: number;
|
29
|
+
};
|
30
|
+
creatorId: {
|
31
|
+
type: string;
|
32
|
+
};
|
33
|
+
organizationId: {
|
34
|
+
type: string;
|
35
|
+
};
|
36
|
+
orgWorkspaceId: {
|
37
|
+
type: string[];
|
38
|
+
};
|
39
|
+
isPublished: {
|
40
|
+
type: string;
|
41
|
+
};
|
42
|
+
completedAt: {
|
43
|
+
type: string;
|
44
|
+
};
|
45
|
+
};
|
46
|
+
};
|
47
|
+
}
|
48
|
+
export {};
|