musora-content-services 1.0.71 → 1.0.73

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 (55) hide show
  1. package/.codebuddy/summary.md +80 -0
  2. package/.github/workflows/node.js.yml +0 -0
  3. package/.idea/codebuddy.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/musora-content-services.iml +8 -0
  6. package/.idea/php.xml +19 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/CHANGELOG.md +4 -0
  9. package/README.md +0 -0
  10. package/babel.config.js +0 -0
  11. package/docs/config.js.html +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  17. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  18. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  19. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  28. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  29. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  30. package/docs/index.html +0 -0
  31. package/docs/module-Config.html +0 -0
  32. package/docs/module-Railcontent-Services.html +0 -0
  33. package/docs/module-Sanity-Services.html +0 -0
  34. package/docs/railcontent.js.html +0 -0
  35. package/docs/sanity.js.html +0 -0
  36. package/docs/scripts/collapse.js +0 -0
  37. package/docs/scripts/commonNav.js +0 -0
  38. package/docs/scripts/linenumber.js +0 -0
  39. package/docs/scripts/nav.js +0 -0
  40. package/docs/scripts/polyfill.js +0 -0
  41. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  42. package/docs/scripts/prettify/lang-css.js +0 -0
  43. package/docs/scripts/prettify/prettify.js +0 -0
  44. package/docs/scripts/search.js +0 -0
  45. package/docs/styles/jsdoc.css +0 -0
  46. package/docs/styles/prettify.css +0 -0
  47. package/jest.config.js +0 -0
  48. package/jsdoc.json +0 -0
  49. package/package.json +4 -2
  50. package/src/contentTypeConfig.js +0 -0
  51. package/src/index.d.ts +0 -0
  52. package/src/services/config.js +0 -0
  53. package/src/services/railcontent.js +0 -0
  54. package/src/services/sanity.js +13 -10
  55. package/test/sanityQueryService.test.js +0 -0
