bantr-api-client 1.6.0 → 11.0.2

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 (125) 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/api-type/src/trpcRouter/discount_code.router.d.ts +12 -12
  112. package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +3 -3
  113. package/api-type/src/trpcRouter/league_payments.router.d.ts +21 -21
  114. package/api-type/src/trpcRouter/oauth.router.d.ts +1 -1
  115. package/api-type/src/trpcRouter/organization.router.d.ts +2 -2
  116. package/api-type/src/trpcRouter/pickup_payments.router.d.ts +3 -3
  117. package/api-type/src/trpcRouter/product.router.d.ts +2 -2
  118. package/api-type/src/trpcRouter/router.d.ts +148 -148
  119. package/api-type/src/trpcRouter/team.d.ts +16 -16
  120. package/api-type/src/trpcRouter/transaction.router.d.ts +14 -14
  121. package/dist/src/index.d.ts +222 -222
  122. package/dist/src/provider.d.ts +148 -148
  123. package/dist/src/query.d.ts +74 -74
  124. package/package.json +1 -1
  125. package/tsconfig.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[]>;
@@ -13,9 +13,9 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
13
13
  }>;
14
14
  _meta: object;
15
15
  _ctx_out: {
16
+ user: import("../types/auth").TJwtPayload;
16
17
  req: import("http").IncomingMessage;
17
18
  res: import("http").ServerResponse<import("http").IncomingMessage>;
18
- user: import("../types/auth").TJwtPayload;
19
19
  };
20
20
  _input_in: {
21
21
  authorization?: string | undefined;
@@ -37,17 +37,17 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
37
37
  }>;
38
38
  _meta: object;
39
39
  _ctx_out: {
40
+ user: import("../types/auth").TJwtPayload;
40
41
  req: import("http").IncomingMessage;
41
42
  res: import("http").ServerResponse<import("http").IncomingMessage>;
42
- user: import("../types/auth").TJwtPayload;
43
43
  };
44
44
  _input_in: {
45
45
  authorization?: string | undefined;
46
46
  limit: number;
47
47
  cursor: number;
48
48
  orgWorkspaceId?: number | null | undefined;
49
- direction?: "asc" | "desc" | undefined;
50
49
  code?: string | undefined;
50
+ direction?: "asc" | "desc" | undefined;
51
51
  listExpired?: boolean | undefined;
52
52
  };
53
53
  _input_out: {
@@ -74,14 +74,14 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
74
74
  }>;
75
75
  _meta: object;
76
76
  _ctx_out: {
77
+ user: import("../types/auth").TJwtPayload;
77
78
  req: import("http").IncomingMessage;
78
79
  res: import("http").ServerResponse<import("http").IncomingMessage>;
79
- user: import("../types/auth").TJwtPayload;
80
80
  };
81
81
  _input_in: {
82
82
  authorization?: string | undefined;
83
- code: string;
84
83
  description: string;
84
+ code: string;
85
85
  appliesWhen: "purchase";
86
86
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
87
87
  amountType: "flat-rate" | "percentage";
@@ -92,8 +92,8 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
92
92
  };
93
93
  _input_out: {
94
94
  authorization?: string | undefined;
95
- code: string;
96
95
  description: string;
96
+ code: string;
97
97
  appliesWhen: "purchase";
98
98
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
99
99
  amountType: "flat-rate" | "percentage";
@@ -116,15 +116,15 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
116
116
  }>;
117
117
  _meta: object;
118
118
  _ctx_out: {
119
+ user: import("../types/auth").TJwtPayload;
119
120
  req: import("http").IncomingMessage;
120
121
  res: import("http").ServerResponse<import("http").IncomingMessage>;
121
- user: import("../types/auth").TJwtPayload;
122
122
  };
123
123
  _input_in: {
124
124
  authorization?: string | undefined;
125
- code: string;
126
125
  id: number;
127
126
  description: string;
127
+ code: string;
128
128
  appliesWhen: "purchase";
129
129
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
130
130
  amountType: "flat-rate" | "percentage";
@@ -136,9 +136,9 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
136
136
  };
