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,71 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { Status } from './rsvp';
|
3
|
+
import { Member } from './member';
|
4
|
+
import { Invite } from './invite';
|
5
|
+
declare const TeamRoster_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
6
|
+
export declare class TeamRoster extends TeamRoster_base {
|
7
|
+
id: number;
|
8
|
+
teamId: number;
|
9
|
+
memberId: number;
|
10
|
+
isCaptain: boolean;
|
11
|
+
firstName?: string;
|
12
|
+
lastName?: string;
|
13
|
+
avatar?: string;
|
14
|
+
isActive: boolean;
|
15
|
+
updatedAt: Date | string;
|
16
|
+
createdAt: Date | string;
|
17
|
+
deletedAt: Date | null;
|
18
|
+
rsvpStatus?: Status;
|
19
|
+
goals?: number;
|
20
|
+
assists?: number;
|
21
|
+
potmVotes?: number;
|
22
|
+
email?: string;
|
23
|
+
isSub?: boolean;
|
24
|
+
isRostered?: boolean;
|
25
|
+
gamesStatus?: number[];
|
26
|
+
member?: Member;
|
27
|
+
isBlocked?: boolean;
|
28
|
+
latestOrgWaiver?: {
|
29
|
+
id: number;
|
30
|
+
name: string;
|
31
|
+
content: string;
|
32
|
+
};
|
33
|
+
latestSignedWaiver?: {
|
34
|
+
id: number;
|
35
|
+
name: string;
|
36
|
+
orgWaiverId: number;
|
37
|
+
signedDate: Date;
|
38
|
+
status: string;
|
39
|
+
};
|
40
|
+
yellowCardCount?: number;
|
41
|
+
redCardCount?: number;
|
42
|
+
invites?: Invite[];
|
43
|
+
static tableName: string;
|
44
|
+
static get idColumn(): string;
|
45
|
+
static get relationMappings(): RelationMappings;
|
46
|
+
static jsonSchema: {
|
47
|
+
type: string;
|
48
|
+
required: string[];
|
49
|
+
properties: {
|
50
|
+
id: {
|
51
|
+
type: string;
|
52
|
+
};
|
53
|
+
teamId: {
|
54
|
+
type: string;
|
55
|
+
};
|
56
|
+
memberId: {
|
57
|
+
type: string;
|
58
|
+
};
|
59
|
+
isCaptain: {
|
60
|
+
type: string;
|
61
|
+
default: boolean;
|
62
|
+
};
|
63
|
+
isActive: {
|
64
|
+
type: string;
|
65
|
+
default: boolean;
|
66
|
+
};
|
67
|
+
};
|
68
|
+
};
|
69
|
+
$afterInsert(): Promise<void>;
|
70
|
+
}
|
71
|
+
export {};
|
@@ -0,0 +1,155 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { VALID_CURRENCY_CODES } from '../constants';
|
3
|
+
import { DiscountCode } from '../modules/discount_code/discount_code.model';
|
4
|
+
import { TRANSACTION_METHOD_ENUM, TRANSACTION_STATUS_ENUM } from '../modules/transaction/transaction.schema';
|
5
|
+
import { FreeAgentPayment } from './free_agent_payment';
|
6
|
+
import { League } from './league';
|
7
|
+
import { LeaguePayment } from './league_payment';
|
8
|
+
import { Member } from './member';
|
9
|
+
import { Organization } from './organization';
|
10
|
+
import { OrgFreeAgent } from './organization_free_agent';
|
11
|
+
import { OrgWorkspace } from './organization_workspace';
|
12
|
+
import { Pickup } from './pickup';
|
13
|
+
import { PickupPayment } from './pickup_payments';
|
14
|
+
import { StripeTransaction } from './stripe_transaction';
|
15
|
+
import { TransactionEvent } from './transaction_event';
|
16
|
+
declare const Transaction_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
17
|
+
export declare class Transaction extends Transaction_base {
|
18
|
+
id: number;
|
19
|
+
payerId: number;
|
20
|
+
payer?: Member;
|
21
|
+
paymentMethod: TRANSACTION_METHOD_ENUM;
|
22
|
+
discountCodeId: number | null;
|
23
|
+
discountCode?: DiscountCode;
|
24
|
+
documentAmount: number;
|
25
|
+
discountedAmount: number;
|
26
|
+
organizerFee: number;
|
27
|
+
bantrFee: number;
|
28
|
+
stripeFee: number;
|
29
|
+
chargedAmount: number;
|
30
|
+
paidAmount: number;
|
31
|
+
transferAmount: number;
|
32
|
+
refundedAmount: number;
|
33
|
+
transferSent: boolean;
|
34
|
+
currency: VALID_CURRENCY_CODES;
|
35
|
+
status: TRANSACTION_STATUS_ENUM;
|
36
|
+
expiresAt: Date | null;
|
37
|
+
lastStatusUpdateAt: Date | null;
|
38
|
+
leaguePaymentId: number | null;
|
39
|
+
leaguePayment?: LeaguePayment;
|
40
|
+
league?: League;
|
41
|
+
pickupPaymentId: number | null;
|
42
|
+
pickupPayment?: PickupPayment;
|
43
|
+
pickup?: Pickup;
|
44
|
+
freeAgentPaymentId: number | null;
|
45
|
+
freeAgentPayment?: FreeAgentPayment;
|
46
|
+
orgFreeAgent?: OrgFreeAgent;
|
47
|
+
organizationId: number;
|
48
|
+
organization?: Organization;
|
49
|
+
orgWorkspaceId: number | null;
|
50
|
+
orgWorkspace?: OrgWorkspace;
|
51
|
+
transactionEvents?: TransactionEvent[];
|
52
|
+
stripeTransactions?: StripeTransaction[];
|
53
|
+
updatedAt: Date;
|
54
|
+
createdAt: Date;
|
55
|
+
deletedAt: Date | null;
|
56
|
+
static tableName: string;
|
57
|
+
static get relationMappings(): RelationMappings;
|
58
|
+
static jsonSchema: {
|
59
|
+
type: string;
|
60
|
+
required: string[];
|
61
|
+
properties: {
|
62
|
+
id: {
|
63
|
+
type: string;
|
64
|
+
};
|
65
|
+
payerId: {
|
66
|
+
type: string;
|
67
|
+
};
|
68
|
+
paymentMethod: {
|
69
|
+
type: string;
|
70
|
+
enum: ["STRIPE", "CASH", "CHECK", "VENMO", "ZELLE", "ONLINE", "BANK", "Other"];
|
71
|
+
};
|
72
|
+
discountCodeId: {
|
73
|
+
type: string[];
|
74
|
+
};
|
75
|
+
documentAmount: {
|
76
|
+
type: string;
|
77
|
+
};
|
78
|
+
discountApplied: {
|
79
|
+
type: string;
|
80
|
+
};
|
81
|
+
organizerFee: {
|
82
|
+
type: string;
|
83
|
+
};
|
84
|
+
bantrFee: {
|
85
|
+
type: string;
|
86
|
+
};
|
87
|
+
stripeFee: {
|
88
|
+
type: string;
|
89
|
+
};
|
90
|
+
chargedAmount: {
|
91
|
+
type: string;
|
92
|
+
};
|
93
|
+
paidAmount: {
|
94
|
+
type: string;
|
95
|
+
};
|
96
|
+
productType: {
|
97
|
+
type: string;
|
98
|
+
enum: ["LEAGUE", "PICKUP", "ORG_FREE_AGENT"];
|
99
|
+
};
|
100
|
+
targetId: {
|
101
|
+
type: string;
|
102
|
+
};
|
103
|
+
status: {
|
104
|
+
type: string;
|
105
|
+
enum: ["CREATED", "REJECTED", "EXPIRED", "PAID", "FAILED", "REFUNDED"];
|
106
|
+
};
|
107
|
+
refundedAmount: {
|
108
|
+
type: string;
|
109
|
+
};
|
110
|
+
transferSent: {
|
111
|
+
type: string;
|
112
|
+
};
|
113
|
+
currency: {
|
114
|
+
type: string;
|
115
|
+
enum: VALID_CURRENCY_CODES[];
|
116
|
+
};
|
117
|
+
expiresAt: {
|
118
|
+
anyOf: ({
|
119
|
+
type: string;
|
120
|
+
format: string;
|
121
|
+
} | {
|
122
|
+
type: string;
|
123
|
+
format?: undefined;
|
124
|
+
})[];
|
125
|
+
};
|
126
|
+
lastStatusUpdateAt: {
|
127
|
+
anyOf: ({
|
128
|
+
type: string;
|
129
|
+
format: string;
|
130
|
+
} | {
|
131
|
+
type: string;
|
132
|
+
format?: undefined;
|
133
|
+
})[];
|
134
|
+
};
|
135
|
+
createdAt: {
|
136
|
+
type: string;
|
137
|
+
format: string;
|
138
|
+
};
|
139
|
+
updatedAt: {
|
140
|
+
type: string;
|
141
|
+
format: string;
|
142
|
+
};
|
143
|
+
deletedAt: {
|
144
|
+
anyOf: ({
|
145
|
+
type: string;
|
146
|
+
format: string;
|
147
|
+
} | {
|
148
|
+
type: string;
|
149
|
+
format?: undefined;
|
150
|
+
})[];
|
151
|
+
};
|
152
|
+
};
|
153
|
+
};
|
154
|
+
}
|
155
|
+
export {};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Model, RelationMappings } from 'objection';
|
2
|
+
import { TRANSACTION_STATUS_ENUM } from '../modules/transaction/transaction.schema';
|
3
|
+
declare const TransactionEvent_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
|
4
|
+
export declare class TransactionEvent extends TransactionEvent_base {
|
5
|
+
id: number;
|
6
|
+
transactionId: number;
|
7
|
+
amount: number;
|
8
|
+
description: string;
|
9
|
+
status: TRANSACTION_STATUS_ENUM;
|
10
|
+
updatedAt: Date;
|
11
|
+
createdAt: Date;
|
12
|
+
deletedAt: Date | null;
|
13
|
+
static tableName: string;
|
14
|
+
static get relationMappings(): RelationMappings;
|
15
|
+
static get jsonSchema(): {
|
16
|
+
type: string;
|
17
|
+
required: string[];
|
18
|
+
properties: {
|
19
|
+
id: {
|
20
|
+
type: string;
|
21
|
+
};
|
22
|
+
transactionId: {
|
23
|
+
type: string;
|
24
|
+
};
|
25
|
+
status: {
|
26
|
+
type: string;
|
27
|
+
enum: ["CREATED", "REJECTED", "EXPIRED", "PAID", "FAILED", "REFUNDED"];
|
28
|
+
};
|
29
|
+
createdAt: {
|
30
|
+
type: string;
|
31
|
+
format: string;
|
32
|
+
};
|
33
|
+
updatedAt: {
|
34
|
+
type: string;
|
35
|
+
format: string;
|
36
|
+
};
|
37
|
+
deletedAt: {
|
38
|
+
anyOf: ({
|
39
|
+
type: string;
|
40
|
+
format: string;
|
41
|
+
} | {
|
42
|
+
type: string;
|
43
|
+
format?: undefined;
|
44
|
+
})[];
|
45
|
+
};
|
46
|
+
};
|
47
|
+
};
|
48
|
+
}
|
49
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getOrgCoordinatorsEmails: (organizationId: number, orgWorkspaceId?: number | null) => Promise<string[]>;
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "bantr-api-client",
|
3
|
-
"version": "11.0.
|
3
|
+
"version": "11.0.4",
|
4
4
|
"description": "SDK for Bantr API integration using tRPC and react-query",
|
5
|
-
"main": "dist/index.js",
|
6
|
-
"types": "dist/index.d.ts",
|
5
|
+
"main": "dist/src/index.js",
|
6
|
+
"types": "dist/src/index.d.ts",
|
7
7
|
"publishConfig": {
|
8
8
|
"access": "public"
|
9
9
|
},
|