@churchapps/helpers 1.2.3 → 1.2.4

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 (41) hide show
  1. package/.eslintrc.json +28 -28
  2. package/.github/FUNDING.yml +1 -1
  3. package/.prettierrc +11 -11
  4. package/.yarnrc.yml +5 -5
  5. package/LICENSE +21 -21
  6. package/README.md +15 -15
  7. package/dist/CommonEnvironmentHelper.d.ts +1 -1
  8. package/dist/CommonEnvironmentHelper.d.ts.map +1 -1
  9. package/dist/CommonEnvironmentHelper.js +5 -5
  10. package/dist/CommonEnvironmentHelper.js.map +1 -1
  11. package/dist/PersonHelper.js +1 -1
  12. package/package.json +49 -49
  13. package/scripts/build-cjs.js +32 -32
  14. package/src/ApiHelper.ts +176 -176
  15. package/src/AppearanceHelper.ts +69 -69
  16. package/src/ArrayHelper.ts +157 -157
  17. package/src/CommonEnvironmentHelper.ts +104 -104
  18. package/src/CurrencyHelper.ts +10 -10
  19. package/src/DateHelper.ts +153 -153
  20. package/src/DonationHelper.ts +26 -26
  21. package/src/ErrorHelper.ts +39 -39
  22. package/src/EventHelper.ts +49 -49
  23. package/src/FileHelper.ts +55 -55
  24. package/src/PersonHelper.ts +82 -82
  25. package/src/UniqueIdHelper.ts +36 -36
  26. package/src/UserHelper.ts +59 -59
  27. package/src/index.ts +15 -15
  28. package/src/interfaces/Access.ts +138 -138
  29. package/src/interfaces/Attendance.ts +45 -45
  30. package/src/interfaces/Content.ts +84 -84
  31. package/src/interfaces/Doing.ts +93 -93
  32. package/src/interfaces/Donation.ts +190 -190
  33. package/src/interfaces/Error.ts +17 -17
  34. package/src/interfaces/Membership.ts +184 -184
  35. package/src/interfaces/Messaging.ts +96 -96
  36. package/src/interfaces/Permissions.ts +92 -92
  37. package/src/interfaces/Reporting.ts +41 -41
  38. package/src/interfaces/UserContextInterface.ts +13 -13
  39. package/src/interfaces/index.ts +13 -13
  40. package/tsconfig.json +36 -36
  41. package/CLAUDE.md +0 -98
