@churchapps/helpers 1.1.6 → 1.1.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.
@@ -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
+ }
@@ -1,183 +1,183 @@
1
- import { PersonInterface } from ".";
2
-
3
- export interface DonationBatchInterface {
4
- id?: string;
5
- name?: string;
6
- batchDate?: Date;
7
- donationCount?: number;
8
- totalAmount?: number;
9
- }
10
- export interface DonationInterface {
11
- id?: string;
12
- batchId?: string;
13
- personId?: string;
14
- donationDate?: Date;
15
- amount?: number;
16
- method?: string;
17
- methodDetails?: string;
18
- notes?: string;
19
- person?: PersonInterface;
20
- fund?: FundInterface;
21
- }
22
- export interface DonationSummaryInterface {
23
- week: number;
24
- donations?: DonationSummaryDonation[];
25
- }
26
- export interface DonationSummaryDonation {
27
- totalAmount: number;
28
- fund?: FundInterface;
29
- }
30
- export interface FundInterface {
31
- id: string;
32
- name: string;
33
- taxDeductible?: boolean;
34
- amount?: number;
35
- }
36
- export interface FundDonationInterface {
37
- id?: string;
38
- donationId?: string;
39
- fundId?: string;
40
- amount?: number;
41
- donation?: DonationInterface;
42
- }
43
- export interface PaymentMethodInterface {
44
- id?: string;
45
- churchId?: string;
46
- personId?: string;
47
- customerId?: string;
48
- email?: string;
49
- name?: string;
50
- provider?: "stripe" | "paypal";
51
- type?: "card" | "bank" | "paypal";
52
- last4?: string;
53
- }
54
- export interface StripeCardUpdateInterface {
55
- paymentMethodId: string;
56
- cardData: StripeCardDataInterface;
57
- personId?: string;
58
- }
59
- export interface StripeCardDataInterface {
60
- card: StripeCardExpirationInterface;
61
- }
62
- export interface StripeCardExpirationInterface {
63
- exp_month: string;
64
- exp_year: string;
65
- }
66
- export interface StripeBankAccountInterface {
67
- account_holder_name: any;
68
- account_holder_type: any;
69
- country: string;
70
- currency: string;
71
- account_number: any;
72
- routing_number: any;
73
- }
74
- export interface StripeBankAccountUpdateInterface {
75
- paymentMethodId: string;
76
- customerId: string;
77
- personId?: string;
78
- bankData: StripeBankAccountHolderDataInterface;
79
- }
80
- export interface StripeBankAccountHolderDataInterface {
81
- account_holder_name: string;
82
- account_holder_type: string;
83
- }
84
- export interface StripeBankAccountVerifyInterface {
85
- customerId: string;
86
- paymentMethodId: string;
87
- amountData: { amounts: string[] };
88
- }
89
- export interface StripePersonDonationInterface {
90
- id: string;
91
- email: string;
92
- name: string;
93
- }
94
- export interface StripeFundDonationInterface {
95
- id: string;
96
- amount: number;
97
- name?: string;
98
- }
99
- export interface StripeDonationInterface {
100
- id?: string;
101
- type?: string;
102
- amount?: number;
103
- customerId?: string;
104
- billing_cycle_anchor?: number;
105
- proration_behavior?: string;
106
- interval?: StripeDonationIntervalInterface;
107
- person?: StripePersonDonationInterface;
108
- funds?: StripeFundDonationInterface[];
109
- notes?: string;
110
- churchId?: string;
111
- }
112
- export interface StripeDonationIntervalInterface {
113
- interval: string;
114
- interval_count: number;
115
- }
116
- export interface SubscriptionInterface {
117
- id: string;
118
- funds: [];
119
- billing_cycle_anchor: number;
120
- default_payment_method: string;
121
- default_source: string;
122
- plan: { amount: number; interval: string; interval_count: number };
123
- customer: string;
124
- }
125
-
126
- export interface PayPalPaymentMethodInterface {
127
- id: string;
128
- type: "paypal";
129
- name: string;
130
- last4?: string;
131
- email?: string;
132
- }
133
-
134
- export interface PaymentGatewayInterface {
135
- id: string;
136
- provider: "stripe" | "paypal";
137
- publicKey: string;
138
- enabled: boolean;
139
- }
140
-
141
- export interface MultiGatewayDonationInterface {
142
- id: string;
143
- type: "card" | "bank" | "paypal";
144
- provider: "stripe" | "paypal";
145
- customerId?: string;
146
- person?: {
147
- id?: string;
148
- email?: string;
149
- name?: string;
150
- };
151
- amount: number;
152
- billing_cycle_anchor?: number;
153
- interval?: {
154
- interval_count: number;
155
- interval: string;
156
- };
157
- funds?: FundDonationInterface[];
158
- notes?: string;
159
- }
160
-
161
- export class StripePaymentMethod {
162
- id: string;
163
- type: string;
164
- name: string;
165
- last4: string;
166
- exp_month?: string;
167
- exp_year?: string;
168
- status?: string;
169
- account_holder_name?: string;
170
- account_holder_type?: string;
171
-
172
- constructor(obj?: any) {
173
- this.id = obj?.id || null;
174
- this.type = obj?.type || (obj?.object && obj.object === "bank_account" ? "bank" : null);
175
- this.name = obj?.card?.brand || obj?.bank_name || null;
176
- this.last4 = obj?.last4 || obj?.card?.last4 || null;
177
- this.exp_month = obj?.exp_month || obj?.card?.exp_month || null;
178
- this.exp_year = obj?.exp_year || obj?.card?.exp_year || null;
179
- this.status = obj?.status || null;
180
- this.account_holder_name = obj?.account_holder_name || "";
181
- this.account_holder_type = obj?.account_holder_type || "individual";
182
- }
183
- }
1
+ import { PersonInterface } from ".";
2
+
3
+ export interface DonationBatchInterface {
4
+ id?: string;
5
+ name?: string;
6
+ batchDate?: Date;
7
+ donationCount?: number;
8
+ totalAmount?: number;
9
+ }
10
+ export interface DonationInterface {
11
+ id?: string;
12
+ batchId?: string;
13
+ personId?: string;
14
+ donationDate?: Date;
15
+ amount?: number;
16
+ method?: string;
17
+ methodDetails?: string;
18
+ notes?: string;
19
+ person?: PersonInterface;
20
+ fund?: FundInterface;
21
+ }
22
+ export interface DonationSummaryInterface {
23
+ week: number;
24
+ donations?: DonationSummaryDonation[];
25
+ }
26
+ export interface DonationSummaryDonation {
27
+ totalAmount: number;
28
+ fund?: FundInterface;
29
+ }
30
+ export interface FundInterface {
31
+ id: string;
32
+ name: string;
33
+ taxDeductible?: boolean;
34
+ amount?: number;
35
+ }
36
+ export interface FundDonationInterface {
37
+ id?: string;
38
+ donationId?: string;
39
+ fundId?: string;
40
+ amount?: number;
41
+ donation?: DonationInterface;
42
+ }
43
+ export interface PaymentMethodInterface {
44
+ id?: string;
45
+ churchId?: string;
46
+ personId?: string;
47
+ customerId?: string;
48
+ email?: string;
49
+ name?: string;
50
+ provider?: "stripe" | "paypal";
51
+ type?: "card" | "bank" | "paypal";
52
+ last4?: string;
53
+ }
54
+ export interface StripeCardUpdateInterface {
55
+ paymentMethodId: string;
56
+ cardData: StripeCardDataInterface;
57
+ personId?: string;
58
+ }
59
+ export interface StripeCardDataInterface {
60
+ card: StripeCardExpirationInterface;
61
+ }
62
+ export interface StripeCardExpirationInterface {
63
+ exp_month: string;
64
+ exp_year: string;
65
+ }
66
+ export interface StripeBankAccountInterface {
67
+ account_holder_name: any;
68
+ account_holder_type: any;
69
+ country: string;
70
+ currency: string;
71
+ account_number: any;
72
+ routing_number: any;
73
+ }
74
+ export interface StripeBankAccountUpdateInterface {
75
+ paymentMethodId: string;
76
+ customerId: string;
77
+ personId?: string;
78
+ bankData: StripeBankAccountHolderDataInterface;
79
+ }
80
+ export interface StripeBankAccountHolderDataInterface {
81
+ account_holder_name: string;
82
+ account_holder_type: string;
83
+ }
84
+ export interface StripeBankAccountVerifyInterface {
85
+ customerId: string;
86
+ paymentMethodId: string;
87
+ amountData: { amounts: string[] };
88
+ }
89
+ export interface StripePersonDonationInterface {
90
+ id: string;
91
+ email: string;
92
+ name: string;
93
+ }
94
+ export interface StripeFundDonationInterface {
95
+ id: string;
96
+ amount: number;
97
+ name?: string;
98
+ }
99
+ export interface StripeDonationInterface {
100
+ id?: string;
101
+ type?: string;
102
+ amount?: number;
103
+ customerId?: string;
104
+ billing_cycle_anchor?: number;
105
+ proration_behavior?: string;
106
+ interval?: StripeDonationIntervalInterface;
107
+ person?: StripePersonDonationInterface;
108
+ funds?: StripeFundDonationInterface[];
109
+ notes?: string;
110
+ churchId?: string;
111
+ }
112
+ export interface StripeDonationIntervalInterface {
113
+ interval: string;
114
+ interval_count: number;
115
+ }
116
+ export interface SubscriptionInterface {
117
+ id: string;
118
+ funds: [];
119
+ billing_cycle_anchor: number;
120
+ default_payment_method: string;
121
+ default_source: string;
122
+ plan: { amount: number; interval: string; interval_count: number };
123
+ customer: string;
124
+ }
125
+
126
+ export interface PayPalPaymentMethodInterface {
127
+ id: string;
128
+ type: "paypal";
129
+ name: string;
130
+ last4?: string;
131
+ email?: string;
132
+ }
133
+
134
+ export interface PaymentGatewayInterface {
135
+ id: string;
136
+ provider: "stripe" | "paypal";
137
+ publicKey: string;
138
+ enabled: boolean;
139
+ }
140
+
141
+ export interface MultiGatewayDonationInterface {
142
+ id: string;
143
+ type: "card" | "bank" | "paypal";
144
+ provider: "stripe" | "paypal";
145
+ customerId?: string;
146
+ person?: {
147
+ id?: string;
148
+ email?: string;
149
+ name?: string;
150
+ };
151
+ amount: number;
152
+ billing_cycle_anchor?: number;
153
+ interval?: {
154
+ interval_count: number;
155
+ interval: string;
156
+ };
157
+ funds?: FundDonationInterface[];
158
+ notes?: string;
159
+ }
160
+
161
+ export class StripePaymentMethod {
162
+ id: string;
163
+ type: string;
164
+ name: string;
165
+ last4: string;
166
+ exp_month?: string;
167
+ exp_year?: string;
168
+ status?: string;
169
+ account_holder_name?: string;
170
+ account_holder_type?: string;
171
+
172
+ constructor(obj?: any) {
173
+ this.id = obj?.id || null;
174
+ this.type = obj?.type || (obj?.object && obj.object === "bank_account" ? "bank" : null);
175
+ this.name = obj?.card?.brand || obj?.bank_name || null;
176
+ this.last4 = obj?.last4 || obj?.card?.last4 || null;
177
+ this.exp_month = obj?.exp_month || obj?.card?.exp_month || null;
178
+ this.exp_year = obj?.exp_year || obj?.card?.exp_year || null;
179
+ this.status = obj?.status || null;
180
+ this.account_holder_name = obj?.account_holder_name || "";
181
+ this.account_holder_type = obj?.account_holder_type || "individual";
182
+ }
183
+ }
@@ -1,17 +1,17 @@
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 ErrorAppDataInterface {
13
- churchId: string;
14
- userId: string;
15
- originUrl: string;
16
- application: string;
17
- }
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 ErrorAppDataInterface {
13
+ churchId: string;
14
+ userId: string;
15
+ originUrl: string;
16
+ application: string;
17
+ }