bantr-api-client 11.0.5 → 12.0.0

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,70 +0,0 @@
1
- import { AnyQueryBuilder, Model, RelationMappings } from 'objection';
2
- import { TPublicInfo } from '../types/organizer';
3
- import { BantrUserRole, Role } from './role';
4
- declare const Organizer_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
5
- export declare class Organizer extends Organizer_base {
6
- id: number;
7
- firstName: string;
8
- lastName: string;
9
- email: string;
10
- password: string;
11
- avatar?: string;
12
- phone?: string;
13
- approved: boolean;
14
- organizationId: number;
15
- roles?: BantrUserRole[];
16
- rolesObjection?: Role[];
17
- deletedAt: Date | null;
18
- static tableName: string;
19
- static get idColumn(): string;
20
- static get modifiers(): Record<string, (builder: AnyQueryBuilder) => void>;
21
- static get relationMappings(): RelationMappings;
22
- static jsonSchema: {
23
- type: string;
24
- required: string[];
25
- properties: {
26
- id: {
27
- type: string;
28
- };
29
- firstName: {
30
- type: string;
31
- minLength: number;
32
- maxLength: number;
33
- };
34
- lastName: {
35
- type: string;
36
- minLength: number;
37
- maxLength: number;
38
- };
39
- email: {
40
- type: string;
41
- minLength: number;
42
- maxLength: number;
43
- };
44
- password: {
45
- type: string;
46
- minLength: number;
47
- maxLength: number;
48
- };
49
- phone: {
50
- type: string;
51
- minLength: number;
52
- maxLength: number;
53
- };
54
- avatar: {
55
- type: string;
56
- minLength: number;
57
- maxLength: number;
58
- };
59
- organizationId: {
60
- type: string;
61
- };
62
- approved: {
63
- type: string;
64
- };
65
- };
66
- };
67
- static isEmailTaken(email: string): Promise<boolean>;
68
- getPublicInfo(): TPublicInfo;
69
- }
70
- export {};
@@ -1,26 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { BantrUserRole } from './role';
3
- declare const OrganizerRoles_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
- export declare class OrganizerRoles extends OrganizerRoles_base {
5
- id: number;
6
- organizerId: number;
7
- roleId: number;
8
- deletedAt: Date | null;
9
- role?: BantrUserRole;
10
- static tableName: string;
11
- static get idColumn(): string;
12
- static get relationMappings(): RelationMappings;
13
- static jsonSchema: {
14
- type: string;
15
- required: string[];
16
- properties: {
17
- organizerId: {
18
- type: string;
19
- };
20
- roleId: {
21
- type: string;
22
- };
23
- };
24
- };
25
- }
26
- export {};
@@ -1,163 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Gender } from '../types/league';
3
- import { PickupGroup } from './pickup_group';
4
- import { PickupRoster } from './pickup_roster';
5
- import { Organizer } from './organizer';
6
- import { Member } from './member';
7
- import { Organization } from './organization';
8
- import { OrgWorkspace } from './organization_workspace';
9
- import { PickupWaitlist } from './pickup_waitlist';
10
- import { PickupConfig } from './pickup_config';
11
- export declare const pickupUpdatePref: {
12
- thisEvent: number;
13
- thisAndFollowing: number;
14
- allEvent: number;
15
- };
16
- export declare const pickupDeletePref: {
17
- thisEvent: number;
18
- thisAndFollowing: number;
19
- };
20
- declare const Pickup_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
21
- export declare class Pickup extends Pickup_base {
22
- id: number;
23
- name: string;
24
- gender: Gender;
25
- playerLimit: number;
26
- date: string;
27
- startTime: string;
28
- dateAndTime: Date | null;
29
- location: string;
30
- duration: number;
31
- price: number;
32
- image: string;
33
- description: string | null;
34
- canceledAt: Date | string;
35
- pickupGroupId: number;
36
- orgCreatorId: number | null;
37
- memberCreatorId: number | null;
38
- organizationId: number | null;
39
- orgWorkspaceId: number | null;
40
- orgCoordinatorId: number | null;
41
- memberCoordinatorId: number | null;
42
- isRepeated: boolean;
43
- pickupConfigId?: number | null;
44
- updatedAt: Date | string;
45
- createdAt: Date | string;
46
- pickupGroup?: PickupGroup;
47
- organizerCreator?: Organizer;
48
- memberCreator?: Member;
49
- organization?: Organization;
50
- orgWorkspace?: OrgWorkspace;
51
- orgCoordinator?: Organizer;
52
- memberCoordinator?: Member;
53
- waitlistCount?: number;
54
- rosterCount?: number;
55
- groupFollowerCount?: number;
56
- isRegistered?: boolean;
57
- count?: number;
58
- inWaitlist?: boolean;
59
- registeredPlayersCount?: number;
60
- registeredPlayers?: PickupRoster[];
61
- waitlistPlayers?: PickupWaitlist[];
62
- pickupConfig?: PickupConfig;
63
- stripeVersion: number;
64
- deletedAt: Date | null;
65
- static tableName: string;
66
- static get relationMappings(): RelationMappings;
67
- static jsonSchema: {
68
- type: string;
69
- required: string[];
70
- properties: {
71
- id: {
72
- type: string;
73
- };
74
- pickupGroupId: {
75
- type: string;
76
- };
77
- orgCreatorId: {
78
- type: string[];
79
- default: null;
80
- };
81
- memberCreatorId: {
82
- type: string[];
83
- default: null;
84
- };
85
- organizationId: {
86
- type: string[];
87
- default: null;
88
- };
89
- orgWorkspaceId: {
90
- type: string[];
91
- default: null;
92
- };
93
- name: {
94
- type: string;
95
- minLength: number;
96
- maxLength: number;
97
- };
98
- gender: {
99
- type: string;
100
- enum: Gender[];
101
- minLength: number;
102
- maxLength: number;
103
- };
104
- playerLimit: {
105
- type: string;
106
- minimum: number;
107
- };
108
- dateAndTime: {
109
- type: string;
110
- };
111
- date: {
112
- type: string[];
113
- };
114
- location: {
115
- type: string;
116
- minLength: number;
117
- maxLength: number;
118
- };
119
- startTime: {
120
- type: string;
121
- maxLength: number;
122
- };
123
- duration: {
124
- type: string;
125
- };
126
- price: {
127
- type: string;
128
- minimum: number;
129
- };
130
- image: {
131
- type: string[];
132
- default: string;
133
- };
134
- description: {
135
- type: string[];
136
- minLength: number;
137
- maxLength: number;
138
- };
139
- orgCoordinatorId: {
140
- type: string[];
141
- default: null;
142
- };
143
- memberCoordinatorId: {
144
- type: string[];
145
- default: null;
146
- };
147
- isRepeated: {
148
- type: string[];
149
- default: boolean;
150
- };
151
- pickupConfigId: {
152
- type: string[];
153
- default: null;
154
- };
155
- stripeVersion: {
156
- type: string;
157
- default: number;
158
- };
159
- };
160
- };
161
- hasVacancy(): Promise<boolean>;
162
- }
163
- export default Pickup;
@@ -1,34 +0,0 @@
1
- import { Model } from 'objection';
2
- import { RepeatFrequency } from '../types/pickup';
3
- export declare class PickupConfig extends Model {
4
- id: number;
5
- repeatFrequency: RepeatFrequency;
6
- repeatOn?: string | null;
7
- endsOn?: string | null;
8
- endsAfterOccurances?: number | null;
9
- updatedAt: Date | string;
10
- createdAt: Date | string;
11
- static tableName: string;
12
- static jsonSchema: {
13
- type: string;
14
- required: string[];
15
- properties: {
16
- id: {
17
- type: string;
18
- };
19
- repeatFrequency: {
20
- type: string;
21
- enum: RepeatFrequency[];
22
- };
23
- repeatOn: {
24
- type: string[];
25
- };
26
- endsOn: {
27
- type: string[];
28
- };
29
- endsAfterOccurances: {
30
- type: string[];
31
- };
32
- };
33
- };
34
- }
@@ -1,83 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- import { Organizer } from './organizer';
4
- declare const PickupGroup_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
5
- export declare class PickupGroup extends PickupGroup_base {
6
- id: number;
7
- name: string;
8
- acronym: string | null;
9
- location: string;
10
- established: string | null;
11
- banner: string;
12
- badge: string;
13
- timezone: string;
14
- orgCreatorId: number | null;
15
- memberCreatorId: number | null;
16
- organizationId: number | null;
17
- orgWorkspaceId?: number | null;
18
- createdAt: Date | string;
19
- updatedAt: Date | string;
20
- deletedAt: Date | null;
21
- memberCount?: number;
22
- memberCreator?: Member;
23
- organizerCreator?: Organizer;
24
- static tableName: string;
25
- static get relationMappings(): RelationMappings;
26
- static jsonSchema: {
27
- type: string;
28
- required: string[];
29
- properties: {
30
- id: {
31
- type: string;
32
- };
33
- name: {
34
- type: string;
35
- minLength: number;
36
- maxLength: number;
37
- };
38
- acronym: {
39
- type: string[];
40
- minLength: number;
41
- maxLength: number;
42
- default: null;
43
- };
44
- location: {
45
- type: string;
46
- minLength: number;
47
- maxLength: number;
48
- };
49
- established: {
50
- type: string[];
51
- minLength: number;
52
- maxLength: number;
53
- default: null;
54
- };
55
- banner: {
56
- type: string;
57
- };
58
- badge: {
59
- type: string;
60
- };
61
- timezone: {
62
- type: string;
63
- };
64
- orgCreatorId: {
65
- type: string[];
66
- default: null;
67
- };
68
- memberCreatorId: {
69
- type: string[];
70
- default: null;
71
- };
72
- organizationId: {
73
- type: string[];
74
- default: null;
75
- };
76
- orgWorkspaceId: {
77
- type: string[];
78
- default: null;
79
- };
80
- };
81
- };
82
- }
83
- export default PickupGroup;
@@ -1,42 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- declare const PickupGrpMember_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
- export declare class PickupGrpMember extends PickupGrpMember_base {
5
- id: number;
6
- pickupGroupId: number;
7
- memberId: number;
8
- isBlocked: boolean;
9
- isAdmin: boolean;
10
- createdAt: Date | string;
11
- updatedAt: Date | string;
12
- deletedAt: Date | null;
13
- member?: Member;
14
- count?: number;
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
- pickupGroupId: {
25
- type: string;
26
- };
27
- memberId: {
28
- type: string;
29
- };
30
- isBlocked: {
31
- type: string;
32
- default: boolean;
33
- };
34
- isAdmin: {
35
- type: string;
36
- default: boolean;
37
- };
38
- };
39
- };
40
- $afterInsert(): Promise<void>;
41
- }
42
- export default PickupGrpMember;
@@ -1,79 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { StripePaymentStatus } from '../types/common';
3
- import { Pickup } from './pickup';
4
- import { PickupPrice } from './pickup_price';
5
- import { PickupRegistration } from './pickup_registration';
6
- import { Member } from './member';
7
- import { DiscountCode } from '../modules/discount_code/discount_code.model';
8
- import { Refund } from './refund';
9
- import { Transaction } from './transaction';
10
- export declare class PickupPayment extends Model {
11
- id: number;
12
- pickupId: number;
13
- memberId: number;
14
- pickupPriceId: number;
15
- pickupRegistrationId: number | null;
16
- payerId: number;
17
- stripeCheckoutSessionId: string | null;
18
- stripeIdempotencyKey: string;
19
- stripePaymentIntentId: string | null;
20
- status: StripePaymentStatus;
21
- updatedAt: Date | string;
22
- createdAt: Date | string;
23
- pickup?: Pickup;
24
- pickupPrice?: PickupPrice;
25
- pickupRegistration?: PickupRegistration;
26
- member?: Member;
27
- payer?: Member;
28
- isRegistrationPayment?: boolean;
29
- refunds?: Refund[];
30
- discountCodeId: number | null;
31
- discountCode?: DiscountCode;
32
- appliedDiscountValue: number;
33
- transactions?: Transaction[];
34
- static tableName: string;
35
- static get idColumn(): string;
36
- static get relationMappings(): RelationMappings;
37
- static jsonSchema: {
38
- type: string;
39
- required: string[];
40
- properties: {
41
- id: {
42
- type: string;
43
- };
44
- pickupId: {
45
- type: string;
46
- };
47
- memberId: {
48
- type: string;
49
- };
50
- pickupPriceId: {
51
- type: string;
52
- };
53
- pickupRegistrationId: {
54
- type: string[];
55
- };
56
- payerId: {
57
- type: string;
58
- };
59
- stripeIdempotencyKey: {
60
- type: string;
61
- };
62
- stripePaymentIntentId: {
63
- type: string[];
64
- };
65
- stripeCheckoutSessionId: {
66
- type: string[];
67
- };
68
- status: {
69
- type: string;
70
- };
71
- discountCodeId: {
72
- type: string[];
73
- };
74
- appliedDiscountValue: {
75
- type: string;
76
- };
77
- };
78
- };
79
- }
@@ -1,41 +0,0 @@
1
- import { Model, QueryBuilder } from 'objection';
2
- import { VALID_CURRENCY_CODES } from '../constants';
3
- declare const PickupPrice_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
- export declare class PickupPrice extends PickupPrice_base {
5
- id: number;
6
- price: number;
7
- pickupId: number;
8
- stripePriceId: string;
9
- currency: VALID_CURRENCY_CODES;
10
- updatedAt: Date | string;
11
- createdAt: Date | string;
12
- deletedAt: Date | string | null;
13
- static tableName: string;
14
- static get idColumn(): string;
15
- static modifiers: {
16
- filterStripe(query: QueryBuilder<PickupPrice>): void;
17
- };
18
- static jsonSchema: {
19
- type: string;
20
- required: string[];
21
- properties: {
22
- id: {
23
- type: string;
24
- };
25
- price: {
26
- type: string;
27
- };
28
- pickupId: {
29
- type: string;
30
- };
31
- stripePriceId: {
32
- type: string;
33
- };
34
- currency: {
35
- type: string;
36
- enum: VALID_CURRENCY_CODES[];
37
- };
38
- };
39
- };
40
- }
41
- export {};
@@ -1,38 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare const enum PickupRegistrationStatus {
3
- PAID_IN_FULL = "paid_in_full"
4
- }
5
- declare const PickupRegistration_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
6
- export declare class PickupRegistration extends PickupRegistration_base {
7
- id: number;
8
- memberId: number;
9
- pickupId: number;
10
- status: PickupRegistrationStatus | null;
11
- registrantId: number | null;
12
- updatedAt: Date | string;
13
- createdAt: Date | string;
14
- deletedAt: Date | null;
15
- static tableName: string;
16
- static get idColumn(): string;
17
- static jsonSchema: {
18
- type: string;
19
- required: string[];
20
- properties: {
21
- memberId: {
22
- type: string;
23
- };
24
- pickupId: {
25
- type: string;
26
- };
27
- status: {
28
- type: string[];
29
- default: null;
30
- };
31
- registrantId: {
32
- type: string[];
33
- default: null;
34
- };
35
- };
36
- };
37
- }
38
- export {};
@@ -1,41 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Pickup } from './pickup';
3
- import { Member } from './member';
4
- import { StripePaymentStatus } from '../types/common';
5
- export declare class PickupRoster extends Model {
6
- id: number;
7
- pickupId: number;
8
- memberId: number;
9
- hasPaid: boolean;
10
- createdAt: Date | string;
11
- updatedAt: Date | string;
12
- static tableName: string;
13
- pickup?: Pickup;
14
- member?: Member;
15
- count?: number;
16
- isRegistered?: boolean;
17
- isAdmin?: boolean;
18
- refundedAmount?: number;
19
- remainingBalance?: number;
20
- paymentStatus?: StripePaymentStatus;
21
- static get relationMappings(): RelationMappings;
22
- static jsonSchema: {
23
- type: string;
24
- required: string[];
25
- properties: {
26
- id: {
27
- type: string;
28
- };
29
- pickupId: {
30
- type: string;
31
- };
32
- memberId: {
33
- type: string;
34
- };
35
- hasPaid: {
36
- type: string;
37
- default: boolean;
38
- };
39
- };
40
- };
41
- }
@@ -1,23 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare class PickupStripe extends Model {
3
- id: number;
4
- pickupId: number;
5
- stripeProductId: string;
6
- static tableName: string;
7
- static get idColumn(): string;
8
- static jsonSchema: {
9
- type: string;
10
- required: string[];
11
- properties: {
12
- id: {
13
- type: string;
14
- };
15
- pickupId: {
16
- type: string;
17
- };
18
- stripeProductId: {
19
- type: string;
20
- };
21
- };
22
- };
23
- }
@@ -1,33 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Pickup } from './pickup';
3
- import { Member } from './member';
4
- export declare class PickupWaitlist extends Model {
5
- id: number;
6
- pickupId: number;
7
- memberId: number;
8
- createdAt: Date | string;
9
- updatedAt: Date | string;
10
- static tableName: string;
11
- pickup?: Pickup;
12
- member?: Member;
13
- count?: number;
14
- inWaitlist?: boolean;
15
- memberEmail?: string;
16
- memberPushToken?: string;
17
- static get relationMappings(): RelationMappings;
18
- static jsonSchema: {
19
- type: string;
20
- required: string[];
21
- properties: {
22
- id: {
23
- type: string;
24
- };
25
- pickupId: {
26
- type: string;
27
- };
28
- memberId: {
29
- type: string;
30
- };
31
- };
32
- };
33
- }