@@ -0,0 +1,80 @@
1
+ # Project Summary
2
+
3
+ **Languages, Frameworks, and Main Libraries:**
4
+ - Languages: JavaScript
5
+ - Frameworks: N/A
6
+ - Main Libraries: N/A
7
+
8
+ **Purpose of the Project:**
9
+ The project seems to be a documentation or service project related to content types and services with files for configuration, scripts, styles, and tests.
10
+
11
+ **Configuration and Building Files:**
12
+ - /.gitignore
13
+ - /babel.config.js
14
+ - /CHANGELOG.md
15
+ - /jest.config.js
16
+ - /jsdoc.json
17
+ - /link_mcs.sh
18
+ - /package-lock.json
19
+ - /package.json
20
+ - /publish.sh
21
+ - /README.md
22
+
23
+ **Source Files Directory:**
24
+ - /src
25
+ - contentTypeConfig.js
26
+ - index.d.ts
27
+ - index.js
28
+ - /src/services
29
+ - config.js
30
+ - railcontent.js
31
+ - sanity.js
32
+
33
+ **Documentation Files Location:**
34
+ - /docs
35
+ - config.js.html
36
+ - index.html
37
+ - module-Config.html
38
+ - module-Railcontent-Services.html
39
+ - module-Sanity-Services.html
40
+ - railcontent.js.html
41
+ - sanity.js.html
42
+ - /docs/fonts
43
+ - Montserrat
44
+ - Montserrat-Bold.eot
45
+ - Montserrat-Bold.ttf
46
+ - Montserrat-Bold.woff
47
+ - Montserrat-Bold.woff2
48
+ - Montserrat-Regular.eot
49
+ - Montserrat-Regular.ttf
50
+ - Montserrat-Regular.woff
51
+ - Montserrat-Regular.woff2
52
+ - Source-Sans-Pro
53
+ - sourcesanspro-light-webfont.eot
54
+ - sourcesanspro-light-webfont.svg
55
+ - sourcesanspro-light-webfont.ttf
56
+ - sourcesanspro-light-webfont.woff
57
+ - sourcesanspro-light-webfont.woff2
58
+ - sourcesanspro-regular-webfont.eot
59
+ - sourcesanspro-regular-webfont.svg
60
+ - sourcesanspro-regular-webfont.ttf
61
+ - sourcesanspro-regular-webfont.woff
62
+ - sourcesanspro-regular-webfont.woff2
63
+ - /docs/scripts
64
+ - collapse.js
65
+ - commonNav.js
66
+ - linenumber.js
67
+ - nav.js
68
+ - polyfill.js
69
+ - search.js
70
+ - /prettify
71
+ - Apache-License-2.0.txt
72
+ - lang-css.js
73
+ - prettify.js
74
+ - /docs/styles
75
+ - jsdoc.css
76
+ - prettify.css
77
+
78
+ **Test Files Directory:**
79
+ - /test
80
+ - sanityQueryService.test.js
File without changes
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CodebuddyPersistentProjectState">
4
+ <option name="selectedModel" value="codebuddy:GPT4_Turbo_Haiku_V7" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/musora-content-services.iml" filepath="$PROJECT_DIR$/.idea/musora-content-services.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
package/.idea/php.xml ADDED
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MessDetectorOptionsConfiguration">
4
+ <option name="transferred" value="true" />
5
+ </component>
6
+ <component name="PHPCSFixerOptionsConfiguration">
7
+ <option name="transferred" value="true" />
8
+ </component>
9
+ <component name="PHPCodeSnifferOptionsConfiguration">
10
+ <option name="highlightLevel" value="WARNING" />
11
+ <option name="transferred" value="true" />
12
+ </component>
13
+ <component name="PhpStanOptionsConfiguration">
14
+ <option name="transferred" value="true" />
15
+ </component>
16
+ <component name="PsalmOptionsConfiguration">
17
+ <option name="transferred" value="true" />
18
+ </component>
19
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.73](https://github.com/railroadmedia/musora-content-services/compare/v1.0.72...v1.0.73) (2024-08-29)
6
+
7
+ ### [1.0.72](https://github.com/railroadmedia/musora-content-services/compare/v1.0.71...v1.0.72) (2024-08-29)
8
+
5
9
  ### [1.0.71](https://github.com/railroadmedia/musora-content-services/compare/v1.0.70...v1.0.71) (2024-08-28)
6
10
 
7
11
  ### [1.0.70](https://github.com/railroadmedia/musora-content-services/compare/v1.0.69...v1.0.70) (2024-08-27)
package/README.md CHANGED
File without changes
package/babel.config.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/docs/index.html CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/jest.config.js CHANGED
File without changes
package/jsdoc.json CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -27,7 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@babel/preset-env": "^7.25.3",
30
+ "@sanity/client": "^6.21.3",
30
31
  "babel-jest": "^29.7.0",
31
- "docdash": "^2.0.2"
32
+ "docdash": "^2.0.2",
33
+ "groqd": "^0.15.12"
32
34
  }
33
35
  }
File without changes
package/src/index.d.ts CHANGED
File without changes
File without changes
File without changes
@@ -856,16 +856,19 @@ export async function fetchLiveEvent(brand) {
856
856
  // this has some +- on times
857
857
  // But this query just finds the first scheduled event (sorted by start_time) that ends after now()
858
858
  const query = `*[status == 'scheduled' && defined(live_event_start_time) && published_on > '${getSanityDate(dateTemp)}' && live_event_end_time >= '${getSanityDate(new Date())}']{
859
- 'slug': slug.current,
860
- 'id': railcontent_id,
861
- live_event_start_time,
862
- live_event_end_time,
863
- railcontent_id,
864
- published_on,
865
- 'event_coach_url' : instructor[0]->web_url_path,
866
- 'event_coach_calendar_id': coalesce(calendar_id, '${defaultCalendarID}'),
867
- 'videoId': coalesce(live_event_youtube_id, video.external_id),
868
- } | order(live_event_start_time)[0...1]`;
859
+ 'slug': slug.current,
860
+ 'id': railcontent_id,
861
+ live_event_start_time,
862
+ live_event_end_time,
863
+ railcontent_id,
864
+ published_on,
865
+ 'event_coach_url' : instructor[0]->web_url_path,
866
+ 'event_coach_calendar_id': coalesce(calendar_id, '${defaultCalendarID}'),
867
+ title,
868
+ "image": thumbnail.asset->url,
869
+ "instructors": instructor[]->name,
870
+ 'videoId': coalesce(live_event_youtube_id, video.external_id),
871
+ } | order(live_event_start_time)[0...1]`;
869
872
  return await fetchSanity(query, false);
870
873
  }
871
874
 
File without changes