137
137
  _input_out: {
138
138
  authorization?: string | undefined;
139
- code: string;
140
139
  id: number;
141
140
  description: string;
141
+ code: string;
142
142
  appliesWhen: "purchase";
143
143
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
144
144
  amountType: "flat-rate" | "percentage";
@@ -160,9 +160,9 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
160
160
  }>;
161
161
  _meta: object;
162
162
  _ctx_out: {
163
+ user: import("../types/auth").TJwtPayload;
163
164
  req: import("http").IncomingMessage;
164
165
  res: import("http").ServerResponse<import("http").IncomingMessage>;
165
- user: import("../types/auth").TJwtPayload;
166
166
  };
167
167
  _input_in: {
168
168
  authorization?: string | undefined;
@@ -199,16 +199,16 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
199
199
  code?: string | undefined;
200
200
  };
201
201
  _output_in: {
202
- code: string;
203
202
  description: string;
203
+ code: string;
204
204
  amountType: "flat-rate" | "percentage";
205
205
  amountValue: number;
206
206
  reducedValue: number;
207
207
  newValue: number;
208
208
  };
209
209
  _output_out: {
210
- code: string;
211
210
  description: string;
211
+ code: string;
212
212
  amountType: "flat-rate" | "percentage";
213
213
  amountValue: number;
214
214
  reducedValue: number;
@@ -13,16 +13,16 @@ export declare const freeAgentPaymentsRouter: import("@trpc/server").CreateRoute
13
13
  }>;
14
14
  _meta: object;
15
15
  _ctx_out: {
16
+ user: import("../types/auth").TJwtPayload;
16
17
  req: import("http").IncomingMessage;
17
18
  res: import("http").ServerResponse<import("http").IncomingMessage>;
18
- user: import("../types/auth").TJwtPayload;
19
19
  };
20
20
  _input_in: {
21
21
  authorization?: string | undefined;
22
22
  description: string;
23
23
  freeAgentId: number;
24
- code?: string | undefined;
25
24
  leagueId?: number | undefined;
25
+ code?: string | undefined;
26
26
  paymentMode?: "session" | "intent" | undefined;
27
27
  cancelPath?: string | undefined;
28
28
  };
@@ -31,8 +31,8 @@ export declare const freeAgentPaymentsRouter: import("@trpc/server").CreateRoute
31
31
  description: string;
32
32
  paymentMode: "session" | "intent";
33
33
  freeAgentId: number;
34
- code?: string | undefined;
35
34
  leagueId?: number | undefined;
35
+ code?: string | undefined;
36
36
  cancelPath?: string | undefined;
37
37
  };
38
38
  _output_in: typeof import("@trpc/server").unsetMarker;
@@ -13,58 +13,58 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
13
13
  }>;
14
14
  _meta: object;
15
15
  _ctx_out: {
16
+ user: import("../types/auth").TJwtPayload;
16
17
  req: import("http").IncomingMessage;
17
18
  res: import("http").ServerResponse<import("http").IncomingMessage>;
18
- user: import("../types/auth").TJwtPayload;
19
19
  };
20
20
  _input_in: {
21
21
  authorization?: string | undefined;
22
- leagueId: number;
23
22
  teamId: number;
23
+ leagueId: number;
24
24
  };
25
25
  _input_out: {
26
26
  authorization?: string | undefined;
27
- leagueId: number;
28
27
  teamId: number;
28
+ leagueId: number;
29
29
  };
30
30
  _output_in: {
31
31
  id: number;
32
32
  deletedAt: Date | null;
33
- memberId: number;
34
33
  member: {
35
34
  id: number;
36
35
  firstName: string | null;
37
- email: string;
38
36
  lastName: string | null;
37
+ email: string;
39
38
  };
39
+ memberId: number;
40
40
  totalPaid: number;
41
41
  payments: {
42
42
  id: number;
43
- payerId: number;
44
43
  createdAt: string | Date;
45
- price: number;
44
+ payerId: number;
46
45
  amountApplied: number | null;
47
46
  offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
47
+ price: number;
48
48
  }[];
49
49
  }[];
