bantr-api-client 11.0.2 → 11.0.3

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 (124) hide show
  1. package/dist/index.js.map +1 -0
  2. package/dist/provider.js.map +1 -0
  3. package/dist/query.js.map +1 -0
  4. package/package.json +3 -3
  5. package/tsconfig.json +2 -1
  6. package/api-type/src/models/assists.d.ts +0 -7
  7. package/api-type/src/models/base_league.d.ts +0 -45
  8. package/api-type/src/models/block.d.ts +0 -27
  9. package/api-type/src/models/chat.d.ts +0 -37
  10. package/api-type/src/models/chat_members.d.ts +0 -36
  11. package/api-type/src/models/clap.d.ts +0 -38
  12. package/api-type/src/models/comment.d.ts +0 -46
  13. package/api-type/src/models/demo_leads.d.ts +0 -64
  14. package/api-type/src/models/direct_message.d.ts +0 -34
  15. package/api-type/src/models/dynamic_group.d.ts +0 -42
  16. package/api-type/src/models/dynamic_season_league_template.d.ts +0 -120
  17. package/api-type/src/models/dynamic_stage.d.ts +0 -52
  18. package/api-type/src/models/dynamic_stage_template.d.ts +0 -50
  19. package/api-type/src/models/emoji.d.ts +0 -31
  20. package/api-type/src/models/emoji_media_mapper.d.ts +0 -38
  21. package/api-type/src/models/event.d.ts +0 -133
  22. package/api-type/src/models/free_agent_payment.d.ts +0 -108
  23. package/api-type/src/models/game_stat_model.d.ts +0 -55
  24. package/api-type/src/models/goals.d.ts +0 -7
  25. package/api-type/src/models/hooks/chat_member.d.ts +0 -4
  26. package/api-type/src/models/hooks/event.d.ts +0 -6
  27. package/api-type/src/models/hooks/league_schedule.d.ts +0 -3
  28. package/api-type/src/models/hooks/pickup_group_member.d.ts +0 -4
  29. package/api-type/src/models/hooks/schedule_events.d.ts +0 -2
  30. package/api-type/src/models/hooks/team_roster.d.ts +0 -4
  31. package/api-type/src/models/invite.d.ts +0 -108
  32. package/api-type/src/models/job.d.ts +0 -33
  33. package/api-type/src/models/job_type.d.ts +0 -26
  34. package/api-type/src/models/last_seen_team_message.d.ts +0 -31
  35. package/api-type/src/models/league.d.ts +0 -175
  36. package/api-type/src/models/league_group_teams.d.ts +0 -38
  37. package/api-type/src/models/league_media.d.ts +0 -57
  38. package/api-type/src/models/league_payment.d.ts +0 -93
  39. package/api-type/src/models/league_price.d.ts +0 -52
  40. package/api-type/src/models/league_registration.d.ts +0 -41
  41. package/api-type/src/models/league_schedule.d.ts +0 -116
  42. package/api-type/src/models/league_schedule_referee.d.ts +0 -29
  43. package/api-type/src/models/league_standing.d.ts +0 -83
  44. package/api-type/src/models/league_stripe.d.ts +0 -23
  45. package/api-type/src/models/league_teams.d.ts +0 -34
  46. package/api-type/src/models/league_template.d.ts +0 -35
  47. package/api-type/src/models/league_waitlist.d.ts +0 -39
  48. package/api-type/src/models/market_post.d.ts +0 -91
  49. package/api-type/src/models/match_cards.d.ts +0 -42
  50. package/api-type/src/models/match_notes.d.ts +0 -49
  51. package/api-type/src/models/member.d.ts +0 -138
  52. package/api-type/src/models/member_hidden_comment.d.ts +0 -31
  53. package/api-type/src/models/member_hidden_message.d.ts +0 -48
  54. package/api-type/src/models/member_muted_chat.d.ts +0 -38
  55. package/api-type/src/models/member_muted_event.d.ts +0 -25
  56. package/api-type/src/models/member_organizations.d.ts +0 -65
  57. package/api-type/src/models/member_stripe.d.ts +0 -23
  58. package/api-type/src/models/message.d.ts +0 -34
  59. package/api-type/src/models/mvp_votes.d.ts +0 -42
  60. package/api-type/src/models/notification.d.ts +0 -46
  61. package/api-type/src/models/oauth.d.ts +0 -49
  62. package/api-type/src/models/organization.d.ts +0 -68
  63. package/api-type/src/models/organization_free_agent.d.ts +0 -70
  64. package/api-type/src/models/organization_free_agent_price.d.ts +0 -37
  65. package/api-type/src/models/organization_leagues.d.ts +0 -23
  66. package/api-type/src/models/organization_learn_more.d.ts +0 -75
  67. package/api-type/src/models/organization_stripe.d.ts +0 -68
  68. package/api-type/src/models/organization_waivers.d.ts +0 -59
  69. package/api-type/src/models/organization_workspace.d.ts +0 -76
  70. package/api-type/src/models/organizer.d.ts +0 -70
  71. package/api-type/src/models/organizer_roles.d.ts +0 -26
  72. package/api-type/src/models/pickup.d.ts +0 -163
  73. package/api-type/src/models/pickup_config.d.ts +0 -34
  74. package/api-type/src/models/pickup_group.d.ts +0 -83
  75. package/api-type/src/models/pickup_group_members.d.ts +0 -42
  76. package/api-type/src/models/pickup_payments.d.ts +0 -79
  77. package/api-type/src/models/pickup_price.d.ts +0 -41
  78. package/api-type/src/models/pickup_registration.d.ts +0 -38
  79. package/api-type/src/models/pickup_roster.d.ts +0 -41
  80. package/api-type/src/models/pickup_stripe.d.ts +0 -23
  81. package/api-type/src/models/pickup_waitlist.d.ts +0 -33
  82. package/api-type/src/models/post.d.ts +0 -66
  83. package/api-type/src/models/referee_note.d.ts +0 -35
  84. package/api-type/src/models/referee_organization.d.ts +0 -29
  85. package/api-type/src/models/referees.d.ts +0 -63
  86. package/api-type/src/models/refresh_token.d.ts +0 -39
  87. package/api-type/src/models/refund.d.ts +0 -57
  88. package/api-type/src/models/report.d.ts +0 -32
  89. package/api-type/src/models/reported_comment.d.ts +0 -28
  90. package/api-type/src/models/reported_event.d.ts +0 -28
  91. package/api-type/src/models/reported_message.d.ts +0 -28
  92. package/api-type/src/models/reported_player.d.ts +0 -28
  93. package/api-type/src/models/role.d.ts +0 -44
  94. package/api-type/src/models/rsvp.d.ts +0 -47
  95. package/api-type/src/models/schedule_event.d.ts +0 -59
  96. package/api-type/src/models/season.d.ts +0 -48
  97. package/api-type/src/models/season_league_template.d.ts +0 -126
  98. package/api-type/src/models/setting.d.ts +0 -24
  99. package/api-type/src/models/signed_member_waivers.d.ts +0 -59
  100. package/api-type/src/models/stripe_balance.d.ts +0 -59
  101. package/api-type/src/models/stripe_transaction.d.ts +0 -65
  102. package/api-type/src/models/stripe_transfer.d.ts +0 -59
  103. package/api-type/src/models/stripe_webhook.d.ts +0 -26
  104. package/api-type/src/models/support.d.ts +0 -39
  105. package/api-type/src/models/team.d.ts +0 -97
  106. package/api-type/src/models/team_league_season_roster.d.ts +0 -42
  107. package/api-type/src/models/team_members.d.ts +0 -43
  108. package/api-type/src/models/team_message.d.ts +0 -33
  109. package/api-type/src/models/team_roster.d.ts +0 -71
  110. package/api-type/src/models/transaction.d.ts +0 -155
  111. package/api-type/src/models/transaction_event.d.ts +0 -49
  112. package/api-type/src/models/utils/chat.d.ts +0 -6
  113. package/api-type/src/models/utils/league.d.ts +0 -2
  114. package/api-type/src/models/utils/organization.d.ts +0 -1
  115. package/api-type/src/models/utils/team.d.ts +0 -2
  116. package/dist/src/index.js.map +0 -1
  117. package/dist/src/provider.js.map +0 -1
  118. package/dist/src/query.js.map +0 -1
  119. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  120. /package/dist/{src/index.js → index.js} +0 -0
  121. /package/dist/{src/provider.d.ts → provider.d.ts} +0 -0
  122. /package/dist/{src/provider.js → provider.js} +0 -0
  123. /package/dist/{src/query.d.ts → query.d.ts} +0 -0
  124. /package/dist/{src/query.js → query.js} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,YAAY;IACZ,UAAU;IACV,qBAAqB;CACtB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAqB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EACL,eAAe,EACf,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnD,MAAM,CAAC,MAAM,kBAAk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CAAC;AAClB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "bantr-api-client",
