@studyportals/fawkes 1.0.1-9 → 2.0.0-21

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 (71) hide show
  1. package/dist/fawkes.js +2 -0
  2. package/dist/fawkes.js.map +1 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +1 -0
  5. package/dist/organisations-seo/index.d.ts +0 -2
  6. package/dist/organisations-seo/index.js +1 -0
  7. package/dist/scholarships-seo/index.d.ts +8 -3
  8. package/dist/scholarships-seo/index.js +3 -0
  9. package/dist/scholarships-seo.js +1 -1
  10. package/dist/scholarships-seo.js.map +1 -1
  11. package/dist/sitemap-generator-seo/index.js +1 -0
  12. package/dist/src/common/BaseSeoIndexabilityPolicy.d.ts +10 -5
  13. package/dist/src/common/BaseSeoIndexabilityPolicy.js +15 -0
  14. package/dist/src/common/DisciplinePresenter.d.ts +6 -0
  15. package/dist/src/common/DisciplinePresenter.js +47 -0
  16. package/dist/src/common/IPrettyPathGenerator.js +1 -0
  17. package/dist/src/common/IRankingApiClient.js +1 -0
  18. package/dist/src/common/ISearchIndexabilityManager.js +1 -0
  19. package/dist/src/common/ISeoFilterOptions.js +1 -0
  20. package/dist/src/common/ISeoFilterState.js +1 -0
  21. package/dist/src/common/ISeoIndexabilityPolicy.js +1 -0
  22. package/dist/src/common/ISeoInfoBase.js +1 -0
  23. package/dist/src/common/ISeoSearchApplicationState.js +1 -0
  24. package/dist/src/common/fragments/Fragment.d.ts +6 -0
  25. package/dist/src/common/fragments/Fragment.js +8 -0
  26. package/dist/src/common/fragments/IFragment.d.ts +4 -0
  27. package/dist/src/common/fragments/IFragment.js +1 -0
  28. package/dist/src/common/index.d.ts +2 -1
  29. package/dist/src/common/index.js +1 -0
  30. package/dist/src/organisations/FilterKeyValuePairs.js +1 -0
  31. package/dist/src/organisations/IOrganisationsProvider.js +1 -0
  32. package/dist/src/organisations/ISeoInfoBaseOrganisations.js +1 -0
  33. package/dist/src/organisations/ISortState.js +1 -0
  34. package/dist/src/organisations/SearchIndexabilityManager.js +6 -0
  35. package/dist/src/organisations/SeoIndexabilityPolicy.d.ts +1 -1
  36. package/dist/src/organisations/SeoIndexabilityPolicy.js +12 -0
  37. package/dist/src/organisations/SeoRuleBasedIndexabilityPolicy.d.ts +1 -1
  38. package/dist/src/organisations/SeoRuleBasedIndexabilityPolicy.js +6 -0
  39. package/dist/src/organisations/SortingOptions.js +5 -0
  40. package/dist/src/organisations/index.d.ts +0 -2
  41. package/dist/src/organisations/index.js +1 -0
  42. package/dist/src/scholarships/CustomRules.d.ts +6 -0
  43. package/dist/src/scholarships/CustomRules.js +18 -0
  44. package/dist/src/scholarships/SearchIndexabilityManager.d.ts +7 -3
  45. package/dist/src/scholarships/SearchIndexabilityManager.js +22 -0
  46. package/dist/src/scholarships/index.d.ts +2 -1
  47. package/dist/src/scholarships/index.js +4 -0
  48. package/dist/src/scholarships/policies/AreaPolicy.d.ts +10 -8
  49. package/dist/src/scholarships/policies/AreaPolicy.js +27 -0
  50. package/dist/src/scholarships/policies/CountryPolicy.d.ts +6 -4
  51. package/dist/src/scholarships/policies/CountryPolicy.js +17 -0
  52. package/dist/src/scholarships/policies/DisciplineAreaPolicy.d.ts +10 -4
  53. package/dist/src/scholarships/policies/DisciplineAreaPolicy.js +34 -0
  54. package/dist/src/scholarships/policies/DisciplineCountryPolicy.d.ts +10 -7
  55. package/dist/src/scholarships/policies/DisciplineCountryPolicy.js +26 -0
  56. package/dist/src/scholarships/policies/DisciplinePolicy.d.ts +6 -4
  57. package/dist/src/scholarships/policies/DisciplinePolicy.js +17 -0
  58. package/dist/src/scholarships/policies/UnfilteredPolicy.d.ts +6 -4
  59. package/dist/src/scholarships/policies/UnfilteredPolicy.js +12 -0
  60. package/dist/src/scholarships/policies/UniversityCountryPolicy.d.ts +6 -4
  61. package/dist/src/scholarships/policies/UniversityCountryPolicy.js +21 -0
  62. package/dist/src/scholarships/types.d.ts +7 -0
  63. package/dist/src/scholarships/types.js +7 -0
  64. package/dist/src/sitemap-generator/CombinationType.js +3 -0
  65. package/dist/src/sitemap-generator/ISitemapPathGeneratorChain.js +1 -0
  66. package/dist/src/sitemap-generator/SitemapPathGeneratorChain.js +9 -0
  67. package/dist/src/sitemap-generator/index.d.ts +0 -1
  68. package/dist/src/sitemap-generator/index.js +2 -0
  69. package/package.json +20 -18
  70. package/dist/src/organisations/SearchPolicyChain.d.ts +0 -5
  71. /package/dist/src/{sitemap-generator → common}/IRankingApiClient.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ export class SitemapPathGeneratorChain {
2
+ handlers;
3
+ constructor() {
4
+ this.handlers = [];
5
+ }
6
+ generatePaths() {
7
+ throw new Error("Method not implemented.");
8
+ }
9
+ }
@@ -1,3 +1,2 @@
1
- export * from './IRankingApiClient';
2
1
  export * from './SitemapPathGeneratorChain';
