be-components 1.4.9 → 1.5.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 (197) hide show
  1. package/lib/commonjs/Competition/api/index.js +15 -0
  2. package/lib/commonjs/Competition/api/index.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +1 -1
  4. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
  5. package/lib/commonjs/Competition/components/SeasonCard.js +61 -0
  6. package/lib/commonjs/Competition/components/SeasonCard.js.map +1 -0
  7. package/lib/commonjs/Competition/index.js +23 -3
  8. package/lib/commonjs/Competition/index.js.map +1 -1
  9. package/lib/commonjs/CompetitionManager/api/index.js +3 -5
  10. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  11. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +1 -61
  12. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  13. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  14. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  15. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +4 -0
  16. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  17. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  18. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  19. package/lib/commonjs/CompetitionSeason/api/index.js +134 -0
  20. package/lib/commonjs/CompetitionSeason/api/index.js.map +1 -0
  21. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js +127 -0
  22. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  23. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js +253 -0
  24. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  25. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js +126 -0
  26. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  27. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js +324 -0
  28. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  29. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js +175 -0
  30. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  31. package/lib/commonjs/CompetitionSeason/index.js +278 -0
  32. package/lib/commonjs/CompetitionSeason/index.js.map +1 -0
  33. package/lib/commonjs/CompetitionSeasonManager/api/index.js +182 -0
  34. package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -0
  35. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  36. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  37. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +153 -0
  38. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  39. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js +388 -0
  40. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  41. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js +108 -0
  42. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  43. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js +242 -0
  44. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  45. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js +352 -0
  46. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  47. package/lib/commonjs/CompetitionSeasonManager/index.js +190 -0
  48. package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -0
  49. package/lib/commonjs/Components/Switch.js +3 -0
  50. package/lib/commonjs/Components/Switch.js.map +1 -1
  51. package/lib/commonjs/Engage/index.js.map +1 -1
  52. package/lib/commonjs/index.js +14 -0
  53. package/lib/commonjs/index.js.map +1 -1
  54. package/lib/module/Competition/api/index.js +15 -0
  55. package/lib/module/Competition/api/index.js.map +1 -1
  56. package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
  57. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
  58. package/lib/module/Competition/components/SeasonCard.js +54 -0
  59. package/lib/module/Competition/components/SeasonCard.js.map +1 -0
  60. package/lib/module/Competition/index.js +23 -3
  61. package/lib/module/Competition/index.js.map +1 -1
  62. package/lib/module/CompetitionManager/api/index.js +3 -5
  63. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  64. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
  65. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  66. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  67. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  68. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
  69. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  70. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  71. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  72. package/lib/module/CompetitionSeason/api/index.js +128 -0
  73. package/lib/module/CompetitionSeason/api/index.js.map +1 -0
  74. package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
  75. package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  76. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
  77. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  78. package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
  79. package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  80. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
  81. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  82. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
  83. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  84. package/lib/module/CompetitionSeason/index.js +269 -0
  85. package/lib/module/CompetitionSeason/index.js.map +1 -0
  86. package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
  87. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
  88. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  89. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  90. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
  91. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  92. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
  93. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  94. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
  95. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  96. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
  97. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  98. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
  99. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  100. package/lib/module/CompetitionSeasonManager/index.js +181 -0
  101. package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
  102. package/lib/module/Components/Switch.js +3 -0
  103. package/lib/module/Components/Switch.js.map +1 -1
  104. package/lib/module/Engage/index.js.map +1 -1
  105. package/lib/module/index.js +3 -1
  106. package/lib/module/index.js.map +1 -1
  107. package/lib/typescript/src/Competition/api/index.d.ts +1 -0
  108. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
  109. package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
  110. package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
  111. package/lib/typescript/src/Competition/index.d.ts +3 -2
  112. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  113. package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
  114. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  115. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  116. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  117. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  118. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
  119. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
  120. package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
  121. package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
  122. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
  123. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
  124. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
  125. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
  126. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
  127. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
  128. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
  129. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
  130. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
  131. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
  132. package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
  133. package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
  134. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
  135. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
  136. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
  137. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
  138. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
  139. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
  140. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
  141. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
  142. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
  143. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
  144. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
  145. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
  146. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
  147. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
  148. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
  149. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
  150. package/lib/typescript/src/Components/Switch.d.ts +2 -1
  151. package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
  152. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  153. package/lib/typescript/src/index.d.ts +3 -1
  154. package/lib/typescript/src/index.d.ts.map +1 -1
  155. package/package.json +1 -1
  156. package/src/Competition/api/index.ts +15 -0
  157. package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
  158. package/src/Competition/components/SeasonCard.tsx +46 -0
  159. package/src/Competition/index.tsx +45 -27
  160. package/src/CompetitionManager/api/index.ts +2 -5
  161. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
  162. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
  163. package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
  164. package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
  165. package/src/CompetitionSeason/api/index.ts +111 -0
  166. package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
  167. package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
  168. package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
  169. package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
  170. package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
  171. package/src/CompetitionSeason/index.tsx +244 -0
  172. package/src/CompetitionSeasonManager/api/index.ts +127 -0
  173. package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
  174. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
  175. package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
  176. package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
  177. package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
  178. package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
  179. package/src/CompetitionSeasonManager/index.tsx +151 -0
  180. package/src/Components/Switch.tsx +8 -3
  181. package/src/Engage/index.tsx +1 -0
  182. package/src/index.tsx +4 -1
  183. package/src/types.d.ts +48 -5
  184. package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
  185. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
  186. package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
  187. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
  188. package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
  189. package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
  190. package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
  191. package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
  192. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
  193. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
  194. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
  195. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
  196. package/src/Competition/components/ManageSeasonForm.tsx +0 -271
  197. package/src/Competition/components/SeasonInfoModal.tsx +0 -212
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/SeasonLeaderboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAM7K,KAAK,sBAAsB,GAAG;IAC1B,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAC,aAAa,CAAC;IACpC,2BAA2B,CAAC,EAAC,4BAA4B,CAAC;IAC1D,2BAA2B,CAAC,EAAC,4BAA4B,CAAC;IAC1D,KAAK,EAAC,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,GAAC,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAC,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,iBAAiB,2LAA2L,sBAAsB,sBAoLvO,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionPayoutTypeProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from "../../types";
3
+ type SeasonSettingsSectionProps = {
4
+ width: number;
5
+ competition_season: CompetitionSeasonProps;
6
+ competition_type: CompetitionTypeProps;
7
+ competition_result_type: CompetitionResultTypeProps;
8
+ competition_payouts: CompetitionPayoutTypeProps[];
9
+ };
10
+ declare const SeasonSettingsSection: ({ width, competition_season, competition_type, competition_result_type, competition_payouts }: SeasonSettingsSectionProps) => React.JSX.Element;
11
+ export default SeasonSettingsSection;
12
+ //# sourceMappingURL=SeasonSettingsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonSettingsSection.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeason/components/SeasonSettingsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMvI,KAAK,0BAA0B,GAAG;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,uBAAuB,EAAC,0BAA0B,CAAC;IACnD,mBAAmB,EAAC,0BAA0B,EAAE,CAAA;CACnD,CAAA;AAED,QAAA,MAAM,qBAAqB,kGAAkG,0BAA0B,sBAwEtJ,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionProps, CompetitionSeasonProps } from '../types';
3
+ type SeasonModuleProps = {
4
+ competition_season_id: string;
5
+ onShareSeason: (competition_season: CompetitionSeasonProps) => void;
6
+ player_id?: string;
7
+ onRequestAuthenticate: (auth_strategy_id?: string) => void;
8
+ onCompetitionSelect: (c: CompetitionProps) => void;
9
+ };
10
+ declare const SeasonModule: ({ competition_season_id, player_id, onShareSeason, onRequestAuthenticate, onCompetitionSelect }: SeasonModuleProps) => React.JSX.Element;
11
+ export default SeasonModule;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionSeason/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAA4C,gBAAgB,EAA4D,sBAAsB,EAA4G,MAAM,UAAU,CAAC;AASvR,KAAK,iBAAiB,GAAG;IACrB,qBAAqB,EAAC,MAAM,CAAC;IAC7B,aAAa,EAAE,CAAC,kBAAkB,EAAC,sBAAsB,KAAK,IAAI,CAAC;IACnE,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,qBAAqB,EAAE,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC1D,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,YAAY,oGAAoG,iBAAiB,sBA8NtI,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { CompanyProps, CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, MyPlayerProps } from "../../types";
2
+ import type { CompanyMemberProps } from "../../Authenticator/api/types";
3
+ export { ManageSeasonApi, ManageSeasonHelpers };
4
+ declare const ManageSeasonApi: {
5
+ setEnvironment: () => void;
6
+ getCompetitionOptions: () => Promise<{
7
+ competition_types: CompetitionTypeProps[];
8
+ competition_result_types: CompetitionResultTypeProps[];
9
+ competition_payout_types: CompetitionPayoutTypeProps[];
10
+ }>;
11
+ getSeasonTemplates: () => Promise<CompetitionSeasonProps[]>;
12
+ getMyDetails: () => Promise<MyPlayerProps>;
13
+ getMyCompanies: () => Promise<{
14
+ companies: CompanyProps[];
15
+ company_members: CompanyMemberProps[];
16
+ }>;
17
+ activateSeason: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
18
+ deleteSeason: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
19
+ getSeasonById: (competition_season_id: string) => Promise<CompetitionSeasonProps>;
20
+ getCompetitionsBySeasonId: (competition_season_id: string) => Promise<CompetitionProps[]>;
21
+ createSeason: (competition_season: CompetitionSeasonProps) => Promise<CompetitionSeasonProps>;
22
+ updateSeason: (competition_season: CompetitionSeasonProps) => Promise<CompetitionSeasonProps>;
23
+ };
24
+ declare const ManageSeasonHelpers: {
25
+ getPendingSeason: () => CompetitionSeasonProps;
26
+ isSeasonValid: (cs: CompetitionSeasonProps) => string[];
27
+ isInfoChanged: (cs: CompetitionSeasonProps, ds: CompetitionSeasonProps) => boolean;
28
+ isSettingsChanged: (cs: CompetitionSeasonProps, ds: CompetitionSeasonProps) => boolean;
29
+ isSettingsValid: (ds: CompetitionSeasonProps) => boolean;
30
+ };
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACvL,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAA;AAE/C,QAAA,MAAM,eAAe;;iCAQc,QAAQ;QAAC,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;QAAC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;QAAC,wBAAwB,EAAC,0BAA0B,EAAE,CAAA;KAAC,CAAC;8BAIpK,QAAQ,sBAAsB,EAAE,CAAC;wBAIvC,QAAQ,aAAa,CAAC;0BAInB,QAAQ;QAAC,SAAS,EAAC,YAAY,EAAE,CAAC;QAAC,eAAe,EAAC,kBAAkB,EAAE,CAAA;KAAC,CAAC;4CAKtD,MAAM,KAAE,QAAQ,sBAAsB,CAAC;0CAIzC,MAAM,KAAE,QAAQ,sBAAsB,CAAC;2CAItC,MAAM,KAAE,QAAQ,sBAAsB,CAAC;uDAI3B,MAAM,KAAE,QAAQ,gBAAgB,EAAE,CAAC;uCAInD,sBAAsB,KAAE,QAAQ,sBAAsB,CAAC;uCAKvD,sBAAsB,KAAE,QAAQ,sBAAsB,CAAC;CAIjG,CAAA;AAGD,QAAA,MAAM,mBAAmB;4BACA,sBAAsB;wBA6BxB,sBAAsB,KAAE,MAAM,EAAE;wBAMhC,sBAAsB,MAAK,sBAAsB;4BAK7C,sBAAsB,MAAK,sBAAsB;0BAKnD,sBAAsB;CAY9C,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=CompetitionSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompetitionSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/CompetitionSelector.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from '../../types';
3
+ type CompetitionsFormProps = {
4
+ competition_season: CompetitionSeasonProps;
5
+ competitions: CompetitionProps[];
6
+ competition_types: CompetitionTypeProps[];
7
+ competition_result_types: CompetitionResultTypeProps[];
8
+ onAddCompetition: () => void;
9
+ };
10
+ declare const CompetitionsForm: ({ competition_season, competitions, competition_result_types, competition_types, onAddCompetition }: CompetitionsFormProps) => React.JSX.Element;
11
+ export default CompetitionsForm;
12
+ //# sourceMappingURL=CompetitionsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompetitionsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/CompetitionsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAM9H,KAAK,qBAAqB,GAAG;IACzB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,YAAY,EAAC,gBAAgB,EAAE,CAAC;IAChC,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,gBAAgB,EAAC,MAAM,IAAI,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,gBAAgB,wGAAwG,qBAAqB,sBA6FlJ,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps } from '../../types';
3
+ type CreateSeasonFormProps = {
4
+ width: number;
5
+ max_height?: number;
6
+ onCreateSeason: (cs: CompetitionSeasonProps) => void;
7
+ onClose: () => void;
8
+ };
9
+ declare const CreateSeasonForm: ({ width, max_height, onCreateSeason, onClose }: CreateSeasonFormProps) => React.JSX.Element;
10
+ export default CreateSeasonForm;
11
+ //# sourceMappingURL=CreateSeasonForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSeasonForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/CreateSeasonForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAgB,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAIxE,KAAK,qBAAqB,GAAG;IACzB,KAAK,EAAC,MAAM,CAAC;IACb,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,cAAc,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,gBAAgB,mDAAmD,qBAAqB,sBA4N7F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps } from '../../types';
3
+ type CompetitionHeaderProps = {
4
+ width: number;
5
+ action_loading: boolean;
6
+ competition_season: CompetitionSeasonProps;
7
+ season_valid: boolean;
8
+ onDelete: () => void;
9
+ onActivate: () => void;
10
+ };
11
+ declare const SeasonHeader: ({ width, action_loading, competition_season, season_valid, onDelete, onActivate }: CompetitionHeaderProps) => React.JSX.Element;
12
+ export default SeasonHeader;
13
+ //# sourceMappingURL=SeasonHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonHeader.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/SeasonHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAK1D,KAAK,sBAAsB,GAAG;IAC1B,KAAK,EAAC,MAAM,CAAC;IACb,cAAc,EAAC,OAAO,CAAC;IACvB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,YAAY,EAAC,OAAO,CAAC;IACrB,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAED,QAAA,MAAM,YAAY,sFAAsF,sBAAsB,sBAwD7H,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { CompetitionSeasonProps, MyPlayerProps } from '../../types';
3
+ type SeasonInfoFormProps = {
4
+ width: number;
5
+ player?: MyPlayerProps;
6
+ competition_season: CompetitionSeasonProps;
7
+ onSeasonUpdate: (cs: CompetitionSeasonProps) => void;
8
+ };
9
+ declare const SeasonInfoForm: ({ competition_season, player, width, onSeasonUpdate }: SeasonInfoFormProps) => React.JSX.Element;
10
+ export default SeasonInfoForm;
11
+ //# sourceMappingURL=SeasonInfoForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonInfoForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/SeasonInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGzE,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAC,MAAM,CAAC;IACb,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,cAAc,EAAE,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,QAAA,MAAM,cAAc,0DAA0D,mBAAmB,sBAyGhG,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from '../../types';
3
+ type SeasonSettingsFormProps = {
4
+ width: number;
5
+ competition_season: CompetitionSeasonProps;
6
+ competition_types: CompetitionTypeProps[];
7
+ competition_result_types: CompetitionResultTypeProps[];
8
+ onSeasonUpdate: (cs: CompetitionSeasonProps) => void;
9
+ };
10
+ declare const SeasonSettingsForm: ({ competition_season, width, competition_types, competition_result_types, onSeasonUpdate }: SeasonSettingsFormProps) => React.JSX.Element;
11
+ export default SeasonSettingsForm;
12
+ //# sourceMappingURL=SeasonSettingsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI5G,KAAK,uBAAuB,GAAG;IAC3B,KAAK,EAAC,MAAM,CAAC;IACb,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,cAAc,EAAE,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,QAAA,MAAM,kBAAkB,+FAA+F,uBAAuB,sBAqK7I,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type SeasonManagerProps = {
3
+ competition_season_id: string;
4
+ player_id?: string;
5
+ };
6
+ declare const SeasonManager: ({ competition_season_id }: SeasonManagerProps) => React.JSX.Element;
7
+ export default SeasonManager;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionSeasonManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,KAAK,kBAAkB,GAAG;IACtB,qBAAqB,EAAC,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAC,MAAM,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,aAAa,8BAA8B,kBAAkB,sBAoIlE,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  type SwitchProps = {
3
3
  value: boolean;
4
4
  switch_type: 'binary' | 'on_off';
5
+ disabled?: boolean;
5
6
  onChange: (value: boolean) => void;
6
7
  };
