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,34 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { DeliveryStatus } from '../messaging/utils/types';
|
3
|
-
export declare class Message extends Model {
|
4
|
-
static tableName: string;
|
5
|
-
id: string;
|
6
|
-
content: string;
|
7
|
-
deliveryStatus: DeliveryStatus;
|
8
|
-
senderId: number;
|
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
|
-
senderId: {
|
20
|
-
type: string;
|
21
|
-
};
|
22
|
-
content: {
|
23
|
-
type: string;
|
24
|
-
};
|
25
|
-
deliveryStatus: {
|
26
|
-
type: string;
|
27
|
-
enum: DeliveryStatus[];
|
28
|
-
};
|
29
|
-
createdAt: {
|
30
|
-
type: string;
|
31
|
-
};
|
32
|
-
};
|
33
|
-
};
|
34
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
export declare class MVPVotes extends Model {
|
3
|
-
id: number;
|
4
|
-
eventId: number;
|
5
|
-
voterId: number | null;
|
6
|
-
orgVoterId: number | null;
|
7
|
-
mvpId: number;
|
8
|
-
leagueId: number | null;
|
9
|
-
updatedAt?: Date | string;
|
10
|
-
createdAt?: Date | string;
|
11
|
-
count?: number;
|
12
|
-
static tableName: string;
|
13
|
-
static get idColumn(): string;
|
14
|
-
static jsonSchema: {
|
15
|
-
type: string;
|
16
|
-
required: string[];
|
17
|
-
properties: {
|
18
|
-
id: {
|
19
|
-
type: string;
|
20
|
-
};
|
21
|
-
eventId: {
|
22
|
-
type: string;
|
23
|
-
};
|
24
|
-
voterId: {
|
25
|
-
type: string[];
|
26
|
-
default: null;
|
27
|
-
};
|
28
|
-
orgVoterId: {
|
29
|
-
type: string[];
|
30
|
-
default: null;
|
31
|
-
};
|
32
|
-
mvpId: {
|
33
|
-
type: string;
|
34
|
-
};
|
35
|
-
leagueId: {
|
36
|
-
type: string[];
|
37
|
-
default: null;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
};
|
41
|
-
}
|
42
|
-
export default MVPVotes;
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
export declare enum TStatus {
|
3
|
-
unread = "unread",
|
4
|
-
read = "read",
|
5
|
-
deleted = "deleted"
|
6
|
-
}
|
7
|
-
export declare class Notification extends Model {
|
8
|
-
id: number;
|
9
|
-
text?: string;
|
10
|
-
textMeta?: string;
|
11
|
-
metaData?: Record<any, any>;
|
12
|
-
createdAt?: Date;
|
13
|
-
updatedAt?: Date;
|
14
|
-
type: string;
|
15
|
-
status: string;
|
16
|
-
memberId: number;
|
17
|
-
static tableName: string;
|
18
|
-
static get idColumn(): string;
|
19
|
-
static jsonSchema: {
|
20
|
-
type: string;
|
21
|
-
properties: {
|
22
|
-
id: {
|
23
|
-
type: string;
|
24
|
-
};
|
25
|
-
text: {
|
26
|
-
type: string;
|
27
|
-
};
|
28
|
-
textMeta: {
|
29
|
-
type: string;
|
30
|
-
};
|
31
|
-
metaData: {
|
32
|
-
type: string;
|
33
|
-
};
|
34
|
-
status: {
|
35
|
-
type: string;
|
36
|
-
enum: TStatus[];
|
37
|
-
minLength: number;
|
38
|
-
maxLength: number;
|
39
|
-
};
|
40
|
-
memberId: {
|
41
|
-
type: string;
|
42
|
-
};
|
43
|
-
};
|
44
|
-
};
|
45
|
-
}
|
46
|
-
export default Notification;
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
import { TokenPayload } from 'google-auth-library';
|
3
|
-
import { FacebookUser, OAuthProvider, OAuthProviderProfile } from '../types/auth';
|
4
|
-
declare const OAuth_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
-
export declare class OAuth extends OAuth_base {
|
6
|
-
static tableName: string;
|
7
|
-
id: number;
|
8
|
-
accessToken: string;
|
9
|
-
provider: OAuthProvider;
|
10
|
-
providerProfileId: string;
|
11
|
-
providerProfile: OAuthProviderProfile | TokenPayload | FacebookUser;
|
12
|
-
memberId: number;
|
13
|
-
organizerId: number | null;
|
14
|
-
deletedAt: Date | null;
|
15
|
-
updatedAt: Date;
|
16
|
-
static get idColumn(): string;
|
17
|
-
static jsonSchema: {
|
18
|
-
type: string;
|
19
|
-
required: string[];
|
20
|
-
properties: {
|
21
|
-
id: {
|
22
|
-
type: string;
|
23
|
-
};
|
24
|
-
accessToken: {
|
25
|
-
type: string;
|
26
|
-
};
|
27
|
-
provider: {
|
28
|
-
type: string;
|
29
|
-
enum: OAuthProvider[];
|
30
|
-
};
|
31
|
-
providerProfileId: {
|
32
|
-
type: string;
|
33
|
-
};
|
34
|
-
providerProfile: {
|
35
|
-
type: string;
|
36
|
-
};
|
37
|
-
memberId: {
|
38
|
-
type: string;
|
39
|
-
};
|
40
|
-
organizerId: {
|
41
|
-
type: string;
|
42
|
-
};
|
43
|
-
};
|
44
|
-
oneOf: {
|
45
|
-
required: string[];
|
46
|
-
}[];
|
47
|
-
};
|
48
|
-
}
|
49
|
-
export {};
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import { Model, QueryBuilder, Constructor, TransactionOrKnex, QueryBuilderType, RelationMappings } from 'objection';
|
2
|
-
import { VALID_CURRENCY_CODES } from '../constants';
|
3
|
-
import { OrgWorkspace } from './organization_workspace';
|
4
|
-
import { Organizer } from './organizer';
|
5
|
-
import { Referee } from './referees';
|
6
|
-
import { DiscountCode } from '../modules/discount_code/discount_code.model';
|
7
|
-
import { Transaction } from './transaction';
|
8
|
-
declare const Organization_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
9
|
-
export declare class Organization extends Organization_base {
|
10
|
-
id: number;
|
11
|
-
name: string;
|
12
|
-
avatar?: string;
|
13
|
-
zip?: string;
|
14
|
-
acronym?: string;
|
15
|
-
timezone: string;
|
16
|
-
contactEmail: string | null;
|
17
|
-
currency: VALID_CURRENCY_CODES;
|
18
|
-
orgWorkspaces?: OrgWorkspace[];
|
19
|
-
organizers?: Organizer[];
|
20
|
-
referees?: Referee[];
|
21
|
-
discountCodes?: DiscountCode[];
|
22
|
-
transactions?: Transaction[];
|
23
|
-
deletedAt: Date | null;
|
24
|
-
static tableName: string;
|
25
|
-
static get relationMappings(): RelationMappings;
|
26
|
-
static get idColumn(): string;
|
27
|
-
static query<M extends Model>(this: Constructor<M>, trxOrKnex?: TransactionOrKnex): QueryBuilderType<M>;
|
28
|
-
static modifiers: {
|
29
|
-
publicInfo(query: QueryBuilder<Organization>): void;
|
30
|
-
};
|
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
|
-
avatar: {
|
44
|
-
type: string;
|
45
|
-
minLength: number;
|
46
|
-
maxLength: number;
|
47
|
-
};
|
48
|
-
zip: {
|
49
|
-
type: string;
|
50
|
-
pattern: string;
|
51
|
-
};
|
52
|
-
acronym: {
|
53
|
-
type: string;
|
54
|
-
minLength: number;
|
55
|
-
maxLength: number;
|
56
|
-
};
|
57
|
-
timezone: {
|
58
|
-
type: string;
|
59
|
-
minLength: number;
|
60
|
-
maxLength: number;
|
61
|
-
};
|
62
|
-
contactEmail: {
|
63
|
-
type: string[];
|
64
|
-
};
|
65
|
-
};
|
66
|
-
};
|
67
|
-
}
|
68
|
-
export {};
|
@@ -1,70 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { Organization } from './organization';
|
3
|
-
import { OrgWorkspace } from './organization_workspace';
|
4
|
-
import { Organizer } from './organizer';
|
5
|
-
declare const OrgFreeAgent_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
6
|
-
export declare class OrgFreeAgent extends OrgFreeAgent_base {
|
7
|
-
id: number;
|
8
|
-
creatorId: number;
|
9
|
-
organizationId: number;
|
10
|
-
orgWorkspaceId: number | null;
|
11
|
-
title: string;
|
12
|
-
image: string | null;
|
13
|
-
description: string | null;
|
14
|
-
stripeProductId: string | null;
|
15
|
-
isPublished: boolean;
|
16
|
-
updatedAt: Date | string;
|
17
|
-
deletedAt: Date | null;
|
18
|
-
organization?: Organization;
|
19
|
-
orgWorkspace?: OrgWorkspace;
|
20
|
-
organizer?: Organizer;
|
21
|
-
price?: number;
|
22
|
-
stripeVersion: number;
|
23
|
-
static tableName: string;
|
24
|
-
static get idColumn(): string;
|
25
|
-
static get relationMappings(): RelationMappings;
|
26
|
-
static jsonSchema: {
|
27
|
-
type: string;
|
28
|
-
required: string[];
|
29
|
-
properties: {
|
30
|
-
id: {
|
31
|
-
type: string;
|
32
|
-
};
|
33
|
-
creatorId: {
|
34
|
-
type: string[];
|
35
|
-
};
|
36
|
-
organizationId: {
|
37
|
-
type: string;
|
38
|
-
};
|
39
|
-
orgWorkspaceId: {
|
40
|
-
type: string[];
|
41
|
-
};
|
42
|
-
title: {
|
43
|
-
type: string;
|
44
|
-
minLength: number;
|
45
|
-
maxLength: number;
|
46
|
-
};
|
47
|
-
image: {
|
48
|
-
type: string[];
|
49
|
-
minLength: number;
|
50
|
-
};
|
51
|
-
description: {
|
52
|
-
type: string[];
|
53
|
-
minLength: number;
|
54
|
-
};
|
55
|
-
stripeProductId: {
|
56
|
-
type: string[];
|
57
|
-
minLength: number;
|
58
|
-
};
|
59
|
-
isPublished: {
|
60
|
-
type: string;
|
61
|
-
default: boolean;
|
62
|
-
};
|
63
|
-
stripeVersion: {
|
64
|
-
type: string;
|
65
|
-
default: number;
|
66
|
-
};
|
67
|
-
};
|
68
|
-
};
|
69
|
-
}
|
70
|
-
export {};
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
import { VALID_CURRENCY_CODES } from '../constants';
|
3
|
-
declare const OrgFreeAgentPrice_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
4
|
-
export declare class OrgFreeAgentPrice extends OrgFreeAgentPrice_base {
|
5
|
-
id: number;
|
6
|
-
orgFreeAgentId: number;
|
7
|
-
price: number;
|
8
|
-
stripePriceId: string | null;
|
9
|
-
currency: VALID_CURRENCY_CODES;
|
10
|
-
deletedAt: Date | null;
|
11
|
-
static tableName: string;
|
12
|
-
static get idColumn(): string;
|
13
|
-
static jsonSchema: {
|
14
|
-
type: string;
|
15
|
-
required: string[];
|
16
|
-
properties: {
|
17
|
-
id: {
|
18
|
-
type: string;
|
19
|
-
};
|
20
|
-
orgFreeAgentId: {
|
21
|
-
type: string;
|
22
|
-
};
|
23
|
-
price: {
|
24
|
-
type: string;
|
25
|
-
};
|
26
|
-
stripePriceId: {
|
27
|
-
type: string[];
|
28
|
-
minLength: number;
|
29
|
-
};
|
30
|
-
currency: {
|
31
|
-
type: string;
|
32
|
-
enum: VALID_CURRENCY_CODES[];
|
33
|
-
};
|
34
|
-
};
|
35
|
-
};
|
36
|
-
}
|
37
|
-
export {};
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
export declare class OrganizationLeague extends Model {
|
3
|
-
id: number;
|
4
|
-
organizationId: number;
|
5
|
-
leagueId: number;
|
6
|
-
static tableName: string;
|
7
|
-
static get idColumn(): string;
|
8
|
-
static jsonSchema: {
|
9
|
-
type: string;
|
10
|
-
required: string[];
|
11
|
-
properties: {
|
12
|
-
id: {
|
13
|
-
type: string;
|
14
|
-
};
|
15
|
-
organizationId: {
|
16
|
-
type: string;
|
17
|
-
};
|
18
|
-
leagueId: {
|
19
|
-
type: string;
|
20
|
-
};
|
21
|
-
};
|
22
|
-
};
|
23
|
-
}
|
@@ -1,75 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { Team } from './team';
|
3
|
-
declare const OrgLearnMore_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
4
|
-
export declare class OrgLearnMore extends OrgLearnMore_base {
|
5
|
-
id: number;
|
6
|
-
organizationId: number;
|
7
|
-
orgWorkspaceId: number | null;
|
8
|
-
leagueId: number;
|
9
|
-
playerId: number | null;
|
10
|
-
playerEmail: string | null;
|
11
|
-
playerName: string | null;
|
12
|
-
firstName: string | null;
|
13
|
-
lastName: string | null;
|
14
|
-
createdAt: Date;
|
15
|
-
deletedAt: Date | null;
|
16
|
-
updatedAt: Date | null;
|
17
|
-
teams?: Team[];
|
18
|
-
latestOrgWaiver?: {
|
19
|
-
id: number;
|
20
|
-
name: string;
|
21
|
-
content: string;
|
22
|
-
};
|
23
|
-
latestSignedWaiver?: {
|
24
|
-
id: number;
|
25
|
-
name: string;
|
26
|
-
orgWaiverId: number;
|
27
|
-
signedDate: Date;
|
28
|
-
status: string;
|
29
|
-
};
|
30
|
-
static tableName: string;
|
31
|
-
static get idColumn(): string;
|
32
|
-
static get relationMappings(): RelationMappings;
|
33
|
-
static jsonSchema: {
|
34
|
-
type: string;
|
35
|
-
required: string[];
|
36
|
-
properties: {
|
37
|
-
id: {
|
38
|
-
type: string;
|
39
|
-
};
|
40
|
-
organizationId: {
|
41
|
-
type: string;
|
42
|
-
};
|
43
|
-
orgWorkspaceId: {
|
44
|
-
type: string[];
|
45
|
-
};
|
46
|
-
leagueId: {
|
47
|
-
type: string;
|
48
|
-
};
|
49
|
-
playerId: {
|
50
|
-
type: string[];
|
51
|
-
};
|
52
|
-
playerEmail: {
|
53
|
-
type: string[];
|
54
|
-
minLength: number;
|
55
|
-
maxLength: number;
|
56
|
-
};
|
57
|
-
playerName: {
|
58
|
-
type: string[];
|
59
|
-
minLength: number;
|
60
|
-
maxLength: number;
|
61
|
-
};
|
62
|
-
firstName: {
|
63
|
-
type: string[];
|
64
|
-
minLength: number;
|
65
|
-
maxLength: number;
|
66
|
-
};
|
67
|
-
lastName: {
|
68
|
-
type: string[];
|
69
|
-
minLength: number;
|
70
|
-
maxLength: number;
|
71
|
-
};
|
72
|
-
};
|
73
|
-
};
|
74
|
-
}
|
75
|
-
export {};
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import { Model, QueryBuilder } from 'objection';
|
2
|
-
import { TECHNOLOGY_FEE_MODES, VALID_CURRENCY_CODES } from '../constants';
|
3
|
-
export declare enum OnboardingStatus {
|
4
|
-
PENDING = "pending",
|
5
|
-
COMPLETE = "complete"
|
6
|
-
}
|
7
|
-
export declare class OrganizationStripe extends Model {
|
8
|
-
id: number;
|
9
|
-
organizationId: number;
|
10
|
-
stripeAccountId: string;
|
11
|
-
stripeAccountName: string | null;
|
12
|
-
applicationFee: number | null;
|
13
|
-
onboardingStatus: OnboardingStatus;
|
14
|
-
isDefault: boolean;
|
15
|
-
currency: VALID_CURRENCY_CODES;
|
16
|
-
technologyFeeMode: TECHNOLOGY_FEE_MODES;
|
17
|
-
extraTechnologyFeePercent: number;
|
18
|
-
extraTechnologyFeeLabel: string | null;
|
19
|
-
static tableName: string;
|
20
|
-
static get idColumn(): string;
|
21
|
-
static modifiers: {
|
22
|
-
publicInfo(query: QueryBuilder<OrganizationStripe>): void;
|
23
|
-
};
|
24
|
-
static jsonSchema: {
|
25
|
-
type: string;
|
26
|
-
required: string[];
|
27
|
-
properties: {
|
28
|
-
id: {
|
29
|
-
type: string;
|
30
|
-
};
|
31
|
-
organizationId: {
|
32
|
-
type: string;
|
33
|
-
};
|
34
|
-
stripeAccountId: {
|
35
|
-
type: string;
|
36
|
-
};
|
37
|
-
applicationFee: {
|
38
|
-
type: string[];
|
39
|
-
};
|
40
|
-
stripeAccountName: {
|
41
|
-
type: string[];
|
42
|
-
};
|
43
|
-
onboardingStatus: {
|
44
|
-
type: string;
|
45
|
-
enum: OnboardingStatus[];
|
46
|
-
default: OnboardingStatus;
|
47
|
-
};
|
48
|
-
isDefault: {
|
49
|
-
type: string;
|
50
|
-
default: boolean;
|
51
|
-
};
|
52
|
-
currency: {
|
53
|
-
type: string;
|
54
|
-
enum: VALID_CURRENCY_CODES[];
|
55
|
-
};
|
56
|
-
technologyFeeMode: {
|
57
|
-
type: string;
|
58
|
-
enum: TECHNOLOGY_FEE_MODES[];
|
59
|
-
};
|
60
|
-
extraTechnologyFeePercent: {
|
61
|
-
type: string[];
|
62
|
-
};
|
63
|
-
extraTechnologyFeeLabel: {
|
64
|
-
type: string[];
|
65
|
-
};
|
66
|
-
};
|
67
|
-
};
|
68
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import { Model } from 'objection';
|
2
|
-
import { Organization } from './organization';
|
3
|
-
import { Member } from './member';
|
4
|
-
export declare class OrgWaiver extends Model {
|
5
|
-
id: number;
|
6
|
-
organizationId: number;
|
7
|
-
content: string;
|
8
|
-
waiverVersion: number;
|
9
|
-
createdAt: Date | string;
|
10
|
-
lastRemindedAll: Date | null;
|
11
|
-
organizationName?: string;
|
12
|
-
static tableName: string;
|
13
|
-
static relationMappings(): {
|
14
|
-
organization: {
|
15
|
-
relation: import("objection").RelationType;
|
16
|
-
modelClass: typeof Organization;
|
17
|
-
join: {
|
18
|
-
from: string;
|
19
|
-
to: string;
|
20
|
-
};
|
21
|
-
};
|
22
|
-
members: {
|
23
|
-
relation: import("objection").RelationType;
|
24
|
-
modelClass: typeof Member;
|
25
|
-
join: {
|
26
|
-
from: string;
|
27
|
-
through: {
|
28
|
-
from: string;
|
29
|
-
to: string;
|
30
|
-
};
|
31
|
-
to: string;
|
32
|
-
};
|
33
|
-
};
|
34
|
-
};
|
35
|
-
static get jsonSchema(): {
|
36
|
-
type: string;
|
37
|
-
required: string[];
|
38
|
-
properties: {
|
39
|
-
id: {
|
40
|
-
type: string;
|
41
|
-
};
|
42
|
-
organizationId: {
|
43
|
-
type: string;
|
44
|
-
};
|
45
|
-
content: {
|
46
|
-
type: string;
|
47
|
-
};
|
48
|
-
waiverVersion: {
|
49
|
-
type: string;
|
50
|
-
};
|
51
|
-
createdAt: {
|
52
|
-
type: string;
|
53
|
-
};
|
54
|
-
lastRemindedAll: {
|
55
|
-
type: string;
|
56
|
-
};
|
57
|
-
};
|
58
|
-
};
|
59
|
-
}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import { Model, RelationMappings } from 'objection';
|
2
|
-
import { OrganizationStripe } from './organization_stripe';
|
3
|
-
import { Transaction } from './transaction';
|
4
|
-
declare const OrgWorkspace_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
5
|
-
export declare class OrgWorkspace extends OrgWorkspace_base {
|
6
|
-
id: number;
|
7
|
-
organizationId: number;
|
8
|
-
name: string;
|
9
|
-
acronym: string;
|
10
|
-
zip: string;
|
11
|
-
timezone: string;
|
12
|
-
urlPath: string | null;
|
13
|
-
avatar: string | null;
|
14
|
-
frontChatbotId: string | null;
|
15
|
-
contactEmail: string | null;
|
16
|
-
orgStripeId: number | null;
|
17
|
-
orgWorkspaceStripe?: OrganizationStripe;
|
18
|
-
transactions?: Transaction[];
|
19
|
-
deletedAt: Date | null;
|
20
|
-
static tableName: string;
|
21
|
-
static get relationMappings(): RelationMappings;
|
22
|
-
static get idColumn(): string;
|
23
|
-
static jsonSchema: {
|
24
|
-
type: string;
|
25
|
-
required: string[];
|
26
|
-
properties: {
|
27
|
-
id: {
|
28
|
-
type: string;
|
29
|
-
};
|
30
|
-
organizationId: {
|
31
|
-
type: string;
|
32
|
-
};
|
33
|
-
name: {
|
34
|
-
type: string;
|
35
|
-
minLength: number;
|
36
|
-
maxLength: number;
|
37
|
-
};
|
38
|
-
zip: {
|
39
|
-
type: string;
|
40
|
-
pattern: string;
|
41
|
-
};
|
42
|
-
acronym: {
|
43
|
-
type: string;
|
44
|
-
minLength: number;
|
45
|
-
maxLength: number;
|
46
|
-
};
|
47
|
-
timezone: {
|
48
|
-
type: string;
|
49
|
-
minLength: number;
|
50
|
-
maxLength: number;
|
51
|
-
};
|
52
|
-
urlPath: {
|
53
|
-
type: string;
|
54
|
-
minLength: number;
|
55
|
-
maxLength: number;
|
56
|
-
};
|
57
|
-
avatar: {
|
58
|
-
type: string[];
|
59
|
-
minLength: number;
|
60
|
-
maxLength: number;
|
61
|
-
};
|
62
|
-
frontChatbotId: {
|
63
|
-
type: string[];
|
64
|
-
minLength: number;
|
65
|
-
maxLength: number;
|
66
|
-
};
|
67
|
-
contactEmail: {
|
68
|
-
type: string[];
|
69
|
-
};
|
70
|
-
orgStripeId: {
|
71
|
-
type: string[];
|
72
|
-
};
|
73
|
-
};
|
74
|
-
};
|
75
|
-
}
|
76
|
-
export {};
|