3
2
  export * from './ISitemapPathGeneratorChain';
@@ -0,0 +1,2 @@
1
+ export * from './SitemapPathGeneratorChain';
2
+ export * from './ISitemapPathGeneratorChain';
package/package.json CHANGED
@@ -1,41 +1,42 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "1.0.1-9",
3
+ "version": "2.0.0-21",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
- "types": "dist/index.d.ts",
6
- "main": "dist/fawkes.js",
5
+ "main": "dist/index.js",
7
6
  "files": [
8
7
  "./dist"
9
8
  ],
10
9
  "scripts": {
11
- "prepush": "vitest run --coverage",
10
+ "prepush": "npm run test",
12
11
  "precommit": "npm run lint",
13
- "compile": "npm run clean && npx tsc",
14
- "build": "npm run clean && npm run build:all",
12
+ "compile": "npx tsc && rm -r ./dist/tests",
13
+ "build": "npm run clean && npm run compile && webpack --mode production",
15
14
  "clean": "rimraf \"!(node_modules)/**/dist\"",
16
- "prepare-deployment": "vitest run --coverage && npm run build",
15
+ "prepare-deployment": "npm run test && npm run build",
16
+ "publish-major": "npm version major && npm publish",
17
17
  "publish-beta": "npm run prepare-deployment && npm version prerelease && npm publish --tag beta --access=public",
18
- "build:all": "webpack --stats-error-details --config webpack.config.js --mode production",
19
18
  "prepare": "husky install",
20
- "test": "vitest --coverage",
19
+ "test": "vitest run --coverage",
20
+ "test:dev": "vitest --coverage",
21
21
  "lint": "eslint . --ext .ts",
22
22
  "lint:fix": "eslint . --ext .ts --fix"
23
23
  },
24
24
  "exports": {
25
25
  "./organisations-search-seo": "./dist/organisations-seo.js",
26
- "./dist/scholarships-search-seo": "./dist/scholarships-seo.js",
26
+ "./scholarships-search-seo": {
27
+ "import": "./dist/scholarships-seo.js",
28
+ "require": "./dist/scholarships-seo.js",
29
+ "types": "./dist/scholarships-seo/index.d.ts"
30
+ },
27
31
  "./sitemap-generator-seo": "./dist/sitemap-generator-seo.js"
28
32
  },
29
33
  "typesVersions": {
30
34
  "*": {
31
- "organisations-search-seo": [
32
- "./dist/organisations-seo/index.d.ts"
33
- ],
34
35
  "scholarships-search-seo": [
35
- "./dist/scholarships-seo/index.d.ts"
36
+ "dist/scholarships-seo/index.d.ts"
36
37
  ],
37
- "sitemap-generator-seo": [
38
- "./dist/sitemap-generator-seo/index.d.ts"
38
+ "*": [
39
+ "dist/index.d.ts"
39
40
  ]
40
41
  }
41
42
  },
@@ -54,10 +55,11 @@
54
55
  "dependencies": {
55
56
  "@studyportals/ranking-api-interface": "^1.3.12",
56
57
  "@studyportals/search-filters": "^4.9.1",
58
+ "@studyportals/static-domain-data": "^6.1.1",
57
59
  "ts-loader": "^9.5.2"
58
60
  },
59
61
  "engines": {
60
- "node": ">= 20.0.0",
61
- "npm": ">= 8.0.0"
62
+ "node": ">= 22.0.0",
63
+ "npm": ">= 10.0.0"
62
64
  }
63
65
  }
@@ -1,5 +0,0 @@
1
- import { ISeoIndexabilityPolicy } from "@/common/ISeoIndexabilityPolicy";
2
- export declare class SearchIndexabilityManager implements SearchIndexabilityManager {
3
- policies: ISeoIndexabilityPolicy[];
4
- shouldIndex(): Promise<boolean>;
5
- }