black-diamond-shared 1.0.21 → 1.0.22

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.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as mongoose from 'mongoose';
2
- import mongoose__default, { Schema } from 'mongoose';
2
+ import mongoose__default, { Document, Schema } from 'mongoose';
3
3
 
4
- interface League$1 {
4
+ interface League$1 extends Document {
5
5
  id: number;
6
6
  name?: string;
7
7
  logo?: string;
@@ -58,19 +58,19 @@ interface League$1 {
58
58
  currentSeason?: number;
59
59
  }
60
60
 
61
- declare const leagueSchema: Schema<League$1, mongoose.Model<League$1, any, any, any, mongoose.Document<unknown, any, League$1> & League$1 & {
62
- _id: mongoose.Types.ObjectId;
63
- } & {
61
+ declare const leagueSchema: Schema<League$1, mongoose.Model<League$1, any, any, any, mongoose.Document<unknown, any, League$1> & League$1 & Required<{
62
+ _id: unknown;
63
+ }> & {
64
64
  __v: number;
65
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, League$1, mongoose.Document<unknown, {}, mongoose.FlatRecord<League$1>> & mongoose.FlatRecord<League$1> & {
66
- _id: mongoose.Types.ObjectId;
67
- } & {
65
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, League$1, mongoose.Document<unknown, {}, mongoose.FlatRecord<League$1>> & mongoose.FlatRecord<League$1> & Required<{
66
+ _id: unknown;
67
+ }> & {
68
68
  __v: number;
69
69
  }>;
70
70
 
71
71
  declare const LEAGUE_ID_LIST: number[];
72
72
 
73
- interface Team$1 {
73
+ interface Team$1 extends Document {
74
74
  id: number;
75
75
  name: string;
76
76
  logo: string;
@@ -121,7 +121,7 @@ declare const teamSchema: Schema<any, mongoose.Model<any, any, any, any, any, an
121
121
  __v: number;
122
122
  }>;
123
123
 
124
- interface TeamStat {
124
+ interface TeamStat extends Document {
125
125
  team: {
126
126
  id: number;
127
127
  name: string;
@@ -1441,7 +1441,7 @@ interface Odds {
1441
1441
  };
1442
1442
  };
1443
1443
  }
1444
- interface Fixture {
1444
+ interface Fixture extends Document {
1445
1445
  fixture: FixtureFixture;
1446
1446
  league: League;
1447
1447
  teams: Teams;
@@ -1498,7 +1498,7 @@ declare const fixtureSchema: Schema<any, mongoose.Model<any, any, any, any, any,
1498
1498
  __v: number;
1499
1499
  }>;
1500
1500
 
1501
- interface Bet {
1501
+ interface Bet extends Document {
1502
1502
  selections: {
1503
1503
  betName: string;
1504
1504
  fixture: Schema.Types.ObjectId;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as mongoose from 'mongoose';
2
- import mongoose__default, { Schema } from 'mongoose';
2
+ import mongoose__default, { Document, Schema } from 'mongoose';
3
3
 
4
- interface League$1 {
4
+ interface League$1 extends Document {
5
5
  id: number;
6
6
  name?: string;
7
7
  logo?: string;
@@ -58,19 +58,19 @@ interface League$1 {
58
58
  currentSeason?: number;
59
59
  }
60
60
 
61
- declare const leagueSchema: Schema<League$1, mongoose.Model<League$1, any, any, any, mongoose.Document<unknown, any, League$1> & League$1 & {
62
- _id: mongoose.Types.ObjectId;
63
- } & {
61
+ declare const leagueSchema: Schema<League$1, mongoose.Model<League$1, any, any, any, mongoose.Document<unknown, any, League$1> & League$1 & Required<{
62
+ _id: unknown;
63
+ }> & {
64
64
  __v: number;
65
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, League$1, mongoose.Document<unknown, {}, mongoose.FlatRecord<League$1>> & mongoose.FlatRecord<League$1> & {
66
- _id: mongoose.Types.ObjectId;
67
- } & {
65
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, League$1, mongoose.Document<unknown, {}, mongoose.FlatRecord<League$1>> & mongoose.FlatRecord<League$1> & Required<{
66
+ _id: unknown;
67
+ }> & {
68
68
  __v: number;
69
69
  }>;
70
70
 
71
71
  declare const LEAGUE_ID_LIST: number[];
72
72
 
73
- interface Team$1 {
73
+ interface Team$1 extends Document {
74
74
  id: number;
75
75
  name: string;
76
76
  logo: string;
@@ -121,7 +121,7 @@ declare const teamSchema: Schema<any, mongoose.Model<any, any, any, any, any, an
121
121
  __v: number;
122
122
  }>;
123
123
 
124
- interface TeamStat {
124
+ interface TeamStat extends Document {
125
125
  team: {
126
126
  id: number;
127
127
  name: string;
@@ -1441,7 +1441,7 @@ interface Odds {
1441
1441
  };
1442
1442
  };
1443
1443
  }
1444
- interface Fixture {
1444
+ interface Fixture extends Document {
1445
1445
  fixture: FixtureFixture;
1446
1446
  league: League;
1447
1447
  teams: Teams;
@@ -1498,7 +1498,7 @@ declare const fixtureSchema: Schema<any, mongoose.Model<any, any, any, any, any,
1498
1498
  __v: number;
1499
1499
  }>;
1500
1500
 
1501
- interface Bet {
1501
+ interface Bet extends Document {
1502
1502
  selections: {
1503
1503
  betName: string;
1504
1504
  fixture: Schema.Types.ObjectId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "black-diamond-shared",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Shared code between Black Diamond repositories",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",