@churchapps/content-providers 0.4.0 → 0.5.0

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/README.md CHANGED
@@ -41,34 +41,32 @@ const plan = await provider.getPresentations(serviceId);
41
41
 
42
42
  ### Built-in Providers
43
43
 
44
- - **B1ChurchProvider** - B1.Church content integration
45
- - **PlanningCenterProvider** - Planning Center Services
46
- - **LessonsChurchProvider** - Lessons.church curriculum
44
+ - **B1ChurchProvider** - B1.Church plans (merges plan items with lesson venues and external providers)
45
+ - **LessonsChurchProvider** - Lessons.church curriculum and add-ons
46
+ - **PlanningCenterProvider** - Planning Center Services (browse only)
47
47
  - **BibleProjectProvider** - Bible Project videos
48
48
  - **APlayProvider** - A.Play media library
49
- - **SignPresenterProvider** - Sign Presenter content
49
+ - **SignPresenterProvider** - Sign Presenter playlists
50
+ - **DropboxProvider** - Media files from a Dropbox account
51
+ - **JesusFilmProvider** - Jesus Film Project (Arclight API)
52
+ - **CbnProvider** - CBN Superbook curriculum
53
+ - **HighVoltageKidsProvider** - High Voltage Kids curriculum (static catalog)
54
+ - **LifeChurchProvider** - Life.Church kids curriculum (static catalog)
50
55
 
51
56
  ### Create a Custom Provider
52
57
 
53
58
  ```typescript
54
- import { ContentProvider, registerProvider } from '@churchapps/content-providers';
59
+ import { BaseProvider, registerProvider } from '@churchapps/content-providers';
55
60
 
56
- class MyProvider extends ContentProvider {
57
- // Implement required methods
61
+ class MyProvider extends BaseProvider {
62
+ // Declare id/name/logos/config/requiresAuth/authTypes/capabilities and implement browse().
63
+ // Optionally implement getPlaylist()/getInstructions(); the protected apiRequest() helper
64
+ // performs authenticated JSON fetches against config.apiBase.
58
65
  }
59
66
 
60
67
  registerProvider(new MyProvider());
61
68
  ```
62
69
 
63
- ### Utilities
64
-
65
- ```typescript
66
- import { detectMediaType } from '@churchapps/content-providers';
67
-
68
- detectMediaType('https://example.com/video.mp4'); // 'video'
69
- detectMediaType('https://example.com/image.png'); // 'image'
70
- ```
71
-
72
70
  ## Get Involved
73
71
 
74
72
  ### 🤝 Help Support Us