bantr-api-client 11.0.3 → 11.0.5

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.
Files changed (111) hide show
  1. package/api-type/src/models/assists.d.ts +7 -0
  2. package/api-type/src/models/base_league.d.ts +45 -0
  3. package/api-type/src/models/block.d.ts +27 -0
  4. package/api-type/src/models/chat.d.ts +37 -0
  5. package/api-type/src/models/chat_members.d.ts +36 -0
  6. package/api-type/src/models/clap.d.ts +38 -0
  7. package/api-type/src/models/comment.d.ts +46 -0
  8. package/api-type/src/models/demo_leads.d.ts +64 -0
  9. package/api-type/src/models/direct_message.d.ts +34 -0
  10. package/api-type/src/models/dynamic_group.d.ts +42 -0
  11. package/api-type/src/models/dynamic_season_league_template.d.ts +120 -0
  12. package/api-type/src/models/dynamic_stage.d.ts +52 -0
  13. package/api-type/src/models/dynamic_stage_template.d.ts +50 -0
  14. package/api-type/src/models/emoji.d.ts +31 -0
  15. package/api-type/src/models/emoji_media_mapper.d.ts +38 -0
  16. package/api-type/src/models/event.d.ts +133 -0
  17. package/api-type/src/models/free_agent_payment.d.ts +108 -0
  18. package/api-type/src/models/game_stat_model.d.ts +55 -0
  19. package/api-type/src/models/goals.d.ts +7 -0
  20. package/api-type/src/models/hooks/chat_member.d.ts +4 -0
  21. package/api-type/src/models/hooks/event.d.ts +6 -0
  22. package/api-type/src/models/hooks/league_schedule.d.ts +3 -0
  23. package/api-type/src/models/hooks/pickup_group_member.d.ts +4 -0
  24. package/api-type/src/models/hooks/schedule_events.d.ts +2 -0
  25. package/api-type/src/models/hooks/team_roster.d.ts +4 -0
  26. package/api-type/src/models/invite.d.ts +108 -0
  27. package/api-type/src/models/job.d.ts +33 -0
  28. package/api-type/src/models/job_type.d.ts +26 -0
  29. package/api-type/src/models/last_seen_team_message.d.ts +31 -0
  30. package/api-type/src/models/league.d.ts +175 -0
  31. package/api-type/src/models/league_group_teams.d.ts +38 -0
  32. package/api-type/src/models/league_media.d.ts +57 -0
  33. package/api-type/src/models/league_payment.d.ts +93 -0
  34. package/api-type/src/models/league_price.d.ts +52 -0
  35. package/api-type/src/models/league_registration.d.ts +41 -0
  36. package/api-type/src/models/league_schedule.d.ts +116 -0
  37. package/api-type/src/models/league_schedule_referee.d.ts +29 -0
  38. package/api-type/src/models/league_standing.d.ts +83 -0
  39. package/api-type/src/models/league_stripe.d.ts +23 -0
  40. package/api-type/src/models/league_teams.d.ts +34 -0
  41. package/api-type/src/models/league_template.d.ts +35 -0
  42. package/api-type/src/models/league_waitlist.d.ts +39 -0
  43. package/api-type/src/models/market_post.d.ts +91 -0
  44. package/api-type/src/models/match_cards.d.ts +42 -0
  45. package/api-type/src/models/match_notes.d.ts +49 -0
  46. package/api-type/src/models/member.d.ts +138 -0
  47. package/api-type/src/models/member_hidden_comment.d.ts +31 -0
  48. package/api-type/src/models/member_hidden_message.d.ts +48 -0
  49. package/api-type/src/models/member_muted_chat.d.ts +38 -0
  50. package/api-type/src/models/member_muted_event.d.ts +25 -0
  51. package/api-type/src/models/member_organizations.d.ts +65 -0
  52. package/api-type/src/models/member_stripe.d.ts +23 -0
  53. package/api-type/src/models/message.d.ts +34 -0
  54. package/api-type/src/models/mvp_votes.d.ts +42 -0
  55. package/api-type/src/models/notification.d.ts +46 -0
  56. package/api-type/src/models/oauth.d.ts +49 -0
  57. package/api-type/src/models/organization.d.ts +68 -0
  58. package/api-type/src/models/organization_free_agent.d.ts +70 -0
  59. package/api-type/src/models/organization_free_agent_price.d.ts +37 -0
  60. package/api-type/src/models/organization_leagues.d.ts +23 -0
  61. package/api-type/src/models/organization_learn_more.d.ts +75 -0
  62. package/api-type/src/models/organization_stripe.d.ts +68 -0
  63. package/api-type/src/models/organization_waivers.d.ts +59 -0
  64. package/api-type/src/models/organization_workspace.d.ts +76 -0
  65. package/api-type/src/models/organizer.d.ts +70 -0
  66. package/api-type/src/models/organizer_roles.d.ts +26 -0
  67. package/api-type/src/models/pickup.d.ts +163 -0
  68. package/api-type/src/models/pickup_config.d.ts +34 -0
  69. package/api-type/src/models/pickup_group.d.ts +83 -0
  70. package/api-type/src/models/pickup_group_members.d.ts +42 -0
  71. package/api-type/src/models/pickup_payments.d.ts +79 -0
  72. package/api-type/src/models/pickup_price.d.ts +41 -0
  73. package/api-type/src/models/pickup_registration.d.ts +38 -0
  74. package/api-type/src/models/pickup_roster.d.ts +41 -0
  75. package/api-type/src/models/pickup_stripe.d.ts +23 -0
  76. package/api-type/src/models/pickup_waitlist.d.ts +33 -0
  77. package/api-type/src/models/post.d.ts +66 -0
  78. package/api-type/src/models/referee_note.d.ts +35 -0
  79. package/api-type/src/models/referee_organization.d.ts +29 -0
  80. package/api-type/src/models/referees.d.ts +63 -0
  81. package/api-type/src/models/refresh_token.d.ts +39 -0
  82. package/api-type/src/models/refund.d.ts +57 -0
  83. package/api-type/src/models/report.d.ts +32 -0
  84. package/api-type/src/models/reported_comment.d.ts +28 -0
  85. package/api-type/src/models/reported_event.d.ts +28 -0
  86. package/api-type/src/models/reported_message.d.ts +28 -0
  87. package/api-type/src/models/reported_player.d.ts +28 -0
  88. package/api-type/src/models/role.d.ts +44 -0
  89. package/api-type/src/models/rsvp.d.ts +47 -0
  90. package/api-type/src/models/schedule_event.d.ts +59 -0
  91. package/api-type/src/models/season.d.ts +48 -0
  92. package/api-type/src/models/season_league_template.d.ts +126 -0
  93. package/api-type/src/models/setting.d.ts +24 -0
  94. package/api-type/src/models/signed_member_waivers.d.ts +59 -0
  95. package/api-type/src/models/stripe_balance.d.ts +59 -0
  96. package/api-type/src/models/stripe_transaction.d.ts +65 -0
  97. package/api-type/src/models/stripe_transfer.d.ts +59 -0
  98. package/api-type/src/models/stripe_webhook.d.ts +26 -0
  99. package/api-type/src/models/support.d.ts +39 -0
  100. package/api-type/src/models/team.d.ts +97 -0
  101. package/api-type/src/models/team_league_season_roster.d.ts +42 -0
  102. package/api-type/src/models/team_members.d.ts +43 -0
  103. package/api-type/src/models/team_message.d.ts +33 -0
  104. package/api-type/src/models/team_roster.d.ts +71 -0
  105. package/api-type/src/models/transaction.d.ts +155 -0
  106. package/api-type/src/models/transaction_event.d.ts +49 -0
  107. package/api-type/src/models/utils/chat.d.ts +6 -0
  108. package/api-type/src/models/utils/league.d.ts +2 -0
  109. package/api-type/src/models/utils/organization.d.ts +1 -0
  110. package/api-type/src/models/utils/team.d.ts +2 -0
  111. package/package.json +1 -1
@@ -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,6 @@
1
+ export declare enum ChatType {
2
+ direct_chat = "direct_chat",
3
+ group_chat = "group_chat",
4
+ team_chat = "team_chat",
5
+ pickup_group_chat = "pickup_group_chat"
6
+ }
@@ -0,0 +1,2 @@
1
+ import { TLeagueEvent } from '../event';
2
+ export declare const getLastLeagueEvents: (teamId: number) => Promise<TLeagueEvent[]>;
@@ -0,0 +1 @@
1
+ export declare const getOrgCoordinatorsEmails: (organizationId: number, orgWorkspaceId?: number | null) => Promise<string[]>;
@@ -0,0 +1,2 @@
1
+ export declare const getTeamCaptainEmails: (teamId: number) => Promise<string[]>;
2
+ export declare const getPlayerEmails: (teamId: number) => Promise<string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bantr-api-client",
3
- "version": "11.0.3",
3
+ "version": "11.0.5",
4
4
  "description": "SDK for Bantr API integration using tRPC and react-query",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",