@churchapps/helpers 1.2.7 → 1.2.8
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/dist/ApiHelper.js +3 -6
- package/dist/ApiHelper.js.map +1 -1
- package/dist/AppearanceHelper.js +1 -5
- package/dist/AppearanceHelper.js.map +1 -1
- package/dist/ArrayHelper.js +3 -7
- package/dist/ArrayHelper.js.map +1 -1
- package/dist/CommonEnvironmentHelper.js +1 -5
- package/dist/CommonEnvironmentHelper.js.map +1 -1
- package/dist/CurrencyHelper.js +1 -5
- package/dist/CurrencyHelper.js.map +1 -1
- package/dist/DateHelper.js +9 -49
- package/dist/DateHelper.js.map +1 -1
- package/dist/DonationHelper.js +1 -5
- package/dist/DonationHelper.js.map +1 -1
- package/dist/ErrorHelper.js +1 -5
- package/dist/ErrorHelper.js.map +1 -1
- package/dist/EventHelper.js +4 -8
- package/dist/EventHelper.js.map +1 -1
- package/dist/FileHelper.js +1 -5
- package/dist/FileHelper.js.map +1 -1
- package/dist/PersonHelper.js +3 -7
- package/dist/PersonHelper.js.map +1 -1
- package/dist/PlanHelper.js +3 -7
- package/dist/PlanHelper.js.map +1 -1
- package/dist/UniqueIdHelper.js +1 -5
- package/dist/UniqueIdHelper.js.map +1 -1
- package/dist/UserHelper.js +7 -11
- package/dist/UserHelper.js.map +1 -1
- package/dist/contentProviders/ContentProvider.js +1 -2
- package/dist/contentProviders/LessonsContentProvider.d.ts +52 -3
- package/dist/contentProviders/LessonsContentProvider.d.ts.map +1 -1
- package/dist/contentProviders/LessonsContentProvider.js +162 -26
- package/dist/contentProviders/LessonsContentProvider.js.map +1 -1
- package/dist/contentProviders/index.js +1 -5
- package/dist/contentProviders/index.js.map +1 -1
- package/dist/index.js +16 -47
- package/dist/index.js.map +1 -1
- package/dist/interfaces/Access.js +1 -2
- package/dist/interfaces/Attendance.js +1 -2
- package/dist/interfaces/Content.js +1 -2
- package/dist/interfaces/Doing.js +1 -2
- package/dist/interfaces/Donation.js +1 -5
- package/dist/interfaces/Donation.js.map +1 -1
- package/dist/interfaces/Error.js +1 -2
- package/dist/interfaces/Lessons.js +1 -2
- package/dist/interfaces/Lessons.js.map +1 -1
- package/dist/interfaces/Membership.js +1 -2
- package/dist/interfaces/Messaging.js +1 -2
- package/dist/interfaces/Permissions.js +1 -5
- package/dist/interfaces/Permissions.js.map +1 -1
- package/dist/interfaces/Reporting.js +1 -2
- package/dist/interfaces/UserContextInterface.js +1 -2
- package/dist/interfaces/index.js +12 -28
- package/dist/interfaces/index.js.map +1 -1
- package/package.json +9 -1
- package/src/contentProviders/LessonsContentProvider.ts +176 -26
- package/src/index.ts +0 -1
- package/tsconfig.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PlanInterface, PlanItemInterface, PlanItemContentInterface, ExternalVenueRefInterface } from "../interfaces";
|
|
2
|
-
import type { VenuePlanItemsResponseInterface, VenueActionResponseInterface } from "../interfaces/Lessons";
|
|
2
|
+
import type { VenuePlanItemsResponseInterface, VenueActionResponseInterface, LessonTreeInterface, LessonActionTreeInterface } from "../interfaces/Lessons";
|
|
3
3
|
import type { ContentProviderInterface } from "./ContentProvider";
|
|
4
4
|
export declare class LessonsContentProvider implements ContentProviderInterface {
|
|
5
5
|
readonly providerId = "lessons";
|
|
@@ -7,11 +7,60 @@ export declare class LessonsContentProvider implements ContentProviderInterface
|
|
|
7
7
|
constructor(lessonsUrl?: string);
|
|
8
8
|
canHandle(plan: PlanInterface, planItem: PlanItemInterface): boolean;
|
|
9
9
|
fetchContent(plan: PlanInterface, planItems: PlanItemInterface[]): Promise<Map<string, PlanItemContentInterface>>;
|
|
10
|
-
fetchVenuePlanItems(plan: PlanInterface): Promise<VenuePlanItemsResponseInterface>;
|
|
11
|
-
fetchVenueActions(plan: PlanInterface): Promise<VenueActionResponseInterface>;
|
|
12
10
|
hasAssociatedLesson(plan: PlanInterface): boolean;
|
|
13
11
|
isExternalVenue(plan: PlanInterface): boolean;
|
|
14
12
|
getExternalRef(plan: PlanInterface): ExternalVenueRefInterface | null;
|
|
15
13
|
getVenueId(plan: PlanInterface): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch venue plan items - the basic hierarchical structure
|
|
16
|
+
* Returns: headers with children (sections), but sections don't have their actions
|
|
17
|
+
* Use this for preview mode display
|
|
18
|
+
*/
|
|
19
|
+
fetchVenuePlanItems(plan: PlanInterface): Promise<VenuePlanItemsResponseInterface>;
|
|
20
|
+
/**
|
|
21
|
+
* Fetch venue actions - sections with their full action lists
|
|
22
|
+
* Use this for action selection dialogs and full expansion
|
|
23
|
+
*/
|
|
24
|
+
fetchVenueActions(plan: PlanInterface): Promise<VenueActionResponseInterface>;
|
|
25
|
+
/**
|
|
26
|
+
* Fetch the full lesson tree for browsing (programs -> studies -> lessons -> venues)
|
|
27
|
+
*/
|
|
28
|
+
fetchLessonTree(): Promise<LessonTreeInterface>;
|
|
29
|
+
/**
|
|
30
|
+
* Fetch the action tree for action selection (includes actions in each venue section)
|
|
31
|
+
*/
|
|
32
|
+
fetchActionTree(): Promise<LessonActionTreeInterface>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the display list - hierarchical items suitable for preview
|
|
35
|
+
* Structure: headers -> sections (no actions expanded)
|
|
36
|
+
* This is the lightweight version for showing what a lesson contains
|
|
37
|
+
*/
|
|
38
|
+
getDisplayList(plan: PlanInterface): Promise<PlanItemInterface[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Get display list with sections only (strip actions from children)
|
|
41
|
+
* Use this when importing a lesson as editable plan items
|
|
42
|
+
*/
|
|
43
|
+
getSectionsOnlyList(plan: PlanInterface): Promise<PlanItemInterface[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the fully expanded list - items with all actions populated in sections
|
|
46
|
+
* Merges fetchVenuePlanItems with fetchVenueActions to get complete data
|
|
47
|
+
*/
|
|
48
|
+
getExpandedList(plan: PlanInterface): Promise<PlanItemInterface[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Get embed URL for an action
|
|
51
|
+
*/
|
|
52
|
+
getActionEmbedUrl(actionId: string, externalProviderId?: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Get embed URL for an add-on
|
|
55
|
+
*/
|
|
56
|
+
getAddOnEmbedUrl(addOnId: string, externalProviderId?: string): string;
|
|
57
|
+
/**
|
|
58
|
+
* Get embed URL for a section
|
|
59
|
+
*/
|
|
60
|
+
getSectionEmbedUrl(sectionId: string, externalProviderId?: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Get the external provider ID from a plan (if external)
|
|
63
|
+
*/
|
|
64
|
+
getExternalProviderId(plan: PlanInterface): string | null;
|
|
16
65
|
}
|
|
17
66
|
//# sourceMappingURL=LessonsContentProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LessonsContentProvider.d.ts","sourceRoot":"","sources":["../../src/contentProviders/LessonsContentProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"LessonsContentProvider.d.ts","sourceRoot":"","sources":["../../src/contentProviders/LessonsContentProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC3H,OAAO,KAAK,EAAE,+BAA+B,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAC3J,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,qBAAa,sBAAuB,YAAW,wBAAwB;IACrE,QAAQ,CAAC,UAAU,aAAa;IAEhC,OAAO,CAAC,UAAU,CAAS;gBAEf,UAAU,GAAE,MAAiC;IAIzD,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,GAAG,OAAO;IAW9D,YAAY,CAChB,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE,iBAAiB,EA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
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.LessonsContentProvider = void 0;
|
|
4
|
-
const ApiHelper_1 = require("../ApiHelper");
|
|
5
|
-
class LessonsContentProvider {
|
|
1
|
+
import { ApiHelper } from "../ApiHelper";
|
|
2
|
+
export class LessonsContentProvider {
|
|
6
3
|
providerId = "lessons";
|
|
7
4
|
lessonsUrl;
|
|
8
5
|
constructor(lessonsUrl = "https://lessons.church") {
|
|
@@ -52,26 +49,9 @@ class LessonsContentProvider {
|
|
|
52
49
|
}
|
|
53
50
|
return result;
|
|
54
51
|
}
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return { items: [] };
|
|
59
|
-
const externalRef = this.getExternalRef(plan);
|
|
60
|
-
if (externalRef) {
|
|
61
|
-
return await ApiHelper_1.ApiHelper.getAnonymous(`/externalProviders/${externalRef.externalProviderId}/venue/${externalRef.venueId}/planItems`, "LessonsApi");
|
|
62
|
-
}
|
|
63
|
-
return await ApiHelper_1.ApiHelper.getAnonymous(`/venues/public/planItems/${plan.contentId}`, "LessonsApi");
|
|
64
|
-
}
|
|
65
|
-
// Fetch venue actions (for expanding sections)
|
|
66
|
-
async fetchVenueActions(plan) {
|
|
67
|
-
if (!this.hasAssociatedLesson(plan))
|
|
68
|
-
return { sections: [] };
|
|
69
|
-
const externalRef = this.getExternalRef(plan);
|
|
70
|
-
if (externalRef) {
|
|
71
|
-
return await ApiHelper_1.ApiHelper.getAnonymous(`/externalProviders/${externalRef.externalProviderId}/venue/${externalRef.venueId}/actions`, "LessonsApi");
|
|
72
|
-
}
|
|
73
|
-
return await ApiHelper_1.ApiHelper.getAnonymous(`/venues/public/actions/${plan.contentId}`, "LessonsApi");
|
|
74
|
-
}
|
|
52
|
+
// ============================================
|
|
53
|
+
// Plan/Lesson Association Methods
|
|
54
|
+
// ============================================
|
|
75
55
|
hasAssociatedLesson(plan) {
|
|
76
56
|
return (plan?.contentType === "venue" || plan?.contentType === "externalVenue") && !!plan?.contentId;
|
|
77
57
|
}
|
|
@@ -96,6 +76,162 @@ class LessonsContentProvider {
|
|
|
96
76
|
}
|
|
97
77
|
return plan.contentId || null;
|
|
98
78
|
}
|
|
79
|
+
// ============================================
|
|
80
|
+
// API Fetch Methods
|
|
81
|
+
// ============================================
|
|
82
|
+
/**
|
|
83
|
+
* Fetch venue plan items - the basic hierarchical structure
|
|
84
|
+
* Returns: headers with children (sections), but sections don't have their actions
|
|
85
|
+
* Use this for preview mode display
|
|
86
|
+
*/
|
|
87
|
+
async fetchVenuePlanItems(plan) {
|
|
88
|
+
if (!this.hasAssociatedLesson(plan))
|
|
89
|
+
return { items: [] };
|
|
90
|
+
const externalRef = this.getExternalRef(plan);
|
|
91
|
+
if (externalRef) {
|
|
92
|
+
return await ApiHelper.getAnonymous(`/externalProviders/${externalRef.externalProviderId}/venue/${externalRef.venueId}/planItems`, "LessonsApi");
|
|
93
|
+
}
|
|
94
|
+
return await ApiHelper.getAnonymous(`/venues/public/planItems/${plan.contentId}`, "LessonsApi");
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Fetch venue actions - sections with their full action lists
|
|
98
|
+
* Use this for action selection dialogs and full expansion
|
|
99
|
+
*/
|
|
100
|
+
async fetchVenueActions(plan) {
|
|
101
|
+
if (!this.hasAssociatedLesson(plan))
|
|
102
|
+
return { sections: [] };
|
|
103
|
+
const externalRef = this.getExternalRef(plan);
|
|
104
|
+
if (externalRef) {
|
|
105
|
+
return await ApiHelper.getAnonymous(`/externalProviders/${externalRef.externalProviderId}/venue/${externalRef.venueId}/actions`, "LessonsApi");
|
|
106
|
+
}
|
|
107
|
+
return await ApiHelper.getAnonymous(`/venues/public/actions/${plan.contentId}`, "LessonsApi");
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Fetch the full lesson tree for browsing (programs -> studies -> lessons -> venues)
|
|
111
|
+
*/
|
|
112
|
+
async fetchLessonTree() {
|
|
113
|
+
return await ApiHelper.getAnonymous("/lessons/public/tree", "LessonsApi");
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Fetch the action tree for action selection (includes actions in each venue section)
|
|
117
|
+
*/
|
|
118
|
+
async fetchActionTree() {
|
|
119
|
+
return await ApiHelper.getAnonymous("/lessons/public/actionTree", "LessonsApi");
|
|
120
|
+
}
|
|
121
|
+
// ============================================
|
|
122
|
+
// Display List Methods (for preview/display without full actions)
|
|
123
|
+
// ============================================
|
|
124
|
+
/**
|
|
125
|
+
* Get the display list - hierarchical items suitable for preview
|
|
126
|
+
* Structure: headers -> sections (no actions expanded)
|
|
127
|
+
* This is the lightweight version for showing what a lesson contains
|
|
128
|
+
*/
|
|
129
|
+
async getDisplayList(plan) {
|
|
130
|
+
const response = await this.fetchVenuePlanItems(plan);
|
|
131
|
+
return response?.items || [];
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Get display list with sections only (strip actions from children)
|
|
135
|
+
* Use this when importing a lesson as editable plan items
|
|
136
|
+
*/
|
|
137
|
+
async getSectionsOnlyList(plan) {
|
|
138
|
+
const response = await this.fetchVenuePlanItems(plan);
|
|
139
|
+
if (!response?.items)
|
|
140
|
+
return [];
|
|
141
|
+
return response.items.map(item => ({
|
|
142
|
+
...item,
|
|
143
|
+
children: item.children?.map(section => ({
|
|
144
|
+
...section,
|
|
145
|
+
children: undefined // Remove actions from sections
|
|
146
|
+
}))
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
// ============================================
|
|
150
|
+
// Expanded List Methods (with full actions)
|
|
151
|
+
// ============================================
|
|
152
|
+
/**
|
|
153
|
+
* Get the fully expanded list - items with all actions populated in sections
|
|
154
|
+
* Merges fetchVenuePlanItems with fetchVenueActions to get complete data
|
|
155
|
+
*/
|
|
156
|
+
async getExpandedList(plan) {
|
|
157
|
+
const [planItemsResponse, actionsResponse] = await Promise.all([
|
|
158
|
+
this.fetchVenuePlanItems(plan),
|
|
159
|
+
this.fetchVenueActions(plan)
|
|
160
|
+
]);
|
|
161
|
+
if (!planItemsResponse?.items)
|
|
162
|
+
return [];
|
|
163
|
+
// Create a map of section ID -> actions
|
|
164
|
+
const sectionActionsMap = new Map();
|
|
165
|
+
if (actionsResponse?.sections) {
|
|
166
|
+
for (const section of actionsResponse.sections) {
|
|
167
|
+
if (section.id && section.actions) {
|
|
168
|
+
sectionActionsMap.set(section.id, section.actions.map(action => ({
|
|
169
|
+
itemType: "action",
|
|
170
|
+
relatedId: action.id,
|
|
171
|
+
label: action.name,
|
|
172
|
+
description: action.actionType,
|
|
173
|
+
seconds: action.seconds
|
|
174
|
+
})));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// Recursively expand sections with their actions
|
|
179
|
+
const expandItem = (item) => {
|
|
180
|
+
if (!item.children)
|
|
181
|
+
return item;
|
|
182
|
+
return {
|
|
183
|
+
...item,
|
|
184
|
+
children: item.children.map(child => {
|
|
185
|
+
// If this is a section (has relatedId), try to get its actions
|
|
186
|
+
if (child.relatedId && sectionActionsMap.has(child.relatedId)) {
|
|
187
|
+
return {
|
|
188
|
+
...child,
|
|
189
|
+
children: sectionActionsMap.get(child.relatedId)
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
// Otherwise recursively process
|
|
193
|
+
return expandItem(child);
|
|
194
|
+
})
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
return planItemsResponse.items.map(expandItem);
|
|
198
|
+
}
|
|
199
|
+
// ============================================
|
|
200
|
+
// Embed URL Helpers
|
|
201
|
+
// ============================================
|
|
202
|
+
/**
|
|
203
|
+
* Get embed URL for an action
|
|
204
|
+
*/
|
|
205
|
+
getActionEmbedUrl(actionId, externalProviderId) {
|
|
206
|
+
if (externalProviderId) {
|
|
207
|
+
return `${this.lessonsUrl}/embed/external/${externalProviderId}/action/${actionId}`;
|
|
208
|
+
}
|
|
209
|
+
return `${this.lessonsUrl}/embed/action/${actionId}`;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Get embed URL for an add-on
|
|
213
|
+
*/
|
|
214
|
+
getAddOnEmbedUrl(addOnId, externalProviderId) {
|
|
215
|
+
if (externalProviderId) {
|
|
216
|
+
return `${this.lessonsUrl}/embed/external/${externalProviderId}/addon/${addOnId}`;
|
|
217
|
+
}
|
|
218
|
+
return `${this.lessonsUrl}/embed/addon/${addOnId}`;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Get embed URL for a section
|
|
222
|
+
*/
|
|
223
|
+
getSectionEmbedUrl(sectionId, externalProviderId) {
|
|
224
|
+
if (externalProviderId) {
|
|
225
|
+
return `${this.lessonsUrl}/embed/external/${externalProviderId}/section/${sectionId}`;
|
|
226
|
+
}
|
|
227
|
+
return `${this.lessonsUrl}/embed/section/${sectionId}`;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Get the external provider ID from a plan (if external)
|
|
231
|
+
*/
|
|
232
|
+
getExternalProviderId(plan) {
|
|
233
|
+
const externalRef = this.getExternalRef(plan);
|
|
234
|
+
return externalRef?.externalProviderId || null;
|
|
235
|
+
}
|
|
99
236
|
}
|
|
100
|
-
exports.LessonsContentProvider = LessonsContentProvider;
|
|
101
237
|
//# sourceMappingURL=LessonsContentProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LessonsContentProvider.js","sourceRoot":"","sources":["../../src/contentProviders/LessonsContentProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LessonsContentProvider.js","sourceRoot":"","sources":["../../src/contentProviders/LessonsContentProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,OAAO,sBAAsB;IACxB,UAAU,GAAG,SAAS,CAAC;IAExB,UAAU,CAAS;IAE3B,YAAY,aAAqB,wBAAwB;QACvD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,SAAS,CAAC,I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;OAEG;IACH,kBAAkB,CAAC,SAAiB,EAAE,kBAA2B;QAC/D,IAAI,kBAAkB,EAAE,CAAC;YACvB,OAAO,GAAG,IAAI,CAAC,UAAU,mBAAmB,kBAAkB,YAAY,SAAS,EAAE,CAAC;QACxF,CAAC;QACD,OAAO,GAAG,IAAI,CAAC,UAAU,kBAAkB,SAAS,EAAE,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,qBAAqB,CAAC,IAAmB;QACvC,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,WAAW,EAAE,kBAAkB,IAAI,IAAI,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LessonsContentProvider = void 0;
|
|
4
|
-
var LessonsContentProvider_1 = require("./LessonsContentProvider");
|
|
5
|
-
Object.defineProperty(exports, "LessonsContentProvider", { enumerable: true, get: function () { return LessonsContentProvider_1.LessonsContentProvider; } });
|
|
1
|
+
export { LessonsContentProvider } from "./LessonsContentProvider";
|
|
6
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contentProviders/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contentProviders/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.PlanHelper = exports.UniqueIdHelper = exports.UserHelper = exports.PersonHelper = exports.FileHelper = exports.EventHelper = exports.ErrorHelper = exports.DonationHelper = exports.DateHelper = exports.CurrencyHelper = exports.CommonEnvironmentHelper = exports.ArrayHelper = exports.AppearanceHelper = exports.ApiHelper = void 0;
|
|
18
|
-
__exportStar(require("./interfaces"), exports);
|
|
19
|
-
var ApiHelper_1 = require("./ApiHelper");
|
|
20
|
-
Object.defineProperty(exports, "ApiHelper", { enumerable: true, get: function () { return ApiHelper_1.ApiHelper; } });
|
|
21
|
-
var AppearanceHelper_1 = require("./AppearanceHelper");
|
|
22
|
-
Object.defineProperty(exports, "AppearanceHelper", { enumerable: true, get: function () { return AppearanceHelper_1.AppearanceHelper; } });
|
|
23
|
-
var ArrayHelper_1 = require("./ArrayHelper");
|
|
24
|
-
Object.defineProperty(exports, "ArrayHelper", { enumerable: true, get: function () { return ArrayHelper_1.ArrayHelper; } });
|
|
25
|
-
var CommonEnvironmentHelper_1 = require("./CommonEnvironmentHelper");
|
|
26
|
-
Object.defineProperty(exports, "CommonEnvironmentHelper", { enumerable: true, get: function () { return CommonEnvironmentHelper_1.CommonEnvironmentHelper; } });
|
|
27
|
-
var CurrencyHelper_1 = require("./CurrencyHelper");
|
|
28
|
-
Object.defineProperty(exports, "CurrencyHelper", { enumerable: true, get: function () { return CurrencyHelper_1.CurrencyHelper; } });
|
|
29
|
-
var DateHelper_1 = require("./DateHelper");
|
|
30
|
-
Object.defineProperty(exports, "DateHelper", { enumerable: true, get: function () { return DateHelper_1.DateHelper; } });
|
|
31
|
-
var DonationHelper_1 = require("./DonationHelper");
|
|
32
|
-
Object.defineProperty(exports, "DonationHelper", { enumerable: true, get: function () { return DonationHelper_1.DonationHelper; } });
|
|
33
|
-
var ErrorHelper_1 = require("./ErrorHelper");
|
|
34
|
-
Object.defineProperty(exports, "ErrorHelper", { enumerable: true, get: function () { return ErrorHelper_1.ErrorHelper; } });
|
|
35
|
-
var EventHelper_1 = require("./EventHelper");
|
|
36
|
-
Object.defineProperty(exports, "EventHelper", { enumerable: true, get: function () { return EventHelper_1.EventHelper; } });
|
|
37
|
-
var FileHelper_1 = require("./FileHelper");
|
|
38
|
-
Object.defineProperty(exports, "FileHelper", { enumerable: true, get: function () { return FileHelper_1.FileHelper; } });
|
|
39
|
-
var PersonHelper_1 = require("./PersonHelper");
|
|
40
|
-
Object.defineProperty(exports, "PersonHelper", { enumerable: true, get: function () { return PersonHelper_1.PersonHelper; } });
|
|
41
|
-
var UserHelper_1 = require("./UserHelper");
|
|
42
|
-
Object.defineProperty(exports, "UserHelper", { enumerable: true, get: function () { return UserHelper_1.UserHelper; } });
|
|
43
|
-
var UniqueIdHelper_1 = require("./UniqueIdHelper");
|
|
44
|
-
Object.defineProperty(exports, "UniqueIdHelper", { enumerable: true, get: function () { return UniqueIdHelper_1.UniqueIdHelper; } });
|
|
45
|
-
var PlanHelper_1 = require("./PlanHelper");
|
|
46
|
-
Object.defineProperty(exports, "PlanHelper", { enumerable: true, get: function () { return PlanHelper_1.PlanHelper; } });
|
|
47
|
-
__exportStar(require("./contentProviders"), exports);
|
|
1
|
+
export * from "./interfaces";
|
|
2
|
+
export { ApiHelper } from "./ApiHelper";
|
|
3
|
+
export { AppearanceHelper } from "./AppearanceHelper";
|
|
4
|
+
export { ArrayHelper } from "./ArrayHelper";
|
|
5
|
+
export { CommonEnvironmentHelper } from "./CommonEnvironmentHelper";
|
|
6
|
+
export { CurrencyHelper } from "./CurrencyHelper";
|
|
7
|
+
export { DateHelper } from "./DateHelper";
|
|
8
|
+
export { DonationHelper } from "./DonationHelper";
|
|
9
|
+
export { ErrorHelper } from "./ErrorHelper";
|
|
10
|
+
export { EventHelper } from "./EventHelper";
|
|
11
|
+
export { FileHelper } from "./FileHelper";
|
|
12
|
+
export { PersonHelper } from "./PersonHelper";
|
|
13
|
+
export { UserHelper } from "./UserHelper";
|
|
14
|
+
export { UniqueIdHelper } from "./UniqueIdHelper";
|
|
15
|
+
export { PlanHelper } from "./PlanHelper";
|
|
16
|
+
export * from "./contentProviders";
|
|
48
17
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
|
package/dist/interfaces/Doing.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StripePaymentMethod = void 0;
|
|
4
|
-
class StripePaymentMethod {
|
|
1
|
+
export class StripePaymentMethod {
|
|
5
2
|
id;
|
|
6
3
|
type;
|
|
7
4
|
name;
|
|
@@ -23,5 +20,4 @@ class StripePaymentMethod {
|
|
|
23
20
|
this.account_holder_type = obj?.account_holder_type || "individual";
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
exports.StripePaymentMethod = StripePaymentMethod;
|
|
27
23
|
//# sourceMappingURL=Donation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Donation.js","sourceRoot":"","sources":["../../src/interfaces/Donation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Donation.js","sourceRoot":"","sources":["../../src/interfaces/Donation.ts"],"names":[],"mappings":"AAuKA,MAAM,OAAO,mBAAmB;IAC9B,EAAE,CAAS;IACX,IAAI,CAAS;IACb,IAAI,CAAS;IACb,KAAK,CAAS;IACd,SAAS,CAAU;IACnB,QAAQ,CAAU;IAClB,MAAM,CAAU;IAChB,mBAAmB,CAAU;IAC7B,mBAAmB,CAAU;IAE7B,YAAY,GAAS;QACnB,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACxF,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,IAAI,EAAE,KAAK,IAAI,GAAG,EAAE,SAAS,IAAI,IAAI,CAAC;QACvD,IAAI,CAAC,KAAK,GAAG,GAAG,EAAE,KAAK,IAAI,GAAG,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,GAAG,EAAE,SAAS,IAAI,GAAG,EAAE,IAAI,EAAE,SAAS,IAAI,IAAI,CAAC;QAChE,IAAI,CAAC,QAAQ,GAAG,GAAG,EAAE,QAAQ,IAAI,GAAG,EAAE,IAAI,EAAE,QAAQ,IAAI,IAAI,CAAC;QAC7D,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,MAAM,IAAI,IAAI,CAAC;QAClC,IAAI,CAAC,mBAAmB,GAAG,GAAG,EAAE,mBAAmB,IAAI,EAAE,CAAC;QAC1D,IAAI,CAAC,mBAAmB,GAAG,GAAG,EAAE,mBAAmB,IAAI,YAAY,CAAC;IACtE,CAAC;CACF"}
|
package/dist/interfaces/Error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lessons.js","sourceRoot":"","sources":["../../src/interfaces/Lessons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lessons.js","sourceRoot":"","sources":["../../src/interfaces/Lessons.ts"],"names":[],"mappings":"AAAA,yDAAyD"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Permissions = void 0;
|
|
4
|
-
class Permissions {
|
|
1
|
+
export class Permissions {
|
|
5
2
|
static attendanceApi = {
|
|
6
3
|
attendance: {
|
|
7
4
|
view: { api: "AttendanceApi", contentType: "Attendance", action: "View" },
|
|
@@ -90,5 +87,4 @@ class Permissions {
|
|
|
90
87
|
}
|
|
91
88
|
};
|
|
92
89
|
}
|
|
93
|
-
exports.Permissions = Permissions;
|
|
94
90
|
//# sourceMappingURL=Permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../src/interfaces/Permissions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../src/interfaces/Permissions.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAW;IACtB,MAAM,CAAC,aAAa,GAAG;QACrB,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE;YACzE,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,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;SACjE;QACD,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE;SACpE;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE;gBACJ,GAAG,EAAE,YAAY;gBACjB,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,MAAM;aACf;SACF;KACF,CAAC"}
|
package/dist/interfaces/index.js
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Error"), exports);
|
|
18
|
-
__exportStar(require("./UserContextInterface"), exports);
|
|
19
|
-
__exportStar(require("./Permissions"), exports);
|
|
1
|
+
export * from "./Error";
|
|
2
|
+
export * from "./UserContextInterface";
|
|
3
|
+
export * from "./Permissions";
|
|
20
4
|
// API interfaces
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
5
|
+
export * from "./Access";
|
|
6
|
+
export * from "./Attendance";
|
|
7
|
+
export * from "./Content";
|
|
8
|
+
export * from "./Doing";
|
|
9
|
+
export * from "./Donation";
|
|
10
|
+
export * from "./Lessons";
|
|
11
|
+
export * from "./Membership";
|
|
12
|
+
export * from "./Messaging";
|
|
13
|
+
export * from "./Reporting";
|
|
30
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAE9B,iBAAiB;AACjB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@churchapps/helpers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Library of helper functions not specific to any one ChurchApps project or framework.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
6
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
7
15
|
"scripts": {
|
|
8
16
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
17
|
"clean": "rimraf dist",
|