@srating-io/types 1.1.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/api/api_key.d.ts +5 -0
  2. package/dist/api/billing.d.ts +55 -0
  3. package/dist/api/boxscore.d.ts +15 -0
  4. package/dist/api/coach_statistic_ranking.d.ts +7 -0
  5. package/dist/api/conference.d.ts +12 -0
  6. package/dist/api/conference_player_statistic_ranking.d.ts +9 -0
  7. package/dist/api/conference_statistic_ranking.d.ts +9 -0
  8. package/dist/api/fantasy_bracket_slot.d.ts +10 -0
  9. package/dist/api/fantasy_draft_order.d.ts +15 -0
  10. package/dist/api/fantasy_entry.d.ts +37 -0
  11. package/dist/api/fantasy_entry_player_statistic_ranking.d.ts +9 -0
  12. package/dist/api/fantasy_group.d.ts +77 -0
  13. package/dist/api/fantasy_group_comment.d.ts +10 -0
  14. package/dist/api/fantasy_group_invite.d.ts +10 -0
  15. package/dist/api/favorite.d.ts +33 -0
  16. package/dist/api/league_player_statistic_ranking.d.ts +9 -0
  17. package/dist/api/league_statistic_ranking.d.ts +9 -0
  18. package/dist/api/notification.d.ts +7 -0
  19. package/dist/api/play_by_play.d.ts +17 -0
  20. package/dist/api/player.d.ts +18 -0
  21. package/dist/api/player_boxscore.d.ts +15 -0
  22. package/dist/api/player_statistic_ranking.d.ts +9 -0
  23. package/dist/api/prediction.d.ts +17 -0
  24. package/dist/api/ranking.d.ts +22 -0
  25. package/dist/api/search.d.ts +36 -0
  26. package/dist/api/secret.d.ts +3 -0
  27. package/dist/api/session.d.ts +5 -0
  28. package/dist/api/statistic_ranking.d.ts +9 -0
  29. package/dist/api/user.d.ts +44 -0
  30. package/dist/api/user_payment_token.d.ts +51 -0
  31. package/dist/auth.d.ts +82 -0
  32. package/dist/fantasy.d.ts +200 -0
  33. package/dist/general.d.ts +6 -308
  34. package/dist/index.d.ts +33 -0
  35. package/dist/payments.d.ts +58 -0
  36. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ export interface Subscription {
2
+ subscription_id: string;
3
+ user_id: string;
4
+ pricing_id: string;
5
+ stripe_subscription: string;
6
+ date_of_entry: string;
7
+ updated_at: string;
8
+ expires: string;
9
+ renewed: string;
10
+ guid: string;
11
+ deleted: number;
12
+ }
13
+ export type Subscriptions = {
14
+ [subscription_id: string]: Subscription;
15
+ };
16
+ export interface PaymentRouter {
17
+ payment_router_id: string;
18
+ stripe_object: string;
19
+ stripe_id: string;
20
+ table: string;
21
+ id: string;
22
+ date_of_entry: string;
23
+ handled: number;
24
+ guid: string;
25
+ deleted: number;
26
+ }
27
+ export type PaymentRouters = {
28
+ [payment_router_id: string]: PaymentRouter;
29
+ };
30
+ export interface Pricing {
31
+ pricing_id: string;
32
+ stripe_pricing_id: string;
33
+ test_stripe_pricing_id: string;
34
+ code: string;
35
+ name: string;
36
+ description: string;
37
+ type: 'api' | 'picks' | 'trial';
38
+ usage_limit: number;
39
+ read: number;
40
+ guid: string;
41
+ deleted: number;
42
+ }
43
+ export type Pricings = {
44
+ [pricing_id: string]: Pricing;
45
+ };
46
+ export interface UserPaymentToken {
47
+ user_payment_token_id: string;
48
+ user_id: string;
49
+ token: string;
50
+ type: string;
51
+ json_data: object;
52
+ date_of_entry: string;
53
+ guid: string;
54
+ deleted: number;
55
+ }
56
+ export type UserPaymentTokens = {
57
+ [user_payment_token_id: string]: UserPaymentToken;
58
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@srating-io/types",
3
3
  "private": false,
4
- "version": "1.1.6",
4
+ "version": "2.0.0",
5
5
  "description": "srating.io shared TypeScript types for GUI and API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",