bantr-api-client 11.0.5 → 12.0.1
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/trpcRouter/discount_code.router.d.ts +7 -7
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +26 -24
- package/api-type/src/trpcRouter/league_payments.router.d.ts +16 -16
- 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 +2 -2
- package/api-type/src/trpcRouter/router.d.ts +296 -144
- package/api-type/src/trpcRouter/team.d.ts +80 -6
- package/api-type/src/trpcRouter/transaction.router.d.ts +14 -14
- package/dist/{index.d.ts → src/index.d.ts} +552 -326
- package/dist/src/index.js.map +1 -0
- package/dist/{provider.d.ts → src/provider.d.ts} +368 -216
- package/dist/{provider.js → src/provider.js} +2 -2
- package/dist/src/provider.js.map +1 -0
- package/dist/{query.d.ts → src/query.d.ts} +184 -110
- package/dist/src/query.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +23 -7
- package/api-type/src/models/assists.d.ts +0 -7
- package/api-type/src/models/base_league.d.ts +0 -45
- package/api-type/src/models/block.d.ts +0 -27
- package/api-type/src/models/chat.d.ts +0 -37
- package/api-type/src/models/chat_members.d.ts +0 -36
- package/api-type/src/models/clap.d.ts +0 -38
- package/api-type/src/models/comment.d.ts +0 -46
- package/api-type/src/models/demo_leads.d.ts +0 -64
- package/api-type/src/models/direct_message.d.ts +0 -34
- package/api-type/src/models/dynamic_group.d.ts +0 -42
- package/api-type/src/models/dynamic_season_league_template.d.ts +0 -120
- package/api-type/src/models/dynamic_stage.d.ts +0 -52
- package/api-type/src/models/dynamic_stage_template.d.ts +0 -50
- package/api-type/src/models/emoji.d.ts +0 -31
- package/api-type/src/models/emoji_media_mapper.d.ts +0 -38
- package/api-type/src/models/event.d.ts +0 -133
- package/api-type/src/models/free_agent_payment.d.ts +0 -108
- package/api-type/src/models/game_stat_model.d.ts +0 -55
- package/api-type/src/models/goals.d.ts +0 -7
- package/api-type/src/models/hooks/chat_member.d.ts +0 -4
- package/api-type/src/models/hooks/event.d.ts +0 -6
- package/api-type/src/models/hooks/league_schedule.d.ts +0 -3
- package/api-type/src/models/hooks/pickup_group_member.d.ts +0 -4
- package/api-type/src/models/hooks/schedule_events.d.ts +0 -2
- package/api-type/src/models/hooks/team_roster.d.ts +0 -4
- package/api-type/src/models/invite.d.ts +0 -108
- package/api-type/src/models/job.d.ts +0 -33
- package/api-type/src/models/job_type.d.ts +0 -26
- package/api-type/src/models/last_seen_team_message.d.ts +0 -31
- package/api-type/src/models/league.d.ts +0 -175
- package/api-type/src/models/league_group_teams.d.ts +0 -38
- package/api-type/src/models/league_media.d.ts +0 -57
- package/api-type/src/models/league_payment.d.ts +0 -93
- package/api-type/src/models/league_price.d.ts +0 -52
- package/api-type/src/models/league_registration.d.ts +0 -41
- package/api-type/src/models/league_schedule.d.ts +0 -116
- package/api-type/src/models/league_schedule_referee.d.ts +0 -29
- package/api-type/src/models/league_standing.d.ts +0 -83
- package/api-type/src/models/league_stripe.d.ts +0 -23
- package/api-type/src/models/league_teams.d.ts +0 -34
- package/api-type/src/models/league_template.d.ts +0 -35
- package/api-type/src/models/league_waitlist.d.ts +0 -39
- package/api-type/src/models/market_post.d.ts +0 -91
- package/api-type/src/models/match_cards.d.ts +0 -42
- package/api-type/src/models/match_notes.d.ts +0 -49
- package/api-type/src/models/member.d.ts +0 -138
- package/api-type/src/models/member_hidden_comment.d.ts +0 -31
- package/api-type/src/models/member_hidden_message.d.ts +0 -48
- package/api-type/src/models/member_muted_chat.d.ts +0 -38
- package/api-type/src/models/member_muted_event.d.ts +0 -25
- package/api-type/src/models/member_organizations.d.ts +0 -65
- package/api-type/src/models/member_stripe.d.ts +0 -23
- package/api-type/src/models/message.d.ts +0 -34
- package/api-type/src/models/mvp_votes.d.ts +0 -42
- package/api-type/src/models/notification.d.ts +0 -46
- package/api-type/src/models/oauth.d.ts +0 -49
- package/api-type/src/models/organization.d.ts +0 -68
- package/api-type/src/models/organization_free_agent.d.ts +0 -70
- package/api-type/src/models/organization_free_agent_price.d.ts +0 -37
- package/api-type/src/models/organization_leagues.d.ts +0 -23
- package/api-type/src/models/organization_learn_more.d.ts +0 -75
- package/api-type/src/models/organization_stripe.d.ts +0 -68
- package/api-type/src/models/organization_waivers.d.ts +0 -59
- package/api-type/src/models/organization_workspace.d.ts +0 -76
- package/api-type/src/models/organizer.d.ts +0 -70
- package/api-type/src/models/organizer_roles.d.ts +0 -26
- package/api-type/src/models/pickup.d.ts +0 -163
- package/api-type/src/models/pickup_config.d.ts +0 -34
- package/api-type/src/models/pickup_group.d.ts +0 -83
- package/api-type/src/models/pickup_group_members.d.ts +0 -42
- package/api-type/src/models/pickup_payments.d.ts +0 -79
- package/api-type/src/models/pickup_price.d.ts +0 -41
- package/api-type/src/models/pickup_registration.d.ts +0 -38
- package/api-type/src/models/pickup_roster.d.ts +0 -41
- package/api-type/src/models/pickup_stripe.d.ts +0 -23
- package/api-type/src/models/pickup_waitlist.d.ts +0 -33
- package/api-type/src/models/post.d.ts +0 -66
- package/api-type/src/models/referee_note.d.ts +0 -35
- package/api-type/src/models/referee_organization.d.ts +0 -29
- package/api-type/src/models/referees.d.ts +0 -63
- package/api-type/src/models/refresh_token.d.ts +0 -39
- package/api-type/src/models/refund.d.ts +0 -57
- package/api-type/src/models/report.d.ts +0 -32
- package/api-type/src/models/reported_comment.d.ts +0 -28
- package/api-type/src/models/reported_event.d.ts +0 -28
- package/api-type/src/models/reported_message.d.ts +0 -28
- package/api-type/src/models/reported_player.d.ts +0 -28
- package/api-type/src/models/role.d.ts +0 -44
- package/api-type/src/models/rsvp.d.ts +0 -47
- package/api-type/src/models/schedule_event.d.ts +0 -59
- package/api-type/src/models/season.d.ts +0 -48
- package/api-type/src/models/season_league_template.d.ts +0 -126
- package/api-type/src/models/setting.d.ts +0 -24
- package/api-type/src/models/signed_member_waivers.d.ts +0 -59
- package/api-type/src/models/stripe_balance.d.ts +0 -59
- package/api-type/src/models/stripe_transaction.d.ts +0 -65
- package/api-type/src/models/stripe_transfer.d.ts +0 -59
- package/api-type/src/models/stripe_webhook.d.ts +0 -26
- package/api-type/src/models/support.d.ts +0 -39
- package/api-type/src/models/team.d.ts +0 -97
- package/api-type/src/models/team_league_season_roster.d.ts +0 -42
- package/api-type/src/models/team_members.d.ts +0 -43
- package/api-type/src/models/team_message.d.ts +0 -33
- package/api-type/src/models/team_roster.d.ts +0 -71
- package/api-type/src/models/transaction.d.ts +0 -155
- package/api-type/src/models/transaction_event.d.ts +0 -49
- package/api-type/src/models/utils/chat.d.ts +0 -6
- package/api-type/src/models/utils/league.d.ts +0 -2
- package/api-type/src/models/utils/organization.d.ts +0 -1
- package/api-type/src/models/utils/team.d.ts +0 -2
- package/dist/index.js.map +0 -1
- package/dist/provider.js.map +0 -1
- package/dist/query.js.map +0 -1
- package/tsconfig.json +0 -22
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{query.js → src/query.js} +0 -0
@@ -1,38 +0,0 @@
|
|
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;
|
@@ -1,133 +0,0 @@
|
|
1
|
-
import { QueryBuilder, Model, ModelOptions, RelationMappings } from 'objection';
|
2
|
-
import { TRsvpData } from '../types/event';
|
3
|
-
import { GameStatTypes } from '../types/game_stats';
|
4
|
-
import { Rsvp } from './rsvp';
|
5
|
-
import { Team } from './team';
|
6
|
-
import { ScheduleEvent } from './schedule_event';
|
7
|
-
import { League } from './league';
|
8
|
-
import { Organization } from './organization';
|
9
|
-
import { LeagueSchedule } from './league_schedule';
|
10
|
-
export type TLeagueEvent = Event & {
|
11
|
-
team1Score: number | null;
|
12
|
-
team2Score: number | null;
|
13
|
-
confirmedByOrganizer: boolean;
|
14
|
-
team1EventId: number | null;
|
15
|
-
team2EventId: number | null;
|
16
|
-
teamScore: number | null;
|
17
|
-
opponentScore: number | null;
|
18
|
-
leagueScheduleId?: number;
|
19
|
-
};
|
20
|
-
declare const Event_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
21
|
-
export declare class Event extends Event_base {
|
22
|
-
id: number;
|
23
|
-
addressName: string;
|
24
|
-
city: string;
|
25
|
-
dateAndTime: Date | null;
|
26
|
-
timezone: string;
|
27
|
-
duration?: number;
|
28
|
-
openTo?: string;
|
29
|
-
street?: string;
|
30
|
-
state?: string;
|
31
|
-
title: string;
|
32
|
-
zip?: string;
|
33
|
-
confirmedCount?: number;
|
34
|
-
teamId: number | null;
|
35
|
-
creatorId?: number;
|
36
|
-
modifierId?: number | null;
|
37
|
-
opponentScore: number | null;
|
38
|
-
teamScore: number | null;
|
39
|
-
updatedAt?: Date | string;
|
40
|
-
createdAt?: Date | string;
|
41
|
-
attendingCount?: number;
|
42
|
-
league?: League | null;
|
43
|
-
leagueScores?: ScheduleEvent | null;
|
44
|
-
opponent?: Team;
|
45
|
-
organization?: Organization;
|
46
|
-
team?: Team;
|
47
|
-
rsvp?: TRsvpData;
|
48
|
-
teamRosterCount?: number;
|
49
|
-
eventGameStatStatus?: GameStatTypes;
|
50
|
-
leagueSchedule?: LeagueSchedule;
|
51
|
-
rsvps?: Rsvp[];
|
52
|
-
leagueScheduleId?: number;
|
53
|
-
deletedAt: Date | null;
|
54
|
-
static tableName: string;
|
55
|
-
static get relationMappings(): RelationMappings;
|
56
|
-
static get modifiers(): {
|
57
|
-
filterDeleted(builder: QueryBuilder<any>): void;
|
58
|
-
};
|
59
|
-
static get idColumn(): string;
|
60
|
-
static jsonSchema: {
|
61
|
-
type: string;
|
62
|
-
required: string[];
|
63
|
-
properties: {
|
64
|
-
id: {
|
65
|
-
type: string;
|
66
|
-
};
|
67
|
-
addressName: {
|
68
|
-
type: string;
|
69
|
-
minLength: number;
|
70
|
-
maxLength: number;
|
71
|
-
};
|
72
|
-
city: {
|
73
|
-
type: string;
|
74
|
-
minLength: number;
|
75
|
-
maxLength: number;
|
76
|
-
};
|
77
|
-
dateAndTime: {
|
78
|
-
type: string;
|
79
|
-
};
|
80
|
-
timezone: {
|
81
|
-
type: string;
|
82
|
-
};
|
83
|
-
duration: {
|
84
|
-
type: string;
|
85
|
-
};
|
86
|
-
openTo: {
|
87
|
-
type: string;
|
88
|
-
minLength: number;
|
89
|
-
maxLength: number;
|
90
|
-
};
|
91
|
-
street: {
|
92
|
-
type: string;
|
93
|
-
minLength: number;
|
94
|
-
maxLength: number;
|
95
|
-
};
|
96
|
-
state: {
|
97
|
-
type: string;
|
98
|
-
minLength: number;
|
99
|
-
maxLength: number;
|
100
|
-
};
|
101
|
-
title: {
|
102
|
-
type: string;
|
103
|
-
minLength: number;
|
104
|
-
maxLength: number;
|
105
|
-
};
|
106
|
-
zip: {
|
107
|
-
type: string;
|
108
|
-
pattern: string;
|
109
|
-
};
|
110
|
-
confirmedCount: {
|
111
|
-
type: string;
|
112
|
-
};
|
113
|
-
teamId: {
|
114
|
-
type: string[];
|
115
|
-
};
|
116
|
-
creatorId: {
|
117
|
-
type: string;
|
118
|
-
};
|
119
|
-
modifierId: {
|
120
|
-
type: string;
|
121
|
-
};
|
122
|
-
teamScore: {
|
123
|
-
type: string[];
|
124
|
-
};
|
125
|
-
opponentScore: {
|
126
|
-
type: string[];
|
127
|
-
};
|
128
|
-
};
|
129
|
-
};
|
130
|
-
$afterInsert(queryContext: any): Promise<void>;
|
131
|
-
$afterUpdate(opt: ModelOptions, queryContext: any): Promise<void>;
|
132
|
-
}
|
133
|
-
export default Event;
|
@@ -1,108 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { StripePaymentStatus } from '../types/common';
|
3
|
-
import { League } from './league';
|
4
|
-
import { LeaguePayment } from './league_payment';
|
5
|
-
import { Member } from './member';
|
6
|
-
import { Team } from './team';
|
7
|
-
import { DiscountCode } from '../modules/discount_code/discount_code.model';
|
8
|
-
import { Refund } from './refund';
|
9
|
-
import { OrgFreeAgent } from './organization_free_agent';
|
10
|
-
import { Transaction } from './transaction';
|
11
|
-
declare const FreeAgentPayment_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
12
|
-
export declare class FreeAgentPayment extends FreeAgentPayment_base {
|
13
|
-
id: number;
|
14
|
-
amount: number;
|
15
|
-
days: string[] | null;
|
16
|
-
description: string;
|
17
|
-
genders: string[] | null;
|
18
|
-
isPlacedOnTeam: boolean;
|
19
|
-
leagues: number[] | null;
|
20
|
-
memberId: number;
|
21
|
-
orgFreeAgentId: number;
|
22
|
-
payerId: number;
|
23
|
-
placedOnTeamId: number | null;
|
24
|
-
status: StripePaymentStatus;
|
25
|
-
stripeIdempotencyKey: string | null;
|
26
|
-
stripePaymentIntentId: string | null;
|
27
|
-
stripeCheckoutSessionId: string | null;
|
28
|
-
deletedAt: Date | null;
|
29
|
-
updatedAt: Date | null;
|
30
|
-
leaguesData?: League[];
|
31
|
-
member?: Member;
|
32
|
-
placedTeam?: Team;
|
33
|
-
teams?: Team[];
|
34
|
-
latestOrgWaiver?: {
|
35
|
-
id: number;
|
36
|
-
name: string;
|
37
|
-
content: string;
|
38
|
-
};
|
39
|
-
latestSignedWaiver?: {
|
40
|
-
id: number;
|
41
|
-
name: string;
|
42
|
-
orgWaiverId: number;
|
43
|
-
signedDate: Date;
|
44
|
-
status: string;
|
45
|
-
};
|
46
|
-
discountCodeId: number | null;
|
47
|
-
discountCode?: DiscountCode;
|
48
|
-
appliedDiscountValue: number;
|
49
|
-
refunds?: Refund[];
|
50
|
-
orgFreeAgent?: OrgFreeAgent;
|
51
|
-
leaguePayment?: LeaguePayment;
|
52
|
-
transactions?: Transaction[];
|
53
|
-
static tableName: string;
|
54
|
-
static get idColumn(): string;
|
55
|
-
static get relationMappings(): RelationMappings;
|
56
|
-
static jsonSchema: {
|
57
|
-
type: string;
|
58
|
-
required: string[];
|
59
|
-
properties: {
|
60
|
-
amount: {
|
61
|
-
type: string;
|
62
|
-
};
|
63
|
-
days: {
|
64
|
-
type: string[];
|
65
|
-
};
|
66
|
-
description: {
|
67
|
-
type: string;
|
68
|
-
};
|
69
|
-
genders: {
|
70
|
-
type: string[];
|
71
|
-
};
|
72
|
-
isPlacedOnTeam: {
|
73
|
-
type: string;
|
74
|
-
};
|
75
|
-
leagues: {
|
76
|
-
type: string[];
|
77
|
-
};
|
78
|
-
memberId: {
|
79
|
-
type: string;
|
80
|
-
};
|
81
|
-
orgFreeAgentId: {
|
82
|
-
type: string;
|
83
|
-
};
|
84
|
-
payerId: {
|
85
|
-
type: string;
|
86
|
-
};
|
87
|
-
status: {
|
88
|
-
type: string;
|
89
|
-
};
|
90
|
-
stripeCheckoutSessionId: {
|
91
|
-
type: string[];
|
92
|
-
};
|
93
|
-
stripeIdempotencyKey: {
|
94
|
-
type: string;
|
95
|
-
};
|
96
|
-
stripePaymentIntentId: {
|
97
|
-
type: string[];
|
98
|
-
};
|
99
|
-
discountCodeId: {
|
100
|
-
type: string[];
|
101
|
-
};
|
102
|
-
appliedDiscountValue: {
|
103
|
-
type: string;
|
104
|
-
};
|
105
|
-
};
|
106
|
-
};
|
107
|
-
}
|
108
|
-
export {};
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
import { Member } from './member';
|
3
|
-
export declare class GameStatModel extends Model {
|
4
|
-
id: number;
|
5
|
-
eventId: number;
|
6
|
-
teamId: number;
|
7
|
-
lastUpdatedBy: number | null;
|
8
|
-
playerId: number;
|
9
|
-
count: number;
|
10
|
-
leagueId: number | null;
|
11
|
-
lastUpdatedByOrg: number | null;
|
12
|
-
lastUpdatedByReferee: number | null;
|
13
|
-
updatedAt: Date;
|
14
|
-
createdAt: Date;
|
15
|
-
player?: Member;
|
16
|
-
static get idColumn(): string;
|
17
|
-
static jsonSchema: {
|
18
|
-
type: string;
|
19
|
-
required: string[];
|
20
|
-
properties: {
|
21
|
-
id: {
|
22
|
-
type: string;
|
23
|
-
};
|
24
|
-
eventId: {
|
25
|
-
type: string;
|
26
|
-
};
|
27
|
-
teamId: {
|
28
|
-
type: string;
|
29
|
-
};
|
30
|
-
lastUpdatedBy: {
|
31
|
-
type: string[];
|
32
|
-
default: null;
|
33
|
-
};
|
34
|
-
lastUpdatedByOrg: {
|
35
|
-
type: string[];
|
36
|
-
default: null;
|
37
|
-
};
|
38
|
-
lastUpdatedByReferee: {
|
39
|
-
type: string[];
|
40
|
-
default: null;
|
41
|
-
};
|
42
|
-
playerId: {
|
43
|
-
type: string;
|
44
|
-
};
|
45
|
-
count: {
|
46
|
-
type: string;
|
47
|
-
};
|
48
|
-
leagueId: {
|
49
|
-
type: string[];
|
50
|
-
default: null;
|
51
|
-
};
|
52
|
-
};
|
53
|
-
};
|
54
|
-
}
|
55
|
-
export default GameStatModel;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { RedisClientType } from '../../redis/config';
|
2
|
-
import { ChatMember } from '../chat_members';
|
3
|
-
export declare function addChatRoomToCachedMember(chatMember: ChatMember, redisClient: RedisClientType): Promise<void>;
|
4
|
-
export declare function addChatMemberToUnreadMessagesCache(chatMember: ChatMember, redisClient: RedisClientType): Promise<void>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { ModelOptions, TransactionOrKnex } from 'objection';
|
2
|
-
import { Event } from '../event';
|
3
|
-
export declare function initEvent(event: Event, queryContext: any): Promise<void>;
|
4
|
-
export declare function handleDelete(transaction: any, teamId: number, eventId: number, deletorId: number, organizationId?: number): Promise<void>;
|
5
|
-
export declare function handleUpdate(modelOpts: ModelOptions, queryContext: any): Promise<void>;
|
6
|
-
export declare function syncPost(newEvent: Event, eventId?: number, trx?: TransactionOrKnex): Promise<void>;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { RedisClientType } from '../../redis/config';
|
2
|
-
import { PickupGrpMember } from '../pickup_group_members';
|
3
|
-
export declare function addPickupGroupToCachedMember(groupMember: PickupGrpMember, redisClient: RedisClientType): Promise<void>;
|
4
|
-
export declare function addPickupGroupMemberToUnreadMessagesCache(groupMember: PickupGrpMember, redisClient: RedisClientType): Promise<void>;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { RedisClientType } from '../../redis/config';
|
2
|
-
import { TeamRoster } from '../team_roster';
|
3
|
-
export declare function addTeamToCachedMember(roster: TeamRoster, redisClient: RedisClientType): Promise<void>;
|
4
|
-
export declare function addTeamMemberToUnreadMessagesCache(roster: TeamRoster, redisClient: RedisClientType): Promise<void>;
|
@@ -1,108 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { Member } from './member';
|
3
|
-
import { Team } from './team';
|
4
|
-
import { TeamRoster } from './team_roster';
|
5
|
-
export declare const enum TMemberInvite {
|
6
|
-
as_sub = "as_sub",
|
7
|
-
as_roster = "as_roster",
|
8
|
-
as_organizer = "as_organizer",
|
9
|
-
as_pickupGrpMember = "as_pickupGrpMember",
|
10
|
-
as_referee = "as_referee"
|
11
|
-
}
|
12
|
-
export declare class Invite extends Model {
|
13
|
-
id: number;
|
14
|
-
token: string;
|
15
|
-
generatedByMember?: number | null;
|
16
|
-
generatedByOrganizer?: number | null;
|
17
|
-
expiration?: Date | string;
|
18
|
-
type?: TMemberInvite;
|
19
|
-
teamId?: number | null;
|
20
|
-
eventId?: number | null;
|
21
|
-
organizationId?: number | null;
|
22
|
-
pickupGroupId?: number | null;
|
23
|
-
maxInvites?: number;
|
24
|
-
inviteCount?: number;
|
25
|
-
email?: string;
|
26
|
-
firstName?: string | null;
|
27
|
-
lastName?: string | null;
|
28
|
-
isActive?: boolean;
|
29
|
-
teamRosterId?: number | null;
|
30
|
-
teamRoster?: TeamRoster;
|
31
|
-
team?: Team;
|
32
|
-
members?: Member;
|
33
|
-
static tableName: string;
|
34
|
-
static get relationMappings(): RelationMappings;
|
35
|
-
static get idColumn(): string;
|
36
|
-
static jsonSchema: {
|
37
|
-
type: string;
|
38
|
-
required: string[];
|
39
|
-
properties: {
|
40
|
-
id: {
|
41
|
-
type: string;
|
42
|
-
};
|
43
|
-
token: {
|
44
|
-
type: string;
|
45
|
-
minLength: number;
|
46
|
-
maxLength: number;
|
47
|
-
};
|
48
|
-
teamId: {
|
49
|
-
type: string[];
|
50
|
-
default: null;
|
51
|
-
};
|
52
|
-
eventId: {
|
53
|
-
type: string[];
|
54
|
-
default: null;
|
55
|
-
};
|
56
|
-
organizationId: {
|
57
|
-
type: string[];
|
58
|
-
default: null;
|
59
|
-
};
|
60
|
-
generatedByMember: {
|
61
|
-
type: string[];
|
62
|
-
default: null;
|
63
|
-
};
|
64
|
-
generatedByOrganizer: {
|
65
|
-
type: string[];
|
66
|
-
default: null;
|
67
|
-
};
|
68
|
-
teamRosterId: {
|
69
|
-
type: string[];
|
70
|
-
default: null;
|
71
|
-
};
|
72
|
-
email: {
|
73
|
-
type: string[];
|
74
|
-
default: null;
|
75
|
-
};
|
76
|
-
firstName: {
|
77
|
-
type: string[];
|
78
|
-
default: null;
|
79
|
-
};
|
80
|
-
lastName: {
|
81
|
-
type: string[];
|
82
|
-
default: null;
|
83
|
-
};
|
84
|
-
expiration: {
|
85
|
-
type: string;
|
86
|
-
};
|
87
|
-
type: {
|
88
|
-
type: string;
|
89
|
-
enum: TMemberInvite[];
|
90
|
-
minLength: number;
|
91
|
-
maxLength: number;
|
92
|
-
};
|
93
|
-
maxInvites: {
|
94
|
-
type: string[];
|
95
|
-
default: null;
|
96
|
-
};
|
97
|
-
inviteCount: {
|
98
|
-
type: string[];
|
99
|
-
default: null;
|
100
|
-
};
|
101
|
-
isActive: {
|
102
|
-
type: string[];
|
103
|
-
default: null;
|
104
|
-
};
|
105
|
-
};
|
106
|
-
};
|
107
|
-
}
|
108
|
-
export default Invite;
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { JobType } from './job_type';
|
3
|
-
export declare enum JobTimeInterval {
|
4
|
-
PRE_THREE_DAY = "PRE_THREE_DAY",
|
5
|
-
PRE_ONE_DAY = "PRE_ONE_DAY",
|
6
|
-
PRE_SIX_HOUR = "PRE_SIX_HOUR",
|
7
|
-
POST_THREE_HOUR = "POST_THREE_HOUR",
|
8
|
-
POST_TWELVE_HOUR = "POST_TWELVE_HOUR"
|
9
|
-
}
|
10
|
-
export declare class Job extends Model {
|
11
|
-
id: number;
|
12
|
-
jobTypeId: number;
|
13
|
-
timeInterval: JobTimeInterval;
|
14
|
-
jobType?: JobType;
|
15
|
-
static tableName: string;
|
16
|
-
static get relationMappings(): RelationMappings;
|
17
|
-
static jsonSchema: {
|
18
|
-
type: string;
|
19
|
-
required: string[];
|
20
|
-
properties: {
|
21
|
-
id: {
|
22
|
-
type: string;
|
23
|
-
};
|
24
|
-
jobTypeId: {
|
25
|
-
type: string;
|
26
|
-
};
|
27
|
-
timeInterval: {
|
28
|
-
type: string;
|
29
|
-
enum: JobTimeInterval[];
|
30
|
-
};
|
31
|
-
};
|
32
|
-
};
|
33
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { Job } from './job';
|
3
|
-
export declare enum TJobType {
|
4
|
-
NEXT_MATCH_REMINDER = "NEXT_MATCH_REMINDER",
|
5
|
-
POTM_VOTE_REMINDER = "POTM_VOTE_REMINDER"
|
6
|
-
}
|
7
|
-
export declare class JobType extends Model {
|
8
|
-
id: number;
|
9
|
-
type: TJobType;
|
10
|
-
jobs?: Job[];
|
11
|
-
static tableName: string;
|
12
|
-
static get relationMappings(): RelationMappings;
|
13
|
-
static jsonSchema: {
|
14
|
-
type: string;
|
15
|
-
required: string[];
|
16
|
-
properties: {
|
17
|
-
id: {
|
18
|
-
type: string;
|
19
|
-
};
|
20
|
-
type: {
|
21
|
-
type: string;
|
22
|
-
enum: TJobType[];
|
23
|
-
};
|
24
|
-
};
|
25
|
-
};
|
26
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
export declare class LastSeenTeamMessage extends Model {
|
3
|
-
id: number;
|
4
|
-
memberId: number;
|
5
|
-
teamId: number;
|
6
|
-
lastSeenMessageId: number;
|
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
|
-
memberId: {
|
20
|
-
type: string;
|
21
|
-
};
|
22
|
-
teamId: {
|
23
|
-
type: string;
|
24
|
-
};
|
25
|
-
lastSeenMessageId: {
|
26
|
-
type: string;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
};
|
30
|
-
}
|
31
|
-
export default LastSeenTeamMessage;
|