bantr-api-client 11.0.4 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +21 -5
- 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
package/package.json
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "bantr-api-client",
|
3
|
-
"version": "
|
3
|
+
"version": "12.0.0",
|
4
4
|
"description": "SDK for Bantr API integration using tRPC and react-query",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"types": "dist/src/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"dist/",
|
9
|
+
"api-type/src/trpcRouter/"
|
10
|
+
],
|
7
11
|
"publishConfig": {
|
8
12
|
"access": "public"
|
9
13
|
},
|
@@ -16,16 +20,28 @@
|
|
16
20
|
"devDependencies": {
|
17
21
|
"@types/react": "^18.2.0",
|
18
22
|
"@types/react-dom": "^18.2.0",
|
19
|
-
"typescript": "4.8.4"
|
23
|
+
"typescript": "4.8.4",
|
24
|
+
"@tanstack/react-query": "^4.20.4",
|
25
|
+
"@trpc/client": "^10.45.2",
|
26
|
+
"@trpc/react-query": "^10.45.2",
|
27
|
+
"@trpc/server": "^10.45.2",
|
28
|
+
"trpc-koa-adapter": "^1.2.2",
|
29
|
+
"zod": "^3.23.8"
|
20
30
|
},
|
21
|
-
"
|
31
|
+
"bundledDependencies": [],
|
32
|
+
"peerDependencies": {
|
33
|
+
"react": "^18.0.0 || ^19.0.0",
|
34
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
22
35
|
"@tanstack/react-query": "^4.20.4",
|
23
36
|
"@trpc/client": "^10.45.2",
|
24
37
|
"@trpc/react-query": "^10.45.2",
|
25
38
|
"@trpc/server": "^10.45.2",
|
26
|
-
"react": "^18.2.0",
|
27
|
-
"react-dom": "^18.2.0",
|
28
39
|
"trpc-koa-adapter": "^1.2.2",
|
29
40
|
"zod": "^3.23.8"
|
41
|
+
},
|
42
|
+
"peerDependenciesMeta": {
|
43
|
+
"react-dom": {
|
44
|
+
"optional": true
|
45
|
+
}
|
30
46
|
}
|
31
47
|
}
|
@@ -1,45 +0,0 @@
|
|
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 {};
|
@@ -1,27 +0,0 @@
|
|
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;
|
@@ -1,37 +0,0 @@
|
|
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
|
-
}
|
@@ -1,36 +0,0 @@
|
|
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
|
-
}
|
@@ -1,38 +0,0 @@
|
|
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;
|
@@ -1,46 +0,0 @@
|
|
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;
|
@@ -1,64 +0,0 @@
|
|
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
|
-
}
|
@@ -1,34 +0,0 @@
|
|
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;
|
@@ -1,42 +0,0 @@
|
|
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 {};
|
@@ -1,120 +0,0 @@
|
|
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 {};
|
@@ -1,52 +0,0 @@
|
|
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 {};
|
@@ -1,50 +0,0 @@
|
|
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 {};
|
@@ -1,31 +0,0 @@
|
|
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;
|