bantr-api-client 11.0.3 → 11.0.5
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,126 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { DayOfWeek, Gender } from '../types/league';
|
3
|
+
import { Organizer } from './organizer';
|
4
|
+
declare const SeasonLeagueTemplate_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
+
export declare class SeasonLeagueTemplate extends SeasonLeagueTemplate_base {
|
6
|
+
id: number;
|
7
|
+
name: string;
|
8
|
+
organizationId: number;
|
9
|
+
orgWorkspaceId: number | null;
|
10
|
+
creatorId: number | null;
|
11
|
+
seasonId: number | null;
|
12
|
+
baseLeagueId: number | null;
|
13
|
+
teamLimit: number;
|
14
|
+
minGamesPerTeam: number;
|
15
|
+
format: string;
|
16
|
+
gender: Gender;
|
17
|
+
startDate: string | Date;
|
18
|
+
skillLevel: number;
|
19
|
+
price: number;
|
20
|
+
deposit: number | null;
|
21
|
+
heroImage: string | null;
|
22
|
+
paymentLink: string | null;
|
23
|
+
description: string | null;
|
24
|
+
dayOfWeek: DayOfWeek | null | string;
|
25
|
+
completedAt: Date | null;
|
26
|
+
startTimes?: string[] | null;
|
27
|
+
locations?: string[] | null;
|
28
|
+
coordinatorId: number | null;
|
29
|
+
coordinator?: Organizer;
|
30
|
+
createdAt?: Date | string;
|
31
|
+
updatedAt?: Date | string;
|
32
|
+
deletedAt?: Date | null;
|
33
|
+
static tableName: string;
|
34
|
+
static get jsonAttributes(): [];
|
35
|
+
static get relationMappings(): RelationMappings;
|
36
|
+
static jsonSchema: {
|
37
|
+
type: string;
|
38
|
+
required: string[];
|
39
|
+
properties: {
|
40
|
+
id: {
|
41
|
+
type: string[];
|
42
|
+
};
|
43
|
+
name: {
|
44
|
+
type: string;
|
45
|
+
minLength: number;
|
46
|
+
maxLength: number;
|
47
|
+
};
|
48
|
+
teamLimit: {
|
49
|
+
type: string[];
|
50
|
+
default: number;
|
51
|
+
};
|
52
|
+
minGamesPerTeam: {
|
53
|
+
type: string[];
|
54
|
+
default: number;
|
55
|
+
};
|
56
|
+
format: {
|
57
|
+
type: string[];
|
58
|
+
minLength: number;
|
59
|
+
maxLength: number;
|
60
|
+
};
|
61
|
+
gender: {
|
62
|
+
type: string[];
|
63
|
+
enum: (Gender | null)[];
|
64
|
+
minLength: number;
|
65
|
+
maxLength: number;
|
66
|
+
};
|
67
|
+
startDate: {
|
68
|
+
type: string[];
|
69
|
+
};
|
70
|
+
completedAt: {
|
71
|
+
type: string[];
|
72
|
+
};
|
73
|
+
skillLevel: {
|
74
|
+
type: string[];
|
75
|
+
};
|
76
|
+
price: {
|
77
|
+
type: string[];
|
78
|
+
};
|
79
|
+
deposit: {
|
80
|
+
type: string[];
|
81
|
+
};
|
82
|
+
heroImage: {
|
83
|
+
type: string[];
|
84
|
+
};
|
85
|
+
paymentLink: {
|
86
|
+
type: string[];
|
87
|
+
};
|
88
|
+
description: {
|
89
|
+
type: string[];
|
90
|
+
minLength: number;
|
91
|
+
maxLength: number;
|
92
|
+
};
|
93
|
+
dayOfWeek: {
|
94
|
+
type: string[];
|
95
|
+
enum: (DayOfWeek | null)[];
|
96
|
+
minLength: number;
|
97
|
+
maxLength: number;
|
98
|
+
};
|
99
|
+
organizationId: {
|
100
|
+
type: string;
|
101
|
+
};
|
102
|
+
orgWorkspaceId: {
|
103
|
+
type: string[];
|
104
|
+
};
|
105
|
+
baseLeagueId: {
|
106
|
+
type: string[];
|
107
|
+
};
|
108
|
+
seasonId: {
|
109
|
+
type: string[];
|
110
|
+
};
|
111
|
+
startTimes: {
|
112
|
+
type: string[];
|
113
|
+
items: {
|
114
|
+
type: string[];
|
115
|
+
};
|
116
|
+
};
|
117
|
+
locations: {
|
118
|
+
type: string[];
|
119
|
+
items: {
|
120
|
+
type: string[];
|
121
|
+
};
|
122
|
+
};
|
123
|
+
};
|
124
|
+
};
|
125
|
+
}
|
126
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class Setting extends Model {
|
3
|
+
id: number;
|
4
|
+
memberId: number;
|
5
|
+
settings: Record<string, boolean>;
|
6
|
+
static tableName: string;
|
7
|
+
static get idColumn(): string;
|
8
|
+
static get relationMappings(): RelationMappings;
|
9
|
+
static jsonSchema: {
|
10
|
+
type: string;
|
11
|
+
required: string[];
|
12
|
+
properties: {
|
13
|
+
id: {
|
14
|
+
type: string;
|
15
|
+
};
|
16
|
+
memberId: {
|
17
|
+
type: string;
|
18
|
+
};
|
19
|
+
settings: {
|
20
|
+
type: string;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
};
|
24
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
import { Member } from './member';
|
3
|
+
import { OrgWaiver } from './organization_waivers';
|
4
|
+
export declare enum WaiverStatus {
|
5
|
+
refused = "refused",
|
6
|
+
agreed = "agreed"
|
7
|
+
}
|
8
|
+
export declare class SignedMemberWaiver extends Model {
|
9
|
+
id: number;
|
10
|
+
memberId: number;
|
11
|
+
orgWaiverId: number;
|
12
|
+
status: WaiverStatus;
|
13
|
+
createdAt: Date;
|
14
|
+
waiverVersion?: number;
|
15
|
+
firstName?: string;
|
16
|
+
lastName?: string;
|
17
|
+
content?: string;
|
18
|
+
static tableName: string;
|
19
|
+
static relationMappings(): {
|
20
|
+
member: {
|
21
|
+
relation: import("objection").RelationType;
|
22
|
+
modelClass: typeof Member;
|
23
|
+
join: {
|
24
|
+
from: string;
|
25
|
+
to: string;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
orgWaiver: {
|
29
|
+
relation: import("objection").RelationType;
|
30
|
+
modelClass: typeof OrgWaiver;
|
31
|
+
join: {
|
32
|
+
from: string;
|
33
|
+
to: string;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
static get jsonSchema(): {
|
38
|
+
type: string;
|
39
|
+
required: string[];
|
40
|
+
properties: {
|
41
|
+
id: {
|
42
|
+
type: string;
|
43
|
+
};
|
44
|
+
memberId: {
|
45
|
+
type: string;
|
46
|
+
};
|
47
|
+
orgWaiverId: {
|
48
|
+
type: string;
|
49
|
+
};
|
50
|
+
status: {
|
51
|
+
type: string;
|
52
|
+
enum: WaiverStatus[];
|
53
|
+
};
|
54
|
+
createdAt: {
|
55
|
+
type: string;
|
56
|
+
};
|
57
|
+
};
|
58
|
+
};
|
59
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
import { VALID_CURRENCY_CODES } from '../constants';
|
3
|
+
declare const StripeBalance_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
4
|
+
export declare class StripeBalance extends StripeBalance_base {
|
5
|
+
id: number;
|
6
|
+
availableAmount: number;
|
7
|
+
pendingAmount: number;
|
8
|
+
reservedAmount: number;
|
9
|
+
currency: VALID_CURRENCY_CODES;
|
10
|
+
lastSyncAt: Date;
|
11
|
+
updatedAt: Date;
|
12
|
+
createdAt: Date;
|
13
|
+
deletedAt: Date | null;
|
14
|
+
static tableName: string;
|
15
|
+
static get idColumn(): string;
|
16
|
+
static get jsonSchema(): {
|
17
|
+
type: string;
|
18
|
+
required: string[];
|
19
|
+
properties: {
|
20
|
+
id: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
availableAmount: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
pendingAmount: {
|
27
|
+
type: string;
|
28
|
+
};
|
29
|
+
reservedAmount: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
currency: {
|
33
|
+
type: string;
|
34
|
+
enum: VALID_CURRENCY_CODES[];
|
35
|
+
};
|
36
|
+
lastSyncAt: {
|
37
|
+
type: string;
|
38
|
+
};
|
39
|
+
createdAt: {
|
40
|
+
type: string;
|
41
|
+
format: string;
|
42
|
+
};
|
43
|
+
updatedAt: {
|
44
|
+
type: string;
|
45
|
+
format: string;
|
46
|
+
};
|
47
|
+
deletedAt: {
|
48
|
+
anyOf: ({
|
49
|
+
type: string;
|
50
|
+
format: string;
|
51
|
+
} | {
|
52
|
+
type: string;
|
53
|
+
format?: undefined;
|
54
|
+
})[];
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
}
|
59
|
+
export {};
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Transaction } from './transaction';
|
3
|
+
import { StripeTransfer } from './stripe_transfer';
|
4
|
+
declare const StripeTransaction_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
+
export declare class StripeTransaction extends StripeTransaction_base {
|
6
|
+
id: number;
|
7
|
+
stripePaymentIntentId: string | null;
|
8
|
+
stripePaymentSessionId: string | null;
|
9
|
+
stripeIdempotencyKey: string;
|
10
|
+
stripeProductId: string;
|
11
|
+
stripeProductPriceId: string;
|
12
|
+
transactionId: number;
|
13
|
+
transaction?: Transaction;
|
14
|
+
stripeTransfers?: StripeTransfer[];
|
15
|
+
updatedAt: Date;
|
16
|
+
createdAt: Date;
|
17
|
+
deletedAt: Date | null;
|
18
|
+
static tableName: string;
|
19
|
+
static get relationMappings(): RelationMappings;
|
20
|
+
static get jsonSchema(): {
|
21
|
+
type: string;
|
22
|
+
required: string[];
|
23
|
+
properties: {
|
24
|
+
id: {
|
25
|
+
type: string;
|
26
|
+
};
|
27
|
+
stripePaymentIntentId: {
|
28
|
+
type: string[];
|
29
|
+
};
|
30
|
+
stripePaymentSessionId: {
|
31
|
+
type: string[];
|
32
|
+
};
|
33
|
+
stripeIdempotencyKey: {
|
34
|
+
type: string;
|
35
|
+
};
|
36
|
+
stripeProductId: {
|
37
|
+
type: string;
|
38
|
+
};
|
39
|
+
stripeProductPriceId: {
|
40
|
+
type: string;
|
41
|
+
};
|
42
|
+
transactionId: {
|
43
|
+
type: string;
|
44
|
+
};
|
45
|
+
createdAt: {
|
46
|
+
type: string;
|
47
|
+
format: string;
|
48
|
+
};
|
49
|
+
updatedAt: {
|
50
|
+
type: string;
|
51
|
+
format: string;
|
52
|
+
};
|
53
|
+
deletedAt: {
|
54
|
+
anyOf: ({
|
55
|
+
type: string;
|
56
|
+
format: string;
|
57
|
+
} | {
|
58
|
+
type: string;
|
59
|
+
format?: undefined;
|
60
|
+
})[];
|
61
|
+
};
|
62
|
+
};
|
63
|
+
};
|
64
|
+
}
|
65
|
+
export {};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { STRIPE_TRANSFER_TYPE_ENUM } from '../modules/transaction/transaction.schema';
|
3
|
+
import { StripeTransaction } from './stripe_transaction';
|
4
|
+
import { Refund } from './refund';
|
5
|
+
declare const StripeTransfer_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
6
|
+
export declare class StripeTransfer extends StripeTransfer_base {
|
7
|
+
id: number;
|
8
|
+
stripeTransferId: string;
|
9
|
+
amount: number;
|
10
|
+
type: STRIPE_TRANSFER_TYPE_ENUM;
|
11
|
+
stripeTransactionId: number;
|
12
|
+
stripeTransaction?: StripeTransaction;
|
13
|
+
refundId: number | null;
|
14
|
+
refund?: Refund;
|
15
|
+
updatedAt: Date;
|
16
|
+
createdAt: Date;
|
17
|
+
deletedAt: Date | null;
|
18
|
+
static tableName: string;
|
19
|
+
static get relationMappings(): RelationMappings;
|
20
|
+
static get jsonSchema(): {
|
21
|
+
type: string;
|
22
|
+
required: string[];
|
23
|
+
properties: {
|
24
|
+
id: {
|
25
|
+
type: string;
|
26
|
+
};
|
27
|
+
stripeTransferId: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
amount: {
|
31
|
+
type: string;
|
32
|
+
};
|
33
|
+
type: {
|
34
|
+
type: string;
|
35
|
+
};
|
36
|
+
stripeTransactionId: {
|
37
|
+
type: string;
|
38
|
+
};
|
39
|
+
createdAt: {
|
40
|
+
type: string;
|
41
|
+
format: string;
|
42
|
+
};
|
43
|
+
updatedAt: {
|
44
|
+
type: string;
|
45
|
+
format: string;
|
46
|
+
};
|
47
|
+
deletedAt: {
|
48
|
+
anyOf: ({
|
49
|
+
type: string;
|
50
|
+
format: string;
|
51
|
+
} | {
|
52
|
+
type: string;
|
53
|
+
format?: undefined;
|
54
|
+
})[];
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
}
|
59
|
+
export {};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare class StripeWebhook extends Model {
|
3
|
+
id: number;
|
4
|
+
name: string;
|
5
|
+
secretKey: string;
|
6
|
+
updatedAt: Date | string;
|
7
|
+
createdAt: Date | string;
|
8
|
+
deletedAt: Date | null;
|
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
|
+
secretKey: {
|
22
|
+
type: string;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
26
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare class Support extends Model {
|
3
|
+
id: number;
|
4
|
+
memberId: number;
|
5
|
+
name: string;
|
6
|
+
email: string;
|
7
|
+
subject: string;
|
8
|
+
description: string;
|
9
|
+
createdAt: Date | string;
|
10
|
+
updatedAt: Date | string;
|
11
|
+
static tableName: string;
|
12
|
+
static jsonSchema: {
|
13
|
+
type: string;
|
14
|
+
required: string[];
|
15
|
+
properties: {
|
16
|
+
id: {
|
17
|
+
type: string;
|
18
|
+
};
|
19
|
+
memberId: {
|
20
|
+
type: string;
|
21
|
+
};
|
22
|
+
name: {
|
23
|
+
type: string;
|
24
|
+
minLength: number;
|
25
|
+
maxLength: number;
|
26
|
+
};
|
27
|
+
email: {
|
28
|
+
type: string;
|
29
|
+
minLength: number;
|
30
|
+
maxLength: number;
|
31
|
+
};
|
32
|
+
description: {
|
33
|
+
type: string;
|
34
|
+
minLength: number;
|
35
|
+
};
|
36
|
+
};
|
37
|
+
};
|
38
|
+
}
|
39
|
+
export default Support;
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Member } from './member';
|
3
|
+
import { TeamRoster } from './team_roster';
|
4
|
+
declare const Team_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
+
export declare class Team extends Team_base {
|
6
|
+
id: number;
|
7
|
+
name: string;
|
8
|
+
logo: string;
|
9
|
+
banner: string;
|
10
|
+
city?: string;
|
11
|
+
state?: string;
|
12
|
+
zip?: string;
|
13
|
+
abbreviation?: string;
|
14
|
+
ownerId?: number;
|
15
|
+
established?: string;
|
16
|
+
location?: string;
|
17
|
+
creatorId: number | null;
|
18
|
+
orgCreatorId: number | null;
|
19
|
+
jerseyColor: string | null;
|
20
|
+
owner?: Member;
|
21
|
+
rosterCount?: number;
|
22
|
+
lastLeagueNamePlayedIn?: string;
|
23
|
+
roster?: TeamRoster[];
|
24
|
+
gamesPlayed?: string;
|
25
|
+
gamesScheduled?: string;
|
26
|
+
deletedAt: Date | null;
|
27
|
+
static tableName: string;
|
28
|
+
static get idColumn(): string;
|
29
|
+
static get modifiers(): Record<string, (builder: any) => void>;
|
30
|
+
static get relationMappings(): RelationMappings;
|
31
|
+
static jsonSchema: {
|
32
|
+
type: string;
|
33
|
+
required: string[];
|
34
|
+
properties: {
|
35
|
+
id: {
|
36
|
+
type: string;
|
37
|
+
};
|
38
|
+
name: {
|
39
|
+
type: string;
|
40
|
+
minLength: number;
|
41
|
+
maxLength: number;
|
42
|
+
};
|
43
|
+
logo: {
|
44
|
+
type: string;
|
45
|
+
minLength: number;
|
46
|
+
maxLength: number;
|
47
|
+
};
|
48
|
+
banner: {
|
49
|
+
type: string;
|
50
|
+
minLength: number;
|
51
|
+
maxLength: number;
|
52
|
+
};
|
53
|
+
city: {
|
54
|
+
type: string;
|
55
|
+
minLength: number;
|
56
|
+
maxLength: number;
|
57
|
+
};
|
58
|
+
state: {
|
59
|
+
type: string;
|
60
|
+
minLength: number;
|
61
|
+
maxLength: number;
|
62
|
+
};
|
63
|
+
location: {
|
64
|
+
type: string;
|
65
|
+
minLength: number;
|
66
|
+
maxLength: number;
|
67
|
+
};
|
68
|
+
zip: {
|
69
|
+
type: string;
|
70
|
+
pattern: string;
|
71
|
+
};
|
72
|
+
abbreviation: {
|
73
|
+
type: string;
|
74
|
+
minLength: number;
|
75
|
+
maxLength: number;
|
76
|
+
};
|
77
|
+
ownerId: {
|
78
|
+
type: string;
|
79
|
+
};
|
80
|
+
established: {
|
81
|
+
type: string;
|
82
|
+
minLength: number;
|
83
|
+
maxLength: number;
|
84
|
+
};
|
85
|
+
creatorId: {
|
86
|
+
type: string[];
|
87
|
+
};
|
88
|
+
orgCreatorId: {
|
89
|
+
type: string[];
|
90
|
+
};
|
91
|
+
jerseyColor: {
|
92
|
+
type: string[];
|
93
|
+
};
|
94
|
+
};
|
95
|
+
};
|
96
|
+
}
|
97
|
+
export {};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Member } from './member';
|
3
|
+
export declare class TeamLeagueSeasonRoster extends Model {
|
4
|
+
id: number;
|
5
|
+
leagueId: number;
|
6
|
+
teamId: number;
|
7
|
+
memberId: number;
|
8
|
+
hasPaid: boolean;
|
9
|
+
isSub: boolean;
|
10
|
+
createdAt: Date | string;
|
11
|
+
updatedAt: Date | string;
|
12
|
+
member?: Member;
|
13
|
+
static tableName: string;
|
14
|
+
static get idColumn(): string;
|
15
|
+
static get relationMappings(): RelationMappings;
|
16
|
+
static jsonSchema: {
|
17
|
+
type: string;
|
18
|
+
required: string[];
|
19
|
+
properties: {
|
20
|
+
id: {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
leagueId: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
teamId: {
|
27
|
+
type: string;
|
28
|
+
};
|
29
|
+
memberId: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
hasPaid: {
|
33
|
+
type: string;
|
34
|
+
default: boolean;
|
35
|
+
};
|
36
|
+
isSub: {
|
37
|
+
type: string;
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
};
|
42
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { Model } from 'objection';
|
2
|
+
export declare const enum Role {
|
3
|
+
manager = "manager",
|
4
|
+
captain = "captain",
|
5
|
+
starter = "starter",
|
6
|
+
fulltime = "fulltime",
|
7
|
+
supersub = "supersub",
|
8
|
+
sub = "sub",
|
9
|
+
fan = "fan"
|
10
|
+
}
|
11
|
+
export declare class TeamMember extends Model {
|
12
|
+
id: number;
|
13
|
+
teamId: number;
|
14
|
+
memberId: number;
|
15
|
+
isActive: boolean;
|
16
|
+
role: string;
|
17
|
+
static tableName: string;
|
18
|
+
static get idColumn(): string;
|
19
|
+
static jsonSchema: {
|
20
|
+
type: string;
|
21
|
+
required: string[];
|
22
|
+
properties: {
|
23
|
+
id: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
teamId: {
|
27
|
+
type: string;
|
28
|
+
};
|
29
|
+
memberId: {
|
30
|
+
type: string;
|
31
|
+
};
|
32
|
+
isActive: {
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
role: {
|
36
|
+
type: string;
|
37
|
+
enum: Role[];
|
38
|
+
minLength: number;
|
39
|
+
maxLength: number;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
export declare class TeamMessage extends Model {
|
3
|
+
id: number;
|
4
|
+
senderId: number;
|
5
|
+
teamId: number;
|
6
|
+
content: string;
|
7
|
+
createdAt?: Date;
|
8
|
+
updatedAt?: Date;
|
9
|
+
static tableName: string;
|
10
|
+
static get relationMappings(): RelationMappings;
|
11
|
+
static get idColumn(): string;
|
12
|
+
static jsonSchema: {
|
13
|
+
type: string;
|
14
|
+
required: string[];
|
15
|
+
properties: {
|
16
|
+
id: {
|
17
|
+
type: string;
|
18
|
+
};
|
19
|
+
senderId: {
|
20
|
+
type: string;
|
21
|
+
};
|
22
|
+
teamId: {
|
23
|
+
type: string;
|
24
|
+
};
|
25
|
+
content: {
|
26
|
+
type: string;
|
27
|
+
minLength: number;
|
28
|
+
maxLength: number;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
}
|
33
|
+
export default TeamMessage;
|