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.
Files changed (134) hide show
  1. package/api-type/src/trpcRouter/discount_code.router.d.ts +7 -7
  2. package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +26 -24
  3. package/api-type/src/trpcRouter/league_payments.router.d.ts +16 -16
  4. package/api-type/src/trpcRouter/oauth.router.d.ts +1 -1
  5. package/api-type/src/trpcRouter/organization.router.d.ts +2 -2
  6. package/api-type/src/trpcRouter/pickup_payments.router.d.ts +2 -2
  7. package/api-type/src/trpcRouter/router.d.ts +296 -144
  8. package/api-type/src/trpcRouter/team.d.ts +80 -6
  9. package/api-type/src/trpcRouter/transaction.router.d.ts +14 -14
  10. package/dist/{index.d.ts → src/index.d.ts} +552 -326
  11. package/dist/src/index.js.map +1 -0
  12. package/dist/{provider.d.ts → src/provider.d.ts} +368 -216
  13. package/dist/{provider.js → src/provider.js} +2 -2
  14. package/dist/src/provider.js.map +1 -0
  15. package/dist/{query.d.ts → src/query.d.ts} +184 -110
  16. package/dist/src/query.js.map +1 -0
  17. package/dist/tsconfig.tsbuildinfo +1 -0
  18. package/package.json +23 -7
  19. package/api-type/src/models/assists.d.ts +0 -7
  20. package/api-type/src/models/base_league.d.ts +0 -45
  21. package/api-type/src/models/block.d.ts +0 -27
  22. package/api-type/src/models/chat.d.ts +0 -37
  23. package/api-type/src/models/chat_members.d.ts +0 -36
  24. package/api-type/src/models/clap.d.ts +0 -38
  25. package/api-type/src/models/comment.d.ts +0 -46
  26. package/api-type/src/models/demo_leads.d.ts +0 -64
  27. package/api-type/src/models/direct_message.d.ts +0 -34
  28. package/api-type/src/models/dynamic_group.d.ts +0 -42
  29. package/api-type/src/models/dynamic_season_league_template.d.ts +0 -120
  30. package/api-type/src/models/dynamic_stage.d.ts +0 -52
  31. package/api-type/src/models/dynamic_stage_template.d.ts +0 -50
  32. package/api-type/src/models/emoji.d.ts +0 -31
  33. package/api-type/src/models/emoji_media_mapper.d.ts +0 -38
  34. package/api-type/src/models/event.d.ts +0 -133
  35. package/api-type/src/models/free_agent_payment.d.ts +0 -108
  36. package/api-type/src/models/game_stat_model.d.ts +0 -55
  37. package/api-type/src/models/goals.d.ts +0 -7
  38. package/api-type/src/models/hooks/chat_member.d.ts +0 -4
  39. package/api-type/src/models/hooks/event.d.ts +0 -6
  40. package/api-type/src/models/hooks/league_schedule.d.ts +0 -3
  41. package/api-type/src/models/hooks/pickup_group_member.d.ts +0 -4
  42. package/api-type/src/models/hooks/schedule_events.d.ts +0 -2
  43. package/api-type/src/models/hooks/team_roster.d.ts +0 -4
  44. package/api-type/src/models/invite.d.ts +0 -108
  45. package/api-type/src/models/job.d.ts +0 -33
  46. package/api-type/src/models/job_type.d.ts +0 -26
  47. package/api-type/src/models/last_seen_team_message.d.ts +0 -31
  48. package/api-type/src/models/league.d.ts +0 -175
  49. package/api-type/src/models/league_group_teams.d.ts +0 -38
  50. package/api-type/src/models/league_media.d.ts +0 -57
  51. package/api-type/src/models/league_payment.d.ts +0 -93
  52. package/api-type/src/models/league_price.d.ts +0 -52
  53. package/api-type/src/models/league_registration.d.ts +0 -41
  54. package/api-type/src/models/league_schedule.d.ts +0 -116
  55. package/api-type/src/models/league_schedule_referee.d.ts +0 -29
  56. package/api-type/src/models/league_standing.d.ts +0 -83
  57. package/api-type/src/models/league_stripe.d.ts +0 -23
  58. package/api-type/src/models/league_teams.d.ts +0 -34
  59. package/api-type/src/models/league_template.d.ts +0 -35
  60. package/api-type/src/models/league_waitlist.d.ts +0 -39
  61. package/api-type/src/models/market_post.d.ts +0 -91
  62. package/api-type/src/models/match_cards.d.ts +0 -42
  63. package/api-type/src/models/match_notes.d.ts +0 -49
  64. package/api-type/src/models/member.d.ts +0 -138
  65. package/api-type/src/models/member_hidden_comment.d.ts +0 -31
  66. package/api-type/src/models/member_hidden_message.d.ts +0 -48
  67. package/api-type/src/models/member_muted_chat.d.ts +0 -38
  68. package/api-type/src/models/member_muted_event.d.ts +0 -25
  69. package/api-type/src/models/member_organizations.d.ts +0 -65
  70. package/api-type/src/models/member_stripe.d.ts +0 -23
  71. package/api-type/src/models/message.d.ts +0 -34
  72. package/api-type/src/models/mvp_votes.d.ts +0 -42
  73. package/api-type/src/models/notification.d.ts +0 -46
  74. package/api-type/src/models/oauth.d.ts +0 -49
  75. package/api-type/src/models/organization.d.ts +0 -68
  76. package/api-type/src/models/organization_free_agent.d.ts +0 -70
  77. package/api-type/src/models/organization_free_agent_price.d.ts +0 -37
  78. package/api-type/src/models/organization_leagues.d.ts +0 -23
  79. package/api-type/src/models/organization_learn_more.d.ts +0 -75
  80. package/api-type/src/models/organization_stripe.d.ts +0 -68
  81. package/api-type/src/models/organization_waivers.d.ts +0 -59
  82. package/api-type/src/models/organization_workspace.d.ts +0 -76
  83. package/api-type/src/models/organizer.d.ts +0 -70
  84. package/api-type/src/models/organizer_roles.d.ts +0 -26
  85. package/api-type/src/models/pickup.d.ts +0 -163
  86. package/api-type/src/models/pickup_config.d.ts +0 -34
  87. package/api-type/src/models/pickup_group.d.ts +0 -83
  88. package/api-type/src/models/pickup_group_members.d.ts +0 -42
  89. package/api-type/src/models/pickup_payments.d.ts +0 -79
  90. package/api-type/src/models/pickup_price.d.ts +0 -41
  91. package/api-type/src/models/pickup_registration.d.ts +0 -38
  92. package/api-type/src/models/pickup_roster.d.ts +0 -41
  93. package/api-type/src/models/pickup_stripe.d.ts +0 -23
  94. package/api-type/src/models/pickup_waitlist.d.ts +0 -33
  95. package/api-type/src/models/post.d.ts +0 -66
  96. package/api-type/src/models/referee_note.d.ts +0 -35
  97. package/api-type/src/models/referee_organization.d.ts +0 -29
  98. package/api-type/src/models/referees.d.ts +0 -63
  99. package/api-type/src/models/refresh_token.d.ts +0 -39
  100. package/api-type/src/models/refund.d.ts +0 -57
  101. package/api-type/src/models/report.d.ts +0 -32
  102. package/api-type/src/models/reported_comment.d.ts +0 -28
  103. package/api-type/src/models/reported_event.d.ts +0 -28
  104. package/api-type/src/models/reported_message.d.ts +0 -28
  105. package/api-type/src/models/reported_player.d.ts +0 -28
  106. package/api-type/src/models/role.d.ts +0 -44
  107. package/api-type/src/models/rsvp.d.ts +0 -47
  108. package/api-type/src/models/schedule_event.d.ts +0 -59
  109. package/api-type/src/models/season.d.ts +0 -48
  110. package/api-type/src/models/season_league_template.d.ts +0 -126
  111. package/api-type/src/models/setting.d.ts +0 -24
  112. package/api-type/src/models/signed_member_waivers.d.ts +0 -59
  113. package/api-type/src/models/stripe_balance.d.ts +0 -59
  114. package/api-type/src/models/stripe_transaction.d.ts +0 -65
  115. package/api-type/src/models/stripe_transfer.d.ts +0 -59
  116. package/api-type/src/models/stripe_webhook.d.ts +0 -26
  117. package/api-type/src/models/support.d.ts +0 -39
  118. package/api-type/src/models/team.d.ts +0 -97
  119. package/api-type/src/models/team_league_season_roster.d.ts +0 -42
  120. package/api-type/src/models/team_members.d.ts +0 -43
  121. package/api-type/src/models/team_message.d.ts +0 -33
  122. package/api-type/src/models/team_roster.d.ts +0 -71
  123. package/api-type/src/models/transaction.d.ts +0 -155
  124. package/api-type/src/models/transaction_event.d.ts +0 -49
  125. package/api-type/src/models/utils/chat.d.ts +0 -6
  126. package/api-type/src/models/utils/league.d.ts +0 -2
  127. package/api-type/src/models/utils/organization.d.ts +0 -1
  128. package/api-type/src/models/utils/team.d.ts +0 -2
  129. package/dist/index.js.map +0 -1
  130. package/dist/provider.js.map +0 -1
  131. package/dist/query.js.map +0 -1
  132. package/tsconfig.json +0 -22
  133. /package/dist/{index.js → src/index.js} +0 -0
  134. /package/dist/{query.js → src/query.js} +0 -0
