@rachelallyson/planning-center-people-ts 2.6.2 → 2.6.3

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 (2) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,77 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.6.3] - 2025-01-10
9
+
10
+ ### 🏢 **CAMPUS ATTRIBUTES ENHANCEMENT**
11
+
12
+ This patch release adds comprehensive campus attributes for better campus management and configuration support.
13
+
14
+ ### Added
15
+
16
+ - **📝 Enhanced CampusAttributes**: Added comprehensive campus configuration attributes
17
+ - **Time Settings**: `twenty_four_hour_time?: boolean` - 24-hour time format preference
18
+ - **Date Settings**: `date_format?: number` - Date format configuration
19
+ - **Features**: `church_center_enabled?: boolean` - Church Center integration status
20
+ - **Contact Info**: `phone_number?: string`, `website?: string` - Campus contact details
21
+ - **Location**: `country?: string` - Country information
22
+ - **Timestamps**: `created_at?: string`, `updated_at?: string` - Audit trail
23
+
24
+ ### Enhanced Campus Management
25
+
26
+ ```typescript
27
+ // Now you get full type safety for campus attributes
28
+ const campus: CampusResource = {
29
+ type: 'Campus',
30
+ id: 'campus-123',
31
+ attributes: {
32
+ name: 'Main Campus',
33
+ street: '123 Main St',
34
+ city: 'Anytown',
35
+ state: 'CA',
36
+ zip: '12345',
37
+ country: 'US',
38
+ phone_number: '555-1234',
39
+ website: 'https://example.com',
40
+ twenty_four_hour_time: true, // ✅ New attribute
41
+ date_format: 1, // ✅ New attribute
42
+ church_center_enabled: true, // ✅ New attribute
43
+ created_at: '2025-01-10T00:00:00Z',
44
+ updated_at: '2025-01-10T00:00:00Z'
45
+ }
46
+ };
47
+
48
+ // Campus configuration management
49
+ const campusConfig = await client.people.getCampusById('campus-123');
50
+ if (campusConfig.attributes.church_center_enabled) {
51
+ console.log('Church Center integration is active');
52
+ }
53
+ ```
54
+
55
+ ### Benefits
56
+
57
+ - **🏢 Complete Campus Data**: Access to all campus configuration options
58
+ - **⚙️ Configuration Management**: Better support for campus settings
59
+ - **🌍 International Support**: Country and date format configuration
60
+ - **📱 Church Center Integration**: Track integration status
61
+ - **🕐 Time Format Support**: 24-hour time format configuration
62
+
63
+ ### Migration
64
+
65
+ No breaking changes - this is a type enhancement release:
66
+
67
+ ```typescript
68
+ // Existing code continues to work
69
+ const campuses = await client.people.getCampuses();
70
+
71
+ // New attributes are available but optional
72
+ campuses.data.forEach(campus => {
73
+ console.log('Campus:', campus.attributes.name);
74
+ console.log('Church Center:', campus.attributes.church_center_enabled);
75
+ console.log('Time Format:', campus.attributes.twenty_four_hour_time);
76
+ });
77
+ ```
78
+
8
79
  ## [2.6.2] - 2025-01-10
9
80
 
10
81
  ### 🎯 **TYPE DEFINITION ENHANCEMENT**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rachelallyson/planning-center-people-ts",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "A strictly typed TypeScript client for Planning Center Online People API with smart matching, batch operations, and enhanced developer experience",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",