7
- declare const Switch: ({ value, switch_type, onChange }: SwitchProps) => React.JSX.Element;
8
+ declare const Switch: ({ value, disabled, switch_type, onChange }: SwitchProps) => React.JSX.Element;
8
9
  export default Switch;
9
10
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/Components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,QAAQ,EAAC,CAAC,KAAK,EAAC,OAAO,KAAK,IAAI,CAAA;CACnC,CAAA;AACD,QAAA,MAAM,MAAM,qCAAqC,WAAW,sBAyC3D,CAAA;AAGD,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/Components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,QAAQ,EAAC,CAAC,KAAK,EAAC,OAAO,KAAK,IAAI,CAAA;CACnC,CAAA;AACD,QAAA,MAAM,MAAM,+CAA+C,WAAW,sBA6CrE,CAAA;AAGD,eAAe,MAAM,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Engage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,uBAAuB,EAA0D,gBAAgB,EAAgG,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAYzP,KAAK,iBAAiB,GAAG;IACrB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAC;IACjD,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAC;IAChE,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAA;CAClE,CAAA;AAED,QAAA,MAAM,YAAY,oFAAoF,iBAAiB,sBAoQtH,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Engage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,uBAAuB,EAA0D,gBAAgB,EAAgG,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAYzP,KAAK,iBAAiB,GAAG;IACrB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAC;IACjD,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAC;IAChE,0BAA0B,EAAC,CAAC,EAAE,EAAC,uBAAuB,KAAK,IAAI,CAAA;CAClE,CAAA;AAED,QAAA,MAAM,YAAY,oFAAoF,iBAAiB,sBAqQtH,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -22,5 +22,7 @@ import CompetitionManager from "./CompetitionManager";
22
22
  import CreateCompetitionForm from "./CompetitionManager/components/CreateCompetitionForm";
