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,133 @@
1
+ import { QueryBuilder, Model, ModelOptions, RelationMappings } from 'objection';
2
+ import { TRsvpData } from '../types/event';
3
+ import { GameStatTypes } from '../types/game_stats';
4
+ import { Rsvp } from './rsvp';
5
+ import { Team } from './team';
6
+ import { ScheduleEvent } from './schedule_event';
7
+ import { League } from './league';
8
+ import { Organization } from './organization';
9
+ import { LeagueSchedule } from './league_schedule';
10
+ export type TLeagueEvent = Event & {
11
+ team1Score: number | null;
12
+ team2Score: number | null;
13
+ confirmedByOrganizer: boolean;
14
+ team1EventId: number | null;
15
+ team2EventId: number | null;
16
+ teamScore: number | null;
17
+ opponentScore: number | null;
18
+ leagueScheduleId?: number;
19
+ };
20
+ declare const Event_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
21
+ export declare class Event extends Event_base {
22
+ id: number;
23
+ addressName: string;
24
+ city: string;
25
+ dateAndTime: Date | null;
26
+ timezone: string;
27
+ duration?: number;
28
+ openTo?: string;
29
+ street?: string;
30
+ state?: string;
31
+ title: string;
32
+ zip?: string;
33
+ confirmedCount?: number;
34
+ teamId: number | null;
35
+ creatorId?: number;
36
+ modifierId?: number | null;
37
+ opponentScore: number | null;
38
+ teamScore: number | null;
39
+ updatedAt?: Date | string;
40
+ createdAt?: Date | string;
41
+ attendingCount?: number;
42
+ league?: League | null;
43
+ leagueScores?: ScheduleEvent | null;
44
+ opponent?: Team;
45
+ organization?: Organization;
46
+ team?: Team;
47
+ rsvp?: TRsvpData;
48
+ teamRosterCount?: number;
49
+ eventGameStatStatus?: GameStatTypes;
50
+ leagueSchedule?: LeagueSchedule;
51
+ rsvps?: Rsvp[];
52
+ leagueScheduleId?: number;
53
+ deletedAt: Date | null;
54
+ static tableName: string;
55
+ static get relationMappings(): RelationMappings;
56
+ static get modifiers(): {
57
+ filterDeleted(builder: QueryBuilder<any>): void;
58
+ };
59
+ static get idColumn(): string;
60
+ static jsonSchema: {
61
+ type: string;
62
+ required: string[];
63
+ properties: {
64
+ id: {
65
+ type: string;
66
+ };
67
+ addressName: {
68
+ type: string;
69
+ minLength: number;
70
+ maxLength: number;
71
+ };
72
+ city: {
73
+ type: string;
74
+ minLength: number;
75
+ maxLength: number;
76
+ };
77
+ dateAndTime: {
78
+ type: string;
79
+ };
80
+ timezone: {
81
+ type: string;
82
+ };
83
+ duration: {
84
+ type: string;
85
+ };
86
+ openTo: {
87
+ type: string;
88
+ minLength: number;
89
+ maxLength: number;
90
+ };
91
+ street: {
92
+ type: string;
93
+ minLength: number;
94
+ maxLength: number;
95
+ };
96
+ state: {
97
+ type: string;
98
+ minLength: number;
99
+ maxLength: number;
100
+ };
101
+ title: {
102
+ type: string;
103
+ minLength: number;
104
+ maxLength: number;
105
+ };
106
+ zip: {
107
+ type: string;
108
+ pattern: string;
109
+ };
110
+ confirmedCount: {
111
+ type: string;
112
+ };
113
+ teamId: {
114
+ type: string[];
115
+ };
116
+ creatorId: {
117
+ type: string;
118
+ };
119
+ modifierId: {
120
+ type: string;
121
+ };
122
+ teamScore: {
123
+ type: string[];
124
+ };
125
+ opponentScore: {
126
+ type: string[];
127
+ };
128
+ };
129
+ };
130
+ $afterInsert(queryContext: any): Promise<void>;
131
+ $afterUpdate(opt: ModelOptions, queryContext: any): Promise<void>;
132
+ }
133
+ export default Event;
@@ -0,0 +1,108 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { StripePaymentStatus } from '../types/common';
3
+ import { League } from './league';
4
+ import { LeaguePayment } from './league_payment';
5
+ import { Member } from './member';
6
+ import { Team } from './team';
7
+ import { DiscountCode } from '../modules/discount_code/discount_code.model';
8
+ import { Refund } from './refund';
9
+ import { OrgFreeAgent } from './organization_free_agent';
10
+ import { Transaction } from './transaction';
11
+ declare const FreeAgentPayment_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
12
+ export declare class FreeAgentPayment extends FreeAgentPayment_base {
13
+ id: number;
14
+ amount: number;
15
+ days: string[] | null;
16
+ description: string;
17
+ genders: string[] | null;
18
+ isPlacedOnTeam: boolean;
19
+ leagues: number[] | null;
20
+ memberId: number;
21
+ orgFreeAgentId: number;
22
+ payerId: number;
23
+ placedOnTeamId: number | null;
24
+ status: StripePaymentStatus;
25
+ stripeIdempotencyKey: string | null;
26
+ stripePaymentIntentId: string | null;
27
+ stripeCheckoutSessionId: string | null;
28
+ deletedAt: Date | null;
29
+ updatedAt: Date | null;
30
+ leaguesData?: League[];
31
+ member?: Member;
32
+ placedTeam?: Team;
33
+ teams?: Team[];
34
+ latestOrgWaiver?: {
35
+ id: number;
36
+ name: string;
37
+ content: string;
38
+ };
39
+ latestSignedWaiver?: {
40
+ id: number;
41
+ name: string;
42
+ orgWaiverId: number;
43
+ signedDate: Date;
44
+ status: string;
45
+ };
46
+ discountCodeId: number | null;
47
+ discountCode?: DiscountCode;
48
+ appliedDiscountValue: number;
49
+ refunds?: Refund[];
50
+ orgFreeAgent?: OrgFreeAgent;
51
+ leaguePayment?: LeaguePayment;
52
+ transactions?: Transaction[];
53
+ static tableName: string;
54
+ static get idColumn(): string;
55
+ static get relationMappings(): RelationMappings;
56
+ static jsonSchema: {
57
+ type: string;
58
+ required: string[];
59
+ properties: {
60
+ amount: {
61
+ type: string;
62
+ };
63
+ days: {
64
+ type: string[];
65
+ };
66
+ description: {
67
+ type: string;
68
+ };
69
+ genders: {
70
+ type: string[];
71
+ };
72
+ isPlacedOnTeam: {
73
+ type: string;
74
+ };
75
+ leagues: {
76
+ type: string[];
77
+ };
78
+ memberId: {
79
+ type: string;
80
+ };
81
+ orgFreeAgentId: {
82
+ type: string;
83
+ };
84
+ payerId: {
85
+ type: string;
86
+ };
87
+ status: {
88
+ type: string;
89
+ };
90
+ stripeCheckoutSessionId: {
91
+ type: string[];
92
+ };
93
+ stripeIdempotencyKey: {
94
+ type: string;
95
+ };
96
+ stripePaymentIntentId: {
97
+ type: string[];
98
+ };
99
+ discountCodeId: {
100
+ type: string[];
101
+ };
102
+ appliedDiscountValue: {
103
+ type: string;
104
+ };
105
+ };
106
+ };
107
+ }
108
+ export {};
@@ -0,0 +1,55 @@
1
+ import { Model } from 'objection';
2
+ import { Member } from './member';
3
+ export declare class GameStatModel extends Model {
4
+ id: number;
5
+ eventId: number;
6
+ teamId: number;
7
+ lastUpdatedBy: number | null;
8
+ playerId: number;
9
+ count: number;
10
+ leagueId: number | null;
11
+ lastUpdatedByOrg: number | null;
12
+ lastUpdatedByReferee: number | null;
13
+ updatedAt: Date;
14
+ createdAt: Date;
15
+ player?: Member;
16
+ static get idColumn(): string;
17
+ static jsonSchema: {
18
+ type: string;
19
+ required: string[];
20
+ properties: {
21
+ id: {
22
+ type: string;
23
+ };
24
+ eventId: {
25
+ type: string;
26
+ };
27
+ teamId: {
28
+ type: string;
29
+ };
30
+ lastUpdatedBy: {
31
+ type: string[];
32
+ default: null;
33
+ };
34
+ lastUpdatedByOrg: {
35
+ type: string[];
36
+ default: null;
37
+ };
38
+ lastUpdatedByReferee: {
39
+ type: string[];
40
+ default: null;
41
+ };
42
+ playerId: {
43
+ type: string;
44
+ };
45
+ count: {
46
+ type: string;
47
+ };
48
+ leagueId: {
49
+ type: string[];
50
+ default: null;
51
+ };
52
+ };
53
+ };
54
+ }
55
+ export default GameStatModel;
@@ -0,0 +1,7 @@
1
+ import { RelationMappings } from 'objection';
2
+ import { GameStatModel } from './game_stat_model';
3
+ export declare class Goals extends GameStatModel {
4
+ static tableName: string;
5
+ static get relationMappings(): RelationMappings;
6
+ }
7
+ export default Goals;
@@ -0,0 +1,4 @@
1
+ import { RedisClientType } from '../../redis/config';
2
+ import { ChatMember } from '../chat_members';
3
+ export declare function addChatRoomToCachedMember(chatMember: ChatMember, redisClient: RedisClientType): Promise<void>;
4
+ export declare function addChatMemberToUnreadMessagesCache(chatMember: ChatMember, redisClient: RedisClientType): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { ModelOptions, TransactionOrKnex } from 'objection';
2
+ import { Event } from '../event';
3
+ export declare function initEvent(event: Event, queryContext: any): Promise<void>;
4
+ export declare function handleDelete(transaction: any, teamId: number, eventId: number, deletorId: number, organizationId?: number): Promise<void>;
5
+ export declare function handleUpdate(modelOpts: ModelOptions, queryContext: any): Promise<void>;
6
+ export declare function syncPost(newEvent: Event, eventId?: number, trx?: TransactionOrKnex): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { Event } from '../event';
2
+ import { TransactionOrKnex } from 'objection';
3
+ export declare function syncLeagueScheduleScores(newEvent: Event, trx?: TransactionOrKnex): Promise<void>;
@@ -0,0 +1,4 @@
1
+ import { RedisClientType } from '../../redis/config';
2
+ import { PickupGrpMember } from '../pickup_group_members';
3
+ export declare function addPickupGroupToCachedMember(groupMember: PickupGrpMember, redisClient: RedisClientType): Promise<void>;
4
+ export declare function addPickupGroupMemberToUnreadMessagesCache(groupMember: PickupGrpMember, redisClient: RedisClientType): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { ScheduleEvent } from '../schedule_event';
2
+ export declare const initFinalStageSeeding: (scheduleEvent: ScheduleEvent) => Promise<void>;
@@ -0,0 +1,4 @@
1
+ import { RedisClientType } from '../../redis/config';
2
+ import { TeamRoster } from '../team_roster';
3
+ export declare function addTeamToCachedMember(roster: TeamRoster, redisClient: RedisClientType): Promise<void>;
4
+ export declare function addTeamMemberToUnreadMessagesCache(roster: TeamRoster, redisClient: RedisClientType): Promise<void>;
@@ -0,0 +1,108 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { Member } from './member';
3
+ import { Team } from './team';
4
+ import { TeamRoster } from './team_roster';
5
+ export declare const enum TMemberInvite {
6
+ as_sub = "as_sub",
7
+ as_roster = "as_roster",
8
+ as_organizer = "as_organizer",
9
+ as_pickupGrpMember = "as_pickupGrpMember",
10
+ as_referee = "as_referee"
11
+ }
12
+ export declare class Invite extends Model {
13
+ id: number;
14
+ token: string;
15
+ generatedByMember?: number | null;
16
+ generatedByOrganizer?: number | null;
17
+ expiration?: Date | string;
18
+ type?: TMemberInvite;
19
+ teamId?: number | null;
20
+ eventId?: number | null;
21
+ organizationId?: number | null;
22
+ pickupGroupId?: number | null;
23
+ maxInvites?: number;
24
+ inviteCount?: number;
25
+ email?: string;
26
+ firstName?: string | null;
27
+ lastName?: string | null;
28
+ isActive?: boolean;
29
+ teamRosterId?: number | null;
30
+ teamRoster?: TeamRoster;
31
+ team?: Team;
32
+ members?: Member;
33
+ static tableName: string;
34
+ static get relationMappings(): RelationMappings;
35
+ static get idColumn(): string;
36
+ static jsonSchema: {
37
+ type: string;
38
+ required: string[];
39
+ properties: {
40
+ id: {
41
+ type: string;
42
+ };
43
+ token: {
44
+ type: string;
45
+ minLength: number;
46
+ maxLength: number;
47
+ };
48
+ teamId: {
49
+ type: string[];
50
+ default: null;
51
+ };
52
+ eventId: {
53
+ type: string[];
54
+ default: null;
55
+ };
56
+ organizationId: {
57
+ type: string[];
58
+ default: null;
59
+ };
60
+ generatedByMember: {
61
+ type: string[];
62
+ default: null;
63
+ };
64
+ generatedByOrganizer: {
65
+ type: string[];
66
+ default: null;
67
+ };
68
+ teamRosterId: {
69
+ type: string[];
70
+ default: null;
71
+ };
72
+ email: {
73
+ type: string[];
74
+ default: null;
75
+ };
76
+ firstName: {
77
+ type: string[];
78
+ default: null;
79
+ };
80
+ lastName: {
81
+ type: string[];
82
+ default: null;
83
+ };
84
+ expiration: {
85
+ type: string;
86
+ };
87
+ type: {
88
+ type: string;
89
+ enum: TMemberInvite[];
90
+ minLength: number;
91
+ maxLength: number;
92
+ };
93
+ maxInvites: {
94
+ type: string[];
95
+ default: null;
96
+ };
97
+ inviteCount: {
98
+ type: string[];
99
+ default: null;
100
+ };
101
+ isActive: {
102
+ type: string[];
103
+ default: null;
104
+ };
105
+ };
106
+ };
107
+ }
108
+ export default Invite;
@@ -0,0 +1,33 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { JobType } from './job_type';
3
+ export declare enum JobTimeInterval {
4
+ PRE_THREE_DAY = "PRE_THREE_DAY",
5
+ PRE_ONE_DAY = "PRE_ONE_DAY",
6
+ PRE_SIX_HOUR = "PRE_SIX_HOUR",
7
+ POST_THREE_HOUR = "POST_THREE_HOUR",
8
+ POST_TWELVE_HOUR = "POST_TWELVE_HOUR"
9
+ }
10
+ export declare class Job extends Model {
11
+ id: number;
12
+ jobTypeId: number;
13
+ timeInterval: JobTimeInterval;
14
+ jobType?: JobType;
15
+ static tableName: string;
16
+ static get relationMappings(): RelationMappings;
17
+ static jsonSchema: {
18
+ type: string;
19
+ required: string[];
20
+ properties: {
21
+ id: {
22
+ type: string;
23
+ };
24
+ jobTypeId: {
25
+ type: string;
26
+ };
27
+ timeInterval: {
28
+ type: string;
29
+ enum: JobTimeInterval[];
30
+ };
31
+ };
32
+ };
33
+ }
@@ -0,0 +1,26 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { Job } from './job';
3
+ export declare enum TJobType {
4
+ NEXT_MATCH_REMINDER = "NEXT_MATCH_REMINDER",
5
+ POTM_VOTE_REMINDER = "POTM_VOTE_REMINDER"
6
+ }
7
+ export declare class JobType extends Model {
8
+ id: number;
9
+ type: TJobType;
10
+ jobs?: Job[];
11
+ static tableName: string;
12
+ static get relationMappings(): RelationMappings;
13
+ static jsonSchema: {
14
+ type: string;
15
+ required: string[];
16
+ properties: {
17
+ id: {
18
+ type: string;
19
+ };
20
+ type: {
21
+ type: string;
22
+ enum: TJobType[];
23
+ };
24
+ };
25
+ };
26
+ }
@@ -0,0 +1,31 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ export declare class LastSeenTeamMessage extends Model {
3
+ id: number;
4
+ memberId: number;
5
+ teamId: number;
6
+ lastSeenMessageId: number;
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
+ memberId: {
20
+ type: string;
21
+ };
22
+ teamId: {
23
+ type: string;
24
+ };
25
+ lastSeenMessageId: {
26
+ type: string;
27
+ };
28
+ };
29
+ };
30
+ }
31
+ export default LastSeenTeamMessage;