tods-competition-factory 2.0.41 → 2.0.42

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.
@@ -10615,15 +10615,16 @@ declare const fixtures: {
10615
10615
  };
10616
10616
  POLICY_SCORING_DEFAULT: {
10617
10617
  scoring: {
10618
+ processCodes: {
10619
+ incompleteAssignmentsOnDefault: string[];
10620
+ };
10618
10621
  defaultMatchUpFormat: string;
10619
10622
  allowDeletionWithScoresPresent: {
10620
10623
  drawDefinitions: boolean;
10621
10624
  structures: boolean;
10622
10625
  };
10623
10626
  requireAllPositionsAssigned: boolean;
10624
- processCodes: {
10625
- incompleteAssignmentsOnDefault: string[];
10626
- };
10627
+ allowChangePropagation: boolean;
10627
10628
  stage: {
10628
10629
  MAIN: {
10629
10630
  stageSequence: {
@@ -2,10 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var namesData$1 = require('@Fixtures/data/teams.json');
6
-
7
5
  function factoryVersion() {
8
- return '2.0.41';
6
+ return '2.0.42';
9
7
  }
10
8
 
11
9
  function isFunction(obj) {
@@ -47292,7 +47290,7 @@ var firstMale = [
47292
47290
  "Winston",
47293
47291
  "Zoran"
47294
47292
  ];
47295
- var namesData = {
47293
+ var namesData$1 = {
47296
47294
  lastNames: lastNames,
47297
47295
  firstFemale: firstFemale,
47298
47296
  firstMale: firstMale
@@ -47303,7 +47301,7 @@ function generatePersonData(params) {
47303
47301
  if (!count || (sex && ![MALE, FEMALE].includes(sex)))
47304
47302
  return { personData: [], error: INVALID_VALUES };
47305
47303
  const buffer = Math.ceil(count * 1.3);
47306
- const { lastNames, firstFemale, firstMale } = namesData;
47304
+ const { lastNames, firstFemale, firstMale } = namesData$1;
47307
47305
  const ISOs = countries.map(({ iso }) => iso).filter(Boolean);
47308
47306
  const lastNameDupeCount = Math.ceil(buffer / lastNames.length);
47309
47307
  const femaleDupeCount = Math.ceil(buffer / firstFemale.length);
@@ -47457,8 +47455,62 @@ function generatePersons(params) {
47457
47455
  };
47458
47456
  }
47459
47457
 
47458
+ var namesData = [
47459
+ "Ace Academy",
47460
+ "Avengers",
47461
+ "Ball Bouncers",
47462
+ "Baseliners",
47463
+ "Captivators",
47464
+ "Civil Disobedients",
47465
+ "Continentals",
47466
+ "Court Royal",
47467
+ "Court Sharks",
47468
+ "Diamond Dogs",
47469
+ "Danger Zone",
47470
+ "Doubles Dominators",
47471
+ "Double Faults",
47472
+ "Tricksters",
47473
+ "Eliminators",
47474
+ "Court Crusaders",
47475
+ "Fuzz Busters",
47476
+ "Game Changers",
47477
+ "Goal Gurus",
47478
+ "Good Volley",
47479
+ "Green Machine",
47480
+ "Hawk Eyes",
47481
+ "Inside Outers",
47482
+ "Killer Instinct",
47483
+ "Line Toers",
47484
+ "Masters of Mayhem",
47485
+ "Matter Catchers",
47486
+ "Cheap Shot",
47487
+ "Mean Machines",
47488
+ "Mindspace Invaders",
47489
+ "Net Centric",
47490
+ "Net Positive",
47491
+ "Smash Mullet",
47492
+ "Over Your Head",
47493
+ "Spin Meisters",
47494
+ "Aggressors",
47495
+ "Racket Machine",
47496
+ "Slice Happy",
47497
+ "Refs Nightmare",
47498
+ "Sandeaters",
47499
+ "Sun Seekers",
47500
+ "Slicer Dicers",
47501
+ "Stacked Deck",
47502
+ "Cross Stringers",
47503
+ "The Emergence",
47504
+ "Total Demolition",
47505
+ "Touch and Go",
47506
+ "Unreturnables",
47507
+ "Upside Downers",
47508
+ "Vertically Challenged",
47509
+ "Visual Spectacle"
47510
+ ];
47511
+
47460
47512
  function nameMocks({ nameRoot = 'TEAM', count = 1 } = {}) {
47461
- const shuffledTeamNames = shuffleArray(namesData$1);
47513
+ const shuffledTeamNames = shuffleArray(namesData);
47462
47514
  const names = shuffledTeamNames.slice(0, count);
47463
47515
  if (names.length < count) {
47464
47516
  generateRange(0, count - names.length).forEach((i) => names.push(`${nameRoot} ${i + 1}`));
@@ -57685,15 +57737,14 @@ const POLICY_PRIVACY_DEFAULT = {
57685
57737
 
57686
57738
  const POLICY_SCORING_DEFAULT = {
57687
57739
  [POLICY_TYPE_SCORING]: {
57740
+ processCodes: { incompleteAssignmentsOnDefault: ['RANKING.IGNORE'] },
57688
57741
  defaultMatchUpFormat: FORMAT_STANDARD,
57689
57742
  allowDeletionWithScoresPresent: {
57690
57743
  drawDefinitions: false,
57691
57744
  structures: false,
57692
57745
  },
57693
57746
  requireAllPositionsAssigned: false,
57694
- processCodes: {
57695
- incompleteAssignmentsOnDefault: ['RANKING.IGNORE'],
57696
- },
57747
+ allowChangePropagation: false,
57697
57748
  stage: {
57698
57749
  [MAIN]: {
57699
57750
  stageSequence: {