50
50
  _output_out: {
51
51
  id: number;
52
52
  deletedAt: Date | null;
53
- memberId: number;
54
53
  member: {
55
54
  id: number;
56
55
  firstName: string | null;
57
- email: string;
58
56
  lastName: string | null;
57
+ email: string;
59
58
  };
59
+ memberId: number;
60
60
  totalPaid: number;
61
61
  payments: {
62
62
  id: number;
63
- payerId: number;
64
63
  createdAt: string | Date;
65
- price: number;
64
+ payerId: number;
66
65
  amountApplied: number | null;
67
66
  offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
67
+ price: number;
68
68
  }[];
69
69
  }[];
70
70
  }, unknown>;
@@ -77,22 +77,22 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
77
77
  }>;
78
78
  _meta: object;
79
79
  _ctx_out: {
80
+ user: import("../types/auth").TJwtPayload;
80
81
  req: import("http").IncomingMessage;
81
82
  res: import("http").ServerResponse<import("http").IncomingMessage>;
82
- user: import("../types/auth").TJwtPayload;
83
83
  };
84
84
  _input_in: {
85
85
  authorization?: string | undefined;
86
- price: number;
87
86
  leagueId: number;
88
87
  offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
88
+ price: number;
89
89
  teamRosterId: number;
90
90
  };
91
91
  _input_out: {
92
92
  authorization?: string | undefined;
93
- price: number;
94
93
  leagueId: number;
95
94
  offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
95
+ price: number;
96
96
  teamRosterId: number;
97
97
  };
98
98
  _output_in: typeof import("@trpc/server").unsetMarker;
@@ -107,22 +107,22 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
107
107
  }>;
108
108
  _meta: object;
109
109
  _ctx_out: {
110
+ user: import("../types/auth").TJwtPayload;
110
111
  req: import("http").IncomingMessage;
111
112
  res: import("http").ServerResponse<import("http").IncomingMessage>;
112
- user: import("../types/auth").TJwtPayload;
113
113
  };
114
114
  _input_in: {
115
115
  authorization?: string | undefined;
116
116
  id: number;
117
- price: number;
118
117
  offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
118
+ price: number;
119
119
  teamRosterId: number;
120
120
  };
121
121
  _input_out: {
122
122
  authorization?: string | undefined;
123
123
  id: number;
124
- price: number;
125
124
  offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
125
+ price: number;
126
126
  teamRosterId: number;
127
127
  };
128
128
  _output_in: typeof import("@trpc/server").unsetMarker;
@@ -137,9 +137,9 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
137
137
  }>;
138
138
  _meta: object;
139
139
  _ctx_out: {
140
+ user: import("../types/auth").TJwtPayload;
140
141
  req: import("http").IncomingMessage;
141
142
  res: import("http").ServerResponse<import("http").IncomingMessage>;
142
- user: import("../types/auth").TJwtPayload;
143
143
  };
144
144
  _input_in: {
145
145
  authorization?: string | undefined;
@@ -161,14 +161,14 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
161
161
  }>;
162
162
  _meta: object;
163
163
  _ctx_out: {
164
+ user: import("../types/auth").TJwtPayload;
164
165
  req: import("http").IncomingMessage;
165
166
  res: import("http").ServerResponse<import("http").IncomingMessage>;
166
- user: import("../types/auth").TJwtPayload;
167
167
  };
168
168
  _input_in: {
169
169
  authorization?: string | undefined;
170
- leagueId: number;
171
170
  teamId: number;
171
+ leagueId: number;
172
172
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
173
173
  code?: string | undefined;
174
174
  paymentMode?: "session" | "intent" | undefined;
@@ -176,8 +176,8 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
176
176
  };