@@ -1,126 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { DayOfWeek, Gender } from '../types/league';
3
- import { Organizer } from './organizer';
4
- declare const SeasonLeagueTemplate_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
5
- export declare class SeasonLeagueTemplate extends SeasonLeagueTemplate_base {
6
- id: number;
7
- name: string;
8
- organizationId: number;
9
- orgWorkspaceId: number | null;
10
- creatorId: number | null;
11
- seasonId: number | null;
12
- baseLeagueId: number | null;
13
- teamLimit: number;
14
- minGamesPerTeam: number;
15
- format: string;
16
- gender: Gender;
17
- startDate: string | Date;
18
- skillLevel: number;
19
- price: number;
20
- deposit: number | null;
21
- heroImage: string | null;
22
- paymentLink: string | null;
23
- description: string | null;
24
- dayOfWeek: DayOfWeek | null | string;
25
- completedAt: Date | null;
26
- startTimes?: string[] | null;
27
- locations?: string[] | null;
28
- coordinatorId: number | null;
29
- coordinator?: Organizer;
30
- createdAt?: Date | string;
31
- updatedAt?: Date | string;
32
- deletedAt?: Date | null;
33
- static tableName: string;
34
- static get jsonAttributes(): [];
35
- static get relationMappings(): RelationMappings;
36
- static jsonSchema: {
37
- type: string;
38
- required: string[];
39
- properties: {
40
- id: {
41
- type: string[];
42
- };
43
- name: {
44
- type: string;
45
- minLength: number;
46
- maxLength: number;
47
- };
48
- teamLimit: {
49
- type: string[];
50
- default: number;
51
- };
52
- minGamesPerTeam: {
53
- type: string[];
54
- default: number;
55
- };
56
- format: {
57
- type: string[];
58
- minLength: number;
59
- maxLength: number;
60
- };
61
- gender: {
62
- type: string[];
63
- enum: (Gender | null)[];
64
- minLength: number;
65
- maxLength: number;
66
- };
67
- startDate: {
68
- type: string[];
69
- };
70
- completedAt: {
71
- type: string[];
72
- };
73
- skillLevel: {
74
- type: string[];
75
- };
76
- price: {
77
- type: string[];
78
- };
79
- deposit: {
80
- type: string[];
81
- };
82
- heroImage: {
83
- type: string[];
84
- };
85
- paymentLink: {
86
- type: string[];
87
- };
88
- description: {
89
- type: string[];
90
- minLength: number;
91
- maxLength: number;
92
- };
93
- dayOfWeek: {
94
- type: string[];
95
- enum: (DayOfWeek | null)[];
96
- minLength: number;
97
- maxLength: number;
98
- };
99
- organizationId: {
100
- type: string;
101
- };
102
- orgWorkspaceId: {
103
- type: string[];
104
- };
105
- baseLeagueId: {
106
- type: string[];
107
- };
108
- seasonId: {
109
- type: string[];
110
- };
111
- startTimes: {
112
- type: string[];
113
- items: {
114
- type: string[];
115
- };
116
- };
117
- locations: {
118
- type: string[];
119
- items: {
120
- type: string[];
121
- };
122
- };
123
- };
124
- };
125
- }
126
- export {};
@@ -1,24 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- export declare class Setting extends Model {
3
- id: number;
4
- memberId: number;
5
- settings: Record<string, boolean>;
6
- static tableName: string;
7
- static get idColumn(): string;
8
- static get relationMappings(): RelationMappings;
9
- static jsonSchema: {
10
- type: string;
11
- required: string[];
12
- properties: {
13
- id: {
14
- type: string;
15
- };
16
- memberId: {
17
- type: string;
18
- };
19
- settings: {
20
- type: string;
21
- };
22
- };
23
- };
24
- }
@@ -1,59 +0,0 @@
1
- import { Model } from 'objection';
2
- import { Member } from './member';
3
- import { OrgWaiver } from './organization_waivers';
4
- export declare enum WaiverStatus {
5
- refused = "refused",
6
- agreed = "agreed"
7
- }
8
- export declare class SignedMemberWaiver extends Model {
9
- id: number;
10
- memberId: number;
11
- orgWaiverId: number;
12
- status: WaiverStatus;
13
- createdAt: Date;
14
- waiverVersion?: number;
15
- firstName?: string;
16
- lastName?: string;
17
- content?: string;
18
- static tableName: string;
19
- static relationMappings(): {
20
- member: {
21
- relation: import("objection").RelationType;
22
- modelClass: typeof Member;
23
- join: {
24
- from: string;
25
- to: string;
26
- };
27
- };
28
- orgWaiver: {
29
- relation: import("objection").RelationType;
30
- modelClass: typeof OrgWaiver;
31
- join: {
32
- from: string;
33
- to: string;
34
- };
35
- };
36
- };
37
- static get jsonSchema(): {
38
- type: string;
39
- required: string[];
40
- properties: {
41
- id: {
42
- type: string;
43
- };
44
- memberId: {
45
- type: string;
46
- };
47
- orgWaiverId: {
48
- type: string;
49
- };
50
- status: {
51
- type: string;
52
- enum: WaiverStatus[];
53
- };
54
- createdAt: {
55
- type: string;
56
- };
57
- };
58
- };
59
- }
@@ -1,59 +0,0 @@
1
- import { Model } from 'objection';
2
- import { VALID_CURRENCY_CODES } from '../constants';
3
- declare const StripeBalance_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
- export declare class StripeBalance extends StripeBalance_base {
5
- id: number;
6
- availableAmount: number;
7
- pendingAmount: number;
8
- reservedAmount: number;
9
- currency: VALID_CURRENCY_CODES;
10
- lastSyncAt: Date;
11
- updatedAt: Date;
12
- createdAt: Date;
13
- deletedAt: Date | null;
14
- static tableName: string;
15
- static get idColumn(): string;
16
- static get jsonSchema(): {
17
- type: string;
18
- required: string[];
19
- properties: {
20
- id: {
21
- type: string;
22
- };
23
- availableAmount: {
24
- type: string;
25
- };
26
- pendingAmount: {
27
- type: string;
28
- };
29
- reservedAmount: {
30
- type: string;
31
- };
32
- currency: {
33
- type: string;
34
- enum: VALID_CURRENCY_CODES[];
35
- };
36
- lastSyncAt: {
37
- type: string;
38
- };
39
- createdAt: {
40
- type: string;
41
- format: string;
42
- };
43
- updatedAt: {
44
- type: string;
45
- format: string;
46
- };
47
- deletedAt: {
48
- anyOf: ({
49
- type: string;
50
- format: string;
51
- } | {
52
- type: string;
53
- format?: undefined;
54
- })[];
55
- };
56
- };
57
- };
58
- }
59
- export {};
@@ -1,65 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Transaction } from './transaction';
3
- import { StripeTransfer } from './stripe_transfer';
4
- declare const StripeTransaction_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
5
- export declare class StripeTransaction extends StripeTransaction_base {
6
- id: number;
7
- stripePaymentIntentId: string | null;
8
- stripePaymentSessionId: string | null;
9
- stripeIdempotencyKey: string;
10
- stripeProductId: string;
11
- stripeProductPriceId: string;
12
- transactionId: number;
13
- transaction?: Transaction;
14
- stripeTransfers?: StripeTransfer[];
15
- updatedAt: Date;
16
- createdAt: Date;
17
- deletedAt: Date | null;
18
- static tableName: string;
19
- static get relationMappings(): RelationMappings;
20
- static get jsonSchema(): {
21
- type: string;
22
- required: string[];
23
- properties: {
24
- id: {
25
- type: string;
26
- };
27
- stripePaymentIntentId: {
28
- type: string[];
29
- };
30
- stripePaymentSessionId: {
31
- type: string[];
32
- };
33
- stripeIdempotencyKey: {
34
- type: string;
35
- };
36
- stripeProductId: {
37
- type: string;
38
- };
39
- stripeProductPriceId: {
40
- type: string;
41
- };
42
- transactionId: {
43
- type: string;
44
- };
45
- createdAt: {
46
- type: string;
47
- format: string;
48
- };
49
- updatedAt: {
50
- type: string;
51
- format: string;
52
- };
53
- deletedAt: {
54
- anyOf: ({
55
- type: string;
56
- format: string;
57
- } | {
58
- type: string;
59
- format?: undefined;
60
- })[];
61
- };
62
- };
63
- };
64
- }
65
- export {};
@@ -1,59 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { STRIPE_TRANSFER_TYPE_ENUM } from '../modules/transaction/transaction.schema';
3
- import { StripeTransaction } from './stripe_transaction';
4
- import { Refund } from './refund';
5
- declare const StripeTransfer_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
6
- export declare class StripeTransfer extends StripeTransfer_base {
7
- id: number;
8
- stripeTransferId: string;
9
- amount: number;
10
- type: STRIPE_TRANSFER_TYPE_ENUM;
11
- stripeTransactionId: number;
12
- stripeTransaction?: StripeTransaction;
13
- refundId: number | null;
14
- refund?: Refund;
15
- updatedAt: Date;
16
- createdAt: Date;
17
- deletedAt: Date | null;
18
- static tableName: string;
19
- static get relationMappings(): RelationMappings;
20
- static get jsonSchema(): {
21
- type: string;
22
- required: string[];
23
- properties: {
24
- id: {
25
- type: string;
26
- };
27
- stripeTransferId: {
28
- type: string;
29
- };
30
- amount: {
31
- type: string;
32
- };
33
- type: {
34
- type: string;
35
- };
36
- stripeTransactionId: {
37
- type: string;
38
- };
39
- createdAt: {
40
- type: string;
41
- format: string;
42
- };
43
- updatedAt: {
44
- type: string;
45
- format: string;
46
- };
47
- deletedAt: {
48
- anyOf: ({
49
- type: string;
50
- format: string;
51
- } | {
52
- type: string;
53
- format?: undefined;
54
- })[];
55
- };
56
- };
57
- };
58
- }
59
- export {};
@@ -1,26 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare class StripeWebhook extends Model {
3
- id: number;
4
- name: string;
5
- secretKey: string;
6
- updatedAt: Date | string;
7
- createdAt: Date | string;
8
- deletedAt: Date | null;
9
- static tableName: string;
10
- static get idColumn(): string;
11
- static jsonSchema: {
12
- type: string;
13
- required: string[];
14
- properties: {
15
- id: {
16
- type: string;
17
- };
18
- name: {
19
- type: string;
20
- };
21
- secretKey: {
22
- type: string;
23
- };
24
- };
25
- };
26
- }
@@ -1,39 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare class Support extends Model {
3
- id: number;
4
- memberId: number;
5
- name: string;
6
- email: string;
7
- subject: string;
8
- description: string;
9
- createdAt: Date | string;
10
- updatedAt: Date | string;
11
- static tableName: string;
12
- static jsonSchema: {
13
- type: string;
14
- required: string[];
15
- properties: {
16
- id: {
17
- type: string;
18
- };
19
- memberId: {
20
- type: string;
21
- };
22
- name: {
23
- type: string;
24
- minLength: number;
25
- maxLength: number;
26
- };
27
- email: {
28
- type: string;
29
- minLength: number;
30
- maxLength: number;
31
- };
32
- description: {
33
- type: string;
34
- minLength: number;
35
- };
36
- };
37
- };
38
- }
39
- export default Support;
@@ -1,97 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- import { TeamRoster } from './team_roster';
4
- declare const Team_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
5
- export declare class Team extends Team_base {
6
- id: number;
7
- name: string;
8
- logo: string;
9
- banner: string;
10
- city?: string;
11
- state?: string;
12
- zip?: string;
13
- abbreviation?: string;
14
- ownerId?: number;
15
- established?: string;
16
- location?: string;
17
- creatorId: number | null;
18
- orgCreatorId: number | null;
19
- jerseyColor: string | null;
20
- owner?: Member;
21
- rosterCount?: number;
22
- lastLeagueNamePlayedIn?: string;
23
- roster?: TeamRoster[];
24
- gamesPlayed?: string;
25
- gamesScheduled?: string;
26
- deletedAt: Date | null;
27
- static tableName: string;
28
- static get idColumn(): string;
29
- static get modifiers(): Record<string, (builder: any) => void>;
30
- static get relationMappings(): RelationMappings;
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
- logo: {
44
- type: string;
45
- minLength: number;
46
- maxLength: number;
47
- };
48
- banner: {
49
- type: string;
50
- minLength: number;
51
- maxLength: number;
52
- };
53
- city: {
54
- type: string;
55
- minLength: number;
56
- maxLength: number;
57
- };
58
- state: {
59
- type: string;
60
- minLength: number;
61
- maxLength: number;
62
- };
63
- location: {
64
- type: string;
65
- minLength: number;
66
- maxLength: number;
67
- };
68
- zip: {
69
- type: string;
70
- pattern: string;
71
- };
72
- abbreviation: {
73
- type: string;
74
- minLength: number;
75
- maxLength: number;
76
- };
77
- ownerId: {
78
- type: string;
79
- };
80
- established: {
81
- type: string;
82
- minLength: number;
83
- maxLength: number;
84
- };
85
- creatorId: {
86
- type: string[];
87
- };
88
- orgCreatorId: {
89
- type: string[];
90
- };
91
- jerseyColor: {
92
- type: string[];
93
- };
94
- };
95
- };
96
- }
97
- export {};
@@ -1,42 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- export declare class TeamLeagueSeasonRoster extends Model {
4
- id: number;
5
- leagueId: number;
6
- teamId: number;
7
- memberId: number;
8
- hasPaid: boolean;
9
- isSub: boolean;
10
- createdAt: Date | string;
11
- updatedAt: Date | string;
12
- member?: Member;
13
- static tableName: string;
14
- static get idColumn(): string;
15
- static get relationMappings(): RelationMappings;
16
- static jsonSchema: {
17
- type: string;
18
- required: string[];
19
- properties: {
20
- id: {
21
- type: string;
22
- };
23
- leagueId: {
24
- type: string;
25
- };
26
- teamId: {
27
- type: string;
28
- };
29
- memberId: {
30
- type: string;
31
- };
32
- hasPaid: {
33
- type: string;
34
- default: boolean;
35
- };
36
- isSub: {
37
- type: string;
38
- default: boolean;
39
- };
40
- };
41
- };
42
- }
@@ -1,43 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare const enum Role {
3
- manager = "manager",
4
- captain = "captain",
5
- starter = "starter",
6
- fulltime = "fulltime",
7
- supersub = "supersub",
8
- sub = "sub",
9
- fan = "fan"
10
- }
11
- export declare class TeamMember extends Model {
12
- id: number;
13
- teamId: number;
14
- memberId: number;
15
- isActive: boolean;
16
- role: string;
17
- static tableName: string;
18
- static get idColumn(): string;
19
- static jsonSchema: {
20
- type: string;
21
- required: string[];
22
- properties: {
23
- id: {
24
- type: string;
25
- };
26
- teamId: {
27
- type: string;
28
- };
29
- memberId: {
30
- type: string;
31
- };
32
- isActive: {
33
- type: string;
34
- };
35
- role: {
36
- type: string;
37
- enum: Role[];
38
- minLength: number;
39
- maxLength: number;
40
- };
41
- };
42
- };
43
- }
@@ -1,33 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- export declare class TeamMessage extends Model {
3
- id: number;
4
- senderId: number;
5
- teamId: number;
6
- content: string;
7
- createdAt?: Date;
8
- updatedAt?: Date;
9
- static tableName: string;
10
- static get relationMappings(): RelationMappings;
11
- static get idColumn(): string;
12
- static jsonSchema: {
13
- type: string;
14
- required: string[];
15
- properties: {
16
- id: {
17
- type: string;
18
- };
19
- senderId: {
20
- type: string;
21
- };
22
- teamId: {
23
- type: string;
24
- };
25
- content: {
26
- type: string;
27
- minLength: number;
28
- maxLength: number;
29
- };
30
- };
31
- };
32
- }
33
- export default TeamMessage;