bantr-api-client 11.0.3 → 11.0.4
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 +3 -3
@@ -0,0 +1,34 @@
|
|
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
|
+
}
|
@@ -0,0 +1,42 @@
|
|
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;
|
@@ -0,0 +1,46 @@
|
|
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;
|
@@ -0,0 +1,49 @@
|
|
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 {};
|
@@ -0,0 +1,68 @@
|
|
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 {};
|
@@ -0,0 +1,70 @@
|
|
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 {};
|
@@ -0,0 +1,37 @@
|
|
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 {};
|
@@ -0,0 +1,23 @@
|
|
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
|
+
}
|
@@ -0,0 +1,75 @@
|
|
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 {};
|
@@ -0,0 +1,68 @@
|
|
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
|
+
}
|
@@ -0,0 +1,59 @@
|
|
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
|
+
}
|
@@ -0,0 +1,76 @@
|
|
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 {};
|