@churchapps/helpers 1.2.24 → 1.2.26

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 (43) hide show
  1. package/dist/interfaces/Messaging.d.ts +21 -0
  2. package/dist/interfaces/Messaging.d.ts.map +1 -1
  3. package/dist/interfaces/Permissions.d.ts +9 -0
  4. package/dist/interfaces/Permissions.d.ts.map +1 -1
  5. package/dist/interfaces/Permissions.js +5 -0
  6. package/dist/interfaces/Permissions.js.map +1 -1
  7. package/package.json +10 -5
  8. package/.github/FUNDING.yml +0 -1
  9. package/.yarnrc.yml +0 -6
  10. package/eslint.config.js +0 -48
  11. package/scripts/build-cjs.js +0 -33
  12. package/src/ApiHelper.ts +0 -169
  13. package/src/AppearanceHelper.ts +0 -69
  14. package/src/ArrayHelper.ts +0 -139
  15. package/src/CommonEnvironmentHelper.ts +0 -104
  16. package/src/CurrencyHelper.ts +0 -66
  17. package/src/DateHelper.ts +0 -180
  18. package/src/DonationHelper.ts +0 -25
  19. package/src/ErrorHelper.ts +0 -38
  20. package/src/EventHelper.ts +0 -83
  21. package/src/FileHelper.ts +0 -57
  22. package/src/PersonHelper.ts +0 -80
  23. package/src/PlanHelper.ts +0 -135
  24. package/src/UniqueIdHelper.ts +0 -159
  25. package/src/UserHelper.ts +0 -61
  26. package/src/contentProviders/ContentProvider.ts +0 -15
  27. package/src/contentProviders/LessonsContentProvider.ts +0 -278
  28. package/src/contentProviders/index.ts +0 -2
  29. package/src/index.ts +0 -16
  30. package/src/interfaces/Access.ts +0 -138
  31. package/src/interfaces/Attendance.ts +0 -45
  32. package/src/interfaces/Content.ts +0 -84
  33. package/src/interfaces/Doing.ts +0 -142
  34. package/src/interfaces/Donation.ts +0 -193
  35. package/src/interfaces/Error.ts +0 -17
  36. package/src/interfaces/Lessons.ts +0 -61
  37. package/src/interfaces/Membership.ts +0 -184
  38. package/src/interfaces/Messaging.ts +0 -96
  39. package/src/interfaces/Permissions.ts +0 -78
  40. package/src/interfaces/Reporting.ts +0 -41
  41. package/src/interfaces/UserContextInterface.ts +0 -13
  42. package/src/interfaces/index.ts +0 -14
  43. package/tsconfig.json +0 -36
