volleyballsimtypes 0.0.523 → 0.0.524

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.
@@ -61,6 +61,7 @@ function initModels(sequelize) {
61
61
  const PlayerTeam = models_1.PlayerTeamModel.initModel(sequelize);
62
62
  const RetiredPlayer = models_1.RetiredPlayerModel.initModel(sequelize);
63
63
  const Rally = models_1.RallyModel.initModel(sequelize);
64
+ const MatchInputSnapshot = models_1.MatchInputSnapshotModel.initModel(sequelize);
64
65
  const PromotionMatch = models_1.PromotionMatchModel.initModel(sequelize);
65
66
  const Friendly = models_1.FriendlyModel.initModel(sequelize);
66
67
  const RegionQualifier = models_1.RegionQualifierModel.initModel(sequelize);
@@ -162,6 +163,8 @@ function initModels(sequelize) {
162
163
  Match.hasOne(CompetitionMatch, { as: 'CompetitionMatch', foreignKey: 'match_id' });
163
164
  Match.hasOne(MatchResult, { as: 'MatchResult', foreignKey: 'match_id' });
164
165
  Match.hasOne(Friendly, { as: 'Friendly', foreignKey: 'match_id' });
166
+ Match.hasOne(MatchInputSnapshot, { as: 'MatchInputSnapshot', foreignKey: 'match_id' });
167
+ MatchInputSnapshot.belongsTo(Match, { as: 'Match', foreignKey: 'match_id' });
165
168
  MatchResult.belongsTo(Match, { as: 'Match', foreignKey: 'match_id' });
166
169
  MatchResult.belongsTo(Team, { as: 'Winner', foreignKey: 'winner_team_id' });
167
170
  MatchRating.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
@@ -27,6 +27,7 @@ export * from './player-decline-log';
27
27
  export * from './player-team';
28
28
  export * from './retired-player';
29
29
  export * from './rally';
30
+ export * from './match-input-snapshot';
30
31
  export * from './promotion-match';
31
32
  export * from './friendly';
32
33
  export * from './region-qualifier';
@@ -43,6 +43,7 @@ __exportStar(require("./player-decline-log"), exports);
43
43
  __exportStar(require("./player-team"), exports);
44
44
  __exportStar(require("./retired-player"), exports);
45
45
  __exportStar(require("./rally"), exports);
46
+ __exportStar(require("./match-input-snapshot"), exports);
46
47
  __exportStar(require("./promotion-match"), exports);
47
48
  __exportStar(require("./friendly"), exports);
48
49
  __exportStar(require("./region-qualifier"), exports);
@@ -0,0 +1,19 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { Model } from 'sequelize';
3
+ import { MatchId, MatchModel } from '.';
4
+ export interface MatchInputSnapshotAttributes {
5
+ match_id: string;
6
+ snapshot: object;
7
+ }
8
+ export type MatchInputSnapshotPk = 'match_id';
9
+ export type MatchInputSnapshotId = MatchInputSnapshotModel[MatchInputSnapshotPk];
10
+ export type MatchInputSnapshotCreationAttributes = MatchInputSnapshotAttributes;
11
+ export declare class MatchInputSnapshotModel extends Model<MatchInputSnapshotAttributes, MatchInputSnapshotCreationAttributes> implements MatchInputSnapshotAttributes {
12
+ match_id: string;
13
+ snapshot: object;
14
+ Match: MatchModel;
15
+ getMatch: Sequelize.BelongsToGetAssociationMixin<MatchModel>;
16
+ setMatch: Sequelize.BelongsToSetAssociationMixin<MatchModel, MatchId>;
17
+ createMatch: Sequelize.BelongsToCreateAssociationMixin<MatchModel>;
18
+ static initModel(sequelize: Sequelize.Sequelize): typeof MatchInputSnapshotModel;
19
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MatchInputSnapshotModel = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ class MatchInputSnapshotModel extends sequelize_1.Model {
6
+ static initModel(sequelize) {
7
+ return MatchInputSnapshotModel.init({
8
+ match_id: {
9
+ type: sequelize_1.DataTypes.UUID,
10
+ allowNull: false,
11
+ primaryKey: true,
12
+ references: {
13
+ model: 'Match',
14
+ key: 'match_id'
15
+ }
16
+ },
17
+ snapshot: {
18
+ type: sequelize_1.DataTypes.JSONB,
19
+ allowNull: false
20
+ }
21
+ }, {
22
+ sequelize,
23
+ tableName: 'MatchInputSnapshot',
24
+ schema: 'public',
25
+ timestamps: false,
26
+ indexes: [{
27
+ name: 'MatchInputSnapshot_pk',
28
+ unique: true,
29
+ fields: [{ name: 'match_id' }]
30
+ }]
31
+ });
32
+ }
33
+ }
34
+ exports.MatchInputSnapshotModel = MatchInputSnapshotModel;
@@ -1,4 +1,4 @@
1
- import { AuthIdentityModel, AuthSessionModel, AuthUserModel, BoxScoreModel, CoachModel, ScoutModel, PhysicianModel, PhysiotherapistModel, BoxScoreTotalsModel, CompetitionChampionModel, JerseyBadgeModel, CurrencyTransactionModel, GachaPityModel, GachaPullHistoryModel, WishlistModel, UserSettingsModel, UserAchievementsModel, UserDeviceTokenModel, BasePositionPresetModel, CompetitionMatchModel, CompetitionMVPModel, CompetitionModel, CompetitionStandingsMatchModel, CompetitionStandingsModel, CompetitionTeamsModel, CountryModel, DivisionModel, DivisionSeasonModel, IterationModel, LeagueModel, MatchModel, MatchRatingModel, MatchResultModel, MatchSetModel, PerformanceStatsModel, PlayerModel, PlayerImprovementLogModel, PlayerDeclineLogModel, PlayerTeamModel, RetiredPlayerModel, PromotionMatchModel, FriendlyModel, RegionQualifierModel, NationalCountryModel, RallyModel, TacticsModel, TeamJerseyModel, LineupPresetModel, MatchPresetModel, EventModel, EventCompetitionModel, EventSquadModel, EventPackModel, EventPackPlayerModel, EventResultModel, EventBotTeamModel, TeamModel, TeamReplacementModel, UserCurrencyModel, UserPlayerProgressModel, UserPullGrantModel, PremiumGrantModel, UserTeamModel, VPERModel, NotificationModel, AppConfigModel, LegacyTeamFlagModel } from './models';
1
+ import { AuthIdentityModel, AuthSessionModel, AuthUserModel, BoxScoreModel, CoachModel, ScoutModel, PhysicianModel, PhysiotherapistModel, BoxScoreTotalsModel, CompetitionChampionModel, JerseyBadgeModel, CurrencyTransactionModel, GachaPityModel, GachaPullHistoryModel, WishlistModel, UserSettingsModel, UserAchievementsModel, UserDeviceTokenModel, BasePositionPresetModel, CompetitionMatchModel, CompetitionMVPModel, CompetitionModel, CompetitionStandingsMatchModel, CompetitionStandingsModel, CompetitionTeamsModel, CountryModel, DivisionModel, DivisionSeasonModel, IterationModel, LeagueModel, MatchModel, MatchRatingModel, MatchResultModel, MatchSetModel, PerformanceStatsModel, PlayerModel, PlayerImprovementLogModel, PlayerDeclineLogModel, PlayerTeamModel, RetiredPlayerModel, PromotionMatchModel, FriendlyModel, RegionQualifierModel, NationalCountryModel, RallyModel, MatchInputSnapshotModel, TacticsModel, TeamJerseyModel, LineupPresetModel, MatchPresetModel, EventModel, EventCompetitionModel, EventSquadModel, EventPackModel, EventPackPlayerModel, EventResultModel, EventBotTeamModel, TeamModel, TeamReplacementModel, UserCurrencyModel, UserPlayerProgressModel, UserPullGrantModel, PremiumGrantModel, UserTeamModel, VPERModel, NotificationModel, AppConfigModel, LegacyTeamFlagModel } from './models';
2
2
  export function initModels(sequelize) {
3
3
  const Coach = CoachModel.initModel(sequelize);
4
4
  const Scout = ScoutModel.initModel(sequelize);
@@ -58,6 +58,7 @@ export function initModels(sequelize) {
58
58
  const PlayerTeam = PlayerTeamModel.initModel(sequelize);
59
59
  const RetiredPlayer = RetiredPlayerModel.initModel(sequelize);
60
60
  const Rally = RallyModel.initModel(sequelize);
61
+ const MatchInputSnapshot = MatchInputSnapshotModel.initModel(sequelize);
61
62
  const PromotionMatch = PromotionMatchModel.initModel(sequelize);
62
63
  const Friendly = FriendlyModel.initModel(sequelize);
63
64
  const RegionQualifier = RegionQualifierModel.initModel(sequelize);
@@ -159,6 +160,8 @@ export function initModels(sequelize) {
159
160
  Match.hasOne(CompetitionMatch, { as: 'CompetitionMatch', foreignKey: 'match_id' });
160
161
  Match.hasOne(MatchResult, { as: 'MatchResult', foreignKey: 'match_id' });
161
162
  Match.hasOne(Friendly, { as: 'Friendly', foreignKey: 'match_id' });
163
+ Match.hasOne(MatchInputSnapshot, { as: 'MatchInputSnapshot', foreignKey: 'match_id' });
164
+ MatchInputSnapshot.belongsTo(Match, { as: 'Match', foreignKey: 'match_id' });
162
165
  MatchResult.belongsTo(Match, { as: 'Match', foreignKey: 'match_id' });
163
166
  MatchResult.belongsTo(Team, { as: 'Winner', foreignKey: 'winner_team_id' });
164
167
  MatchRating.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
@@ -27,6 +27,7 @@ export * from './player-decline-log';
27
27
  export * from './player-team';
28
28
  export * from './retired-player';
29
29
  export * from './rally';
30
+ export * from './match-input-snapshot';
30
31
  export * from './promotion-match';
31
32
  export * from './friendly';
32
33
  export * from './region-qualifier';
@@ -27,6 +27,7 @@ export * from './player-decline-log';
27
27
  export * from './player-team';
28
28
  export * from './retired-player';
29
29
  export * from './rally';
30
+ export * from './match-input-snapshot';
30
31
  export * from './promotion-match';
31
32
  export * from './friendly';
32
33
  export * from './region-qualifier';
@@ -0,0 +1,19 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { Model } from 'sequelize';
3
+ import { MatchId, MatchModel } from '.';
4
+ export interface MatchInputSnapshotAttributes {
5
+ match_id: string;
6
+ snapshot: object;
7
+ }
8
+ export type MatchInputSnapshotPk = 'match_id';
9
+ export type MatchInputSnapshotId = MatchInputSnapshotModel[MatchInputSnapshotPk];
10
+ export type MatchInputSnapshotCreationAttributes = MatchInputSnapshotAttributes;
11
+ export declare class MatchInputSnapshotModel extends Model<MatchInputSnapshotAttributes, MatchInputSnapshotCreationAttributes> implements MatchInputSnapshotAttributes {
12
+ match_id: string;
13
+ snapshot: object;
14
+ Match: MatchModel;
15
+ getMatch: Sequelize.BelongsToGetAssociationMixin<MatchModel>;
16
+ setMatch: Sequelize.BelongsToSetAssociationMixin<MatchModel, MatchId>;
17
+ createMatch: Sequelize.BelongsToCreateAssociationMixin<MatchModel>;
18
+ static initModel(sequelize: Sequelize.Sequelize): typeof MatchInputSnapshotModel;
19
+ }
@@ -0,0 +1,30 @@
1
+ import { DataTypes, Model } from 'sequelize';
2
+ export class MatchInputSnapshotModel extends Model {
3
+ static initModel(sequelize) {
4
+ return MatchInputSnapshotModel.init({
5
+ match_id: {
6
+ type: DataTypes.UUID,
7
+ allowNull: false,
8
+ primaryKey: true,
9
+ references: {
10
+ model: 'Match',
11
+ key: 'match_id'
12
+ }
13
+ },
14
+ snapshot: {
15
+ type: DataTypes.JSONB,
16
+ allowNull: false
17
+ }
18
+ }, {
19
+ sequelize,
20
+ tableName: 'MatchInputSnapshot',
21
+ schema: 'public',
22
+ timestamps: false,
23
+ indexes: [{
24
+ name: 'MatchInputSnapshot_pk',
25
+ unique: true,
26
+ fields: [{ name: 'match_id' }]
27
+ }]
28
+ });
29
+ }
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.523",
3
+ "version": "0.0.524",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",