bantr-api-client 11.0.3 → 11.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/api-type/src/models/assists.d.ts +7 -0
  2. package/api-type/src/models/base_league.d.ts +45 -0
  3. package/api-type/src/models/block.d.ts +27 -0
  4. package/api-type/src/models/chat.d.ts +37 -0
  5. package/api-type/src/models/chat_members.d.ts +36 -0
  6. package/api-type/src/models/clap.d.ts +38 -0
  7. package/api-type/src/models/comment.d.ts +46 -0
  8. package/api-type/src/models/demo_leads.d.ts +64 -0
  9. package/api-type/src/models/direct_message.d.ts +34 -0
  10. package/api-type/src/models/dynamic_group.d.ts +42 -0
  11. package/api-type/src/models/dynamic_season_league_template.d.ts +120 -0
  12. package/api-type/src/models/dynamic_stage.d.ts +52 -0
  13. package/api-type/src/models/dynamic_stage_template.d.ts +50 -0
  14. package/api-type/src/models/emoji.d.ts +31 -0
  15. package/api-type/src/models/emoji_media_mapper.d.ts +38 -0
  16. package/api-type/src/models/event.d.ts +133 -0
  17. package/api-type/src/models/free_agent_payment.d.ts +108 -0
  18. package/api-type/src/models/game_stat_model.d.ts +55 -0
  19. package/api-type/src/models/goals.d.ts +7 -0
  20. package/api-type/src/models/hooks/chat_member.d.ts +4 -0
  21. package/api-type/src/models/hooks/event.d.ts +6 -0
  22. package/api-type/src/models/hooks/league_schedule.d.ts +3 -0
  23. package/api-type/src/models/hooks/pickup_group_member.d.ts +4 -0
  24. package/api-type/src/models/hooks/schedule_events.d.ts +2 -0
  25. package/api-type/src/models/hooks/team_roster.d.ts +4 -0
  26. package/api-type/src/models/invite.d.ts +108 -0
  27. package/api-type/src/models/job.d.ts +33 -0
  28. package/api-type/src/models/job_type.d.ts +26 -0
  29. package/api-type/src/models/last_seen_team_message.d.ts +31 -0
  30. package/api-type/src/models/league.d.ts +175 -0
  31. package/api-type/src/models/league_group_teams.d.ts +38 -0
  32. package/api-type/src/models/league_media.d.ts +57 -0
  33. package/api-type/src/models/league_payment.d.ts +93 -0
  34. package/api-type/src/models/league_price.d.ts +52 -0
  35. package/api-type/src/models/league_registration.d.ts +41 -0
  36. package/api-type/src/models/league_schedule.d.ts +116 -0
  37. package/api-type/src/models/league_schedule_referee.d.ts +29 -0
  38. package/api-type/src/models/league_standing.d.ts +83 -0
  39. package/api-type/src/models/league_stripe.d.ts +23 -0
  40. package/api-type/src/models/league_teams.d.ts +34 -0
  41. package/api-type/src/models/league_template.d.ts +35 -0
  42. package/api-type/src/models/league_waitlist.d.ts +39 -0
  43. package/api-type/src/models/market_post.d.ts +91 -0
  44. package/api-type/src/models/match_cards.d.ts +42 -0
  45. package/api-type/src/models/match_notes.d.ts +49 -0
  46. package/api-type/src/models/member.d.ts +138 -0
  47. package/api-type/src/models/member_hidden_comment.d.ts +31 -0
  48. package/api-type/src/models/member_hidden_message.d.ts +48 -0
  49. package/api-type/src/models/member_muted_chat.d.ts +38 -0
  50. package/api-type/src/models/member_muted_event.d.ts +25 -0
  51. package/api-type/src/models/member_organizations.d.ts +65 -0
  52. package/api-type/src/models/member_stripe.d.ts +23 -0
  53. package/api-type/src/models/message.d.ts +34 -0
  54. package/api-type/src/models/mvp_votes.d.ts +42 -0
  55. package/api-type/src/models/notification.d.ts +46 -0
  56. package/api-type/src/models/oauth.d.ts +49 -0
  57. package/api-type/src/models/organization.d.ts +68 -0
  58. package/api-type/src/models/organization_free_agent.d.ts +70 -0
  59. package/api-type/src/models/organization_free_agent_price.d.ts +37 -0
  60. package/api-type/src/models/organization_leagues.d.ts +23 -0
  61. package/api-type/src/models/organization_learn_more.d.ts +75 -0
  62. package/api-type/src/models/organization_stripe.d.ts +68 -0
  63. package/api-type/src/models/organization_waivers.d.ts +59 -0
  64. package/api-type/src/models/organization_workspace.d.ts +76 -0
  65. package/api-type/src/models/organizer.d.ts +70 -0
  66. package/api-type/src/models/organizer_roles.d.ts +26 -0
  67. package/api-type/src/models/pickup.d.ts +163 -0
  68. package/api-type/src/models/pickup_config.d.ts +34 -0
  69. package/api-type/src/models/pickup_group.d.ts +83 -0
  70. package/api-type/src/models/pickup_group_members.d.ts +42 -0
  71. package/api-type/src/models/pickup_payments.d.ts +79 -0
  72. package/api-type/src/models/pickup_price.d.ts +41 -0
  73. package/api-type/src/models/pickup_registration.d.ts +38 -0
  74. package/api-type/src/models/pickup_roster.d.ts +41 -0
  75. package/api-type/src/models/pickup_stripe.d.ts +23 -0
  76. package/api-type/src/models/pickup_waitlist.d.ts +33 -0
  77. package/api-type/src/models/post.d.ts +66 -0
  78. package/api-type/src/models/referee_note.d.ts +35 -0
  79. package/api-type/src/models/referee_organization.d.ts +29 -0
  80. package/api-type/src/models/referees.d.ts +63 -0
  81. package/api-type/src/models/refresh_token.d.ts +39 -0
  82. package/api-type/src/models/refund.d.ts +57 -0
  83. package/api-type/src/models/report.d.ts +32 -0
  84. package/api-type/src/models/reported_comment.d.ts +28 -0
  85. package/api-type/src/models/reported_event.d.ts +28 -0
  86. package/api-type/src/models/reported_message.d.ts +28 -0
  87. package/api-type/src/models/reported_player.d.ts +28 -0
  88. package/api-type/src/models/role.d.ts +44 -0
  89. package/api-type/src/models/rsvp.d.ts +47 -0
  90. package/api-type/src/models/schedule_event.d.ts +59 -0
  91. package/api-type/src/models/season.d.ts +48 -0
  92. package/api-type/src/models/season_league_template.d.ts +126 -0
  93. package/api-type/src/models/setting.d.ts +24 -0
  94. package/api-type/src/models/signed_member_waivers.d.ts +59 -0
  95. package/api-type/src/models/stripe_balance.d.ts +59 -0
  96. package/api-type/src/models/stripe_transaction.d.ts +65 -0
  97. package/api-type/src/models/stripe_transfer.d.ts +59 -0
  98. package/api-type/src/models/stripe_webhook.d.ts +26 -0
  99. package/api-type/src/models/support.d.ts +39 -0
  100. package/api-type/src/models/team.d.ts +97 -0
  101. package/api-type/src/models/team_league_season_roster.d.ts +42 -0
  102. package/api-type/src/models/team_members.d.ts +43 -0
  103. package/api-type/src/models/team_message.d.ts +33 -0
  104. package/api-type/src/models/team_roster.d.ts +71 -0
  105. package/api-type/src/models/transaction.d.ts +155 -0
  106. package/api-type/src/models/transaction_event.d.ts +49 -0
  107. package/api-type/src/models/utils/chat.d.ts +6 -0
  108. package/api-type/src/models/utils/league.d.ts +2 -0
  109. package/api-type/src/models/utils/organization.d.ts +1 -0
  110. package/api-type/src/models/utils/team.d.ts +2 -0
  111. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { Model } from 'objection';
