contracts 1.20.0: devotionals, Bible passages, messaging.get, WhatsApp opt-out, App export
The contracts for Church App 1.0.0 (docs/APP-1.0-PLAN.md §12). Additive. - crosscode.devotional/1, the Hub's devotionals reply, and the devotionals CSV import (parseCsv, checkDevotionalCsv, template), shared by the Hub and the App - Bible books (USFM, English and Afrikaans), seven translations with YouVersion ids and copyright lines, parseBibleReference, youVersionUrl - messaging.get and the messaging.changed hint; whatsapp.optout and whatsapp_opted_out on the profile - APP_MODULES, hub.DEVOTIONALS_PATH, agent.APP_DEMO_PROFILES, app in DEMO_PRODUCTS - the app section of the church export, people[].roles - Accounts refuses the two new requests until 1.9.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"schema": "crosscode.church-export/1",
|
||||
"exportedAt": "2027-02-01T12:00:00.000Z",
|
||||
"product": "app",
|
||||
"productVersion": "1.0.0",
|
||||
"church": { "name": "Acacia Hill Church", "timezone": "Africa/Johannesburg" },
|
||||
"people": [
|
||||
{
|
||||
"ref": "p1",
|
||||
"name": "Lindiwe Example",
|
||||
"email": "lindiwe@example.com",
|
||||
"phone": "+27825550101",
|
||||
"role": "prayer-coordinator",
|
||||
"roles": ["prayer-coordinator", "devotional-writer"],
|
||||
"createdAt": "2026-12-10T08:00:00.000Z",
|
||||
"consent": { "email": true, "whatsapp": true, "privacyNoticeAcceptedAt": "2026-12-10T08:00:00.000Z" }
|
||||
},
|
||||
{
|
||||
"ref": "p2",
|
||||
"name": "Pieter Example",
|
||||
"email": "pieter@example.com",
|
||||
"phone": null,
|
||||
"role": "member",
|
||||
"createdAt": "2026-12-12T19:20:00.000Z",
|
||||
"consent": { "email": false, "whatsapp": null, "privacyNoticeAcceptedAt": "2026-12-12T19:20:00.000Z" }
|
||||
}
|
||||
],
|
||||
"events": [],
|
||||
"registrations": [],
|
||||
"payments": [],
|
||||
"checkIns": [],
|
||||
"rosters": [],
|
||||
"settings": { "name": "Acacia Hill Church" },
|
||||
"files": [{ "path": "uploads/campaigns/21-days.jpg", "bytes": 214380 }],
|
||||
"app": {
|
||||
"modules": ["house-of-prayer", "prayer-requests", "announcements", "devotionals", "events"],
|
||||
"prayerWall": { "slotMinutes": 60, "slotTarget": 1, "bookAheadMonths": 12, "recurringMaxMonths": 12, "cancelHours": 8, "contact": "Lindiwe, 082 555 0101" },
|
||||
"commitments": [
|
||||
{
|
||||
"ref": "c1",
|
||||
"personRef": "p2",
|
||||
"startsAt": "2026-12-14T00:00:00.000Z",
|
||||
"minutes": 120,
|
||||
"repeats": "weekly",
|
||||
"until": "2027-12-13",
|
||||
"skipped": ["2026-12-28"],
|
||||
"reminder": "1h",
|
||||
"channel": "whatsapp",
|
||||
"note": null,
|
||||
"createdAt": "2026-12-12T19:30:00.000Z",
|
||||
"stoppedAt": null
|
||||
}
|
||||
],
|
||||
"prayed": [{ "personRef": "p2", "slotStartsAt": "2026-12-14T00:00:00.000Z", "at": "2026-12-14T02:05:00.000Z" }],
|
||||
"campaigns": [
|
||||
{ "ref": "k1", "title": "21 days of prayer", "description": "Every hour covered, together.", "image": "uploads/campaigns/21-days.jpg", "startsOn": "2027-01-05", "endsOn": "2027-01-25", "goal": "Every hour covered", "slotTarget": 2 }
|
||||
],
|
||||
"testimonies": [
|
||||
{ "personRef": "p2", "campaignRef": "k1", "text": "My father came home from hospital.", "showName": true, "status": "shown", "createdAt": "2027-01-20T07:00:00.000Z" }
|
||||
],
|
||||
"prayerRequests": [
|
||||
{
|
||||
"ref": "q1",
|
||||
"personRef": "p2",
|
||||
"visibility": "members",
|
||||
"showName": false,
|
||||
"text": "Please pray for my exams this week.",
|
||||
"status": "closed",
|
||||
"prayedCount": 14,
|
||||
"createdAt": "2027-01-10T06:00:00.000Z",
|
||||
"closedAt": "2027-01-18T12:00:00.000Z",
|
||||
"updates": [{ "text": "Answered! Thank you all.", "at": "2027-01-18T12:00:00.000Z" }],
|
||||
"moderation": [
|
||||
{ "action": "approved", "by": "Lindiwe Example", "reason": null, "at": "2027-01-10T07:10:00.000Z" },
|
||||
{ "action": "closed", "by": null, "reason": null, "at": "2027-01-18T12:00:00.000Z" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"safeguarding": {
|
||||
"emergencyNumbers": [
|
||||
{ "name": "Lifeline", "number": "0861 322 322" },
|
||||
{ "name": "SADAG", "number": "0800 567 567" },
|
||||
{ "name": "Childline", "number": "116" }
|
||||
]
|
||||
},
|
||||
"announcements": [
|
||||
{
|
||||
"title": "21 days of prayer starts on 5 January",
|
||||
"body": "Book your hour on the prayer wall.",
|
||||
"image": null,
|
||||
"button": { "label": "Book an hour", "url": "https://app.acaciahill.co.za/prayer" },
|
||||
"campus": null,
|
||||
"audience": "everyone",
|
||||
"pinned": true,
|
||||
"publishAt": "2026-12-20T06:00:00.000Z",
|
||||
"endsAt": "2027-01-25T22:00:00.000Z",
|
||||
"sent": { "email": true, "whatsapp": false }
|
||||
}
|
||||
],
|
||||
"devotionalSource": "church",
|
||||
"devotionals": [
|
||||
{
|
||||
"date": "2027-01-05",
|
||||
"title": "God het eerste liefgehad",
|
||||
"passage": {
|
||||
"reference": "Johannes 3:16",
|
||||
"location": { "book": "JHN", "chapter": 3, "verse": 16, "endChapter": 3, "endVerse": 16 },
|
||||
"translation": "AFR53",
|
||||
"text": "Want so lief het God die wêreld gehad, dat Hy sy eniggebore Seun gegee het, sodat elkeen wat in Hom glo, nie verlore mag gaan nie, maar die ewige lewe kan hê."
|
||||
},
|
||||
"body": "God het eerste liefgehad.",
|
||||
"prayer": null,
|
||||
"author": "Lindiwe Example",
|
||||
"membersOnly": false
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"ref": "w1",
|
||||
"title": "Prayer night",
|
||||
"description": "An evening of worship and prayer.",
|
||||
"startsAt": "2027-01-15T17:00:00.000Z",
|
||||
"endsAt": "2027-01-15T19:00:00.000Z",
|
||||
"location": "Acacia Hill Church hall",
|
||||
"link": null,
|
||||
"image": null,
|
||||
"published": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"schema": "crosscode.devotional/1",
|
||||
"from": "2027-01-05",
|
||||
"to": "2027-04-05",
|
||||
"devotionals": [
|
||||
{
|
||||
"schema": "crosscode.devotional/1",
|
||||
"id": "3b4c5d6e-7f8a-4b9c-8d0e-2f3a4b5c6d7e",
|
||||
"source": "crosscode",
|
||||
"date": "2027-01-05",
|
||||
"title": "Love that never gives up",
|
||||
"passage": {
|
||||
"reference": "1 Corinthians 13:4–7",
|
||||
"location": { "book": "1CO", "chapter": 13, "verse": 4, "endChapter": 13, "endVerse": 7 },
|
||||
"translation": "NLT",
|
||||
"text": "Love is patient and kind. Love is not jealous or boastful or proud or rude. It does not demand its own way. It is not irritable, and it keeps no record of being wronged. It does not rejoice about injustice but rejoices whenever the truth wins out. Love never gives up, never loses faith, is always hopeful, and endures through every circumstance."
|
||||
},
|
||||
"body": "Paul wrote these words to a church that was proud of its gifts.\n\nLove is the gift that makes the others worth having.",
|
||||
"prayer": "Lord, teach me to love the way you love me.",
|
||||
"author": "Cross Code",
|
||||
"updatedAt": "2026-12-01T10:00:00.000Z"
|
||||
},
|
||||
{
|
||||
"schema": "crosscode.devotional/1",
|
||||
"id": "4c5d6e7f-8a9b-4c0d-9e1f-3a4b5c6d7e8f",
|
||||
"source": "crosscode",
|
||||
"date": "2027-01-06",
|
||||
"title": "Die Here is my herder",
|
||||
"passage": {
|
||||
"reference": "Psalms 23:1–3",
|
||||
"location": { "book": "PSA", "chapter": 23, "verse": 1, "endChapter": 23, "endVerse": 3 },
|
||||
"translation": "AFR83",
|
||||
"text": "Die Here is my herder, ek kom niks kort nie. Hy laat my rus in groen weivelde. Hy bring my by waters waar daar vrede is. Hy gee my nuwe krag. Hy lei my op die regte paaie tot eer van sy Naam."
|
||||
},
|
||||
"body": "Vandag herinner Dawid ons dat ons nie alleen loop nie.",
|
||||
"prayer": null,
|
||||
"author": null,
|
||||
"updatedAt": "2026-12-01T10:00:00.000Z"
|
||||
}
|
||||
],
|
||||
"generatedAt": "2027-01-05T00:30:00.000Z"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"schema": "crosscode.identity-request/1",
|
||||
"type": "messaging.changed",
|
||||
"occurredAt": "2026-12-03T09:15:00.000Z",
|
||||
"email": false,
|
||||
"whatsapp": true
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"schema": "crosscode.identity-request/1",
|
||||
"email": {
|
||||
"host": "smtp.acaciahill.co.za",
|
||||
"port": 587,
|
||||
"secure": false,
|
||||
"user": "hello@acaciahill.co.za",
|
||||
"pass": "sealed1.DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD",
|
||||
"from": "Acacia Hill Church <hello@acaciahill.co.za>"
|
||||
},
|
||||
"whatsapp": {
|
||||
"accessToken": "sealed1.EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE",
|
||||
"instanceId": "ACACIA01"
|
||||
},
|
||||
"updatedAt": "2026-12-02T07:30:00.000Z"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"schema": "crosscode.identity-request/1",
|
||||
"requestId": "1f2a3b4c-5d6e-4f7a-8b9c-0d1e2f3a4b5c",
|
||||
"actor": null,
|
||||
"type": "messaging.get"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"schema": "crosscode.identity-request/1",
|
||||
"accounts": 1
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"schema": "crosscode.identity-request/1",
|
||||
"requestId": "2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d",
|
||||
"actor": null,
|
||||
"type": "whatsapp.optout",
|
||||
"phone": "+27825550123",
|
||||
"receivedAt": "2026-12-04T18:42:10.000Z",
|
||||
"keyword": "STOP"
|
||||
}
|
||||
Reference in New Issue
Block a user