23
23
  import AdminCompetitionList from "./CompetitionManager/components/AdminCompetitionList";
24
24
  import EngageModule from "./Engage";
25
- export { Authenticator, Observer, BEEventApi, BELinkApi, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Checkout, PollCampaign, PollCampaignApi, PollApi, CompetitionModule, CreateCompetitionForm, AdminCompetitionList, AdServer, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule };
25
+ import SeasonManager from "./CompetitionSeasonManager";
26
+ import SeasonModule from "./CompetitionSeason";
27
+ export { Authenticator, Observer, BEEventApi, BELinkApi, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Checkout, PollCampaign, PollCampaignApi, PollApi, CompetitionModule, SeasonManager, CreateCompetitionForm, SeasonModule, AdminCompetitionList, AdServer, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule };
26
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAC9C,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,WAAW,MAAM,WAAW,CAAC;AACpC,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,aAAa,MAAM,WAAW,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,qBAAqB,MAAM,uDAAuD,CAAC;AAC1F,OAAO,oBAAoB,MAAM,sDAAsD,CAAC;AACxF,OAAO,YAAY,MAAM,UAAU,CAAC;AAGpC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACb,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAC9C,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,WAAW,MAAM,WAAW,CAAC;AACpC,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,aAAa,MAAM,WAAW,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,qBAAqB,MAAM,uDAAuD,CAAC;AAC1F,OAAO,oBAAoB,MAAM,sDAAsD,CAAC;AACxF,OAAO,YAAY,MAAM,UAAU,CAAC;AACpC,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACb,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-components",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "description": "Components for BettorEdge Apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -53,6 +53,10 @@ const CompetitionApi = {
53
53
  const resp = await axios.post(`${AUTH_SVC_API}/v1/players/bulk/get`, { player_ids })
54
54
  return resp.data.players
55
55
  },