@@ -1,184 +0,0 @@
1
- export interface AnswerInterface {
2
- id?: string;
3
- value?: string;
4
- questionId?: string;
5
- formSubmissionId?: string;
6
- required?: boolean;
7
- }
8
- export interface CampusInterface {
9
- id?: string;
10
- name?: string;
11
- }
12
- export interface ContactInfoInterface {
13
- address1?: string;
14
- address2?: string;
15
- city?: string;
16
- state?: string;
17
- zip?: string;
18
- homePhone?: string;
19
- mobilePhone?: string;
20
- workPhone?: string;
21
- email?: string;
22
- pager?: string;
23
- fax?: string;
24
- skype?: string;
25
- workEmail?: string;
26
- }
27
- export interface FormInterface {
28
- id?: string;
29
- name?: string;
30
- contentType?: string;
31
- restricted?: boolean;
32
- accessStartTime?: Date;
33
- accessEndTime?: Date;
34
- archived: boolean;
35
- action?: string;
36
- }
37
- export interface FormSubmissionInterface {
38
- id?: string;
39
- formId?: string;
40
- contentType?: string;
41
- contentId?: string;
42
- form?: FormInterface;
43
- answers?: AnswerInterface[];
44
- questions?: QuestionInterface[];
45
- }
46
- export interface GroupInterface {
47
- id?: string;
48
- name?: string;
49
- categoryName?: string;
50
- memberCount?: number;
51
- trackAttendance?: boolean;
52
- parentPickup?: boolean;
53
- printNametag?: boolean;
54
- about?: string;
55
- photoUrl?: string;
56
- tags?: string;
57
- meetingTime?: string;
58
- meetingLocation?: string;
59
- labelArray?: string[];
60
- slug?: string;
61
- }
62
- export interface GroupMemberInterface {
63
- id?: string;
64
- personId: string;
65
- person?: PersonInterface;
66
- groupId: string;
67
- group?: GroupInterface;
68
- leader?: boolean;
69
- }
70
- export interface GroupServiceTimeInterface {
71
- id?: string;
72
- groupId?: string;
73
- serviceTimeId?: string;
74
- serviceTime?: ServiceTimeInterface;
75
- }
76
- export interface HouseholdInterface {
77
- id?: string;
78
- name?: string;
79
- }
80
- export interface HouseholdMemberInterface {
81
- id?: string;
82
- householdId?: string;
83
- household?: HouseholdInterface;
84
- personId?: string;
85
- person?: PersonInterface;
86
- role?: string;
87
- }
88
- export interface NameInterface {
89
- first?: string;
90
- middle?: string;
91
- last?: string;
92
- nick?: string;
93
- display?: string;
94
- title?: string;
95
- suffix?: string;
96
- }
97
- export interface SearchCondition {
98
- field: string;
99
- operator: string;
100
- value: string;
101
- }
102
- export interface VisibilityPreferenceInterface {
103
- id?: string;
104
- churchId?: string;
105
- personId?: string;
106
- address?: string;
107
- phoneNumber?: string;
108
- email?: string;
109
- }
110
-
111
- export interface PersonInterface {
112
- id?: string;
113
- name: NameInterface;
114
- contactInfo: ContactInfoInterface;
115
- membershipStatus?: string;
116
- gender?: string;
117
- birthDate?: string; // YYYY-MM-DD format - date-only field
118
- maritalStatus?: string;
119
- anniversary?: string; // YYYY-MM-DD format - date-only field
120
- photo?: string;
121
- photoUpdated?: Date;
122
- householdId?: string;
123
- householdRole?: string;
124
- userId?: string;
125
- school?: string;
126
- grade?: string;
127
- graduationDate?: string;
128
- employer?: string;
129
- formSubmissions?: [FormSubmissionInterface];
130
- child?: boolean;
131
- inactiveReason?: string;
132
- inactiveDate?: Date;
133
- servicesUser?: boolean;
134
- calendarUser?: boolean;
135
- checkInsUser?: boolean;
136
- registrationsUser?: boolean;
137
- givingUser?: boolean;
138
- groupsUser?: boolean;
139
- conversationId?: string;
140
- optedOut?: boolean;
141
- nametagNotes?: string;
142
- donorNumber?: string;
143
- }
144
- export interface QuestionInterface {
145
- id?: string;
146
- formId?: string;
147
- title?: string;
148
- fieldType?: string;
149
- placeholder?: string;
150
- description?: string;
151
- required?: boolean;
152
- choices?: [{ value?: string; text?: string }];
153
- }
154
- export interface ServiceInterface {
155
- id?: string;
156
- campusId?: string;
157
- name?: string;
158
- campus?: CampusInterface;
159
- }
160
- export interface ServiceTimeInterface {
161
- id?: string;
162
- name?: string;
163
- longName?: string;
164
- serviceId?: string;
165
- groups?: GroupInterface[];
166
- }
167
- export interface MemberPermissionInterface {
168
- id?: string;
169
- churchId?: string;
170
- memberId?: string;
171
- contentType?: string;
172
- contentId?: string;
173
- action?: string;
174
- personName: string;
175
- formName?: string;
176
- emailNotification?: boolean;
177
- }
178
- export interface FormMemberInterface {
179
- person?: PersonInterface;
180
- access?: string;
181
- }
182
- export interface FormMemberListInterface {
183
- members?: FormMemberInterface[];
184
- }
@@ -1,96 +0,0 @@
1
- import { PersonInterface } from "./Membership.js";
2
-
3
- export interface ConnectionInterface {
4
- id?: string;
5
- churchId?: string;
6
- conversationId?: string;
7
- personId?: string;
8
- displayName?: string;
9
- timeJoined?: Date;
10
- socketId?: string;
11
- ipAddress?: string;
12
- }
13
- export interface ConversationInterface {
14
- id?: string;
15
- churchId?: string;
16
- contentType?: string;
17
- contentId?: string;
18
- title?: string;
19
- dateCreated?: Date;
20
- groupId?: string;
21
- visibility?: string;
22
- firstPostId?: string;
23
- lastPostId?: string;
24
- postCount?: number;
25
- allowAnonymousPosts?: boolean;
26
- messages?: MessageInterface[];
27
- }
28
- export interface MessageInterface {
29
- id?: string;
30
- churchId?: string;
31
- conversationId?: string;
32
- personId?: string;
33
- displayName?: string;
34
- timeSent?: Date;
35
- timeUpdated?: Date;
36
- messageType?: string;
37
- content?: string;
38
- person?: PersonInterface;
39
- }
40
- export interface NotificationInterface {
41
- id?: string;
42
- churchId?: string;
43
- personId?: string;
44
- contentType?: string;
45
- contentId: string;
46
- timeSent?: Date;
47
- isNew: boolean;
48
- message?: string;
49
- link?: string;
50
- deliveryMethod?: string;
51
- }
52
- export interface NotificationPreferenceInterface {
53
- id?: string;
54
- churchId?: string;
55
- personId?: string;
56
- allowPush: boolean;
57
- emailFrequency: string;
58
- }
59
- export interface PrivateMessageInterface {
60
- id?: string;
61
- churchId?: string;
62
- fromPersonId?: string;
63
- toPersonId?: string;
64
- conversationId?: string;
65
- notifyPersonId?: string;
66
- conversation?: ConversationInterface;
67
- person?: PersonInterface;
68
- deliveryMethod?: string;
69
- }
70
- export interface BlockedIpInterface {
71
- id?: string;
72
- churchId?: string;
73
- conversationId?: string;
74
- serviceId?: string;
75
- ipAddress?: string;
76
- }
77
- export interface SocketActionHandlerInterface {
78
- action: string;
79
- id: string;
80
- handleMessage: (data: any) => void;
81
- }
82
- export type SocketPayloadAction =
83
- | "message"
84
- | "deleteMessage"
85
- | "callout"
86
- | "attendance"
87
- | "prayerRequest"
88
- | "socketId"
89
- | "privateMessage"
90
- | "privateRoomAdded"
91
- | "videoChatInvite"
92
- | "reconnect";
93
- export interface SocketPayloadInterface {
94
- action: SocketPayloadAction;
95
- data: any;
96
- }
@@ -1,78 +0,0 @@
1
- export class Permissions {
2
- static attendanceApi = {
3
- attendance: {
4
- view: { api: "AttendanceApi", contentType: "Attendance", action: "View" },
5
- viewSummary: {
6
- api: "AttendanceApi",
7
- contentType: "Attendance",
8
- action: "View Summary"
9
- },
10
- edit: { api: "AttendanceApi", contentType: "Attendance", action: "Edit" }
11
- },
12
- services: { edit: { api: "AttendanceApi", contentType: "Services", action: "Edit" } }
13
- };
14
-
15
- static membershipApi = {
16
- roles: {
17
- view: { api: "MembershipApi", contentType: "Roles", action: "View" },
18
- edit: { api: "MembershipApi", contentType: "Roles", action: "Edit" }
19
- },
20
- settings: { edit: { api: "MembershipApi", contentType: "Settings", action: "Edit" } },
21
- server: { admin: { api: "MembershipApi", contentType: "Server", action: "Admin" } },
22
- forms: {
23
- admin: { api: "MembershipApi", contentType: "Forms", action: "Admin" },
24
- edit: { api: "MembershipApi", contentType: "Forms", action: "Edit" }
25
- },
26
- groups: { edit: { api: "MembershipApi", contentType: "Groups", action: "Edit" } },
27
- people: {
28
- view: { api: "MembershipApi", contentType: "People", action: "View" },
29
- viewMembers: {
30
- api: "MembershipApi",
31
- contentType: "People",
32
- action: "View Members"
33
- },
34
- edit: { api: "MembershipApi", contentType: "People", action: "Edit" }
35
- },
36
- plans: { edit: { api: "MembershipApi", contentType: "Plans", action: "Edit" } },
37
- groupMembers: {
38
- edit: {
39
- api: "MembershipApi",
40
- contentType: "Group Members",
41
- action: "Edit"
42
- },
43
- view: {
44
- api: "MembershipApi",
45
- contentType: "Group Members",
46
- action: "View"
47
- }
48
- }
49
- };
50
-
51
- static givingApi = {
52
- donations: {
53
- viewSummary: {
54
- api: "GivingApi",
55
- contentType: "Donations",
56
- action: "View Summary"
57
- },
58
- view: { api: "GivingApi", contentType: "Donations", action: "View" },
59
- edit: { api: "GivingApi", contentType: "Donations", action: "Edit" }
60
- },
61
- settings: {
62
- view: { api: "GivingApi", contentType: "Settings", action: "View" },
63
- edit: { api: "GivingApi", contentType: "Settings", action: "Edit" }
64
- }
65
- };
66
-
67
- static contentApi = {
68
- chat: { host: { api: "ContentApi", contentType: "Chat", action: "Host" } },
69
- content: { edit: { api: "ContentApi", contentType: "Content", action: "Edit" } },
70
- streamingServices: {
71
- edit: {
72
- api: "ContentApi",
73
- contentType: "StreamingServices",
74
- action: "Edit"
75
- }
76
- }
77
- };
78
- }
@@ -1,41 +0,0 @@
1
- export interface ReportResultInterface {
2
- displayName: string;
3
- description: string;
4
- table: any[];
5
- outputs: ReportOutputInterface[];
6
- }
7
- export interface ReportInterface {
8
- keyName: string;
9
- displayName: string;
10
- description: string;
11
- parameters: ParameterInterface[];
12
- permissions: ReportPermissionGroupInterface[];
13
- }
14
- export interface ParameterInterface {
15
- keyName: string;
16
- displayName?: string;
17
- source: string;
18
- sourceKey: string;
19
- options: { value: string; text: string }[];
20
- value?: string;
21
- requiredParentIds?: string[];
22
- defaultValue: string;
23
- }
24
- export interface ReportOutputInterface {
25
- outputType: string;
26
- columns: ColumnInterface[];
27
- groupings?: number[];
28
- }
29
- export interface ColumnInterface {
30
- header: string;
31
- value: string;
32
- formatter: string;
33
- }
34
- export interface ReportPermissionGroupInterface {
35
- requireOne: ReportPermissionInterface[];
36
- }
37
- export interface ReportPermissionInterface {
38
- api: string;
39
- contentType: string;
40
- action: string;
41
- }
@@ -1,13 +0,0 @@
1
- import { LoginUserChurchInterface, UserInterface } from "./Access.js";
2
- import { PersonInterface } from "./Membership.js";
3
-
4
- export interface UserContextInterface {
5
- user: UserInterface;
6
- setUser: (user: UserInterface) => void;
7
- person: PersonInterface;
8
- setPerson: (person: PersonInterface) => void;
9
- userChurch: LoginUserChurchInterface;
10
- setUserChurch: (userChurch: LoginUserChurchInterface) => void;
11
- userChurches: LoginUserChurchInterface[];
12
- setUserChurches: (userChurches: LoginUserChurchInterface[]) => void;
13
- }
@@ -1,14 +0,0 @@
1
- export * from "./Error.js";
2
- export * from "./UserContextInterface.js";
3
- export * from "./Permissions.js";
4
-
5
- // API interfaces
6
- export * from "./Access.js";
7
- export * from "./Attendance.js";
8
- export * from "./Content.js";
9
- export * from "./Doing.js";
10
- export * from "./Donation.js";
11
- export * from "./Lessons.js";
12
- export * from "./Membership.js";
13
- export * from "./Messaging.js";
14
- export * from "./Reporting.js";
package/tsconfig.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "typeRoots": [
5
- "./types",
6
- "node_modules/@types"
7
- ],
8
- "lib": [
9
- "dom",
10
- "dom.iterable",
11
- "ES2022"
12
- ],
13
- "allowJs": true,
14
- "skipLibCheck": true,
15
- "esModuleInterop": true,
16
- "allowSyntheticDefaultImports": true,
17
- "strict": false,
18
- "forceConsistentCasingInFileNames": true,
19
- "module": "NodeNext",
20
- "moduleResolution": "NodeNext",
21
- "resolveJsonModule": true,
22
- "isolatedModules": true,
23
- "jsx": "react-jsx",
24
- "sourceMap": true,
25
- "allowUnreachableCode": false,
26
- "allowUnusedLabels": false,
27
- "declaration": true,
28
- "declarationMap": true,
29
- "noImplicitReturns": true,
30
- "pretty": true,
31
- "paths": {},
32
- "outDir": "dist"
33
- },
34
- "include": ["src/**/*"],
35
- "exclude": ["node_modules", "dist"]
36
- }