2
+ export declare class LeagueStripe extends Model {
3
+ id: number;
4
+ leagueId: 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
+ leagueId: {
16
+ type: string;
17
+ };
18
+ stripeProductId: {
19
+ type: string;
20
+ };
21
+ };
22
+ };
23
+ }
@@ -0,0 +1,34 @@
1
+ import { Model } from 'objection';
2
+ declare const LeagueTeam_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
3
+ export declare class LeagueTeam extends LeagueTeam_base {
4
+ id: number;
5
+ leagueId: number;
6
+ teamId: number;
7
+ modifiedLeaguePrice: number | null;
8
+ updatedAt: Date | string;
9
+ createdAt: Date | string;
10
+ deletedAt: Date | null;
11
+ count?: number;
12
+ static tableName: string;
13
+ static get idColumn(): string;
14
+ static get modifiers(): Record<string, (builder: any) => void>;
15
+ static jsonSchema: {
16
+ type: string;
17
+ required: string[];
18
+ properties: {
19
+ id: {
20
+ type: string;
21
+ };
22
+ leagueId: {
23
+ type: string;
24
+ };
25
+ teamId: {
26
+ type: string;
27
+ };
28
+ modifiedLeaguePrice: {
29
+ type: string[];
30
+ };
31
+ };
32
+ };
33
+ }
34
+ export {};
@@ -0,0 +1,35 @@
1
+ import { Model } from 'objection';
2
+ export declare class LeagueTemplate extends Model {
3
+ id: number;
4
+ leagueId: number;
5
+ startTimes?: string[];
6
+ locations?: string[];
7
+ formattedStartTimes?: Date[];
8
+ static tableName: string;
9
+ static get idColumn(): string;
10
+ static get jsonAttributes(): [];
11
+ static jsonSchema: {
12
+ type: string;
13
+ required: string[];
14
+ properties: {
15
+ id: {
16
+ type: string;
17
+ };
18
+ leagueId: {
19
+ type: string;
20
+ };
21
+ startTimes: {
22
+ type: string;
23
+ items: {
24
+ type: string;
25
+ };
26
+ };
27
+ locations: {
28
+ type: string;
29
+ items: {
30
+ type: string;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ }
@@ -0,0 +1,39 @@
1
+ import { Model, RelationMappings, QueryBuilder } from 'objection';
2
+ import { Member } from './member';
3
+ import { Team } from './team';
4
+ import { League } from './league';
5
+ declare const LeagueWaitlist_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
6
+ export declare class LeagueWaitlist extends LeagueWaitlist_base {
7
+ id: number;
8
+ leagueId: number;
9
+ teamId: number;
10
+ registrantId: number;
11
+ updatedAt?: Date | string;
12
+ createdAt?: Date | string;
13
+ deletedAt?: Date | null;
14
+ league?: League | null;
15
+ team?: Team | null;
16
+ registrant?: Member | null;
17
+ static tableName: string;
18
+ static get relationMappings(): RelationMappings;
19
+ static get modifiers(): {
20
+ filterDeleted(builder: QueryBuilder<any>): void;
21
+ };
22
+ static get idColumn(): string;
23
+ static jsonSchema: {
24
+ type: string;
25
+ required: string[];
26
+ properties: {
27
+ leagueId: {
28
+ type: string;
29
+ };
30
+ teamId: {
31
+ type: string;
32
+ };
33
+ registrantId: {
34
+ type: string;
35
+ };
36
+ };
37
+ };
38
+ }
39
+ export {};
@@ -0,0 +1,91 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { Member } from './member';
3
+ import { Organization } from './organization';
4
+ import { Organizer } from './organizer';
5
+ export declare enum MarketTags {
6
+ Event = "event",
7
+ Pickup = "pickup",
8
+ Merch = "merch",
9
+ Sub = "sub",
10
+ Sponsor = "sponsor",
11
+ General = "general",
12
+ Uniform = "uniform",
13
+ Featured = "featured",
14
+ Leagues = "leagues",
15
+ Free_Agent = "free agent"
16
+ }
17
+ declare const MarketPost_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
18
+ export declare class MarketPost extends MarketPost_base {
19
+ id: number;
20
+ title: string;
21
+ description: string | null;
22
+ heroImage: string;
23
+ fileName: string;
24
+ callToAction: string | null;
25
+ tag: MarketTags;
26
+ url: string | null;
27
+ organizationId: number | null;
28
+ orgWorkspaceId: number | null;
29
+ organizerId: number | null;
30
+ memberId: number | null;
31
+ createdAt: Date | string;
32
+ updatedAt: Date | string;
33
+ deletedAt: Date | string | null;
34
+ organization?: Organization;
35
+ organizer?: Organizer;
36
+ member?: Member;
37
+ static tableName: string;
38
+ static get idColumn(): string;
39
+ static get relationMappings(): RelationMappings;
40
+ static jsonSchema: {
41
+ type: string;
42
+ required: string[];
43
+ properties: {
44
+ id: {
45
+ type: string;
46
+ };
47
+ title: {
48
+ type: string;
49
+ minLength: number;
50
+ maxLength: number;
51
+ };
52
+ description: {
53
+ type: string;
54
+ minLength: number;
55
+ maxLength: number;
56
+ };
57
+ heroImage: {
58
+ type: string;
59
+ minLength: number;
60
+ maxLength: number;
61
+ };
62
+ callToAction: {
63
+ type: string;
64
+ minLength: number;
65
+ maxLength: number;
66
+ };
67
+ tag: {
68
+ type: string;
69
+ enum: MarketTags[];
70
+ };
71
+ url: {
72
+ type: string;
73
+ minLength: number;
74
+ maxLength: number;
75
+ };
76
+ organizationId: {
77
+ type: string[];
78
+ };
79
+ orgWorkspaceId: {
80
+ type: string[];
81
+ };
82
+ organizerId: {
83
+ type: string[];
84
+ };
85
+ memberId: {
86
+ type: string[];
87
+ };
88
+ };
89
+ };
90
+ }
91
+ export {};
@@ -0,0 +1,42 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { MatchCardTypes } from '../types/league';
3
+ declare const MatchCards_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
+ export declare class MatchCards extends MatchCards_base {
5
+ id: number;
6
+ type: MatchCardTypes;
7
+ scheduleEventId: number;
8
+ teamId: number;
9
+ memberId?: number;
10
+ count: number;
11
+ updatedAt: Date | string;
12
+ createdAt: Date | string;
13
+ deletedAt: Date | null;
14
+ static tableName: string;
15
+ static get relationMappings(): RelationMappings;
16
+ static jsonSchema: {
17
+ type: string;
18
+ required: string[];
19
+ properties: {
20
+ id: {
21
+ type: string;
22
+ };
23
+ type: {
24
+ type: string;
25
+ };
26
+ scheduleEventId: {
27
+ type: string;
28
+ };
29
+ teamId: {
30
+ type: string;
31
+ };
32
+ memberId: {
33
+ type: string[];
34
+ };
35
+ count: {
36
+ type: string;
37
+ default: number;
38
+ };
39
+ };
40
+ };
41
+ }
42
+ export {};
@@ -0,0 +1,49 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { ReportLabel } from '../types/league';
3
+ declare const MatchNotes_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
+ export declare class MatchNotes extends MatchNotes_base {
5
+ id: number;
6
+ content: string;
7
+ labels: ReportLabel[] | null;
8
+ organizerId: number | null;
9
+ refereeId: number | null;
10
+ scheduleEventId: number;
11
+ updatedAt: Date | string;
12
+ createdAt: Date | string;
13
+ deletedAt: Date | null;
14
+ static tableName: string;
15
+ static get relationMappings(): RelationMappings;
16
+ static get modifiers(): Record<string, (builder: any) => void>;
17
+ static jsonSchema: {
18
+ type: string;
19
+ required: string[];
20
+ properties: {
21
+ id: {
22
+ type: string;
23
+ };
24
+ content: {
25
+ type: string;
26
+ minLength: number;
27
+ maxLength: number;
28
+ };
29
+ reportLabels: {
30
+ type: string[];
31
+ items: {
32
+ type: string[];
33
+ };
34
+ };
35
+ organizerId: {
36
+ type: string[];
37
+ default: null;
38
+ };
39
+ refereeId: {
40
+ type: string[];
41
+ default: null;
42
+ };
43
+ scheduleEventId: {
44
+ type: string;
45
+ };
46
+ };
47
+ };
48
+ }
49
+ export {};
@@ -0,0 +1,138 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { Status } from './rsvp';
3
+ import { Team } from './team';
4
+ import { TMemberGameStatsResponse } from '../controllers/game_stats';
5
+ import { Transaction } from './transaction';
6
+ export declare const enum AccountStatus {
7
+ unverified = "unverified",
8
+ verified = "verified"
9
+ }
10
+ declare const Member_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
11
+ export declare class Member extends Member_base {
12
+ id: number;
13
+ avatar: string | null;
14
+ bio: string | null;
15
+ birthday: string | Date | null;
16
+ city?: string;
17
+ firstName: string | null;
18
+ email: string;
19
+ favoriteTeamId?: number | null;
20
+ lastName: string | null;
21
+ location: string | null;
22
+ password: string | null;
23
+ street?: string;
24
+ state?: string;
25
+ accountStatus: string;
26
+ verificationToken: string | null;
27
+ zip?: string;
28
+ gender?: string;
29
+ phoneNumber: string | null;
30
+ pushToken: string | null;
31
+ isSub?: boolean;
32
+ isRostered?: boolean;
33
+ rsvpStatus?: Status;
34
+ isBlocked?: boolean;
35
+ teams?: Team[];
36
+ gameStats?: TMemberGameStatsResponse;
37
+ isPushTokenRegistered?: boolean;
38
+ transactions?: Transaction[];
39
+ deletedAt: Date | null;
40
+ static tableName: string;
41
+ static get relationMappings(): RelationMappings;
42
+ static get idColumn(): string;
43
+ static get modifiers(): Record<string, (builder: any) => void>;
44
+ getPublicInfo(): Partial<Member>;
45
+ static isEmailTaken(email: string): Promise<boolean>;
46
+ getFullName(): string;
47
+ static jsonSchema: {
48
+ type: string;
49
+ required: string[];
50
+ properties: {
51
+ id: {
52
+ type: string;
53
+ };
54
+ avatar: {
55
+ type: string;
56
+ minLength: number;
57
+ maxLength: number;
58
+ };
59
+ bio: {
60
+ type: string;
61
+ minLength: number;
62
+ maxLength: number;
63
+ };
64
+ birthday: {
65
+ type: string;
66
+ };
67
+ city: {
68
+ type: string;
69
+ minLength: number;
70
+ maxLength: number;
71
+ };
72
+ email: {
73
+ type: string;
74
+ minLength: number;
75
+ maxLength: number;
76
+ };
77
+ favoriteTeamId: {
78
+ anyOf: {
79
+ type: string;
80
+ }[];
81
+ };
82
+ firstName: {
83
+ type: string[];
84
+ minLength: number;
85
+ maxLength: number;
86
+ };
87
+ lastName: {
88
+ type: string[];
89
+ minLength: number;
90
+ maxLength: number;
91
+ };
92
+ location: {
93
+ type: string[];
94
+ minLength: number;
95
+ maxLength: number;
96
+ };
97
+ password: {
98
+ type: string;
99
+ minLength: number;
100
+ maxLength: number;
101
+ };
102
+ street: {
103
+ type: string;
104
+ minLength: number;
105
+ maxLength: number;
106
+ };
107
+ state: {
108
+ type: string;
109
+ minLength: number;
110
+ maxLength: number;
111
+ };
112
+ accountStatus: {
113
+ type: string;
114
+ enum: AccountStatus[];
115
+ };
116
+ verificationToken: {
117
+ type: string;
118
+ minLength: number;
119
+ maxLength: number;
120
+ };
121
+ zip: {
122
+ type: string[];
123
+ pattern: string;
124
+ };
125
+ phoneNumber: {
126
+ type: string[];
127
+ minLength: number;
128
+ maxLength: number;
129
+ };
130
+ gender: {
131
+ type: string[];
132
+ minLength: number;
133
+ maxLength: number;
134
+ };
135
+ };
136
+ };
137
+ }
138
+ export {};
@@ -0,0 +1,31 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ export declare class MemberHiddenComment extends Model {
3
+ static tableName: string;
4
+ id: number;
5
+ memberId: number;
6
+ commentId: number;
7
+ createdAt: Date | string;
8
+ updatedAt: Date | string;
9
+ static get relationMappings(): RelationMappings;
10
+ static jsonSchema: {
11
+ type: string;
12
+ required: string[];
13
+ properties: {
14
+ id: {
15
+ type: string;
16
+ };
17
+ commentId: {
18
+ type: string;
19
+ };
20
+ memberId: {
21
+ type: string;
22
+ };
23
+ createdAt: {
24
+ type: string;
25
+ };
26
+ updatedAt: {
27
+ type: string;
28
+ };
29
+ };
30
+ };
31
+ }
@@ -0,0 +1,48 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { ChatType } from './utils/chat';
3
+ export declare class MemberHiddenMessage extends Model {
4
+ static tableName: string;
5
+ id: number;
6
+ memberId: number;
7
+ messageId: string;
8
+ chatType: ChatType;
9
+ chatId: number | null;
10
+ teamId: number | null;
11
+ pickupGroupId: number | null;
12
+ createdAt: Date | string;
13
+ updatedAt: Date | string;
14
+ static get relationMappings(): RelationMappings;
15
+ static jsonSchema: {
16
+ type: string;
17
+ required: string[];
18
+ properties: {
19
+ id: {
20
+ type: string;
21
+ };
22
+ memberId: {
23
+ type: string;
24
+ };
25
+ messageId: {
26
+ type: string;
27
+ };
28
+ chatType: {
29
+ type: string;
30
+ enum: ChatType[];
31
+ minLength: number;
32
+ maxLength: number;
33
+ };
34
+ teamId: {
35
+ type: string;
36
+ };
37
+ chatId: {
38
+ type: string;
39
+ };
40
+ createdAt: {
41
+ type: string;
42
+ };
43
+ updatedAt: {
44
+ type: string;
45
+ };
46
+ };
47
+ };
48
+ }
@@ -0,0 +1,38 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ import { ChatType } from './utils/chat';
3
+ export declare class MemberMutedChat extends Model {
4
+ static tableName: string;
5
+ id: number;
6
+ memberId: number;
7
+ chatType: ChatType;
8
+ teamId: number | null;
9
+ chatId: number | null;
10
+ pickupGroupId: number | null;
11
+ createdAt: Date | string;
12
+ updatedAt: Date | string;
13
+ static get relationMappings(): RelationMappings;
14
+ static jsonSchema: {
15
+ type: string;
16
+ required: string[];
17
+ properties: {
18
+ id: {
19
+ type: string;
20
+ };
21
+ memberId: {
22
+ type: string;
23
+ };
24
+ chatType: {
25
+ type: string;
26
+ enum: ChatType[];
27
+ minLength: number;
28
+ maxLength: number;
29
+ };
30
+ teamId: {
31
+ type: string[];
32
+ };
33
+ chatId: {
34
+ type: string[];
35
+ };
36
+ };
37
+ };
38
+ }
@@ -0,0 +1,25 @@
1
+ import { Model, RelationMappings } from 'objection';
2
+ export declare class MemberMutedEvent extends Model {
3
+ static tableName: string;
4
+ id: number;
5
+ memberId: number;
6
+ eventId: number;
7
+ createdAt: Date | string;
8
+ updatedAt: Date | string;
9
+ static get relationMappings(): RelationMappings;
10
+ static jsonSchema: {
11
+ type: string;
12
+ required: string[];
13
+ properties: {
14
+ id: {
15
+ type: string;
16
+ };
17
+ memberId: {
18
+ type: string;
19
+ };
20
+ eventId: {
21
+ type: string;
22
+ };
23
+ };
24
+ };
25
+ }
@@ -0,0 +1,65 @@
1
+ import { Model } from 'objection';
2
+ import { Organization } from './organization';
3
+ import { OrgWorkspace } from './organization_workspace';
4
+ import { Member } from './member';
5
+ export declare class MemberOrganizations extends Model {
6
+ id: number;
7
+ memberId: number;
8
+ organizationId: number;
9
+ workspaceId: number | null;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ static tableName: string;
13
+ static jsonSchema: {
14
+ type: string;
15
+ required: string[];
16
+ properties: {
17
+ id: {
18
+ type: string;
19
+ };
20
+ memberId: {
21
+ type: string;
22
+ };
23
+ organizationId: {
24
+ type: string;
25
+ };
26
+ workspaceId: {
27
+ type: string[];
28
+ };
29
+ createdAt: {
30
+ type: string;
31
+ format: string;
32
+ };
33
+ updatedAt: {
34
+ type: string;
35
+ format: string;
36
+ };
37
+ };
38
+ };
39
+ static get relationMappings(): {
40
+ member: {
41
+ relation: import("objection").RelationType;
42
+ modelClass: typeof Member;
43
+ join: {
44
+ from: string;
45
+ to: string;
46
+ };
47
+ };
48
+ organization: {
49
+ relation: import("objection").RelationType;
50
+ modelClass: typeof Organization;
51
+ join: {
52
+ from: string;
53
+ to: string;
54
+ };
55
+ };
56
+ workspace: {
57
+ relation: import("objection").RelationType;
58
+ modelClass: typeof OrgWorkspace;
59
+ join: {
60
+ from: string;
61
+ to: string;
62
+ };
63
+ };
64
+ };
65
+ }
@@ -0,0 +1,23 @@
1
+ import { Model } from 'objection';
2
+ export declare class MemberStripe extends Model {
3
+ id: number;
4
+ memberId: number;
5
+ stripeCustomerId: 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
+ memberId: {
16
+ type: string;
17
+ };
18
+ stripeCustomerId: {
19
+ type: string;
20
+ };
21
+ };
22
+ };
23
+ }