56
+ getSeasonById: async(competition_season_id:string):Promise<CompetitionSeasonProps> => {
57
+ const resp = await axios.get(`${TP_SVC_API}/v2/competitions/seasons/season/${competition_season_id}`);
58
+ return resp.data.competition_season
59
+ },
56
60
  getLeagues: async():Promise<LeagueProps[]> => {
57
61
  const resp = await axios.get(`${EVENT_SVC_API}/v1/leagues?status=active`)
58
62
  return resp.data.leagues
@@ -223,6 +227,17 @@ const CompetitionHelpers = {
223
227
  return {
224
228
  competition_season_id:'',
225
229
  season_name:'',
230
+ ticket_price:0,
231
+ max_picks:0,
232
+ ticket_revenue: 0,
233
+ tickets_available:10,
234
+ tickets_sold: 0,
235
+ unallocated_funds: 0,
236
+ competition_type_id: '1',
237
+ expected_competition_count: 0,
238
+ initial_balance: 1000,
239
+ balance_rollover: false,
240
+ invite_only: true,
226
241
  season_description: '',
227
242
  image: { url: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1635988385/be_notify_icon_nqplfc.png' },
228
243
  payout_allocation:0,
@@ -31,7 +31,7 @@ const CompetitionSeasonCard = ({ competition_season, competition_result_type, on
31
31
  <View nativeID="comp_amounts" style={{ flexDirection:'row', padding:5 }}>
32
32
  <View style={{ flex:1, flexDirection:'row' }}>
33
33
  <View style={{ backgroundColor:comp_colors.backgroundColor, borderWidth:1, borderColor:comp_colors.borderColor, borderRadius:8, padding:5 }}>
34
- <Text size={10} color={comp_colors.borderColor} weight='semibold'>{competition_season.payout_allocation*100}%</Text>
34
+ <Text size={10} color={comp_colors.borderColor} weight='semibold'>{parseFloat(competition_season.payout_allocation as string) * 100}%</Text>
35
35
  </View>
36
36
  {competition_result_type ?
37
37
  <View style={{ marginLeft: 5, backgroundColor:comp_colors.backgroundColor, borderWidth:1, borderColor:comp_colors.borderColor, borderRadius:8, padding:5 }}>
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import { Image, View } from 'react-native';
3
+ import type { CompetitionPlayerProps, CompetitionSeasonProps } from "../../types"
4
+ import { Button, Text } from '../../Components';
5
+ import Colors from '../../constants/colors';
6
+ import moment from 'moment-mini';
7
+
8
+ type SeasonCardProps = {
9
+ competition_season:CompetitionSeasonProps,
10
+ authenticated_competition_player?:CompetitionPlayerProps,
11
+ onViewSeason: (competition_season:CompetitionSeasonProps) => void
12
+ }
13
+
14
+ const SeasonCard = ({ competition_season, authenticated_competition_player, onViewSeason }:SeasonCardProps) => {
15
+ const can_join = moment().isBefore(moment(competition_season.scheduled_datetime)) ? true : false
16
+ return (
17
+ <View style={{ flexDirection:'row', alignItems:'center', padding:10, backgroundColor:Colors.brand.mint }}>
18
+ <Image
19
+ source={{ uri:competition_season.image?.url }}
20
+ style={{ height:50, width:50, borderRadius:4 }}
21
+ resizeMode='cover'
22
+ />
23
+ <View style={{ flex:1, marginLeft:10 }}>
24
+ <Text theme='header'>Season</Text>
25
+ <Text style={{ marginTop:3 }} theme='header_2'>{competition_season.season_name}</Text>
26
+ </View>
27
+ {!authenticated_competition_player && can_join ?
28
+ <Button
29
+ title='JOIN'
30
+ backgroundColor={Colors.utility.success}
31
+ title_color={Colors.shades.white}
32
+ onPress={() => onViewSeason(competition_season)}
33
+ />
34
+ :
35
+ <Button
36
+ title='VIEW'
37
+ backgroundColor={Colors.brand.electric}
38
+ title_color={Colors.shades.white}
39
+ onPress={() => onViewSeason(competition_season)}
40
+ />
41
+ }
42
+ </View>
43
+ )
44
+ }
45
+
46
+ export default SeasonCard
@@ -14,6 +14,7 @@ import EnterCompetitionPrompt from './components/EnterCompetitionPrompt';
14
14
  import moment from 'moment-mini';
15
15
  import LeaderPicks from './components/LeaderPicks';
16
16
  import NavOutPrompt from './components/NavOutPrompt';
17
+ import SeasonCard from './components/SeasonCard';
17
18
 
18
19
  type CompetitionModuleProps = {
19
20
  player_id?:string,
@@ -22,10 +23,11 @@ type CompetitionModuleProps = {
22
23
  onEvent?:(event:BEEventProps) => void,
23
24
  onManageCompetition:(competition_id:string) => void,
24
25
  onRequestAuthentication:(auth_strategy_id?:string) => void,
25
- onShareCompetition:(competition:CompetitionProps) => void
26
+ onShareCompetition:(competition:CompetitionProps) => void,
27
+ onViewCompetitionSeason:(cs:CompetitionSeasonProps) => void
26
28
  }
27
29
 
28
- const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose }:CompetitionModuleProps) => {
30
+ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }:CompetitionModuleProps) => {
29
31
  const [ viewing_leader, setViewingLeader ] = useState<PublicPlayerProps|undefined>();
30
32
  const [ show_full_leaderboard, setShowFullLeaderboard ] = useState(false);
31
33
  const [ module_size, setModuleSize ] = useState({ width:0, height:0 });
@@ -111,6 +113,7 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
111
113
  leagues,
112
114
  markets,
113
115
  events,
116
+ competition_season,
114
117
  athletes,
115
118
  teams,
116
119
  tournaments,
@@ -198,10 +201,14 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
198
201
  if(athlete_ids.length > 0){ athletes = await CompetitionMatchApi.getAthletesByIds(athlete_ids) }
199
202
  if(team_ids.length > 0){ teams = await CompetitionMatchApi.getTeamsByIds(team_ids) }
200
203
  const cps = await CompetitionPlayerApi.getCompetitionPlayersByCompetition(competition_id, 0, 'active')
201
- const c = await CompetitionApi.getCompetitionById(competition_id)
204
+ const c = await CompetitionApi.getCompetitionById(competition_id);
205
+ let comp_season:CompetitionSeasonProps | undefined = undefined
206
+ if(c.competition_season_id){ comp_season = await CompetitionApi.getSeasonById(c.competition_season_id) }
207
+
202
208
  setCompetitionData({
203
209
  loaded:true,
204
210
  competition: c,
211
+ competition_season: comp_season,
205
212
  competition_matches: cms_response.competition_matches,
206
213
  competition_match_markets: cms_response.competition_match_markets,
207
214
  events,
@@ -341,7 +348,13 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
341
348
  <Icons.ShareIcon color={Colors.brand.midnight} size={14} />
342
349
  </TouchableOpacity>
343
350
  </View>
344
-
351
+ {competition_season ?
352
+ <SeasonCard
353
+ competition_season={competition_season}
354
+ authenticated_competition_player={authenticated_competition_player}
355
+ onViewSeason={(cs) => onViewCompetitionSeason(cs)}
356
+ />
357
+ :
345
358
  <View style={{ flexDirection:'row', padding:10, backgroundColor:Colors.shades.shade100 }}>
346
359
  <View style={{ flex:1 }}>
347
360
  <Text size={12} color={Colors.brand.midnight} weight='regular'>{competition.status == 'closed' ? 'COMPLETED' : in_progress ? 'IN PROGRESS' : 'JOIN UNTIL'}</Text>
@@ -351,30 +364,35 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
351
364
  <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='bold'>{moment(competition.scheduled_datetime).format('MMM DD hh:mm a')}</Text>
352
365
  }
353
366
  </View>
354
- {!authenticated_competition_player ?
355
- <Button
356
- style={{ flex:1, opacity: can_join ? 1: 0.5 }}
357
- disabled={!can_join}
358
- loading={loading}
359
- title={`JOIN`}
360
- title_color={Colors.shades.white}
361
- backgroundColor={Colors.utility.success}
362
- onPress={() => setShowEnterPrompt(true)}
363
- />
364
- : competition.status != 'closed' ?
365
- <Button
366
- style={{ flex:1, opacity: can_leave ? 1: 0.5 }}
367
- title='LEAVE'
368
- loading={loading}
369
- title_color={Colors.shades.white}
370
- backgroundColor={Colors.utility.error}
371
- onPress={() => {
372
- if(!can_leave){ return alert('Please remove all picks and try again') }
373
- handleLeaveCompetition()
374
- }}
375
- />
376
- :<></>}
367
+ {!authenticated_competition_player ?
368
+ <Button
369
+ style={{ flex:1, opacity: can_join ? 1: 0.5 }}
370
+ disabled={!can_join}
371
+ loading={loading}
372
+ title={`JOIN`}
373
+ title_color={Colors.shades.white}
374
+ backgroundColor={Colors.utility.success}
375
+ onPress={() => {
376
+ if(competition.competition_season_id){ return alert('Please select the season to join!') }
377
+ setShowEnterPrompt(true)
378
+ }}
379
+ />
380
+ : competition.status != 'closed' ?
381
+ <Button
382
+ style={{ flex:1, opacity: can_leave ? 1: 0.5 }}
383
+ title='LEAVE'
384
+ loading={loading}
385
+ title_color={Colors.shades.white}
386
+ backgroundColor={Colors.utility.error}
387
+ onPress={() => {
388
+ if(competition.competition_season_id){ return alert('You can only leave via the season') }
389
+ if(!can_leave){ return alert('Please remove all picks and try again') }
390
+ handleLeaveCompetition()
391
+ }}
392
+ />
393
+ :<></>}
377
394
  </View>
395
+ }
378
396
  </View>
379
397
  <CompetitionInfoCard
380
398
  competition={competition}
@@ -26,9 +26,7 @@ const ManageCompetitionApi = {
26
26
  return resp.data.players
27
27
  },
28
28
  getMyAdminCompetition:async(offset:number, status?:'active'|'closed'):Promise<CompetitionProps[]> => {
29
- console.log(status)
30
29
  const resp = await axios.get(`${TP_SVC_API}/v2/competitions/admin?offset=${offset}&status=${status}`)
31
- console.log(resp.data.competitions)
32
30
  return resp.data.competitions
33
31
  },
34
32
  getLeagues: async():Promise<LeagueProps[]> => {
@@ -95,11 +93,10 @@ const ManageCompetitionApi = {
95
93
  },
96
94
  getTemplateCompetitions: async():Promise<CompetitionProps[]> => {
97
95
  const resp = await axios.get(`${TP_SVC_API}/v2/competitions/templates`)
98
- console.log(resp.data)
99
96
  return resp.data.competitions
100
97
  },
101
- createCompetition: async(company_id?:string, sponsor_id?:string, competition_name?:string, template_competition_id?:string):Promise<CompetitionProps> => {
102
- const resp = await axios.post(`${TP_SVC_API}/v2/competitions/competition/create`, { company_id, sponsor_id, competition_name, template_competition_id })
98
+ createCompetition: async(company_id?:string, sponsor_id?:string, competition_name?:string, template_competition_id?:string, competition_season_id?:string):Promise<CompetitionProps> => {
99
+ const resp = await axios.post(`${TP_SVC_API}/v2/competitions/competition/create`, { company_id, sponsor_id, competition_name, template_competition_id, competition_season_id })
103
100
  return resp.data.competition
104
101
  },
105
102
  updateCompetition: async(competition:CompetitionProps):Promise<CompetitionProps> => {
@@ -105,6 +105,7 @@ const CompetitionInfoForm = ({ is_valid, player, competition, width, onCompetiti
105
105
  <Text style={{ marginTop:3 }} theme='body'>Only access this competition using an invite code.</Text>
106
106
  </View>
107
107
  <Switch
108
+ disabled={competition.competition_season_id ? true : false}
108
109
  value={competition.invite_only}
109
110
  switch_type="on_off"
110
111
  onChange={(value) => onCompetitionUpdate({ ...draft_competition, invite_only: value })}
@@ -117,6 +118,7 @@ const CompetitionInfoForm = ({ is_valid, player, competition, width, onCompetiti
117
118
  <Text style={{ marginTop:3 }} theme='body'>This will allow for other users to copy this competition and create it for themselves.</Text>
118
119
  </View>
119
120
  <Switch
121
+
120
122
  value={competition.template ? true : false}
121
123
  switch_type="on_off"
122
124
  onChange={(value) => onCompetitionUpdate({ ...draft_competition, template: value })}
@@ -131,67 +133,3 @@ const CompetitionInfoForm = ({ is_valid, player, competition, width, onCompetiti
131
133
 
132
134
  export default CompetitionInfoForm
133
135
 
134
-
135
- /*
136
- {competition.prize_override || competition.prize_override == '' ?
137
- <View nativeID="competition_info" style={{ margin:10, flex:4, flexGrow:4, minWidth:300, padding:10, borderRadius:4, marginRight:5, ...styles.float }}>
138
- <View nativeID="header_row" style={{ flexDirection:'row', alignItems:'center', padding:5, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
139
- <Text style={{ flex:1, marginRight:10 }} size={22} color={Colors.brand.slate} weight='bold'>Competition Prize Details</Text>
140
- </View>
141
- <View nativeID="competition_prize" style={{ flexDirection:'row', flexWrap:'wrap', alignItems:'center', padding:10 }}>
142
- <View nativeID="prize_image">
143
- <View style={{ flex:1, justifyContent:'center', alignItems:'center' }}>
144
- {competition.prize_image?.url ?
145
- <Image
146
- source={{ uri : competition.prize_image.url }}
147
- style={{ height: 100, width:100 }}
148
- resizeMode="center"
149
- />
150
- :
151
- <Text>NO IMAGE!!</Text>
152
- }
153
- </View>
154
- <ImageUploader
155
- public_id={`comp_prize_${competition.competition_id}_image_${Math.random()}`}
156
- label="Change Image"
157
- onFinishUpload={(obj) => onCompetitionUpdate({ ...competition, prize_image: { ...obj, url: obj.secure_url } })}
158
- />
159
- </View>
160
- <View style={{ flex:1, minWidth:200 }}>
161
- <View style={{ margin:5 }}>
162
- <Text size={16} color={Colors.brand.midnight} weight='bold'>Prize Override</Text>
163
- <Text size={14} color={Colors.brand.midnight} weight='regular'>Add details for the prize that will be delivered</Text>
164
- </View>
165
- <TextInput
166
- style={{ minWidth:300, margin:5, padding:10, borderRadius:8,borderWidth:1, borderColor:Colors.shades.shade600 }}
167
- onChangeText={(text) => onCompetitionUpdate({ ...competition, prize_override:text })}
168
- value={competition.prize_override}
169
- placeholder="Add a league name"
170
- placeholderTextColor={Colors.brand.slate}
171
- />
172
- </View>
173
- </View>
174
- </View>
175
- :<></>}
176
- */
177
-
178
-
179
- /*
180
- <View style={{ ...view_styles.body_row, flexWrap:'wrap' }}>
181
- <View style={{ flex:1, margin:5, minWidth:250 }}>
182
- <Text theme='header_2'>Authenticate Strategy</Text>
183
- <Text style={{ marginTop:3 }} theme='body'>What data would you like to collect in order to participate in this competition?</Text>
184
- </View>
185
- <DropDown
186
- dropdown_options={[
187
- {value: 'Strategy', eligible_options: auth_strategies.map(as => as.name)}
188
- ]}
189
- selected_value={selected_strategy}
190
- onOptionSelect={(option) => {
191
- let strategy = auth_strategies.find(as => as.name == option)
192
- if(competition.status != 'pending'){ return alert('Auth strategy cannot be changed after competition is activated') }
193
- onCompetitionUpdate({ ...competition, auth_strategy_id: strategy.auth_strategy_id })
194
- }}
195
- />
196
- </View>
197
- */
@@ -55,7 +55,9 @@ const CompetitionSettingsForm = ({ is_valid, player, width, competition, competi
55
55
  if(!draft_competition){ return <></> }
56
56
  const selected = data.item == competition.market_type ? true : false
57
57
  return (
58
- <TouchableOpacity style={{ minWidth:75, margin:1, borderRadius:8, padding:10, backgroundColor:selected?Colors.brand.midnight:undefined }} onPress={() => onCompetitionUpdate({ ...draft_competition, market_type: data.item })}>
58
+ <TouchableOpacity
59
+ disabled={competition.competition_season_id ? true : false}
60
+ style={{ minWidth:75, margin:1, borderRadius:8, padding:10, backgroundColor:selected?Colors.brand.midnight:undefined }} onPress={() => onCompetitionUpdate({ ...draft_competition, market_type: data.item })}>
59
61
  <Text textAlign="center" color={selected?Colors.shades.white:Colors.brand.midnight} weight={selected?'bold':'regular'} size={14}>{data.item == 'FOR_MONEY'?'USD':'EDGE COINS'}</Text>
60
62
  </TouchableOpacity>
61
63
  )
@@ -115,6 +117,7 @@ const CompetitionSettingsForm = ({ is_valid, player, width, competition, competi
115
117
  </View>
116
118
  <View style={{ justifyContent:'flex-end', margin:5, borderRadius:8, backgroundColor:Colors.shades.white }}>
117
119
  <DropDown
120
+ read_only={competition.competition_season_id ? true : false}
118
121
  dropdown_options={[
119
122
  {value: 'competition_result_type_id', eligible_options: competition_result_types.map(t => t.label)}
120
123
  ]}
@@ -128,7 +131,9 @@ const CompetitionSettingsForm = ({ is_valid, player, width, competition, competi
128
131
  </View>
129
132
  </View>
130
133
  {competition_result_type?.type == 'outpace' ?
131
- <TouchableOpacity style={{ backgroundColor:Colors.shades.white, borderRadius:8, padding:10 }} onPress={() => onShowPacers()}>
134
+ <TouchableOpacity
135
+ disabled={competition.competition_season_id ? true : false}
136
+ style={{ backgroundColor:Colors.shades.white, borderRadius:8, padding:10 }} onPress={() => onShowPacers()}>
132
137
  {pacer ?
133
138
  <View style={{ ...view_styles.body_row }}>
134
139
  <Icons.PacerCarIcon size={24} color={Colors.brand.midnight} />
@@ -167,7 +172,8 @@ const CompetitionSettingsForm = ({ is_valid, player, width, competition, competi
167
172
  <TextInput
168
173
  style={{ ...view_styles.input, textAlign:'center', margin:5, width:100, backgroundColor:Colors.shades.white }}
169
174
  onChangeText={(text) => setDraftCompetition({ ...draft_competition, buy_in: text })}
170
- placeholder="25"
175
+ placeholder="0"
176
+ editable={competition.competition_season_id ? false : true}
171
177
  value={draft_competition.buy_in as string}
172
178
  placeholderTextColor={Colors.brand.slate}
173
179
  />
@@ -182,6 +188,7 @@ const CompetitionSettingsForm = ({ is_valid, player, width, competition, competi
182
188
  style={{ ...view_styles.input, textAlign:'center', width:100, backgroundColor:Colors.shades.white }}
183
189
  onChangeText={(text) => setDraftCompetition({ ...draft_competition, available_tickets: text })}
184
190
  placeholder="100"
191
+ editable={competition.competition_season_id ? false : true}
185
192
  value={draft_competition.available_tickets as string}
186
193
  placeholderTextColor={Colors.brand.slate}
187
194
  />