3
- "version": "11.0.2",
3
+ "version": "11.0.3",
4
4
  "description": "SDK for Bantr API integration using tRPC and react-query",
5
- "main": "dist/src/index.js",
6
- "types": "dist/src/index.d.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
package/tsconfig.json CHANGED
@@ -6,6 +6,7 @@
6
6
  "jsx": "react-jsx",
7
7
  "moduleResolution": "node",
8
8
  "baseUrl": "./",
9
+ "rootDir": "./src",
9
10
  "paths": {
10
11
  "*": ["node_modules/*"]
11
12
  },
@@ -17,5 +18,5 @@
17
18
  "skipLibCheck": true
18
19
  },
19
20
  "include": ["src/**/*"],
20
- "exclude": ["node_modules", "dist"]
21
+ "exclude": ["node_modules", "dist", "api-type"]
21
22
  }
@@ -1,7 +0,0 @@
1
- import { RelationMappings } from 'objection';
2
- import { GameStatModel } from './game_stat_model';
3
- export declare class Assists extends GameStatModel {
4
- static tableName: string;
5
- static get relationMappings(): RelationMappings;
6
- }
7
- export default Assists;
@@ -1,45 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { LeagueType } from '../types/league';
3
- declare const BaseLeague_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
4
- export declare class BaseLeague extends BaseLeague_base {
5
- id: number;
6
- name: string;
7
- creatorId: number;
8
- organizationId: number;
9
- orgWorkspaceId: number | null;
10
- createdAt: Date | string;
11
- updatedAt: Date | string;
12
- deletedAt: Date | null;
13
- leagueType: LeagueType | string;
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
- name: {
24
- type: string;
25
- minLength: number;
26
- maxLength: number;
27
- };
28
- creatorId: {
29
- type: string;
30
- };
31
- organizationId: {
32
- type: string;
33
- };
34
- orgWorkspaceId: {
35
- type: string[];
36
- };
37
- leagueType: {
38
- type: string;
39
- enum: LeagueType[];
40
- default: LeagueType;
41
- };
42
- };
43
- };
44
- }
45
- export {};
@@ -1,27 +0,0 @@
1
- import { Model } from 'objection';
2
- declare const Block_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
3
- export declare class Block extends Block_base {
4
- id: number;
5
- blockerId: number;
6
- blockedUserId: number;
7
- createdAt: Date | string;
8
- updatedAt: Date | string;
9
- deletedAt: Date | null;
10
- static tableName: string;
11
- static jsonSchema: {
12
- type: string;
13
- required: string[];
14
- properties: {
15
- id: {
16
- type: string;
17
- };
18
- blockerId: {
19
- type: string;
20
- };
21
- blockedUserId: {
22
- type: string;
23
- };
24
- };
25
- };
26
- }
27
- export default Block;
@@ -1,37 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- import { ChatType } from './utils/chat';
4
- export declare class Chat extends Model {
5
- static tableName: string;
6
- id: number;
7
- creatorId: number;
8
- chatType: ChatType;
9
- createdAt: Date | string;
10
- updatedAt: Date | string;
11
- members?: Member[];
12
- static get relationMappings(): RelationMappings;
13
- static jsonSchema: {
14
- type: string;
15
- required: string[];
16
- properties: {
17
- id: {
18
- type: string;
19
- };
20
- creatorId: {
21
- type: string;
22
- };
23
- chatType: {
24
- type: string;
25
- enum: ChatType[];
26
- minLength: number;
27
- maxLength: number;
28
- };
29
- createdAt: {
30
- type: string;
31
- };
32
- updatedAt: {
33
- type: string;
34
- };
35
- };
36
- };
37
- }
@@ -1,36 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- import { Chat } from './chat';
4
- export declare class ChatMember extends Model {
5
- static tableName: string;
6
- id: number;
7
- chatId: number;
8
- memberId: number;
9
- createdAt: Date | string;
10
- updatedAt: Date | string;
11
- member?: Member;
12
- chat?: Chat;
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
- chatId: {
25
- type: string;
26
- };
27
- createdAt: {
28
- type: string;
29
- };
30
- updatedAt: {
31
- type: string;
32
- };
33
- };
34
- };
35
- $afterInsert(): Promise<void>;
36
- }
@@ -1,38 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- export declare const enum TargetTypes {
3
- post = "post",
4
- comment = "comment",
5
- direct_message = "direct_message",
6
- team_message = "team_message"
7
- }
8
- export declare class Clap extends Model {
9
- id: number;
10
- memberId: number;
11
- targetType: string;
12
- targetId: number;
13
- createdAt?: Date;
14
- updatedAt?: Date;
15
- static tableName: string;
16
- static get relationMappings(): RelationMappings;
17
- static get idColumn(): string;
18
- static jsonSchema: {
19
- type: string;
20
- required: string[];
21
- properties: {
22
- id: {
23
- type: string;
24
- };
25
- memberId: {
26
- type: string;
27
- };
28
- targetType: {
29
- type: string;
30
- enum: TargetTypes[];
31
- };
32
- targetId: {
33
- type: string;
34
- };
35
- };
36
- };
37
- }
38
- export default Clap;
@@ -1,46 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { Member } from './member';
3
- export declare const enum TargetTypes {
4
- post = "post",
5
- event = "event",
6
- league_event = "league_event",
7
- pickup = "pickup"
8
- }
9
- export declare class Comment extends Model {
10
- id: number;
11
- content: string;
12
- memberId: number;
13
- targetType: string;
14
- targetId: number;
15
- createdAt?: Date;
16
- updatedAt?: Date;
17
- members?: Member;
18
- static tableName: string;
19
- static get relationMappings(): RelationMappings;
20
- static get idColumn(): string;
21
- static jsonSchema: {
22
- type: string;
23
- required: string[];
24
- properties: {
25
- id: {
26
- type: string;
27
- };
28
- content: {
29
- type: string;
30
- minLength: number;
31
- maxLength: number;
32
- };
33
- memberId: {
34
- type: string;
35
- };
36
- targetType: {
37
- type: string;
38
- enum: TargetTypes[];
39
- };
40
- targetId: {
41
- type: string;
42
- };
43
- };
44
- };
45
- }
46
- export default Comment;
@@ -1,64 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare class DemoLeads extends Model {
3
- id: number;
4
- organizationName: string;
5
- fullName: string;
6
- email: string;
7
- state: string;
8
- country: string;
9
- phoneNumber: string;
10
- numOfTeams: number;
11
- numOfPlayers: number;
12
- notes: string | null;
13
- static tableName: string;
14
- static get idColumn(): string;
15
- static jsonSchema: {
16
- type: string;
17
- required: string[];
18
- properties: {
19
- id: {
20
- type: string;
21
- };
22
- organizationName: {
23
- type: string;
24
- minLength: number;
25
- maxLength: number;
26
- };
27
- fullName: {
28
- type: string;
29
- minLength: number;
30
- maxLength: number;
31
- };
32
- email: {
33
- type: string;
34
- minLength: number;
35
- maxLength: number;
36
- };
37
- state: {
38
- type: string;
39
- minLength: number;
40
- maxLength: number;
41
- };
42
- country: {
43
- type: string;
44
- minLength: number;
45
- maxLength: number;
46
- };
47
- phoneNumber: {
48
- type: string;
49
- minLength: number;
50
- maxLength: number;
51
- };
52
- numOfTeams: {
53
- type: string;
54
- };
55
- numOfPlayers: {
56
- type: string;
57
- };
58
- notes: {
59
- type: string[];
60
- maxLength: number;
61
- };
62
- };
63
- };
64
- }
@@ -1,34 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- export declare class DirectMessage extends Model {
3
- id: number;
4
- senderId: number;
5
- receiverId: number;
6
- content: string;
7
- createdAt?: Date;
8
- updatedAt?: Date;
9
- readAt?: Date;
10
- static tableName: string;
11
- static get relationMappings(): RelationMappings;
12
- static get idColumn(): string;
13
- static jsonSchema: {
14
- type: string;
15
- required: string[];
16
- properties: {
17
- id: {
18
- type: string;
19
- };
20
- senderId: {
21
- type: string;
22
- };
23
- receiverId: {
24
- type: string;
25
- };
26
- content: {
27
- type: string;
28
- minLength: number;
29
- maxLength: number;
30
- };
31
- };
32
- };
33
- }
34
- export default DirectMessage;
@@ -1,42 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { DynamicStage } from './dynamic_stage';
3
- import { LeagueSchedule } from './league_schedule';
4
- import { LeagueGroupTeam } from './league_group_teams';
5
- import { LeagueStanding } from './league_standing';
6
- declare const DynamicGroup_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
7
- export declare class DynamicGroup extends DynamicGroup_base {
8
- id: number;
9
- name: string;
10
- dynamicStageId: number;
11
- createdAt?: Date | string;
12
- updatedAt?: Date | string;
13
- deletedAt?: Date | null;
14
- groupTeams?: LeagueGroupTeam[];
15
- stage?: DynamicStage;
16
- leagueStandings?: LeagueStanding[];
17
- leagueSchedules?: LeagueSchedule[];
18
- isPublished?: boolean;
19
- stageName?: string;
20
- static tableName: string;
21
- static get modifiers(): Record<string, (builder: any) => void>;
22
- static get relationMappings(): RelationMappings;
23
- static jsonSchema: {
24
- type: string;
25
- required: string[];
26
- properties: {
27
- id: {
28
- type: string;
29
- };
30
- name: {
31
- type: string;
32
- minLength: number;
33
- maxLength: number;
34
- };
35
- dynamicStageId: {
36
- type: string;
37
- };
38
- };
39
- };
40
- hasVacancy(): Promise<boolean>;
41
- }
42
- export {};
@@ -1,120 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { DayOfWeek, Gender } from '../types/league';
3
- import { Organizer } from './organizer';
4
- import { DynamicStageTemplate } from './dynamic_stage_template';
5
- declare const DynamicSeasonLeagueTemplate_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
6
- export declare class DynamicSeasonLeagueTemplate extends DynamicSeasonLeagueTemplate_base {
7
- id: number;
8
- name: string;
9
- organizationId: number;
10
- orgWorkspaceId: number | null;
11
- creatorId: number;
12
- seasonId: number | null;
13
- baseLeagueId: number | null;
14
- format: string;
15
- gender: Gender;
16
- startDate: string | Date;
17
- skillLevel: number;
18
- price: number;
19
- deposit: number | null;
20
- heroImage: string | null;
21
- paymentLink: string | null;
22
- description: string | null;
23
- dayOfWeek: DayOfWeek | null | string;
24
- completedAt: Date | null;
25
- startTimes: string[] | null;
26
- locations?: string[] | null;
27
- coordinatorId: number | null;
28
- coordinator?: Organizer;
29
- createdAt?: Date | string;
30
- updatedAt?: Date | string;
31
- deletedAt?: Date | null;
32
- stageTemplates?: DynamicStageTemplate;
33
- static tableName: string;
34
- static get relationMappings(): RelationMappings;
35
- static jsonSchema: {
36
- type: string;
37
- required: string[];
38
- properties: {
39
- id: {
40
- type: string;
41
- };
42
- name: {
43
- type: string;
44
- minLength: number;
45
- maxLength: number;
46
- };
47
- format: {
48
- type: string[];
49
- minLength: number;
50
- maxLength: number;
51
- };
52
- gender: {
53
- type: string[];
54
- enum: (Gender | null)[];
55
- minLength: number;
56
- maxLength: number;
57
- };
58
- startDate: {
59
- type: string[];
60
- };
61
- completedAt: {
62
- type: string[];
63
- };
64
- skillLevel: {
65
- type: string[];
66
- };
67
- price: {
68
- type: string[];
69
- };
70
- deposit: {
71
- type: string[];
72
- };
73
- heroImage: {
74
- type: string[];
75
- };
76
- paymentLink: {
77
- type: string[];
78
- };
79
- description: {
80
- type: string[];
81
- minLength: number;
82
- maxLength: number;
83
- };
84
- dayOfWeek: {
85
- type: string[];
86
- enum: (DayOfWeek | null)[];
87
- minLength: number;
88
- maxLength: number;
89
- };
90
- creatorId: {
91
- type: string;
92
- };
93
- organizationId: {
94
- type: string;
95
- };
96
- orgWorkspaceId: {
97
- type: string[];
98
- };
99
- baseLeagueId: {
100
- type: string[];
101
- };
102
- seasonId: {
103
- type: string[];
104
- };
105
- startTimes: {
106
- type: string[];
107
- items: {
108
- type: string[];
109
- };
110
- };
111
- locations: {
112
- type: string[];
113
- items: {
114
- type: string[];
115
- };
116
- };
117
- };
118
- };
119
- }
120
- export {};
@@ -1,52 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- import { DynamicGroup } from './dynamic_group';
3
- import { LeagueSchedule } from './league_schedule';
4
- declare const DynamicStage_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
5
- export declare class DynamicStage extends DynamicStage_base {
6
- id: number;
7
- leagueId: number;
8
- name: string;
9
- groupLimit: number;
10
- teamsPerGroup: number;
11
- minGamesPerTeam: number;
12
- orderNum: number;
13
- createdAt?: Date | string;
14
- updatedAt?: Date | string;
15
- deletedAt?: Date | null;
16
- groups?: DynamicGroup[];
17
- leagueSchedules?: LeagueSchedule[];
18
- static tableName: string;
19
- static get modifiers(): Record<string, (builder: any) => void>;
20
- static get relationMappings(): RelationMappings;
21
- static jsonSchema: {
22
- type: string;
23
- required: string[];
24
- properties: {
25
- id: {
26
- type: string;
27
- };
28
- leagueId: {
29
- type: string;
30
- };
31
- name: {
32
- type: string;
33
- minLength: number;
34
- maxLength: number;
35
- };
36
- groupLimit: {
37
- type: string;
38
- };
39
- teamsPerGroup: {
40
- type: string;
41
- };
42
- minGamesPerTeam: {
43
- type: string;
44
- };
45
- orderNum: {
46
- type: string;
47
- minimum: number;
48
- };
49
- };
50
- };
51
- }
52
- export {};
@@ -1,50 +0,0 @@
1
- import { Model, RelationMappings } from 'objection';
2
- declare const DynamicStageTemplate_base: Omit<typeof Model, "new"> & import("objection-js-soft-delete").SoftDeleteStatic<typeof Model>;
3
- export declare class DynamicStageTemplate extends DynamicStageTemplate_base {
4
- id: number;
5
- name: string;
6
- groupLimit: number;
7
- teamsPerGroup: number;
8
- minGamesPerTeam: number;
9
- dynamicSeasonLeagueTemplateId: number;
10
- orderNum: number;
11
- createdAt?: Date | string;
12
- updatedAt?: 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
- name: {
24
- type: string;
25
- minLength: number;
26
- maxLength: number;
27
- };
28
- groupLimit: {
29
- type: string;
30
- default: number;
31
- };
32
- teamsPerGroup: {
33
- type: string;
34
- default: number;
35
- };
36
- minGamesPerTeam: {
37
- type: string;
38
- default: number;
39
- };
40
- dynamicSeasonLeagueTemplateId: {
41
- type: string;
42
- };
43
- orderNum: {
44
- type: string;
45
- minimum: number;
46
- };
47
- };
48
- };
49
- }
50
- export {};
@@ -1,31 +0,0 @@
1
- import { Model } from 'objection';
2
- export declare class Emoji extends Model {
3
- id: number;
4
- name: string;
5
- url: string;
6
- isActive: boolean;
7
- updatedAt: Date | string;
8
- createdAt: Date | string;
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
- url: {
22
- type: string;
23
- };
24
- isActive: {
25
- type: string;
26
- default: boolean;
27
- };
28
- };
29
- };
30
- }
31
- export default Emoji;