@churchapps/apphelper 0.1.26 → 0.2.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.
Files changed (236) hide show
  1. package/dist/components/CreatePerson.d.ts +1 -1
  2. package/dist/components/CreatePerson.d.ts.map +1 -1
  3. package/dist/components/CreatePerson.js +2 -2
  4. package/dist/components/CreatePerson.js.map +1 -1
  5. package/dist/components/PersonAdd.d.ts +1 -1
  6. package/dist/components/PersonAdd.d.ts.map +1 -1
  7. package/dist/components/QuestionEdit.d.ts +1 -1
  8. package/dist/components/QuestionEdit.d.ts.map +1 -1
  9. package/dist/components/notes/AddNote.d.ts +1 -1
  10. package/dist/components/notes/AddNote.d.ts.map +1 -1
  11. package/dist/components/notes/Conversation.d.ts +1 -1
  12. package/dist/components/notes/Conversation.d.ts.map +1 -1
  13. package/dist/components/notes/Conversations.d.ts +1 -1
  14. package/dist/components/notes/Conversations.d.ts.map +1 -1
  15. package/dist/components/notes/NewConversation.d.ts +1 -1
  16. package/dist/components/notes/NewConversation.d.ts.map +1 -1
  17. package/dist/components/notes/Note.d.ts +1 -1
  18. package/dist/components/notes/Note.d.ts.map +1 -1
  19. package/dist/components/notes/Notes.d.ts +1 -1
  20. package/dist/components/notes/Notes.d.ts.map +1 -1
  21. package/dist/components/reporting/ChartReport.d.ts +1 -1
  22. package/dist/components/reporting/ChartReport.d.ts.map +1 -1
  23. package/dist/components/reporting/ChartReport.js +5 -16
  24. package/dist/components/reporting/ChartReport.js.map +1 -1
  25. package/dist/components/reporting/ReportFilter.d.ts +1 -1
  26. package/dist/components/reporting/ReportFilter.d.ts.map +1 -1
  27. package/dist/components/reporting/ReportFilterField.d.ts +1 -1
  28. package/dist/components/reporting/ReportFilterField.d.ts.map +1 -1
  29. package/dist/components/reporting/ReportOutput.d.ts +1 -1
  30. package/dist/components/reporting/ReportOutput.d.ts.map +1 -1
  31. package/dist/components/reporting/TableReport.d.ts +1 -1
  32. package/dist/components/reporting/TableReport.d.ts.map +1 -1
  33. package/dist/components/reporting/TableReport.js +4 -19
  34. package/dist/components/reporting/TableReport.js.map +1 -1
  35. package/dist/components/reporting/TreeReport.d.ts +1 -1
  36. package/dist/components/reporting/TreeReport.d.ts.map +1 -1
  37. package/dist/components/reporting/TreeReport.js +5 -16
  38. package/dist/components/reporting/TreeReport.js.map +1 -1
  39. package/dist/components/wrapper/AppList.d.ts +1 -1
  40. package/dist/components/wrapper/AppList.d.ts.map +1 -1
  41. package/dist/components/wrapper/ChurchList.d.ts +1 -1
  42. package/dist/components/wrapper/ChurchList.d.ts.map +1 -1
  43. package/dist/components/wrapper/NewPrivateMessage.d.ts +1 -1
  44. package/dist/components/wrapper/NewPrivateMessage.d.ts.map +1 -1
  45. package/dist/components/wrapper/NotificationMenu.d.ts +1 -1
  46. package/dist/components/wrapper/NotificationMenu.d.ts.map +1 -1
  47. package/dist/components/wrapper/Notifications.d.ts +1 -1
  48. package/dist/components/wrapper/Notifications.d.ts.map +1 -1
  49. package/dist/components/wrapper/PrivateMessageDetails.d.ts +1 -1
  50. package/dist/components/wrapper/PrivateMessageDetails.d.ts.map +1 -1
  51. package/dist/components/wrapper/PrivateMessages.d.ts +1 -1
  52. package/dist/components/wrapper/PrivateMessages.d.ts.map +1 -1
  53. package/dist/components/wrapper/SiteWrapper.d.ts +1 -1
  54. package/dist/components/wrapper/SiteWrapper.d.ts.map +1 -1
  55. package/dist/components/wrapper/UserMenu.d.ts +1 -1
  56. package/dist/components/wrapper/UserMenu.d.ts.map +1 -1
  57. package/dist/donationComponents/DonationPage.d.ts +1 -1
  58. package/dist/donationComponents/DonationPage.d.ts.map +1 -1
  59. package/dist/donationComponents/DonationPage.js +3 -3
  60. package/dist/donationComponents/DonationPage.js.map +1 -1
  61. package/dist/donationComponents/components/BankForm.d.ts +1 -1
  62. package/dist/donationComponents/components/BankForm.d.ts.map +1 -1
  63. package/dist/donationComponents/components/CardForm.d.ts +1 -1
  64. package/dist/donationComponents/components/CardForm.d.ts.map +1 -1
  65. package/dist/donationComponents/components/DonationForm.d.ts +1 -1
  66. package/dist/donationComponents/components/DonationForm.d.ts.map +1 -1
  67. package/dist/donationComponents/components/FundDonation.d.ts +1 -1
  68. package/dist/donationComponents/components/FundDonation.d.ts.map +1 -1
  69. package/dist/donationComponents/components/FundDonations.d.ts +1 -1
  70. package/dist/donationComponents/components/FundDonations.d.ts.map +1 -1
  71. package/dist/donationComponents/components/NonAuthDonationInner.d.ts.map +1 -1
  72. package/dist/donationComponents/components/NonAuthDonationInner.js +9 -7
  73. package/dist/donationComponents/components/NonAuthDonationInner.js.map +1 -1
  74. package/dist/donationComponents/components/PaymentMethods.d.ts +1 -1
  75. package/dist/donationComponents/components/PaymentMethods.d.ts.map +1 -1
  76. package/dist/donationComponents/components/PaymentMethods.js +6 -6
  77. package/dist/donationComponents/components/PaymentMethods.js.map +1 -1
  78. package/dist/donationComponents/components/RecurringDonations.js +2 -2
  79. package/dist/donationComponents/components/RecurringDonations.js.map +1 -1
  80. package/dist/donationComponents/components/RecurringDonationsEdit.d.ts +1 -1
  81. package/dist/donationComponents/components/RecurringDonationsEdit.d.ts.map +1 -1
  82. package/dist/donationComponents/modals/DonationPreviewModal.d.ts +1 -1
  83. package/dist/donationComponents/modals/DonationPreviewModal.d.ts.map +1 -1
  84. package/dist/helpers/ApiHelper.d.ts +1 -1
  85. package/dist/helpers/ApiHelper.d.ts.map +1 -1
  86. package/dist/helpers/ErrorHelper.d.ts +1 -1
  87. package/dist/helpers/ErrorHelper.d.ts.map +1 -1
  88. package/dist/helpers/ErrorHelper.js +2 -1
  89. package/dist/helpers/ErrorHelper.js.map +1 -1
  90. package/dist/helpers/EventHelper.d.ts +1 -1
  91. package/dist/helpers/EventHelper.d.ts.map +1 -1
  92. package/dist/helpers/PersonHelper.d.ts +1 -1
  93. package/dist/helpers/PersonHelper.d.ts.map +1 -1
  94. package/dist/helpers/ReportHelper.d.ts +5 -0
  95. package/dist/helpers/ReportHelper.d.ts.map +1 -0
  96. package/dist/helpers/ReportHelper.js +38 -0
  97. package/dist/helpers/ReportHelper.js.map +1 -0
  98. package/dist/helpers/SocketHelper.d.ts +1 -1
  99. package/dist/helpers/SocketHelper.d.ts.map +1 -1
  100. package/dist/helpers/UserHelper.d.ts +2 -2
  101. package/dist/helpers/UserHelper.d.ts.map +1 -1
  102. package/dist/helpers/UserHelper.js.map +1 -1
  103. package/dist/index.d.ts +1 -1
  104. package/dist/index.d.ts.map +1 -1
  105. package/dist/index.js +1 -1
  106. package/dist/index.js.map +1 -1
  107. package/dist/pageComponents/LoginPage.d.ts +1 -1
  108. package/dist/pageComponents/LoginPage.d.ts.map +1 -1
  109. package/dist/pageComponents/LogoutPage.d.ts +1 -1
  110. package/dist/pageComponents/LogoutPage.d.ts.map +1 -1
  111. package/dist/pageComponents/LogoutPage.js.map +1 -1
  112. package/dist/pageComponents/components/Register.d.ts +1 -1
  113. package/dist/pageComponents/components/Register.d.ts.map +1 -1
  114. package/dist/pageComponents/components/SelectChurchModal.d.ts +1 -1
  115. package/dist/pageComponents/components/SelectChurchModal.d.ts.map +1 -1
  116. package/dist/pageComponents/components/SelectChurchRegister.d.ts +1 -1
  117. package/dist/pageComponents/components/SelectChurchRegister.d.ts.map +1 -1
  118. package/dist/pageComponents/components/SelectChurchSearch.d.ts +1 -1
  119. package/dist/pageComponents/components/SelectChurchSearch.d.ts.map +1 -1
  120. package/dist/pageComponents/components/SelectableChurch.d.ts +1 -1
  121. package/dist/pageComponents/components/SelectableChurch.d.ts.map +1 -1
  122. package/package.json +2 -2
  123. package/src/components/CreatePerson.tsx +1 -1
  124. package/src/components/FormSubmissionEdit.tsx +1 -1
  125. package/src/components/PersonAdd.tsx +1 -1
  126. package/src/components/QuestionEdit.tsx +1 -1
  127. package/src/components/notes/AddNote.tsx +1 -1
  128. package/src/components/notes/Conversation.tsx +1 -1
  129. package/src/components/notes/Conversations.tsx +1 -1
  130. package/src/components/notes/NewConversation.tsx +1 -1
  131. package/src/components/notes/Note.tsx +1 -1
  132. package/src/components/notes/Notes.tsx +1 -1
  133. package/src/components/reporting/ChartReport.tsx +6 -18
  134. package/src/components/reporting/ReportFilter.tsx +1 -1
  135. package/src/components/reporting/ReportFilterField.tsx +1 -1
  136. package/src/components/reporting/ReportOutput.tsx +1 -1
  137. package/src/components/reporting/ReportWithFilter.tsx +1 -1
  138. package/src/components/reporting/TableReport.tsx +5 -20
  139. package/src/components/reporting/TreeReport.tsx +6 -16
  140. package/src/components/wrapper/AppList.tsx +1 -1
  141. package/src/components/wrapper/ChurchList.tsx +1 -1
  142. package/src/components/wrapper/NewPrivateMessage.tsx +1 -1
  143. package/src/components/wrapper/NotificationMenu.tsx +1 -1
  144. package/src/components/wrapper/Notifications.tsx +1 -1
  145. package/src/components/wrapper/PrivateMessageDetails.tsx +1 -1
  146. package/src/components/wrapper/PrivateMessages.tsx +1 -1
  147. package/src/components/wrapper/SiteWrapper.tsx +1 -1
  148. package/src/components/wrapper/UserMenu.tsx +1 -1
  149. package/src/donationComponents/DonationPage.tsx +1 -1
  150. package/src/donationComponents/components/BankForm.tsx +1 -1
  151. package/src/donationComponents/components/CardForm.tsx +1 -1
  152. package/src/donationComponents/components/DonationForm.tsx +1 -1
  153. package/src/donationComponents/components/FundDonation.tsx +1 -1
  154. package/src/donationComponents/components/FundDonations.tsx +1 -1
  155. package/src/donationComponents/components/NonAuthDonationInner.tsx +10 -8
  156. package/src/donationComponents/components/PaymentMethods.tsx +1 -1
  157. package/src/donationComponents/components/RecurringDonations.tsx +1 -1
  158. package/src/donationComponents/components/RecurringDonationsEdit.tsx +1 -1
  159. package/src/donationComponents/modals/DonationPreviewModal.tsx +1 -1
  160. package/src/helpers/ApiHelper.ts +1 -1
  161. package/src/helpers/ErrorHelper.ts +4 -2
  162. package/src/helpers/EventHelper.ts +1 -1
  163. package/src/helpers/PersonHelper.ts +1 -1
  164. package/src/helpers/ReportHelper.ts +35 -0
  165. package/src/helpers/SocketHelper.ts +1 -1
  166. package/src/helpers/UserHelper.ts +2 -2
  167. package/src/index.ts +1 -1
  168. package/src/pageComponents/LoginPage.tsx +1 -1
  169. package/src/pageComponents/LogoutPage.tsx +1 -2
  170. package/src/pageComponents/components/Forgot.tsx +1 -1
  171. package/src/pageComponents/components/LoginSetPassword.tsx +1 -1
  172. package/src/pageComponents/components/Register.tsx +1 -1
  173. package/src/pageComponents/components/SelectChurchModal.tsx +1 -1
  174. package/src/pageComponents/components/SelectChurchRegister.tsx +1 -1
  175. package/src/pageComponents/components/SelectChurchSearch.tsx +1 -1
  176. package/src/pageComponents/components/SelectableChurch.tsx +1 -1
  177. package/dist/interfaces/Access.d.ts +0 -131
  178. package/dist/interfaces/Access.d.ts.map +0 -1
  179. package/dist/interfaces/Access.js +0 -3
  180. package/dist/interfaces/Access.js.map +0 -1
  181. package/dist/interfaces/Attendance.d.ts +0 -45
  182. package/dist/interfaces/Attendance.d.ts.map +0 -1
  183. package/dist/interfaces/Attendance.js +0 -3
  184. package/dist/interfaces/Attendance.js.map +0 -1
  185. package/dist/interfaces/Content.d.ts +0 -86
  186. package/dist/interfaces/Content.d.ts.map +0 -1
  187. package/dist/interfaces/Content.js +0 -3
  188. package/dist/interfaces/Content.js.map +0 -1
  189. package/dist/interfaces/Doing.d.ts +0 -50
  190. package/dist/interfaces/Doing.d.ts.map +0 -1
  191. package/dist/interfaces/Doing.js +0 -3
  192. package/dist/interfaces/Doing.js.map +0 -1
  193. package/dist/interfaces/Donation.d.ts +0 -138
  194. package/dist/interfaces/Donation.d.ts.map +0 -1
  195. package/dist/interfaces/Donation.js +0 -24
  196. package/dist/interfaces/Donation.js.map +0 -1
  197. package/dist/interfaces/Error.d.ts +0 -17
  198. package/dist/interfaces/Error.d.ts.map +0 -1
  199. package/dist/interfaces/Error.js +0 -4
  200. package/dist/interfaces/Error.js.map +0 -1
  201. package/dist/interfaces/Membership.d.ts +0 -172
  202. package/dist/interfaces/Membership.d.ts.map +0 -1
  203. package/dist/interfaces/Membership.js +0 -3
  204. package/dist/interfaces/Membership.js.map +0 -1
  205. package/dist/interfaces/Messaging.d.ts +0 -77
  206. package/dist/interfaces/Messaging.d.ts.map +0 -1
  207. package/dist/interfaces/Messaging.js +0 -3
  208. package/dist/interfaces/Messaging.js.map +0 -1
  209. package/dist/interfaces/Permissions.d.ts +0 -159
  210. package/dist/interfaces/Permissions.d.ts.map +0 -1
  211. package/dist/interfaces/Permissions.js +0 -67
  212. package/dist/interfaces/Permissions.js.map +0 -1
  213. package/dist/interfaces/Reporting.d.ts +0 -45
  214. package/dist/interfaces/Reporting.d.ts.map +0 -1
  215. package/dist/interfaces/Reporting.js +0 -3
  216. package/dist/interfaces/Reporting.js.map +0 -1
  217. package/dist/interfaces/UserContextInterface.d.ts +0 -13
  218. package/dist/interfaces/UserContextInterface.d.ts.map +0 -1
  219. package/dist/interfaces/UserContextInterface.js +0 -3
  220. package/dist/interfaces/UserContextInterface.js.map +0 -1
  221. package/dist/interfaces/index.d.ts +0 -12
  222. package/dist/interfaces/index.d.ts.map +0 -1
  223. package/dist/interfaces/index.js +0 -29
  224. package/dist/interfaces/index.js.map +0 -1
  225. package/src/interfaces/Access.ts +0 -24
  226. package/src/interfaces/Attendance.ts +0 -8
  227. package/src/interfaces/Content.ts +0 -10
  228. package/src/interfaces/Doing.ts +0 -24
  229. package/src/interfaces/Donation.ts +0 -45
  230. package/src/interfaces/Error.ts +0 -17
  231. package/src/interfaces/Membership.ts +0 -51
  232. package/src/interfaces/Messaging.ts +0 -11
  233. package/src/interfaces/Permissions.ts +0 -68
  234. package/src/interfaces/Reporting.ts +0 -7
  235. package/src/interfaces/UserContextInterface.ts +0 -13
  236. package/src/interfaces/index.ts +0 -13
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Permissions = void 0;
4
- class Permissions {
5
- }
6
- exports.Permissions = Permissions;
7
- Permissions.attendanceApi = {
8
- attendance: {
9
- view: { api: "AttendanceApi", contentType: "Attendance", action: "View" },
10
- viewSummary: { api: "AttendanceApi", contentType: "Attendance", action: "View Summary" },
11
- edit: { api: "AttendanceApi", contentType: "Attendance", action: "Edit" }
12
- },
13
- services: {
14
- edit: { api: "AttendanceApi", contentType: "Services", action: "Edit" }
15
- }
16
- };
17
- Permissions.membershipApi = {
18
- roles: {
19
- view: { api: "MembershipApi", contentType: "Roles", action: "View" },
20
- edit: { api: "MembershipApi", contentType: "Roles", action: "Edit" }
21
- },
22
- settings: {
23
- edit: { api: "MembershipApi", contentType: "Settings", action: "Edit" }
24
- },
25
- server: {
26
- admin: { api: "MembershipApi", contentType: "Server", action: "Admin" }
27
- },
28
- forms: {
29
- admin: { api: "MembershipApi", contentType: "Forms", action: "Admin" },
30
- edit: { api: "MembershipApi", contentType: "Forms", action: "Edit" }
31
- },
32
- groups: {
33
- edit: { api: "MembershipApi", contentType: "Groups", action: "Edit" }
34
- },
35
- people: {
36
- view: { api: "MembershipApi", contentType: "People", action: "View" },
37
- viewMembers: { api: "MembershipApi", contentType: "People", action: "View Members" },
38
- edit: { api: "MembershipApi", contentType: "People", action: "Edit" }
39
- },
40
- groupMembers: {
41
- edit: { api: "MembershipApi", contentType: "Group Members", action: "Edit" },
42
- view: { api: "MembershipApi", contentType: "Group Members", action: "View" }
43
- }
44
- };
45
- Permissions.givingApi = {
46
- donations: {
47
- viewSummary: { api: "GivingApi", contentType: "Donations", action: "View Summary" },
48
- view: { api: "GivingApi", contentType: "Donations", action: "View" },
49
- edit: { api: "GivingApi", contentType: "Donations", action: "Edit" }
50
- },
51
- settings: {
52
- view: { api: "GivingApi", contentType: "Settings", action: "View" },
53
- edit: { api: "GivingApi", contentType: "Settings", action: "Edit" }
54
- }
55
- };
56
- Permissions.contentApi = {
57
- chat: {
58
- host: { api: "ContentApi", contentType: "Chat", action: "Host" }
59
- },
60
- content: {
61
- edit: { api: "ContentApi", contentType: "Content", action: "Edit" }
62
- },
63
- streamingServices: {
64
- edit: { api: "ContentApi", contentType: "StreamingServices", action: "Edit" }
65
- },
66
- };
67
- //# sourceMappingURL=Permissions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../src/interfaces/Permissions.ts"],"names":[],"mappings":"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"}
@@ -1,45 +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: {
20
- value: string;
21
- text: string;
22
- }[];
23
- value?: string;
24
- requiredParentIds?: string[];
25
- defaultValue: string;
26
- }
27
- export interface ReportOutputInterface {
28
- outputType: string;
29
- columns: ColumnInterface[];
30
- groupings?: number[];
31
- }
32
- export interface ColumnInterface {
33
- header: string;
34
- value: string;
35
- formatter: string;
36
- }
37
- export interface ReportPermissionGroupInterface {
38
- requireOne: ReportPermissionInterface[];
39
- }
40
- export interface ReportPermissionInterface {
41
- api: string;
42
- contentType: string;
43
- action: string;
44
- }
45
- //# sourceMappingURL=Reporting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Reporting.d.ts","sourceRoot":"","sources":["../../src/interfaces/Reporting.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,GAAG,EAAE,CAAC;IAAC,OAAO,EAAE,qBAAqB,EAAE,CAAA;CAAE;AACnI,MAAM,WAAW,eAAe;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC;IAAC,WAAW,EAAE,8BAA8B,EAAE,CAAA;CAAE;AAC/K,MAAM,WAAW,kBAAkB;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE;AAChO,MAAM,WAAW,qBAAqB;IAAG,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,eAAe,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;AAC/G,MAAM,WAAW,eAAe;IAAG,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE;AACrF,MAAM,WAAW,8BAA8B;IAAG,UAAU,EAAE,yBAAyB,EAAE,CAAA;CAAE;AAC3F,MAAM,WAAW,yBAAyB;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Reporting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Reporting.js","sourceRoot":"","sources":["../../src/interfaces/Reporting.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- import { LoginUserChurchInterface, UserInterface } from "./Access";
2
- import { PersonInterface } from "./Membership";
3
- export interface UserContextInterface {
4
- user: UserInterface;
5
- setUser: (user: UserInterface) => void;
6
- person: PersonInterface;
7
- setPerson: (person: PersonInterface) => void;
8
- userChurch: LoginUserChurchInterface;
9
- setUserChurch: (userChurch: LoginUserChurchInterface) => void;
10
- userChurches: LoginUserChurchInterface[];
11
- setUserChurches: (userChurches: LoginUserChurchInterface[]) => void;
12
- }
13
- //# sourceMappingURL=UserContextInterface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserContextInterface.d.ts","sourceRoot":"","sources":["../../src/interfaces/UserContextInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,wBAAwB,CAAC;IACrC,aAAa,EAAE,CAAC,UAAU,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC9D,YAAY,EAAE,wBAAwB,EAAE,CAAC;IACzC,eAAe,EAAE,CAAC,YAAY,EAAE,wBAAwB,EAAE,KAAK,IAAI,CAAC;CACrE"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=UserContextInterface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserContextInterface.js","sourceRoot":"","sources":["../../src/interfaces/UserContextInterface.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export * from "./Error";
2
- export * from "./UserContextInterface";
3
- export * from "./Permissions";
4
- export * from "./Access";
5
- export * from "./Attendance";
6
- export * from "./Content";
7
- export * from "./Doing";
8
- export * from "./Donation";
9
- export * from "./Membership";
10
- export * from "./Messaging";
11
- export * from "./Reporting";
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAA;AAG7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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);
20
- // API interfaces
21
- __exportStar(require("./Access"), exports);
22
- __exportStar(require("./Attendance"), exports);
23
- __exportStar(require("./Content"), exports);
24
- __exportStar(require("./Doing"), exports);
25
- __exportStar(require("./Donation"), exports);
26
- __exportStar(require("./Membership"), exports);
27
- __exportStar(require("./Messaging"), exports);
28
- __exportStar(require("./Reporting"), exports);
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,yDAAuC;AACvC,gDAA6B;AAE7B,iBAAiB;AACjB,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,8CAA4B"}
@@ -1,24 +0,0 @@
1
- import { PersonInterface } from "./Membership";
2
-
3
- export interface ApiInterface { name: string, keyName?: string, permissions: RolePermissionInterface[], jwt: string }
4
- export interface ChurchInterface { id?: string, name?: string, registrationDate?: Date, address1?: string, address2?: string, city?: string, state?: string, zip?: string, country?: string, subDomain?: string, settings?: GenericSettingInterface[], archivedDate?: Date }
5
- export interface DomainInterface { id?: string, domainName?: string }
6
- export interface RegisterChurchRequestInterface extends ChurchInterface { appName?: string }
7
- export interface LoadCreateUserRequestInterface { userEmail: string, fromEmail?: string, subject?: string, body?: string, firstName: string, lastName: string }
8
- export interface LoginResponseInterface { user: UserInterface, userChurches: LoginUserChurchInterface[], errors: string[] }
9
- export interface LoginUserChurchInterface { person: PersonInterface, church: ChurchInterface, apis: ApiInterface[], jwt: string, groups: { id: string, name: string, leader:boolean }[] }
10
-
11
- export interface PermissionInterface { apiName?: string, section?: string, action?: string, displaySection?: string, displayAction?: string }
12
- export interface RegisterUserInterface { firstName?: string, lastName: string, email?: string, appName: string, appUrl: string }
13
- export interface RoleInterface { id?: string, churchId?: string, name?: string }
14
- export interface RolePermissionInterface { id?: string, churchId?: string, roleId?: string, apiName?: string, contentType?: string, contentId?: string, action?: string }
15
- export interface RoleMemberInterface { id?: string, churchId?: string, roleId?: string, userId?: string, user?: UserInterface, personId?: string }
16
- export interface ResetPasswordRequestInterface { userEmail: string }
17
- export interface ResetPasswordResponseInterface { emailed: boolean }
18
- export interface UserInterface { id?: string, email?: string, authGuid?: string, firstName?: string, lastName?: string, registrationDate?: Date, lastLogin?: Date, password?: string, jwt?: string }
19
- export interface GenericSettingInterface { id?: string, churchId?: string, keyName?: string, value?: string, public?: number }
20
- export interface UserChurchInterface { id?: string, userId?: string, churchId?: string, personId?: string }
21
-
22
- export interface ApiConfig { keyName: string, url: string, jwt: string, permisssions: RolePermissionInterface[] }
23
- export type ApiListType = "MembershipApi" | "AttendanceApi" | "GivingApi" | "DoingApi" | "MessagingApi" | "LessonsApi" | "ReportingApi" | "ContentApi";
24
- export interface IPermission { api: string, contentType: string, action: string }
@@ -1,8 +0,0 @@
1
- import { CampusInterface, ServiceInterface, ServiceTimeInterface, PersonInterface } from "."
2
-
3
- export interface AttendanceInterface { campus: CampusInterface, service: ServiceInterface, serviceTime: ServiceTimeInterface, groupId: string }
4
- export interface AttendanceRecordInterface { serviceTime: ServiceTimeInterface, service: ServiceInterface, campus: CampusInterface, week: number, count: number, visitDate: Date, groupId: string }
5
- export interface VisitInterface { id?: string, personId?: string, serviceId?: string, groupId?: string, visitDate?: Date, visitSessions?: VisitSessionInterface[], person?: PersonInterface }
6
- export interface VisitSessionInterface { id?: string, visitId?: string, sessionId?: string, visit?: VisitInterface, session?: SessionInterface }
7
- export interface SessionInterface { id?: string, groupId: string, serviceTimeId: string, sessionDate?: Date, displayName: string }
8
- export interface SettingInterface { id?: string, keyName?: string, value?: string }
@@ -1,10 +0,0 @@
1
- export interface LinkInterface { id?: string; churchId?: string; url?: string; text?: string; sort?: number; linkType: string; linkData: string; icon: string; category: string; parentId?: string; children?: any }
2
- export interface SermonInterface { id?: string, churchId?: string, playlistId?: string, videoType?: string, videoData?: string, videoUrl?: string, title?: string, description?: string, publishDate?: Date, thumbnail?: string, duration?: number, permanentUrl?: boolean }
3
- export interface PlaylistInterface { id?: string, churchId?: string, title?: string, description?: string, publishDate?: Date, thumbnail?: string }
4
- export interface StreamingServiceInterface { id?: string, churchId?: string, serviceTime?: Date, earlyStart?: number, duration: number, chatBefore: number, chatAfter: number, provider: string, providerKey: string, videoUrl: string, timezoneOffset: number, recurring: boolean, label: string, sermonId?: string }
5
- export interface EventInterface { id?: string; churchId?: string; groupId?: string; start?: Date; end?:Date, title?: string; description?: string; allDay?: boolean; visibility?:string; recurrenceRule?:string; exceptionDates?:Date[] }
6
- export interface EventExceptionInterface { id?: string; churchId?: string; eventId?: string; exceptionDate?: Date; }
7
- export interface CuratedCalendarInterface { id?: string, churchId?: string, name?:string }
8
- export interface CuratedEventInterface { id?: string, churchId?: string, curratedCalendarId?: string, groupId?: string, eventId?: string }
9
- export interface CuratedEventWithEventInterface extends EventInterface, CuratedEventInterface {}
10
- export type VisibilityOptions = "public" | "private" | "hidden";
@@ -1,24 +0,0 @@
1
- export interface ActionInterface { id?: string, automationId?: string, actionType?: string, actionData?: string }
2
- export interface AutomationInterface { id?: string, title: string, recurs: string, active: boolean }
3
- export interface ConditionInterface { id?: string, conjunctionId?: string, field?: string, fieldData?: string, operator?: string, value?: string, label?: string }
4
- export interface ConjunctionInterface { id?: string, automationId?: string, parentId?: string, groupType?: string, conjunctions?: ConjunctionInterface[], conditions?: ConditionInterface[] }
5
- export interface TaskInterface {
6
- id?: string,
7
- taskNumber?: number,
8
- taskType?: string,
9
- dateCreated?: Date,
10
- dateClosed?: Date,
11
- associatedWithType?: string,
12
- associatedWithId?: string,
13
- associatedWithLabel?: string,
14
- createdByType?: string,
15
- createdById?: string,
16
- createdByLabel?: string,
17
- assignedToType?: string,
18
- assignedToId?: string,
19
- assignedToLabel?: string,
20
- title?: string,
21
- status?: string,
22
- automationId?: string,
23
- conversationId?: string
24
- }
@@ -1,45 +0,0 @@
1
- import { PersonInterface } from "."
2
-
3
- export interface DonationBatchInterface { id?: string, name?: string, batchDate?: Date, donationCount?: number, totalAmount?: number }
4
- export interface DonationInterface { id?: string, batchId?: string, personId?: string, donationDate?: Date, amount?: number, method?: string, methodDetails?: string, notes?: string, person?: PersonInterface, fund?: FundInterface }
5
- export interface DonationSummaryInterface { week: number, donations?: DonationSummaryDonation[] }
6
- export interface DonationSummaryDonation { totalAmount: number, fund?: FundInterface }
7
- export interface FundInterface { id: string, name: string, amount?: number }
8
- export interface FundDonationInterface { id?: string, donationId?: string, fundId?: string, amount?: number, donation?: DonationInterface }
9
- export interface PaymentMethodInterface { id?: string, churchId?: string, personId?: string, customerId?: string, email?: string, name?: string }
10
- export interface StripeCardUpdateInterface { paymentMethodId: string, cardData: StripeCardDataInterface, personId?: string }
11
- export interface StripeCardDataInterface { card: StripeCardExpirationInterface }
12
- export interface StripeCardExpirationInterface { exp_month: string, exp_year: string }
13
- export interface StripeBankAccountInterface { account_holder_name: any, account_holder_type: any, country: string, currency: string, account_number: any, routing_number: any }
14
- export interface StripeBankAccountUpdateInterface { paymentMethodId: string, customerId: string, personId?: string, bankData: StripeBankAccountHolderDataInterface }
15
- export interface StripeBankAccountHolderDataInterface { account_holder_name: string, account_holder_type: string }
16
- export interface StripeBankAccountVerifyInterface { customerId: string, paymentMethodId: string, amountData: { amounts: string[] } }
17
- export interface StripePersonDonationInterface { id: string, email: string, name: string };
18
- export interface StripeFundDonationInterface { id: string, amount: number, name?: string };
19
- export interface StripeDonationInterface { id?: string, type?: string, amount?: number, customerId?: string, billing_cycle_anchor?: number, proration_behavior?: string, interval?: StripeDonationIntervalInterface, person?: StripePersonDonationInterface, funds?: StripeFundDonationInterface[], notes?: string, churchId?: string };
20
- export interface StripeDonationIntervalInterface { interval: string, interval_count: number };
21
- export interface SubscriptionInterface { id: string, funds: [], billing_cycle_anchor: number, default_payment_method: string, default_source: string, plan: { amount: number, interval: string, interval_count: number }, customer: string };
22
-
23
- export class StripePaymentMethod {
24
- id: string;
25
- type: string;
26
- name: string;
27
- last4: string;
28
- exp_month?: string;
29
- exp_year?: string;
30
- status?: string;
31
- account_holder_name?: string;
32
- account_holder_type?: string;
33
-
34
- constructor(obj?: any) {
35
- this.id = obj?.id || null;
36
- this.type = obj?.type || (obj?.object && obj.object === "bank_account" ? "bank" : null);
37
- this.name = obj?.card?.brand || obj?.bank_name || null;
38
- this.last4 = obj?.last4 || obj?.card?.last4 || null;
39
- this.exp_month = obj?.exp_month || obj?.card?.exp_month || null;
40
- this.exp_year = obj?.exp_year || obj?.card?.exp_year || null;
41
- this.status = obj?.status || null;
42
- this.account_holder_name = obj?.account_holder_name || "";
43
- this.account_holder_type = obj?.account_holder_type || "individual";
44
- }
45
- }
@@ -1,17 +0,0 @@
1
- export interface ErrorLogInterface {
2
- application?: string,
3
- errorTime?: Date,
4
- userId?: string,
5
- churchId?: string,
6
- originUrl?: string,
7
- errorType?: string,
8
- message?: string,
9
- details?: string,
10
- };
11
-
12
- export interface ErrrorAppDataInterface {
13
- churchId: string,
14
- userId: string,
15
- originUrl: string,
16
- application: string
17
- }
@@ -1,51 +0,0 @@
1
- export interface AnswerInterface { id?: string, value?: string, questionId?: string, formSubmissionId?: string, required?: boolean }
2
- export interface CampusInterface { id?: string, name?: string }
3
- export interface ContactInfoInterface { address1?: string, address2?: string, city?: string, state?: string, zip?: string, homePhone?: string, mobilePhone?: string, workPhone?: string, email?: string, pager?: string, fax?: string, skype?: string, workEmail?: string }
4
- export interface FormInterface { id?: string, name?: string, contentType?: string, restricted?: boolean, accessStartTime?: Date, accessEndTime?: Date, archived: boolean, action?: string }
5
- export interface FormSubmissionInterface { id?: string, formId?: string, contentType?: string, contentId?: string, form?: FormInterface, answers?: AnswerInterface[], questions?: QuestionInterface[] }
6
- export interface GroupInterface { id?: string, name?: string, categoryName?: string, memberCount?: number, trackAttendance?: boolean, parentPickup?: boolean, about?: string, photoUrl?: string }
7
- export interface GroupMemberInterface { id?: string, personId: string, person?: PersonInterface, groupId: string, group?: GroupInterface, leader?: boolean }
8
- export interface GroupServiceTimeInterface { id?: string, groupId?: string, serviceTimeId?: string, serviceTime?: ServiceTimeInterface }
9
- export interface HouseholdInterface { id?: string, name?: string }
10
- export interface HouseholdMemberInterface { id?: string, householdId?: string, household?: HouseholdInterface, personId?: string, person?: PersonInterface, role?: string }
11
- export interface NameInterface { first?: string, middle?: string, last?: string, nick?: string, display?: string, title?: string, suffix?: string }
12
- export interface SearchCondition { field: string, operator: string, value: string }
13
-
14
- export interface PersonInterface {
15
- id?: string,
16
- name: NameInterface,
17
- contactInfo: ContactInfoInterface,
18
- membershipStatus?: string,
19
- gender?: string,
20
- birthDate?: Date,
21
- maritalStatus?: string,
22
- anniversary?: Date,
23
- photo?: string,
24
- photoUpdated?: Date,
25
- householdId?: string,
26
- householdRole?: string,
27
- userId?: string,
28
- school?: string,
29
- grade?: string,
30
- graduationDate?: string,
31
- employer?: string,
32
- formSubmissions?: [FormSubmissionInterface]
33
- child?: boolean,
34
- inactiveReason?: string,
35
- inactiveDate?: Date,
36
- servicesUser?: boolean,
37
- calendarUser?: boolean,
38
- checkInsUser?: boolean,
39
- registrationsUser?: boolean,
40
- givingUser?: boolean,
41
- groupsUser?: boolean,
42
- conversationId?: string,
43
- optedOut?: boolean,
44
- nametagNotes?: string
45
- }
46
- export interface QuestionInterface { id?: string, formId?: string, title?: string, fieldType?: string, placeholder?: string, description?: string, required?: boolean, choices?: [{ value?: string, text?: string }] }
47
- export interface ServiceInterface { id?: string, campusId?: string, name?: string, campus?: CampusInterface }
48
- export interface ServiceTimeInterface { id?: string, name?: string, longName?: string, serviceId?: string, groups?: GroupInterface[] }
49
- export interface MemberPermissionInterface { id?: string, churchId?: string, memberId?: string, contentType?: string, contentId?: string, action?: string, personName: string, formName?: string, emailNotification?: boolean }
50
- export interface FormMemberInterface { person?: PersonInterface, access?: string }
51
- export interface FormMemberListInterface { members?: FormMemberInterface[] }
@@ -1,11 +0,0 @@
1
- import { PersonInterface } from "./Membership";
2
-
3
- export interface ConnectionInterface { id?: string, churchId?: string, conversationId?: string, personId?: string, displayName?: string, timeJoined?: Date, socketId?: string }
4
- export interface ConversationInterface { id?: string, churchId?: string, contentType?: string, contentId?: string, title?: string, dateCreated?: Date, groupId?: string, visibility?: string, firstPostId?: string, lastPostId?: string, postCount?: number, allowAnonymousPosts?: boolean, messages?: MessageInterface[] }
5
- export interface MessageInterface { id?: string, churchId?: string, conversationId?: string, personId?: string, displayName?: string, timeSent?: Date, timeUpdated?: Date, messageType?: string, content?: string, person?: PersonInterface }
6
- export interface NotificationInterface { id?: string, churchId?: string, personId?: string, contentType?: string, contentId:string, timeSent?: Date, isNew:boolean, message?:string, deliveryMethod?:string }
7
- export interface NotificationPreferenceInterface { id?: string, churchId?: string, personId?: string, allowPush:boolean, emailFrequency:string }
8
- export interface PrivateMessageInterface { id?: string, churchId?: string, fromPersonId?: string, toPersonId?: string, conversationId?: string, notifyPersonId?: string, conversation?: ConversationInterface, person?: PersonInterface, deliveryMethod?: string }
9
- export interface SocketActionHandlerInterface { action:string, id:string, handleMessage:(data:any) => void }
10
- export type SocketPayloadAction = "message" | "deleteMessage" | "callout" | "attendance" | "prayerRequest" | "socketId" | "privateMessage" | "privateRoomAdded" | "videoChatInvite" | "reconnect";
11
- export interface SocketPayloadInterface { action: SocketPayloadAction, data: any }
@@ -1,68 +0,0 @@
1
- export class Permissions {
2
- static attendanceApi = {
3
- attendance: {
4
- view: { api: "AttendanceApi", contentType: "Attendance", action: "View" },
5
- viewSummary: { api: "AttendanceApi", contentType: "Attendance", action: "View Summary" },
6
- edit: { api: "AttendanceApi", contentType: "Attendance", action: "Edit" }
7
- },
8
- services: {
9
- edit: { api: "AttendanceApi", contentType: "Services", action: "Edit" }
10
- }
11
- };
12
-
13
- static membershipApi = {
14
- roles: {
15
- view: { api: "MembershipApi", contentType: "Roles", action: "View" },
16
- edit: { api: "MembershipApi", contentType: "Roles", action: "Edit" }
17
- },
18
- settings: {
19
- edit: { api: "MembershipApi", contentType: "Settings", action: "Edit" }
20
- },
21
- server: {
22
- admin: { api: "MembershipApi", contentType: "Server", action: "Admin" }
23
- },
24
- forms: {
25
- admin: { api: "MembershipApi", contentType: "Forms", action: "Admin" },
26
- edit: { api: "MembershipApi", contentType: "Forms", action: "Edit" }
27
- },
28
- groups: {
29
- edit: { api: "MembershipApi", contentType: "Groups", action: "Edit" }
30
- },
31
- people: {
32
- view: { api: "MembershipApi", contentType: "People", action: "View" },
33
- viewMembers: { api: "MembershipApi", contentType: "People", action: "View Members" },
34
- edit: { api: "MembershipApi", contentType: "People", action: "Edit" }
35
- },
36
- groupMembers: {
37
- edit: { api: "MembershipApi", contentType: "Group Members", action: "Edit" },
38
- view: { api: "MembershipApi", contentType: "Group Members", action: "View" }
39
- }
40
- };
41
-
42
- static givingApi = {
43
- donations: {
44
- viewSummary: { api: "GivingApi", contentType: "Donations", action: "View Summary" },
45
- view: { api: "GivingApi", contentType: "Donations", action: "View" },
46
- edit: { api: "GivingApi", contentType: "Donations", action: "Edit" }
47
- },
48
- settings: {
49
- view: { api: "GivingApi", contentType: "Settings", action: "View" },
50
- edit: { api: "GivingApi", contentType: "Settings", action: "Edit" }
51
- }
52
-
53
- }
54
-
55
- static contentApi = {
56
- chat: {
57
- host: { api: "ContentApi", contentType: "Chat", action: "Host" }
58
- },
59
- content: {
60
- edit: { api: "ContentApi", contentType: "Content", action: "Edit" }
61
- },
62
- streamingServices: {
63
- edit: { api: "ContentApi", contentType: "StreamingServices", action: "Edit" }
64
- },
65
-
66
- };
67
-
68
- }
@@ -1,7 +0,0 @@
1
- export interface ReportResultInterface { displayName: string, description: string, table: any[], outputs: ReportOutputInterface[] }
2
- export interface ReportInterface { keyName: string, displayName: string, description: string, parameters: ParameterInterface[], permissions: ReportPermissionGroupInterface[] }
3
- export interface ParameterInterface { keyName: string, displayName?: string, source: string, sourceKey: string, options: { value: string, text: string }[], value?: string, requiredParentIds?: string[], defaultValue: string }
4
- export interface ReportOutputInterface { outputType: string, columns: ColumnInterface[], groupings?: number[] }
5
- export interface ColumnInterface { header: string, value: string, formatter: string }
6
- export interface ReportPermissionGroupInterface { requireOne: ReportPermissionInterface[] }
7
- export interface ReportPermissionInterface { api: string, contentType: string, action: string }
@@ -1,13 +0,0 @@
1
- import { LoginUserChurchInterface, UserInterface } from "./Access";
2
- import { PersonInterface } from "./Membership";
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,13 +0,0 @@
1
- export * from "./Error";
2
- export * from "./UserContextInterface";
3
- export * from "./Permissions"
4
-
5
- // API interfaces
6
- export * from "./Access";
7
- export * from "./Attendance";
8
- export * from "./Content";
9
- export * from "./Doing";
10
- export * from "./Donation";
11
- export * from "./Membership";
12
- export * from "./Messaging";
13
- export * from "./Reporting";