mp-js-api 0.0.1
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/index.d.ts +120 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +341 -0
- package/dist/tables/addresses.d.ts +55 -0
- package/dist/tables/addresses.d.ts.map +1 -0
- package/dist/tables/addresses.js +60 -0
- package/dist/tables/contact-attributes.d.ts +19 -0
- package/dist/tables/contact-attributes.d.ts.map +1 -0
- package/dist/tables/contact-attributes.js +24 -0
- package/dist/tables/contacts.d.ts +105 -0
- package/dist/tables/contacts.d.ts.map +1 -0
- package/dist/tables/contacts.js +114 -0
- package/dist/tables/event-participants.d.ts +47 -0
- package/dist/tables/event-participants.d.ts.map +1 -0
- package/dist/tables/event-participants.js +52 -0
- package/dist/tables/events.d.ts +117 -0
- package/dist/tables/events.d.ts.map +1 -0
- package/dist/tables/events.js +122 -0
- package/dist/tables/group-participants.d.ts +61 -0
- package/dist/tables/group-participants.d.ts.map +1 -0
- package/dist/tables/group-participants.js +66 -0
- package/dist/tables/groups.d.ts +103 -0
- package/dist/tables/groups.d.ts.map +1 -0
- package/dist/tables/groups.js +108 -0
- package/dist/tables/households.d.ts +55 -0
- package/dist/tables/households.d.ts.map +1 -0
- package/dist/tables/households.js +60 -0
- package/dist/tables/participants.d.ts +63 -0
- package/dist/tables/participants.d.ts.map +1 -0
- package/dist/tables/participants.js +68 -0
- package/dist/utils/strings.d.ts +2 -0
- package/dist/utils/strings.d.ts.map +1 -0
- package/dist/utils/strings.js +30 -0
- package/package.json +26 -0
- package/src/index.ts +571 -0
- package/src/tables/addresses.ts +111 -0
- package/src/tables/contact-attributes.ts +40 -0
- package/src/tables/contacts.ts +223 -0
- package/src/tables/event-participants.ts +95 -0
- package/src/tables/events.ts +235 -0
- package/src/tables/group-participants.ts +123 -0
- package/src/tables/groups.ts +207 -0
- package/src/tables/households.ts +111 -0
- package/src/tables/participants.ts +127 -0
- package/src/utils/strings.ts +29 -0
- package/src/utils/types.d.ts +7 -0
- package/test/index.spec.ts +103 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export interface ContactRecord {
|
|
2
|
+
Contact_ID: number;
|
|
3
|
+
Company: boolean;
|
|
4
|
+
Company_Name: string | null;
|
|
5
|
+
Display_Name: string;
|
|
6
|
+
Prefix_ID: number | null;
|
|
7
|
+
First_Name: string | null;
|
|
8
|
+
Middle_Name: string | null;
|
|
9
|
+
Last_Name: string | null;
|
|
10
|
+
Suffix_ID: number | null;
|
|
11
|
+
Nickname: string | null;
|
|
12
|
+
Date_of_Birth: string | null;
|
|
13
|
+
Gender_ID: number | null;
|
|
14
|
+
Marital_Status_ID: number | null;
|
|
15
|
+
Contact_Status_ID: number;
|
|
16
|
+
Household_ID: number | null;
|
|
17
|
+
Household_Position_ID: number | null;
|
|
18
|
+
Anniversary_Date: string | null;
|
|
19
|
+
Date_of_Death: string | null;
|
|
20
|
+
Participant_Record: number | null;
|
|
21
|
+
Donor_Record: number | null;
|
|
22
|
+
Email_Address: string | null;
|
|
23
|
+
Mobile_Phone: string | null;
|
|
24
|
+
Company_Phone: string | null;
|
|
25
|
+
Pager_Phone: string | null;
|
|
26
|
+
Fax_Phone: string | null;
|
|
27
|
+
Facebook_Account: string | null;
|
|
28
|
+
Twitter_Account: string | null;
|
|
29
|
+
Web_Page: string | null;
|
|
30
|
+
Industry_ID: number | null;
|
|
31
|
+
Occupation_ID: number | null;
|
|
32
|
+
HS_Graduation_Year: number | null;
|
|
33
|
+
Bulk_Email_Opt_Out: boolean;
|
|
34
|
+
Email_Unlisted: boolean;
|
|
35
|
+
Do_Not_Text: boolean;
|
|
36
|
+
Mobile_Phone_Unlisted: boolean;
|
|
37
|
+
Remove_From_Directory: boolean;
|
|
38
|
+
User_Account: number | null;
|
|
39
|
+
ID_Card: string | null;
|
|
40
|
+
Contact_GUID: string;
|
|
41
|
+
_Contact_Setup_Date: string;
|
|
42
|
+
Occupation_Name: string | null;
|
|
43
|
+
Email_Verified: boolean;
|
|
44
|
+
Mobile_Phone_Verified: boolean;
|
|
45
|
+
Maiden_Name: string | null;
|
|
46
|
+
Professional_Information: unknown | null;
|
|
47
|
+
Contact_Methods: unknown | null;
|
|
48
|
+
Current_School: unknown | null;
|
|
49
|
+
Other_Information: unknown | null;
|
|
50
|
+
Communication_Preferences: unknown | null;
|
|
51
|
+
}
|
|
52
|
+
export interface Contact {
|
|
53
|
+
contactID: number;
|
|
54
|
+
company: boolean;
|
|
55
|
+
companyName: string | null;
|
|
56
|
+
displayName: string;
|
|
57
|
+
prefixID: number | null;
|
|
58
|
+
firstName: string | null;
|
|
59
|
+
middleName: string | null;
|
|
60
|
+
lastName: string | null;
|
|
61
|
+
suffixID: number | null;
|
|
62
|
+
nickname: string | null;
|
|
63
|
+
dateOfBirth: string | null;
|
|
64
|
+
genderID: number | null;
|
|
65
|
+
maritalStatusID: number | null;
|
|
66
|
+
contactStatusID: number;
|
|
67
|
+
householdID: number | null;
|
|
68
|
+
householdPositionID: number | null;
|
|
69
|
+
anniversaryDate: string | null;
|
|
70
|
+
dateOfDeath: string | null;
|
|
71
|
+
participantRecord: number | null;
|
|
72
|
+
donorRecord: number | null;
|
|
73
|
+
emailAddress: string | null;
|
|
74
|
+
mobilePhone: string | null;
|
|
75
|
+
companyPhone: string | null;
|
|
76
|
+
pagerPhone: string | null;
|
|
77
|
+
faxPhone: string | null;
|
|
78
|
+
facebookAccount: string | null;
|
|
79
|
+
twitterAccount: string | null;
|
|
80
|
+
webPage: string | null;
|
|
81
|
+
industryID: number | null;
|
|
82
|
+
occupationID: number | null;
|
|
83
|
+
hsGraduationYear: number | null;
|
|
84
|
+
bulkEmailOptOut: boolean;
|
|
85
|
+
emailUnlisted: boolean;
|
|
86
|
+
doNotText: boolean;
|
|
87
|
+
mobilePhoneUnlisted: boolean;
|
|
88
|
+
removeFromDirectory: boolean;
|
|
89
|
+
userAccount: number | null;
|
|
90
|
+
idCard: string | null;
|
|
91
|
+
contactGUID: string;
|
|
92
|
+
_contactSetupDate: string;
|
|
93
|
+
occupationName: string | null;
|
|
94
|
+
emailVerified: boolean;
|
|
95
|
+
mobilePhoneVerified: boolean;
|
|
96
|
+
maidenName: string | null;
|
|
97
|
+
professionalInformation: unknown | null;
|
|
98
|
+
contactMethods: unknown | null;
|
|
99
|
+
currentSchool: unknown | null;
|
|
100
|
+
otherInformation: unknown | null;
|
|
101
|
+
communicationPreferences: unknown | null;
|
|
102
|
+
}
|
|
103
|
+
export declare const mapContactRecord: (record: ContactRecord) => Contact;
|
|
104
|
+
export declare const mapContactToContactRecord: <T extends Contact | Partial<Contact> = Contact>(contact: Contact | Partial<Contact>) => T extends Contact ? ContactRecord : Partial<ContactRecord>;
|
|
105
|
+
//# sourceMappingURL=contacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/tables/contacts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,C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
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapContactToContactRecord = exports.mapContactRecord = void 0;
|
|
4
|
+
const mapContactRecord = (record) => ({
|
|
5
|
+
contactID: record.Contact_ID,
|
|
6
|
+
company: record.Company,
|
|
7
|
+
companyName: record.Company_Name,
|
|
8
|
+
displayName: record.Display_Name,
|
|
9
|
+
prefixID: record.Prefix_ID,
|
|
10
|
+
firstName: record.First_Name,
|
|
11
|
+
middleName: record.Middle_Name,
|
|
12
|
+
lastName: record.Last_Name,
|
|
13
|
+
suffixID: record.Suffix_ID,
|
|
14
|
+
nickname: record.Nickname,
|
|
15
|
+
dateOfBirth: record.Date_of_Birth,
|
|
16
|
+
genderID: record.Gender_ID,
|
|
17
|
+
maritalStatusID: record.Marital_Status_ID,
|
|
18
|
+
contactStatusID: record.Contact_Status_ID,
|
|
19
|
+
householdID: record.Household_ID,
|
|
20
|
+
householdPositionID: record.Household_Position_ID,
|
|
21
|
+
anniversaryDate: record.Anniversary_Date,
|
|
22
|
+
dateOfDeath: record.Date_of_Death,
|
|
23
|
+
participantRecord: record.Participant_Record,
|
|
24
|
+
donorRecord: record.Donor_Record,
|
|
25
|
+
emailAddress: record.Email_Address,
|
|
26
|
+
mobilePhone: record.Mobile_Phone,
|
|
27
|
+
companyPhone: record.Company_Phone,
|
|
28
|
+
pagerPhone: record.Pager_Phone,
|
|
29
|
+
faxPhone: record.Fax_Phone,
|
|
30
|
+
facebookAccount: record.Facebook_Account,
|
|
31
|
+
twitterAccount: record.Twitter_Account,
|
|
32
|
+
webPage: record.Web_Page,
|
|
33
|
+
industryID: record.Industry_ID,
|
|
34
|
+
occupationID: record.Occupation_ID,
|
|
35
|
+
hsGraduationYear: record.HS_Graduation_Year,
|
|
36
|
+
bulkEmailOptOut: record.Bulk_Email_Opt_Out,
|
|
37
|
+
emailUnlisted: record.Email_Unlisted,
|
|
38
|
+
doNotText: record.Do_Not_Text,
|
|
39
|
+
mobilePhoneUnlisted: record.Mobile_Phone_Unlisted,
|
|
40
|
+
removeFromDirectory: record.Remove_From_Directory,
|
|
41
|
+
userAccount: record.User_Account,
|
|
42
|
+
idCard: record.ID_Card,
|
|
43
|
+
contactGUID: record.Contact_GUID,
|
|
44
|
+
_contactSetupDate: record._Contact_Setup_Date,
|
|
45
|
+
occupationName: record.Occupation_Name,
|
|
46
|
+
emailVerified: record.Email_Verified,
|
|
47
|
+
mobilePhoneVerified: record.Mobile_Phone_Verified,
|
|
48
|
+
maidenName: record.Maiden_Name,
|
|
49
|
+
professionalInformation: record.Professional_Information,
|
|
50
|
+
contactMethods: record.Contact_Methods,
|
|
51
|
+
currentSchool: record.Current_School,
|
|
52
|
+
otherInformation: record.Other_Information,
|
|
53
|
+
communicationPreferences: record.Communication_Preferences,
|
|
54
|
+
});
|
|
55
|
+
exports.mapContactRecord = mapContactRecord;
|
|
56
|
+
const mapContactToContactRecord = (contact) => {
|
|
57
|
+
const mappings = {
|
|
58
|
+
contactID: 'Contact_ID',
|
|
59
|
+
company: 'Company',
|
|
60
|
+
companyName: 'Company_Name',
|
|
61
|
+
displayName: 'Display_Name',
|
|
62
|
+
prefixID: 'Prefix_ID',
|
|
63
|
+
firstName: 'First_Name',
|
|
64
|
+
middleName: 'Middle_Name',
|
|
65
|
+
lastName: 'Last_Name',
|
|
66
|
+
suffixID: 'Suffix_ID',
|
|
67
|
+
nickname: 'Nickname',
|
|
68
|
+
dateOfBirth: 'Date_of_Birth',
|
|
69
|
+
genderID: 'Gender_ID',
|
|
70
|
+
maritalStatusID: 'Marital_Status_ID',
|
|
71
|
+
contactStatusID: 'Contact_Status_ID',
|
|
72
|
+
householdID: 'Household_ID',
|
|
73
|
+
householdPositionID: 'Household_Position_ID',
|
|
74
|
+
anniversaryDate: 'Anniversary_Date',
|
|
75
|
+
dateOfDeath: 'Date_of_Death',
|
|
76
|
+
participantRecord: 'Participant_Record',
|
|
77
|
+
donorRecord: 'Donor_Record',
|
|
78
|
+
emailAddress: 'Email_Address',
|
|
79
|
+
mobilePhone: 'Mobile_Phone',
|
|
80
|
+
companyPhone: 'Company_Phone',
|
|
81
|
+
pagerPhone: 'Pager_Phone',
|
|
82
|
+
faxPhone: 'Fax_Phone',
|
|
83
|
+
facebookAccount: 'Facebook_Account',
|
|
84
|
+
twitterAccount: 'Twitter_Account',
|
|
85
|
+
webPage: 'Web_Page',
|
|
86
|
+
industryID: 'Industry_ID',
|
|
87
|
+
occupationID: 'Occupation_ID',
|
|
88
|
+
hsGraduationYear: 'HS_Graduation_Year',
|
|
89
|
+
bulkEmailOptOut: 'Bulk_Email_Opt_Out',
|
|
90
|
+
emailUnlisted: 'Email_Unlisted',
|
|
91
|
+
doNotText: 'Do_Not_Text',
|
|
92
|
+
mobilePhoneUnlisted: 'Mobile_Phone_Unlisted',
|
|
93
|
+
removeFromDirectory: 'Remove_From_Directory',
|
|
94
|
+
userAccount: 'User_Account',
|
|
95
|
+
idCard: 'ID_Card',
|
|
96
|
+
contactGUID: 'Contact_GUID',
|
|
97
|
+
_contactSetupDate: '_Contact_Setup_Date',
|
|
98
|
+
occupationName: 'Occupation_Name',
|
|
99
|
+
emailVerified: 'Email_Verified',
|
|
100
|
+
mobilePhoneVerified: 'Mobile_Phone_Verified',
|
|
101
|
+
maidenName: 'Maiden_Name',
|
|
102
|
+
professionalInformation: 'Professional_Information',
|
|
103
|
+
contactMethods: 'Contact_Methods',
|
|
104
|
+
currentSchool: 'Current_School',
|
|
105
|
+
otherInformation: 'Other_Information',
|
|
106
|
+
communicationPreferences: 'Communication_Preferences',
|
|
107
|
+
};
|
|
108
|
+
let contactRecord = {};
|
|
109
|
+
for (const key in contact) {
|
|
110
|
+
contactRecord[mappings[key]] = contact[key];
|
|
111
|
+
}
|
|
112
|
+
return contactRecord;
|
|
113
|
+
};
|
|
114
|
+
exports.mapContactToContactRecord = mapContactToContactRecord;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface EventParticipantRecord {
|
|
2
|
+
Event_Participant_ID: number;
|
|
3
|
+
Event_ID: number;
|
|
4
|
+
Participant_ID: number;
|
|
5
|
+
Participation_Status_ID: number;
|
|
6
|
+
Time_In: string;
|
|
7
|
+
Time_Confirmed: string | null;
|
|
8
|
+
Time_Out: string | null;
|
|
9
|
+
Notes: string;
|
|
10
|
+
Group_Participant_ID: null | number;
|
|
11
|
+
Check_in_Station: null | string;
|
|
12
|
+
_Setup_Date: string;
|
|
13
|
+
Group_ID: number;
|
|
14
|
+
Room_ID: null | number;
|
|
15
|
+
Call_Parents: null | string;
|
|
16
|
+
Group_Role_ID: number;
|
|
17
|
+
Response_ID: null | number;
|
|
18
|
+
Registrant_Message_Sent: boolean;
|
|
19
|
+
Attendee_Message_Sent: boolean;
|
|
20
|
+
Attending_Online: boolean;
|
|
21
|
+
RSVP_Status_ID: null | number;
|
|
22
|
+
}
|
|
23
|
+
export interface EventParticipant {
|
|
24
|
+
eventParticipantID: number;
|
|
25
|
+
eventID: number;
|
|
26
|
+
participantID: number;
|
|
27
|
+
participationStatusID: number;
|
|
28
|
+
timeIn: string;
|
|
29
|
+
timeConfirmed: string | null;
|
|
30
|
+
timeOut: string | null;
|
|
31
|
+
notes: string;
|
|
32
|
+
groupParticipantID: null | number;
|
|
33
|
+
checkInStation: null | string;
|
|
34
|
+
setupDate: string;
|
|
35
|
+
groupID: number;
|
|
36
|
+
roomID: null | number;
|
|
37
|
+
callParents: null | string;
|
|
38
|
+
groupRoleID: number;
|
|
39
|
+
responseID: null | number;
|
|
40
|
+
registrantMessageSent: boolean;
|
|
41
|
+
attendeeMessageSent: boolean;
|
|
42
|
+
attendingOnline: boolean;
|
|
43
|
+
rsvpStatusID: null | number;
|
|
44
|
+
}
|
|
45
|
+
export declare function mapEventParticipantRecord(originalObject: EventParticipantRecord): EventParticipant;
|
|
46
|
+
export declare function mapEventParticipantToEventParticipantRecord(eventParticipant: EventParticipant): EventParticipantRecord;
|
|
47
|
+
//# sourceMappingURL=event-participants.d.ts.map
|
|
@@ -0,0 +1 @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C9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;CAC/B;AAED,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,sBAAsB,GAAG,gBAAgB,CAuBlG;AAED,wBAAgB,2CAA2C,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,sBAAsB,CAuBtH"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapEventParticipantRecord = mapEventParticipantRecord;
|
|
4
|
+
exports.mapEventParticipantToEventParticipantRecord = mapEventParticipantToEventParticipantRecord;
|
|
5
|
+
function mapEventParticipantRecord(originalObject) {
|
|
6
|
+
return {
|
|
7
|
+
eventParticipantID: originalObject.Event_Participant_ID,
|
|
8
|
+
eventID: originalObject.Event_ID,
|
|
9
|
+
participantID: originalObject.Participant_ID,
|
|
10
|
+
participationStatusID: originalObject.Participation_Status_ID,
|
|
11
|
+
timeIn: originalObject.Time_In,
|
|
12
|
+
timeConfirmed: originalObject.Time_Confirmed,
|
|
13
|
+
timeOut: originalObject.Time_Out,
|
|
14
|
+
notes: originalObject.Notes,
|
|
15
|
+
groupParticipantID: originalObject.Group_Participant_ID,
|
|
16
|
+
checkInStation: originalObject.Check_in_Station,
|
|
17
|
+
setupDate: originalObject._Setup_Date,
|
|
18
|
+
groupID: originalObject.Group_ID,
|
|
19
|
+
roomID: originalObject.Room_ID,
|
|
20
|
+
callParents: originalObject.Call_Parents,
|
|
21
|
+
groupRoleID: originalObject.Group_Role_ID,
|
|
22
|
+
responseID: originalObject.Response_ID,
|
|
23
|
+
registrantMessageSent: originalObject.Registrant_Message_Sent,
|
|
24
|
+
attendeeMessageSent: originalObject.Attendee_Message_Sent,
|
|
25
|
+
attendingOnline: originalObject.Attending_Online,
|
|
26
|
+
rsvpStatusID: originalObject.RSVP_Status_ID,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function mapEventParticipantToEventParticipantRecord(eventParticipant) {
|
|
30
|
+
return {
|
|
31
|
+
Event_Participant_ID: eventParticipant.eventParticipantID,
|
|
32
|
+
Event_ID: eventParticipant.eventID,
|
|
33
|
+
Participant_ID: eventParticipant.participantID,
|
|
34
|
+
Participation_Status_ID: eventParticipant.participationStatusID,
|
|
35
|
+
Time_In: eventParticipant.timeIn,
|
|
36
|
+
Time_Confirmed: eventParticipant.timeConfirmed,
|
|
37
|
+
Time_Out: eventParticipant.timeOut,
|
|
38
|
+
Notes: eventParticipant.notes,
|
|
39
|
+
Group_Participant_ID: eventParticipant.groupParticipantID,
|
|
40
|
+
Check_in_Station: eventParticipant.checkInStation,
|
|
41
|
+
_Setup_Date: eventParticipant.setupDate,
|
|
42
|
+
Group_ID: eventParticipant.groupID,
|
|
43
|
+
Room_ID: eventParticipant.roomID,
|
|
44
|
+
Call_Parents: eventParticipant.callParents,
|
|
45
|
+
Group_Role_ID: eventParticipant.groupRoleID,
|
|
46
|
+
Response_ID: eventParticipant.responseID,
|
|
47
|
+
Registrant_Message_Sent: eventParticipant.registrantMessageSent,
|
|
48
|
+
Attendee_Message_Sent: eventParticipant.attendeeMessageSent,
|
|
49
|
+
Attending_Online: eventParticipant.attendingOnline,
|
|
50
|
+
RSVP_Status_ID: eventParticipant.rsvpStatusID,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export type EventRecord = {
|
|
2
|
+
Event_ID: number;
|
|
3
|
+
Event_Title: string;
|
|
4
|
+
Event_Type_ID: number;
|
|
5
|
+
Congregation_ID: number;
|
|
6
|
+
Location_ID: null | number;
|
|
7
|
+
Meeting_Instructions: null | string;
|
|
8
|
+
Description: null | string;
|
|
9
|
+
Program_ID: number;
|
|
10
|
+
Primary_Contact: number;
|
|
11
|
+
Participants_Expected: null | number;
|
|
12
|
+
Minutes_for_Setup: number;
|
|
13
|
+
Event_Start_Date: string;
|
|
14
|
+
Event_End_Date: string;
|
|
15
|
+
Minutes_for_Cleanup: number;
|
|
16
|
+
Cancelled: boolean;
|
|
17
|
+
_Approved: boolean;
|
|
18
|
+
Public_Website_Settings: null | string;
|
|
19
|
+
Visibility_Level_ID: number;
|
|
20
|
+
Featured_On_Calendar: boolean;
|
|
21
|
+
Online_Registration_Product: null | string;
|
|
22
|
+
Registration_Form: null | string;
|
|
23
|
+
Registration_Start: string;
|
|
24
|
+
Registration_End: string;
|
|
25
|
+
Registration_Active: boolean;
|
|
26
|
+
Register_Into_Series: boolean;
|
|
27
|
+
External_Registration_URL: null | string;
|
|
28
|
+
_Web_Approved: boolean;
|
|
29
|
+
Force_Login: boolean;
|
|
30
|
+
Check_in_Information: null | string;
|
|
31
|
+
Allow_Check_in: boolean;
|
|
32
|
+
Ignore_Program_Groups: boolean;
|
|
33
|
+
Prohibit_Guests: boolean;
|
|
34
|
+
Search_Results: number;
|
|
35
|
+
Early_Check_in_Period: null | string;
|
|
36
|
+
Late_Check_in_Period: null | string;
|
|
37
|
+
Notification_Settings: null | string;
|
|
38
|
+
Registrant_Message: null | string;
|
|
39
|
+
Days_Out_to_Remind: null | number;
|
|
40
|
+
Optional_Reminder_Message: null | string;
|
|
41
|
+
Attendee_Message: null | string;
|
|
42
|
+
Send_To_Heads: boolean;
|
|
43
|
+
Other_Event_Information: null | string;
|
|
44
|
+
Parent_Event_ID: null | number;
|
|
45
|
+
Priority_ID: null | number;
|
|
46
|
+
On_Connection_Card: boolean;
|
|
47
|
+
Accounting_Information: null | string;
|
|
48
|
+
On_Donation_Batch_Tool: boolean;
|
|
49
|
+
Project_Code: null | string;
|
|
50
|
+
Online_Meeting_Link: null | string;
|
|
51
|
+
Read_More_URL: null | string;
|
|
52
|
+
Allow_Self_Checkin: boolean;
|
|
53
|
+
Minor_Registration: boolean;
|
|
54
|
+
Allow_Email: boolean;
|
|
55
|
+
Show_Building_Room_Info: boolean;
|
|
56
|
+
Convert_Default_Contacts: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type Event = {
|
|
59
|
+
eventID: number;
|
|
60
|
+
eventTitle: string;
|
|
61
|
+
eventTypeID: number;
|
|
62
|
+
congregationID: number;
|
|
63
|
+
locationID: null | number;
|
|
64
|
+
meetingInstructions: null | string;
|
|
65
|
+
description: null | string;
|
|
66
|
+
programID: number;
|
|
67
|
+
primaryContact: number;
|
|
68
|
+
participantsExpected: null | number;
|
|
69
|
+
minutesForSetup: number;
|
|
70
|
+
eventStartDate: string;
|
|
71
|
+
eventEndDate: string;
|
|
72
|
+
minutesForCleanup: number;
|
|
73
|
+
cancelled: boolean;
|
|
74
|
+
approved: boolean;
|
|
75
|
+
publicWebsiteSettings: null | string;
|
|
76
|
+
visibilityLevelID: number;
|
|
77
|
+
featuredOnCalendar: boolean;
|
|
78
|
+
onlineRegistrationProduct: null | string;
|
|
79
|
+
registrationForm: null | string;
|
|
80
|
+
registrationStart: string;
|
|
81
|
+
registrationEnd: string;
|
|
82
|
+
registrationActive: boolean;
|
|
83
|
+
registerIntoSeries: boolean;
|
|
84
|
+
externalRegistrationURL: null | string;
|
|
85
|
+
webApproved: boolean;
|
|
86
|
+
forceLogin: boolean;
|
|
87
|
+
checkInInformation: null | string;
|
|
88
|
+
allowCheckin: boolean;
|
|
89
|
+
ignoreProgramGroups: boolean;
|
|
90
|
+
prohibitGuests: boolean;
|
|
91
|
+
searchResults: number;
|
|
92
|
+
earlyCheckinPeriod: null | string;
|
|
93
|
+
lateCheckinPeriod: null | string;
|
|
94
|
+
notificationSettings: null | string;
|
|
95
|
+
registrantMessage: null | string;
|
|
96
|
+
daysOutToRemind: null | number;
|
|
97
|
+
optionalReminderMessage: null | string;
|
|
98
|
+
attendeeMessage: null | string;
|
|
99
|
+
sendToHeads: boolean;
|
|
100
|
+
otherEventInformation: null | string;
|
|
101
|
+
parentEventID: null | number;
|
|
102
|
+
priorityID: null | number;
|
|
103
|
+
onConnectionCard: boolean;
|
|
104
|
+
accountingInformation: null | string;
|
|
105
|
+
onDonationBatchTool: boolean;
|
|
106
|
+
projectCode: null | string;
|
|
107
|
+
onlineMeetingLink: null | string;
|
|
108
|
+
readMoreURL: null | string;
|
|
109
|
+
allowSelfCheckin: boolean;
|
|
110
|
+
minorRegistration: boolean;
|
|
111
|
+
allowEmail: boolean;
|
|
112
|
+
showBuildingRoomInfo: boolean;
|
|
113
|
+
convertDefaultContacts: boolean;
|
|
114
|
+
};
|
|
115
|
+
export declare function mapEventRecord(originalObject: EventRecord): Event;
|
|
116
|
+
export declare function mapEventToEventRecord(event: Event): EventRecord;
|
|
117
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/tables/events.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,oBAAoB,EAAE,IAAI,GAAG,MAAM,CAAC;IACpC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,IAAI,GAAG,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,C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E,WAAW,GAAG,KAAK,CA0DjE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,CA0D/D"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapEventRecord = mapEventRecord;
|
|
4
|
+
exports.mapEventToEventRecord = mapEventToEventRecord;
|
|
5
|
+
function mapEventRecord(originalObject) {
|
|
6
|
+
return {
|
|
7
|
+
eventID: originalObject.Event_ID,
|
|
8
|
+
eventTitle: originalObject.Event_Title,
|
|
9
|
+
eventTypeID: originalObject.Event_Type_ID,
|
|
10
|
+
congregationID: originalObject.Congregation_ID,
|
|
11
|
+
locationID: originalObject.Location_ID,
|
|
12
|
+
meetingInstructions: originalObject.Meeting_Instructions,
|
|
13
|
+
description: originalObject.Description,
|
|
14
|
+
programID: originalObject.Program_ID,
|
|
15
|
+
primaryContact: originalObject.Primary_Contact,
|
|
16
|
+
participantsExpected: originalObject.Participants_Expected,
|
|
17
|
+
minutesForSetup: originalObject.Minutes_for_Setup,
|
|
18
|
+
eventStartDate: originalObject.Event_Start_Date,
|
|
19
|
+
eventEndDate: originalObject.Event_End_Date,
|
|
20
|
+
minutesForCleanup: originalObject.Minutes_for_Cleanup,
|
|
21
|
+
cancelled: originalObject.Cancelled,
|
|
22
|
+
approved: originalObject._Approved,
|
|
23
|
+
publicWebsiteSettings: originalObject.Public_Website_Settings,
|
|
24
|
+
visibilityLevelID: originalObject.Visibility_Level_ID,
|
|
25
|
+
featuredOnCalendar: originalObject.Featured_On_Calendar,
|
|
26
|
+
onlineRegistrationProduct: originalObject.Online_Registration_Product,
|
|
27
|
+
registrationForm: originalObject.Registration_Form,
|
|
28
|
+
registrationStart: originalObject.Registration_Start,
|
|
29
|
+
registrationEnd: originalObject.Registration_End,
|
|
30
|
+
registrationActive: originalObject.Registration_Active,
|
|
31
|
+
registerIntoSeries: originalObject.Register_Into_Series,
|
|
32
|
+
externalRegistrationURL: originalObject.External_Registration_URL,
|
|
33
|
+
webApproved: originalObject._Web_Approved,
|
|
34
|
+
forceLogin: originalObject.Force_Login,
|
|
35
|
+
checkInInformation: originalObject.Check_in_Information,
|
|
36
|
+
allowCheckin: originalObject.Allow_Check_in,
|
|
37
|
+
ignoreProgramGroups: originalObject.Ignore_Program_Groups,
|
|
38
|
+
prohibitGuests: originalObject.Prohibit_Guests,
|
|
39
|
+
searchResults: originalObject.Search_Results,
|
|
40
|
+
earlyCheckinPeriod: originalObject.Early_Check_in_Period,
|
|
41
|
+
lateCheckinPeriod: originalObject.Late_Check_in_Period,
|
|
42
|
+
notificationSettings: originalObject.Notification_Settings,
|
|
43
|
+
registrantMessage: originalObject.Registrant_Message,
|
|
44
|
+
daysOutToRemind: originalObject.Days_Out_to_Remind,
|
|
45
|
+
optionalReminderMessage: originalObject.Optional_Reminder_Message,
|
|
46
|
+
attendeeMessage: originalObject.Attendee_Message,
|
|
47
|
+
sendToHeads: originalObject.Send_To_Heads,
|
|
48
|
+
otherEventInformation: originalObject.Other_Event_Information,
|
|
49
|
+
parentEventID: originalObject.Parent_Event_ID,
|
|
50
|
+
priorityID: originalObject.Priority_ID,
|
|
51
|
+
onConnectionCard: originalObject.On_Connection_Card,
|
|
52
|
+
accountingInformation: originalObject.Accounting_Information,
|
|
53
|
+
onDonationBatchTool: originalObject.On_Donation_Batch_Tool,
|
|
54
|
+
projectCode: originalObject.Project_Code,
|
|
55
|
+
onlineMeetingLink: originalObject.Online_Meeting_Link,
|
|
56
|
+
readMoreURL: originalObject.Read_More_URL,
|
|
57
|
+
allowSelfCheckin: originalObject.Allow_Self_Checkin,
|
|
58
|
+
minorRegistration: originalObject.Minor_Registration,
|
|
59
|
+
allowEmail: originalObject.Allow_Email,
|
|
60
|
+
showBuildingRoomInfo: originalObject.Show_Building_Room_Info,
|
|
61
|
+
convertDefaultContacts: originalObject.Convert_Default_Contacts,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function mapEventToEventRecord(event) {
|
|
65
|
+
return {
|
|
66
|
+
Event_ID: event.eventID,
|
|
67
|
+
Event_Title: event.eventTitle,
|
|
68
|
+
Event_Type_ID: event.eventTypeID,
|
|
69
|
+
Congregation_ID: event.congregationID,
|
|
70
|
+
Location_ID: event.locationID,
|
|
71
|
+
Meeting_Instructions: event.meetingInstructions,
|
|
72
|
+
Description: event.description,
|
|
73
|
+
Program_ID: event.programID,
|
|
74
|
+
Primary_Contact: event.primaryContact,
|
|
75
|
+
Participants_Expected: event.participantsExpected,
|
|
76
|
+
Minutes_for_Setup: event.minutesForSetup,
|
|
77
|
+
Event_Start_Date: event.eventStartDate,
|
|
78
|
+
Event_End_Date: event.eventEndDate,
|
|
79
|
+
Minutes_for_Cleanup: event.minutesForCleanup,
|
|
80
|
+
Cancelled: event.cancelled,
|
|
81
|
+
_Approved: event.approved,
|
|
82
|
+
Public_Website_Settings: event.publicWebsiteSettings,
|
|
83
|
+
Visibility_Level_ID: event.visibilityLevelID,
|
|
84
|
+
Featured_On_Calendar: event.featuredOnCalendar,
|
|
85
|
+
Online_Registration_Product: event.onlineRegistrationProduct,
|
|
86
|
+
Registration_Form: event.registrationForm,
|
|
87
|
+
Registration_Start: event.registrationStart,
|
|
88
|
+
Registration_End: event.registrationEnd,
|
|
89
|
+
Registration_Active: event.registrationActive,
|
|
90
|
+
Register_Into_Series: event.registerIntoSeries,
|
|
91
|
+
External_Registration_URL: event.externalRegistrationURL,
|
|
92
|
+
_Web_Approved: event.webApproved,
|
|
93
|
+
Force_Login: event.forceLogin,
|
|
94
|
+
Check_in_Information: event.checkInInformation,
|
|
95
|
+
Allow_Check_in: event.allowCheckin,
|
|
96
|
+
Ignore_Program_Groups: event.ignoreProgramGroups,
|
|
97
|
+
Prohibit_Guests: event.prohibitGuests,
|
|
98
|
+
Search_Results: event.searchResults,
|
|
99
|
+
Early_Check_in_Period: event.earlyCheckinPeriod,
|
|
100
|
+
Late_Check_in_Period: event.lateCheckinPeriod,
|
|
101
|
+
Notification_Settings: event.notificationSettings,
|
|
102
|
+
Registrant_Message: event.registrantMessage,
|
|
103
|
+
Days_Out_to_Remind: event.daysOutToRemind,
|
|
104
|
+
Optional_Reminder_Message: event.optionalReminderMessage,
|
|
105
|
+
Attendee_Message: event.attendeeMessage,
|
|
106
|
+
Send_To_Heads: event.sendToHeads,
|
|
107
|
+
Other_Event_Information: event.otherEventInformation,
|
|
108
|
+
Parent_Event_ID: event.parentEventID,
|
|
109
|
+
Priority_ID: event.priorityID,
|
|
110
|
+
On_Connection_Card: event.onConnectionCard,
|
|
111
|
+
Accounting_Information: event.accountingInformation,
|
|
112
|
+
On_Donation_Batch_Tool: event.onDonationBatchTool,
|
|
113
|
+
Project_Code: event.projectCode,
|
|
114
|
+
Online_Meeting_Link: event.onlineMeetingLink,
|
|
115
|
+
Read_More_URL: event.readMoreURL,
|
|
116
|
+
Allow_Self_Checkin: event.allowSelfCheckin,
|
|
117
|
+
Minor_Registration: event.minorRegistration,
|
|
118
|
+
Allow_Email: event.allowEmail,
|
|
119
|
+
Show_Building_Room_Info: event.showBuildingRoomInfo,
|
|
120
|
+
Convert_Default_Contacts: event.convertDefaultContacts,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface GroupParticipantRecord {
|
|
2
|
+
Group_Participant_ID: number;
|
|
3
|
+
Group_ID: number;
|
|
4
|
+
Participant_ID: number;
|
|
5
|
+
Group_Role_ID: number;
|
|
6
|
+
Start_Date: string;
|
|
7
|
+
End_Date: string | null;
|
|
8
|
+
Employee_Role: boolean;
|
|
9
|
+
Hours_Per_Week: null | number;
|
|
10
|
+
Notes: null | string;
|
|
11
|
+
Need_Book: boolean;
|
|
12
|
+
Email_Opt_Out: boolean;
|
|
13
|
+
Share_With_Group: boolean;
|
|
14
|
+
Auto_Promote: boolean;
|
|
15
|
+
_First_Attendance: null | string;
|
|
16
|
+
_Second_Attendance: null | string;
|
|
17
|
+
_Third_Attendance: null | string;
|
|
18
|
+
_Last_Attendance: null | string;
|
|
19
|
+
Show_Email: boolean;
|
|
20
|
+
Show_Phone: boolean;
|
|
21
|
+
Show_Last_Name: boolean;
|
|
22
|
+
Show_Photo: boolean;
|
|
23
|
+
_Show_Birthday: boolean;
|
|
24
|
+
_Show_Email: boolean;
|
|
25
|
+
_Show_Home_Phone: boolean;
|
|
26
|
+
_Show_Mobile_Phone: boolean;
|
|
27
|
+
_Show_Address: boolean;
|
|
28
|
+
_Show_Photo: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface GroupParticipant {
|
|
31
|
+
groupParticipantID: number;
|
|
32
|
+
groupID: number;
|
|
33
|
+
participantID: number;
|
|
34
|
+
groupRoleID: number;
|
|
35
|
+
startDate: string;
|
|
36
|
+
endDate: string | null;
|
|
37
|
+
employeeRole: boolean;
|
|
38
|
+
hoursPerWeek: null | number;
|
|
39
|
+
notes: null | string;
|
|
40
|
+
needBook: boolean;
|
|
41
|
+
emailOptOut: boolean;
|
|
42
|
+
shareWithGroup: boolean;
|
|
43
|
+
autoPromote: boolean;
|
|
44
|
+
firstAttendance: null | string;
|
|
45
|
+
secondAttendance: null | string;
|
|
46
|
+
thirdAttendance: null | string;
|
|
47
|
+
lastAttendance: null | string;
|
|
48
|
+
showEmail: boolean;
|
|
49
|
+
showPhone: boolean;
|
|
50
|
+
showLastName: boolean;
|
|
51
|
+
showPhoto: boolean;
|
|
52
|
+
_showBirthday: boolean;
|
|
53
|
+
_showEmail: boolean;
|
|
54
|
+
_showHomePhone: boolean;
|
|
55
|
+
_showMobilePhone: boolean;
|
|
56
|
+
_showAddress: boolean;
|
|
57
|
+
_showPhoto: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare function mapGroupParticipantRecord(originalObject: GroupParticipantRecord): GroupParticipant;
|
|
60
|
+
export declare function mapGroupParticipantToGroupParticipantRecord(groupParticipant: GroupParticipant): GroupParticipantRecord;
|
|
61
|
+
//# sourceMappingURL=group-participants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-participants.d.ts","sourceRoot":"","sources":["../../src/tables/group-participants.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACnC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,IAAI,GAAG,MAAM,CAAC;IAC9B,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,IAAI,GAAG,MAAM,CAAC;IACjC,kBAAkB,EAAE,IAAI,GAAG,MAAM,CAAC;IAClC,iBAAiB,EAAE,IAAI,GAAG,MAAM,CAAC;IACjC,gBAAgB,EAAE,IAAI,GAAG,MAAM,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAA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