@@ -1,45 +1,45 @@
1
- import { CampusInterface, ServiceInterface, ServiceTimeInterface, PersonInterface } from ".";
2
-
3
- export interface AttendanceInterface {
4
- campus: CampusInterface;
5
- service: ServiceInterface;
6
- serviceTime: ServiceTimeInterface;
7
- groupId: string;
8
- }
9
- export interface AttendanceRecordInterface {
10
- serviceTime: ServiceTimeInterface;
11
- service: ServiceInterface;
12
- campus: CampusInterface;
13
- week: number;
14
- count: number;
15
- visitDate: Date;
16
- groupId: string;
17
- }
18
- export interface VisitInterface {
19
- id?: string;
20
- personId?: string;
21
- serviceId?: string;
22
- groupId?: string;
23
- visitDate?: Date;
24
- visitSessions?: VisitSessionInterface[];
25
- person?: PersonInterface;
26
- }
27
- export interface VisitSessionInterface {
28
- id?: string;
29
- visitId?: string;
30
- sessionId?: string;
31
- visit?: VisitInterface;
32
- session?: SessionInterface;
33
- }
34
- export interface SessionInterface {
35
- id?: string;
36
- groupId: string;
37
- serviceTimeId: string;
38
- sessionDate?: Date;
39
- displayName: string;
40
- }
41
- export interface SettingInterface {
42
- id?: string;
43
- keyName?: string;
44
- value?: string;
45
- }
1
+ import { CampusInterface, ServiceInterface, ServiceTimeInterface, PersonInterface } from ".";
2
+
3
+ export interface AttendanceInterface {
4
+ campus: CampusInterface;
5
+ service: ServiceInterface;
6
+ serviceTime: ServiceTimeInterface;
7
+ groupId: string;
8
+ }
9
+ export interface AttendanceRecordInterface {
10
+ serviceTime: ServiceTimeInterface;
11
+ service: ServiceInterface;
12
+ campus: CampusInterface;
13
+ week: number;
14
+ count: number;
15
+ visitDate: Date;
16
+ groupId: string;
17
+ }
18
+ export interface VisitInterface {
19
+ id?: string;
20
+ personId?: string;
21
+ serviceId?: string;
22
+ groupId?: string;
23
+ visitDate?: Date;
24
+ visitSessions?: VisitSessionInterface[];
25
+ person?: PersonInterface;
26
+ }
27
+ export interface VisitSessionInterface {
28
+ id?: string;
29
+ visitId?: string;
30
+ sessionId?: string;
31
+ visit?: VisitInterface;
32
+ session?: SessionInterface;
33
+ }
34
+ export interface SessionInterface {
35
+ id?: string;
36
+ groupId: string;
37
+ serviceTimeId: string;
38
+ sessionDate?: Date;
39
+ displayName: string;
40
+ }
41
+ export interface SettingInterface {
42
+ id?: string;
43
+ keyName?: string;
44
+ value?: string;
45
+ }
@@ -1,84 +1,84 @@
1
- export interface LinkInterface {
2
- id?: string;
3
- churchId?: string;
4
- url?: string;
5
- text?: string;
6
- sort?: number;
7
- linkType: string;
8
- linkData: string;
9
- icon: string;
10
- category: string;
11
- parentId?: string;
12
- children?: any;
13
- }
14
- export interface SermonInterface {
15
- id?: string;
16
- churchId?: string;
17
- playlistId?: string;
18
- videoType?: string;
19
- videoData?: string;
20
- videoUrl?: string;
21
- title?: string;
22
- description?: string;
23
- publishDate?: Date;
24
- thumbnail?: string;
25
- duration?: number;
26
- permanentUrl?: boolean;
27
- }
28
- export interface PlaylistInterface {
29
- id?: string;
30
- churchId?: string;
31
- title?: string;
32
- description?: string;
33
- publishDate?: Date;
34
- thumbnail?: string;
35
- }
36
- export interface StreamingServiceInterface {
37
- id?: string;
38
- churchId?: string;
39
- serviceTime?: Date;
40
- earlyStart?: number;
41
- duration: number;
42
- chatBefore: number;
43
- chatAfter: number;
44
- provider: string;
45
- providerKey: string;
46
- videoUrl: string;
47
- timezoneOffset: number;
48
- recurring: boolean;
49
- label: string;
50
- sermonId?: string;
51
- }
52
- export interface EventInterface {
53
- id?: string;
54
- churchId?: string;
55
- groupId?: string;
56
- start?: Date;
57
- end?: Date;
58
- title?: string;
59
- description?: string;
60
- allDay?: boolean;
61
- visibility?: string;
62
- recurrenceRule?: string;
63
- exceptionDates?: Date[];
64
- }
65
- export interface EventExceptionInterface {
66
- id?: string;
67
- churchId?: string;
68
- eventId?: string;
69
- exceptionDate?: Date;
70
- }
71
- export interface CuratedCalendarInterface {
72
- id?: string;
73
- churchId?: string;
74
- name?: string;
75
- }
76
- export interface CuratedEventInterface {
77
- id?: string;
78
- churchId?: string;
79
- curratedCalendarId?: string;
80
- groupId?: string;
81
- eventId?: string;
82
- }
83
- export interface CuratedEventWithEventInterface extends EventInterface, CuratedEventInterface {}
84
- export type VisibilityOptions = "public" | "private" | "hidden";
1
+ export interface LinkInterface {
2
+ id?: string;
3
+ churchId?: string;
4
+ url?: string;
5
+ text?: string;
6
+ sort?: number;
7
+ linkType: string;
8
+ linkData: string;
9
+ icon: string;
10
+ category: string;
11
+ parentId?: string;
12
+ children?: any;
13
+ }
14
+ export interface SermonInterface {
15
+ id?: string;
16
+ churchId?: string;
17
+ playlistId?: string;
18
+ videoType?: string;
19
+ videoData?: string;
20
+ videoUrl?: string;
21
+ title?: string;
22
+ description?: string;
23
+ publishDate?: Date;
24
+ thumbnail?: string;
25
+ duration?: number;
26
+ permanentUrl?: boolean;
27
+ }
28
+ export interface PlaylistInterface {
29
+ id?: string;
30
+ churchId?: string;
31
+ title?: string;
32
+ description?: string;
33
+ publishDate?: Date;
34
+ thumbnail?: string;
35
+ }
36
+ export interface StreamingServiceInterface {
37
+ id?: string;
38
+ churchId?: string;
39
+ serviceTime?: Date;
40
+ earlyStart?: number;
41
+ duration: number;
42
+ chatBefore: number;
43
+ chatAfter: number;
44
+ provider: string;
45
+ providerKey: string;
46
+ videoUrl: string;
47
+ timezoneOffset: number;
48
+ recurring: boolean;
49
+ label: string;
50
+ sermonId?: string;
51
+ }
52
+ export interface EventInterface {
53
+ id?: string;
54
+ churchId?: string;
55
+ groupId?: string;
56
+ start?: Date;
57
+ end?: Date;
58
+ title?: string;
59
+ description?: string;
60
+ allDay?: boolean;
61
+ visibility?: string;
62
+ recurrenceRule?: string;
63
+ exceptionDates?: Date[];
64
+ }
65
+ export interface EventExceptionInterface {
66
+ id?: string;
67
+ churchId?: string;
68
+ eventId?: string;
69
+ exceptionDate?: Date;
70
+ }
71
+ export interface CuratedCalendarInterface {
72
+ id?: string;
73
+ churchId?: string;
74
+ name?: string;
75
+ }
76
+ export interface CuratedEventInterface {
77
+ id?: string;
78
+ churchId?: string;
79
+ curratedCalendarId?: string;
80
+ groupId?: string;
81
+ eventId?: string;
82
+ }
83
+ export interface CuratedEventWithEventInterface extends EventInterface, CuratedEventInterface {}
84
+ export type VisibilityOptions = "public" | "private" | "hidden";
@@ -1,93 +1,93 @@
1
- export interface ActionInterface {
2
- id?: string;
3
- automationId?: string;
4
- actionType?: string;
5
- actionData?: string;
6
- }
7
- export interface AutomationInterface {
8
- id?: string;
9
- title: string;
10
- recurs: string;
11
- active: boolean;
12
- }
13
- export interface ConditionInterface {
14
- id?: string;
15
- conjunctionId?: string;
16
- field?: string;
17
- fieldData?: string;
18
- operator?: string;
19
- value?: string;
20
- label?: string;
21
- }
22
- export interface ConjunctionInterface {
23
- id?: string;
24
- automationId?: string;
25
- parentId?: string;
26
- groupType?: string;
27
- conjunctions?: ConjunctionInterface[];
28
- conditions?: ConditionInterface[];
29
- }
30
- export interface TaskInterface {
31
- id?: string;
32
- taskNumber?: number;
33
- taskType?: string;
34
- dateCreated?: Date;
35
- dateClosed?: Date;
36
- associatedWithType?: string;
37
- associatedWithId?: string;
38
- associatedWithLabel?: string;
39
- createdByType?: string;
40
- createdById?: string;
41
- createdByLabel?: string;
42
- assignedToType?: string;
43
- assignedToId?: string;
44
- assignedToLabel?: string;
45
- title?: string;
46
- status?: string;
47
- automationId?: string;
48
- conversationId?: string;
49
- data?: string;
50
- }
51
-
52
- export interface PlanInterface {
53
- id?: string;
54
- churchId?: string;
55
- name?: string;
56
- ministryId?: string;
57
- serviceDate?: Date;
58
- notes?: string;
59
- }
60
- export interface PositionInterface {
61
- id?: string;
62
- churchId?: string;
63
- planId?: string;
64
- categoryName?: string;
65
- name?: string;
66
- count?: number;
67
- groupId?: string;
68
- }
69
- export interface AssignmentInterface {
70
- id?: string;
71
- churchId?: string;
72
- positionId?: string;
73
- personId?: string;
74
- status?: string;
75
- notified?: Date;
76
- }
77
- export interface TimeInterface {
78
- id?: string;
79
- churchId?: string;
80
- planId?: string;
81
- displayName?: string;
82
- startTime?: Date;
83
- endTime?: Date;
84
- teams?: string;
85
- teamList?: string[];
86
- }
87
- export interface BlockoutDateInterface {
88
- id?: string;
89
- churchId?: string;
90
- personId?: string;
91
- startDate?: Date;
92
- endDate?: Date;
93
- }
1
+ export interface ActionInterface {
2
+ id?: string;
3
+ automationId?: string;
4
+ actionType?: string;
5
+ actionData?: string;
6
+ }
7
+ export interface AutomationInterface {
8
+ id?: string;
9
+ title: string;
10
+ recurs: string;
11
+ active: boolean;
12
+ }
13
+ export interface ConditionInterface {
14
+ id?: string;
15
+ conjunctionId?: string;
16
+ field?: string;
17
+ fieldData?: string;
18
+ operator?: string;
19
+ value?: string;
20
+ label?: string;
21
+ }
22
+ export interface ConjunctionInterface {
23
+ id?: string;
24
+ automationId?: string;
25
+ parentId?: string;
26
+ groupType?: string;
27
+ conjunctions?: ConjunctionInterface[];
28
+ conditions?: ConditionInterface[];
29
+ }
30
+ export interface TaskInterface {
31
+ id?: string;
32
+ taskNumber?: number;
33
+ taskType?: string;
34
+ dateCreated?: Date;
35
+ dateClosed?: Date;
36
+ associatedWithType?: string;
37
+ associatedWithId?: string;
38
+ associatedWithLabel?: string;
39
+ createdByType?: string;
40
+ createdById?: string;
41
+ createdByLabel?: string;
42
+ assignedToType?: string;
43
+ assignedToId?: string;
44
+ assignedToLabel?: string;
45
+ title?: string;
46
+ status?: string;
47
+ automationId?: string;
48
+ conversationId?: string;
49
+ data?: string;
50
+ }
51
+
52
+ export interface PlanInterface {
53
+ id?: string;
54
+ churchId?: string;
55
+ name?: string;
56
+ ministryId?: string;
57
+ serviceDate?: Date;
58
+ notes?: string;
59
+ }
60
+ export interface PositionInterface {
61
+ id?: string;
62
+ churchId?: string;
63
+ planId?: string;
64
+ categoryName?: string;
65
+ name?: string;
66
+ count?: number;
67
+ groupId?: string;
68
+ }
69
+ export interface AssignmentInterface {
70
+ id?: string;
71
+ churchId?: string;
72
+ positionId?: string;
73
+ personId?: string;
74
+ status?: string;
75
+ notified?: Date;
76
+ }
77
+ export interface TimeInterface {
78
+ id?: string;
79
+ churchId?: string;
80
+ planId?: string;
81
+ displayName?: string;
82
+ startTime?: Date;
83
+ endTime?: Date;
84
+ teams?: string;
85
+ teamList?: string[];
86
+ }
87
+ export interface BlockoutDateInterface {
88
+ id?: string;
89
+ churchId?: string;
90
+ personId?: string;
91
+ startDate?: Date;
92
+ endDate?: Date;
93
+ }