177
177
  _input_out: {
178
178
  authorization?: string | undefined;
179
- leagueId: number;
180
179
  teamId: number;
180
+ leagueId: number;
181
181
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
182
182
  paymentMode: "session" | "intent";
183
183
  code?: string | undefined;
@@ -156,9 +156,9 @@ export declare const oauthRouter: import("@trpc/server").CreateRouterInner<impor
156
156
  }>;
157
157
  _meta: object;
158
158
  _ctx_out: {
159
+ user: import("../types/auth").TJwtPayload;
159
160
  req: import("http").IncomingMessage;
160
161
  res: import("http").ServerResponse<import("http").IncomingMessage>;
161
- user: import("../types/auth").TJwtPayload;
162
162
  };
163
163
  _input_in: {
164
164
  authorization?: string | undefined;
@@ -13,9 +13,9 @@ export declare const organizationRouter: import("@trpc/server").CreateRouterInne
13
13
  }>;
14
14
  _meta: object;
15
15
  _ctx_out: {
16
+ user: import("../types/auth").TJwtPayload;
16
17
  req: import("http").IncomingMessage;
17
18
  res: import("http").ServerResponse<import("http").IncomingMessage>;
18
- user: import("../types/auth").TJwtPayload;
19
19
  };
20
20
  _input_in: {
21
21
  authorization?: string | undefined;
@@ -45,9 +45,9 @@ export declare const organizationRouter: import("@trpc/server").CreateRouterInne
45
45
  }>;
46
46
  _meta: object;
47
47
  _ctx_out: {
48
+ user: import("../types/auth").TJwtPayload;
48
49
  req: import("http").IncomingMessage;
49
50
  res: import("http").ServerResponse<import("http").IncomingMessage>;
50
- user: import("../types/auth").TJwtPayload;
51
51
  };
52
52
  _input_in: {
53
53
  authorization?: string | undefined;
@@ -13,23 +13,23 @@ export declare const pickupPaymentsRouter: import("@trpc/server").CreateRouterIn
13
13
  }>;
14
14
  _meta: object;
15
15
  _ctx_out: {
16
+ user: import("../types/auth").TJwtPayload;
16
17
  req: import("http").IncomingMessage;
17
18
  res: import("http").ServerResponse<import("http").IncomingMessage>;
18
- user: import("../types/auth").TJwtPayload;
19
19
  };
20
20
  _input_in: {
21
21
  authorization?: string | undefined;
22
- pickupId: number;
23
22
  memberId: number;
23
+ pickupId: number;
24
24
  code?: string | undefined;
25
25
  paymentMode?: "session" | "intent" | undefined;
26
26
  cancelPath?: string | undefined;
27
27
  };
28
28
  _input_out: {
29
29
  authorization?: string | undefined;
30
- pickupId: number;
31
30
  memberId: number;
32
31
  paymentMode: "session" | "intent";
32
+ pickupId: number;
33
33
  code?: string | undefined;
34
34
  cancelPath?: string | undefined;
35
35
  };
@@ -34,8 +34,8 @@ export declare const productRouter: import("@trpc/server").CreateRouterInner<imp
34
34
  otherTaxLabel: string;
35
35
  otherTax: number;
36
36
  otherTaxPercent: number;
37
- code?: string | undefined;
38
37
  description?: string | undefined;
38
+ code?: string | undefined;
39
39
  };
40
40
  _output_out: {
41
41
  discountApplied: number;
@@ -44,8 +44,8 @@ export declare const productRouter: import("@trpc/server").CreateRouterInner<imp
44
44
  otherTaxLabel: string;
45
45
  otherTax: number;
46
46
  otherTaxPercent: number;
47
- code?: string | undefined;
48
47
  description?: string | undefined;
48
+ code?: string | undefined;
49
49
  };
50
50
  }, unknown>;
51
51
  }>;