@equisoft/equisoft-connect-sdk-typescript 10.8.2 → 10.8.3-snapshot.20211021175812
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/models/ContactContactAdditionalInformation.d.ts +34 -3
- package/dist/models/ContactContactAdditionalInformation.js +17 -6
- package/dist/models/ContactContactAddress.d.ts +7 -1
- package/dist/models/ContactContactAddress.js +4 -2
- package/dist/models/ContactContactEmail.d.ts +6 -0
- package/dist/models/ContactContactEmail.js +2 -0
- package/dist/models/ContactContactMaritalStatus.d.ts +8 -2
- package/dist/models/ContactContactMaritalStatus.js +6 -4
- package/dist/models/ContactContactOccupation.d.ts +8 -2
- package/dist/models/ContactContactOccupation.js +6 -4
- package/dist/models/ContactContactPhone.d.ts +6 -0
- package/dist/models/ContactContactPhone.js +2 -0
- package/dist/models/ContactContactWebsite.d.ts +6 -0
- package/dist/models/ContactContactWebsite.js +2 -0
- package/package.json +1 -1
- package/src/models/ContactContactAdditionalInformation.ts +56 -9
- package/src/models/ContactContactAddress.ts +11 -3
- package/src/models/ContactContactEmail.ts +8 -0
- package/src/models/ContactContactMaritalStatus.ts +14 -6
- package/src/models/ContactContactOccupation.ts +14 -6
- package/src/models/ContactContactPhone.ts +8 -0
- package/src/models/ContactContactWebsite.ts +8 -0
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FieldValue } from './';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -26,7 +27,7 @@ export interface ContactContactAdditionalInformation {
|
|
|
26
27
|
* @type {Date}
|
|
27
28
|
* @memberof ContactContactAdditionalInformation
|
|
28
29
|
*/
|
|
29
|
-
deceasedDate?: Date;
|
|
30
|
+
deceasedDate?: Date | null;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
* @type {boolean}
|
|
@@ -38,13 +39,43 @@ export interface ContactContactAdditionalInformation {
|
|
|
38
39
|
* @type {Date}
|
|
39
40
|
* @memberof ContactContactAdditionalInformation
|
|
40
41
|
*/
|
|
41
|
-
smokerEndDate?: Date;
|
|
42
|
+
smokerEndDate?: Date | null;
|
|
42
43
|
/**
|
|
43
44
|
*
|
|
44
45
|
* @type {Date}
|
|
45
46
|
* @memberof ContactContactAdditionalInformation
|
|
46
47
|
*/
|
|
47
|
-
birthDate?: Date;
|
|
48
|
+
birthDate?: Date | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ContactContactAdditionalInformation
|
|
53
|
+
*/
|
|
54
|
+
facebookLink?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ContactContactAdditionalInformation
|
|
59
|
+
*/
|
|
60
|
+
twitterLink?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ContactContactAdditionalInformation
|
|
65
|
+
*/
|
|
66
|
+
linkedInLink?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {FieldValue}
|
|
70
|
+
* @memberof ContactContactAdditionalInformation
|
|
71
|
+
*/
|
|
72
|
+
language?: FieldValue | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ContactContactAdditionalInformation
|
|
77
|
+
*/
|
|
78
|
+
pictureId?: number | null;
|
|
48
79
|
}
|
|
49
80
|
export declare function ContactContactAdditionalInformationFromJSON(json: any): ContactContactAdditionalInformation;
|
|
50
81
|
export declare function ContactContactAdditionalInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactAdditionalInformation;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ContactContactAdditionalInformationToJSON = exports.ContactContactAdditionalInformationFromJSONTyped = exports.ContactContactAdditionalInformationFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const _1 = require("./");
|
|
18
19
|
function ContactContactAdditionalInformationFromJSON(json) {
|
|
19
20
|
return ContactContactAdditionalInformationFromJSONTyped(json, false);
|
|
20
21
|
}
|
|
@@ -25,10 +26,15 @@ function ContactContactAdditionalInformationFromJSONTyped(json, ignoreDiscrimina
|
|
|
25
26
|
}
|
|
26
27
|
return {
|
|
27
28
|
'isDeceased': !runtime_1.exists(json, 'isDeceased') ? undefined : json['isDeceased'],
|
|
28
|
-
'deceasedDate': !runtime_1.exists(json, 'deceasedDate') ? undefined : (new Date(json['deceasedDate'])),
|
|
29
|
+
'deceasedDate': !runtime_1.exists(json, 'deceasedDate') ? undefined : (json['deceasedDate'] === null ? null : new Date(json['deceasedDate'])),
|
|
29
30
|
'isSmoker': !runtime_1.exists(json, 'isSmoker') ? undefined : json['isSmoker'],
|
|
30
|
-
'smokerEndDate': !runtime_1.exists(json, 'smokerEndDate') ? undefined : (new Date(json['smokerEndDate'])),
|
|
31
|
-
'birthDate': !runtime_1.exists(json, 'birthDate') ? undefined : (new Date(json['birthDate'])),
|
|
31
|
+
'smokerEndDate': !runtime_1.exists(json, 'smokerEndDate') ? undefined : (json['smokerEndDate'] === null ? null : new Date(json['smokerEndDate'])),
|
|
32
|
+
'birthDate': !runtime_1.exists(json, 'birthDate') ? undefined : (json['birthDate'] === null ? null : new Date(json['birthDate'])),
|
|
33
|
+
'facebookLink': !runtime_1.exists(json, 'facebookLink') ? undefined : json['facebookLink'],
|
|
34
|
+
'twitterLink': !runtime_1.exists(json, 'twitterLink') ? undefined : json['twitterLink'],
|
|
35
|
+
'linkedInLink': !runtime_1.exists(json, 'linkedInLink') ? undefined : json['linkedInLink'],
|
|
36
|
+
'language': !runtime_1.exists(json, 'language') ? undefined : _1.FieldValueFromJSON(json['language']),
|
|
37
|
+
'pictureId': !runtime_1.exists(json, 'pictureId') ? undefined : json['pictureId'],
|
|
32
38
|
};
|
|
33
39
|
}
|
|
34
40
|
exports.ContactContactAdditionalInformationFromJSONTyped = ContactContactAdditionalInformationFromJSONTyped;
|
|
@@ -41,10 +47,15 @@ function ContactContactAdditionalInformationToJSON(value) {
|
|
|
41
47
|
}
|
|
42
48
|
return {
|
|
43
49
|
'isDeceased': value.isDeceased,
|
|
44
|
-
'deceasedDate': value.deceasedDate === undefined ? undefined : (value.deceasedDate.toISOString().substr(0, 10)),
|
|
50
|
+
'deceasedDate': value.deceasedDate === undefined ? undefined : (value.deceasedDate === null ? null : value.deceasedDate.toISOString().substr(0, 10)),
|
|
45
51
|
'isSmoker': value.isSmoker,
|
|
46
|
-
'smokerEndDate': value.smokerEndDate === undefined ? undefined : (value.smokerEndDate.toISOString().substr(0, 10)),
|
|
47
|
-
'birthDate': value.birthDate === undefined ? undefined : (value.birthDate.toISOString().substr(0, 10)),
|
|
52
|
+
'smokerEndDate': value.smokerEndDate === undefined ? undefined : (value.smokerEndDate === null ? null : value.smokerEndDate.toISOString().substr(0, 10)),
|
|
53
|
+
'birthDate': value.birthDate === undefined ? undefined : (value.birthDate === null ? null : value.birthDate.toISOString().substr(0, 10)),
|
|
54
|
+
'facebookLink': value.facebookLink,
|
|
55
|
+
'twitterLink': value.twitterLink,
|
|
56
|
+
'linkedInLink': value.linkedInLink,
|
|
57
|
+
'language': _1.FieldValueToJSON(value.language),
|
|
58
|
+
'pictureId': value.pictureId,
|
|
48
59
|
};
|
|
49
60
|
}
|
|
50
61
|
exports.ContactContactAdditionalInformationToJSON = ContactContactAdditionalInformationToJSON;
|
|
@@ -75,13 +75,19 @@ export interface ContactContactAddress {
|
|
|
75
75
|
* @type {Date}
|
|
76
76
|
* @memberof ContactContactAddress
|
|
77
77
|
*/
|
|
78
|
-
dateSince?: Date;
|
|
78
|
+
dateSince?: Date | null;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof ContactContactAddress
|
|
83
83
|
*/
|
|
84
84
|
city?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof ContactContactAddress
|
|
89
|
+
*/
|
|
90
|
+
locked?: boolean;
|
|
85
91
|
}
|
|
86
92
|
export declare function ContactContactAddressFromJSON(json: any): ContactContactAddress;
|
|
87
93
|
export declare function ContactContactAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactAddress;
|
|
@@ -34,8 +34,9 @@ function ContactContactAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'stateProvince': !runtime_1.exists(json, 'stateProvince') ? undefined : json['stateProvince'],
|
|
35
35
|
'country': !runtime_1.exists(json, 'country') ? undefined : json['country'],
|
|
36
36
|
'postalCode': !runtime_1.exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
37
|
-
'dateSince': !runtime_1.exists(json, 'dateSince') ? undefined : (new Date(json['dateSince'])),
|
|
37
|
+
'dateSince': !runtime_1.exists(json, 'dateSince') ? undefined : (json['dateSince'] === null ? null : new Date(json['dateSince'])),
|
|
38
38
|
'city': !runtime_1.exists(json, 'city') ? undefined : json['city'],
|
|
39
|
+
'locked': !runtime_1.exists(json, 'locked') ? undefined : json['locked'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
exports.ContactContactAddressFromJSONTyped = ContactContactAddressFromJSONTyped;
|
|
@@ -56,8 +57,9 @@ function ContactContactAddressToJSON(value) {
|
|
|
56
57
|
'stateProvince': value.stateProvince,
|
|
57
58
|
'country': value.country,
|
|
58
59
|
'postalCode': value.postalCode,
|
|
59
|
-
'dateSince': value.dateSince === undefined ? undefined : (value.dateSince.toISOString().substr(0, 10)),
|
|
60
|
+
'dateSince': value.dateSince === undefined ? undefined : (value.dateSince === null ? null : value.dateSince.toISOString().substr(0, 10)),
|
|
60
61
|
'city': value.city,
|
|
62
|
+
'locked': value.locked,
|
|
61
63
|
};
|
|
62
64
|
}
|
|
63
65
|
exports.ContactContactAddressToJSON = ContactContactAddressToJSON;
|
|
@@ -46,6 +46,12 @@ export interface ContactContactEmail {
|
|
|
46
46
|
* @memberof ContactContactEmail
|
|
47
47
|
*/
|
|
48
48
|
notes?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof ContactContactEmail
|
|
53
|
+
*/
|
|
54
|
+
locked?: boolean;
|
|
49
55
|
}
|
|
50
56
|
export declare function ContactContactEmailFromJSON(json: any): ContactContactEmail;
|
|
51
57
|
export declare function ContactContactEmailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactEmail;
|
|
@@ -30,6 +30,7 @@ function ContactContactEmailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'type': !runtime_1.exists(json, 'type') ? undefined : _1.FieldValueFromJSON(json['type']),
|
|
31
31
|
'email': !runtime_1.exists(json, 'email') ? undefined : json['email'],
|
|
32
32
|
'notes': !runtime_1.exists(json, 'notes') ? undefined : json['notes'],
|
|
33
|
+
'locked': !runtime_1.exists(json, 'locked') ? undefined : json['locked'],
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
exports.ContactContactEmailFromJSONTyped = ContactContactEmailFromJSONTyped;
|
|
@@ -46,6 +47,7 @@ function ContactContactEmailToJSON(value) {
|
|
|
46
47
|
'type': _1.FieldValueToJSON(value.type),
|
|
47
48
|
'email': value.email,
|
|
48
49
|
'notes': value.notes,
|
|
50
|
+
'locked': value.locked,
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
exports.ContactContactEmailToJSON = ContactContactEmailToJSON;
|
|
@@ -27,19 +27,25 @@ export interface ContactContactMaritalStatus {
|
|
|
27
27
|
* @type {Date}
|
|
28
28
|
* @memberof ContactContactMaritalStatus
|
|
29
29
|
*/
|
|
30
|
-
startDate?: Date;
|
|
30
|
+
startDate?: Date | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Date}
|
|
34
34
|
* @memberof ContactContactMaritalStatus
|
|
35
35
|
*/
|
|
36
|
-
endDate?: Date;
|
|
36
|
+
endDate?: Date | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {FieldValue}
|
|
40
40
|
* @memberof ContactContactMaritalStatus
|
|
41
41
|
*/
|
|
42
42
|
status?: FieldValue;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {FieldValue}
|
|
46
|
+
* @memberof ContactContactMaritalStatus
|
|
47
|
+
*/
|
|
48
|
+
marriageContract?: FieldValue | null;
|
|
43
49
|
}
|
|
44
50
|
export declare function ContactContactMaritalStatusFromJSON(json: any): ContactContactMaritalStatus;
|
|
45
51
|
export declare function ContactContactMaritalStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactMaritalStatus;
|
|
@@ -26,9 +26,10 @@ function ContactContactMaritalStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'id': !runtime_1.exists(json, 'id') ? undefined : json['id'],
|
|
29
|
-
'startDate': !runtime_1.exists(json, 'startDate') ? undefined : (new Date(json['startDate'])),
|
|
30
|
-
'endDate': !runtime_1.exists(json, 'endDate') ? undefined : (new Date(json['endDate'])),
|
|
29
|
+
'startDate': !runtime_1.exists(json, 'startDate') ? undefined : (json['startDate'] === null ? null : new Date(json['startDate'])),
|
|
30
|
+
'endDate': !runtime_1.exists(json, 'endDate') ? undefined : (json['endDate'] === null ? null : new Date(json['endDate'])),
|
|
31
31
|
'status': !runtime_1.exists(json, 'status') ? undefined : _1.FieldValueFromJSON(json['status']),
|
|
32
|
+
'marriageContract': !runtime_1.exists(json, 'marriageContract') ? undefined : _1.FieldValueFromJSON(json['marriageContract']),
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
exports.ContactContactMaritalStatusFromJSONTyped = ContactContactMaritalStatusFromJSONTyped;
|
|
@@ -41,9 +42,10 @@ function ContactContactMaritalStatusToJSON(value) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'id': value.id,
|
|
44
|
-
'startDate': value.startDate === undefined ? undefined : (value.startDate.toISOString().substr(0, 10)),
|
|
45
|
-
'endDate': value.endDate === undefined ? undefined : (value.endDate.toISOString().substr(0, 10)),
|
|
45
|
+
'startDate': value.startDate === undefined ? undefined : (value.startDate === null ? null : value.startDate.toISOString().substr(0, 10)),
|
|
46
|
+
'endDate': value.endDate === undefined ? undefined : (value.endDate === null ? null : value.endDate.toISOString().substr(0, 10)),
|
|
46
47
|
'status': _1.FieldValueToJSON(value.status),
|
|
48
|
+
'marriageContract': _1.FieldValueToJSON(value.marriageContract),
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
exports.ContactContactMaritalStatusToJSON = ContactContactMaritalStatusToJSON;
|
|
@@ -38,13 +38,19 @@ export interface ContactContactOccupation {
|
|
|
38
38
|
* @type {Date}
|
|
39
39
|
* @memberof ContactContactOccupation
|
|
40
40
|
*/
|
|
41
|
-
startDate?: Date;
|
|
41
|
+
startDate?: Date | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof ContactContactOccupation
|
|
46
46
|
*/
|
|
47
|
-
endDate?: Date;
|
|
47
|
+
endDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ContactContactOccupation
|
|
52
|
+
*/
|
|
53
|
+
annualIncome?: number | null;
|
|
48
54
|
}
|
|
49
55
|
export declare function ContactContactOccupationFromJSON(json: any): ContactContactOccupation;
|
|
50
56
|
export declare function ContactContactOccupationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactOccupation;
|
|
@@ -27,8 +27,9 @@ function ContactContactOccupationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'id': !runtime_1.exists(json, 'id') ? undefined : json['id'],
|
|
28
28
|
'occupation': !runtime_1.exists(json, 'occupation') ? undefined : json['occupation'],
|
|
29
29
|
'employer': !runtime_1.exists(json, 'employer') ? undefined : json['employer'],
|
|
30
|
-
'startDate': !runtime_1.exists(json, 'startDate') ? undefined : (new Date(json['startDate'])),
|
|
31
|
-
'endDate': !runtime_1.exists(json, 'endDate') ? undefined : (new Date(json['endDate'])),
|
|
30
|
+
'startDate': !runtime_1.exists(json, 'startDate') ? undefined : (json['startDate'] === null ? null : new Date(json['startDate'])),
|
|
31
|
+
'endDate': !runtime_1.exists(json, 'endDate') ? undefined : (json['endDate'] === null ? null : new Date(json['endDate'])),
|
|
32
|
+
'annualIncome': !runtime_1.exists(json, 'annualIncome') ? undefined : json['annualIncome'],
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
exports.ContactContactOccupationFromJSONTyped = ContactContactOccupationFromJSONTyped;
|
|
@@ -43,8 +44,9 @@ function ContactContactOccupationToJSON(value) {
|
|
|
43
44
|
'id': value.id,
|
|
44
45
|
'occupation': value.occupation,
|
|
45
46
|
'employer': value.employer,
|
|
46
|
-
'startDate': value.startDate === undefined ? undefined : (value.startDate.toISOString().substr(0, 10)),
|
|
47
|
-
'endDate': value.endDate === undefined ? undefined : (value.endDate.toISOString().substr(0, 10)),
|
|
47
|
+
'startDate': value.startDate === undefined ? undefined : (value.startDate === null ? null : value.startDate.toISOString().substr(0, 10)),
|
|
48
|
+
'endDate': value.endDate === undefined ? undefined : (value.endDate === null ? null : value.endDate.toISOString().substr(0, 10)),
|
|
49
|
+
'annualIncome': value.annualIncome,
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
exports.ContactContactOccupationToJSON = ContactContactOccupationToJSON;
|
|
@@ -58,6 +58,12 @@ export interface ContactContactPhone {
|
|
|
58
58
|
* @memberof ContactContactPhone
|
|
59
59
|
*/
|
|
60
60
|
notes?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof ContactContactPhone
|
|
65
|
+
*/
|
|
66
|
+
locked?: boolean;
|
|
61
67
|
}
|
|
62
68
|
export declare function ContactContactPhoneFromJSON(json: any): ContactContactPhone;
|
|
63
69
|
export declare function ContactContactPhoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactPhone;
|
|
@@ -32,6 +32,7 @@ function ContactContactPhoneFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'extension': !runtime_1.exists(json, 'extension') ? undefined : json['extension'],
|
|
33
33
|
'longDistance': !runtime_1.exists(json, 'longDistance') ? undefined : json['longDistance'],
|
|
34
34
|
'notes': !runtime_1.exists(json, 'notes') ? undefined : json['notes'],
|
|
35
|
+
'locked': !runtime_1.exists(json, 'locked') ? undefined : json['locked'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.ContactContactPhoneFromJSONTyped = ContactContactPhoneFromJSONTyped;
|
|
@@ -50,6 +51,7 @@ function ContactContactPhoneToJSON(value) {
|
|
|
50
51
|
'extension': value.extension,
|
|
51
52
|
'longDistance': value.longDistance,
|
|
52
53
|
'notes': value.notes,
|
|
54
|
+
'locked': value.locked,
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
exports.ContactContactPhoneToJSON = ContactContactPhoneToJSON;
|
|
@@ -33,6 +33,12 @@ export interface ContactContactWebsite {
|
|
|
33
33
|
* @memberof ContactContactWebsite
|
|
34
34
|
*/
|
|
35
35
|
isMain?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ContactContactWebsite
|
|
40
|
+
*/
|
|
41
|
+
locked?: boolean;
|
|
36
42
|
}
|
|
37
43
|
export declare function ContactContactWebsiteFromJSON(json: any): ContactContactWebsite;
|
|
38
44
|
export declare function ContactContactWebsiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactWebsite;
|
|
@@ -27,6 +27,7 @@ function ContactContactWebsiteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'id': !runtime_1.exists(json, 'id') ? undefined : json['id'],
|
|
28
28
|
'url': !runtime_1.exists(json, 'url') ? undefined : json['url'],
|
|
29
29
|
'isMain': !runtime_1.exists(json, 'isMain') ? undefined : json['isMain'],
|
|
30
|
+
'locked': !runtime_1.exists(json, 'locked') ? undefined : json['locked'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
exports.ContactContactWebsiteFromJSONTyped = ContactContactWebsiteFromJSONTyped;
|
|
@@ -41,6 +42,7 @@ function ContactContactWebsiteToJSON(value) {
|
|
|
41
42
|
'id': value.id,
|
|
42
43
|
'url': value.url,
|
|
43
44
|
'isMain': value.isMain,
|
|
45
|
+
'locked': value.locked,
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.ContactContactWebsiteToJSON = ContactContactWebsiteToJSON;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/equisoft-connect-sdk-typescript",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.3-snapshot.20211021175812",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
FieldValue,
|
|
18
|
+
FieldValueFromJSON,
|
|
19
|
+
FieldValueFromJSONTyped,
|
|
20
|
+
FieldValueToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -30,7 +37,7 @@ export interface ContactContactAdditionalInformation {
|
|
|
30
37
|
* @type {Date}
|
|
31
38
|
* @memberof ContactContactAdditionalInformation
|
|
32
39
|
*/
|
|
33
|
-
deceasedDate?: Date;
|
|
40
|
+
deceasedDate?: Date | null;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
43
|
* @type {boolean}
|
|
@@ -42,13 +49,43 @@ export interface ContactContactAdditionalInformation {
|
|
|
42
49
|
* @type {Date}
|
|
43
50
|
* @memberof ContactContactAdditionalInformation
|
|
44
51
|
*/
|
|
45
|
-
smokerEndDate?: Date;
|
|
52
|
+
smokerEndDate?: Date | null;
|
|
46
53
|
/**
|
|
47
54
|
*
|
|
48
55
|
* @type {Date}
|
|
49
56
|
* @memberof ContactContactAdditionalInformation
|
|
50
57
|
*/
|
|
51
|
-
birthDate?: Date;
|
|
58
|
+
birthDate?: Date | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ContactContactAdditionalInformation
|
|
63
|
+
*/
|
|
64
|
+
facebookLink?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ContactContactAdditionalInformation
|
|
69
|
+
*/
|
|
70
|
+
twitterLink?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ContactContactAdditionalInformation
|
|
75
|
+
*/
|
|
76
|
+
linkedInLink?: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {FieldValue}
|
|
80
|
+
* @memberof ContactContactAdditionalInformation
|
|
81
|
+
*/
|
|
82
|
+
language?: FieldValue | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ContactContactAdditionalInformation
|
|
87
|
+
*/
|
|
88
|
+
pictureId?: number | null;
|
|
52
89
|
}
|
|
53
90
|
|
|
54
91
|
export function ContactContactAdditionalInformationFromJSON(json: any): ContactContactAdditionalInformation {
|
|
@@ -62,10 +99,15 @@ export function ContactContactAdditionalInformationFromJSONTyped(json: any, igno
|
|
|
62
99
|
return {
|
|
63
100
|
|
|
64
101
|
'isDeceased': !exists(json, 'isDeceased') ? undefined : json['isDeceased'],
|
|
65
|
-
'deceasedDate': !exists(json, 'deceasedDate') ? undefined : (new Date(json['deceasedDate'])),
|
|
102
|
+
'deceasedDate': !exists(json, 'deceasedDate') ? undefined : (json['deceasedDate'] === null ? null : new Date(json['deceasedDate'])),
|
|
66
103
|
'isSmoker': !exists(json, 'isSmoker') ? undefined : json['isSmoker'],
|
|
67
|
-
'smokerEndDate': !exists(json, 'smokerEndDate') ? undefined : (new Date(json['smokerEndDate'])),
|
|
68
|
-
'birthDate': !exists(json, 'birthDate') ? undefined : (new Date(json['birthDate'])),
|
|
104
|
+
'smokerEndDate': !exists(json, 'smokerEndDate') ? undefined : (json['smokerEndDate'] === null ? null : new Date(json['smokerEndDate'])),
|
|
105
|
+
'birthDate': !exists(json, 'birthDate') ? undefined : (json['birthDate'] === null ? null : new Date(json['birthDate'])),
|
|
106
|
+
'facebookLink': !exists(json, 'facebookLink') ? undefined : json['facebookLink'],
|
|
107
|
+
'twitterLink': !exists(json, 'twitterLink') ? undefined : json['twitterLink'],
|
|
108
|
+
'linkedInLink': !exists(json, 'linkedInLink') ? undefined : json['linkedInLink'],
|
|
109
|
+
'language': !exists(json, 'language') ? undefined : FieldValueFromJSON(json['language']),
|
|
110
|
+
'pictureId': !exists(json, 'pictureId') ? undefined : json['pictureId'],
|
|
69
111
|
};
|
|
70
112
|
}
|
|
71
113
|
|
|
@@ -79,10 +121,15 @@ export function ContactContactAdditionalInformationToJSON(value?: ContactContact
|
|
|
79
121
|
return {
|
|
80
122
|
|
|
81
123
|
'isDeceased': value.isDeceased,
|
|
82
|
-
'deceasedDate': value.deceasedDate === undefined ? undefined : (value.deceasedDate.toISOString().substr(0,10)),
|
|
124
|
+
'deceasedDate': value.deceasedDate === undefined ? undefined : (value.deceasedDate === null ? null : value.deceasedDate.toISOString().substr(0,10)),
|
|
83
125
|
'isSmoker': value.isSmoker,
|
|
84
|
-
'smokerEndDate': value.smokerEndDate === undefined ? undefined : (value.smokerEndDate.toISOString().substr(0,10)),
|
|
85
|
-
'birthDate': value.birthDate === undefined ? undefined : (value.birthDate.toISOString().substr(0,10)),
|
|
126
|
+
'smokerEndDate': value.smokerEndDate === undefined ? undefined : (value.smokerEndDate === null ? null : value.smokerEndDate.toISOString().substr(0,10)),
|
|
127
|
+
'birthDate': value.birthDate === undefined ? undefined : (value.birthDate === null ? null : value.birthDate.toISOString().substr(0,10)),
|
|
128
|
+
'facebookLink': value.facebookLink,
|
|
129
|
+
'twitterLink': value.twitterLink,
|
|
130
|
+
'linkedInLink': value.linkedInLink,
|
|
131
|
+
'language': FieldValueToJSON(value.language),
|
|
132
|
+
'pictureId': value.pictureId,
|
|
86
133
|
};
|
|
87
134
|
}
|
|
88
135
|
|
|
@@ -85,13 +85,19 @@ export interface ContactContactAddress {
|
|
|
85
85
|
* @type {Date}
|
|
86
86
|
* @memberof ContactContactAddress
|
|
87
87
|
*/
|
|
88
|
-
dateSince?: Date;
|
|
88
|
+
dateSince?: Date | null;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof ContactContactAddress
|
|
93
93
|
*/
|
|
94
94
|
city?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof ContactContactAddress
|
|
99
|
+
*/
|
|
100
|
+
locked?: boolean;
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
export function ContactContactAddressFromJSON(json: any): ContactContactAddress {
|
|
@@ -113,8 +119,9 @@ export function ContactContactAddressFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
113
119
|
'stateProvince': !exists(json, 'stateProvince') ? undefined : json['stateProvince'],
|
|
114
120
|
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
115
121
|
'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
116
|
-
'dateSince': !exists(json, 'dateSince') ? undefined : (new Date(json['dateSince'])),
|
|
122
|
+
'dateSince': !exists(json, 'dateSince') ? undefined : (json['dateSince'] === null ? null : new Date(json['dateSince'])),
|
|
117
123
|
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
124
|
+
'locked': !exists(json, 'locked') ? undefined : json['locked'],
|
|
118
125
|
};
|
|
119
126
|
}
|
|
120
127
|
|
|
@@ -136,8 +143,9 @@ export function ContactContactAddressToJSON(value?: ContactContactAddress | null
|
|
|
136
143
|
'stateProvince': value.stateProvince,
|
|
137
144
|
'country': value.country,
|
|
138
145
|
'postalCode': value.postalCode,
|
|
139
|
-
'dateSince': value.dateSince === undefined ? undefined : (value.dateSince.toISOString().substr(0,10)),
|
|
146
|
+
'dateSince': value.dateSince === undefined ? undefined : (value.dateSince === null ? null : value.dateSince.toISOString().substr(0,10)),
|
|
140
147
|
'city': value.city,
|
|
148
|
+
'locked': value.locked,
|
|
141
149
|
};
|
|
142
150
|
}
|
|
143
151
|
|
|
@@ -56,6 +56,12 @@ export interface ContactContactEmail {
|
|
|
56
56
|
* @memberof ContactContactEmail
|
|
57
57
|
*/
|
|
58
58
|
notes?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ContactContactEmail
|
|
63
|
+
*/
|
|
64
|
+
locked?: boolean;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
export function ContactContactEmailFromJSON(json: any): ContactContactEmail {
|
|
@@ -73,6 +79,7 @@ export function ContactContactEmailFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
73
79
|
'type': !exists(json, 'type') ? undefined : FieldValueFromJSON(json['type']),
|
|
74
80
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
75
81
|
'notes': !exists(json, 'notes') ? undefined : json['notes'],
|
|
82
|
+
'locked': !exists(json, 'locked') ? undefined : json['locked'],
|
|
76
83
|
};
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -90,6 +97,7 @@ export function ContactContactEmailToJSON(value?: ContactContactEmail | null): a
|
|
|
90
97
|
'type': FieldValueToJSON(value.type),
|
|
91
98
|
'email': value.email,
|
|
92
99
|
'notes': value.notes,
|
|
100
|
+
'locked': value.locked,
|
|
93
101
|
};
|
|
94
102
|
}
|
|
95
103
|
|
|
@@ -37,19 +37,25 @@ export interface ContactContactMaritalStatus {
|
|
|
37
37
|
* @type {Date}
|
|
38
38
|
* @memberof ContactContactMaritalStatus
|
|
39
39
|
*/
|
|
40
|
-
startDate?: Date;
|
|
40
|
+
startDate?: Date | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {Date}
|
|
44
44
|
* @memberof ContactContactMaritalStatus
|
|
45
45
|
*/
|
|
46
|
-
endDate?: Date;
|
|
46
|
+
endDate?: Date | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {FieldValue}
|
|
50
50
|
* @memberof ContactContactMaritalStatus
|
|
51
51
|
*/
|
|
52
52
|
status?: FieldValue;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {FieldValue}
|
|
56
|
+
* @memberof ContactContactMaritalStatus
|
|
57
|
+
*/
|
|
58
|
+
marriageContract?: FieldValue | null;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
export function ContactContactMaritalStatusFromJSON(json: any): ContactContactMaritalStatus {
|
|
@@ -63,9 +69,10 @@ export function ContactContactMaritalStatusFromJSONTyped(json: any, ignoreDiscri
|
|
|
63
69
|
return {
|
|
64
70
|
|
|
65
71
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
66
|
-
'startDate': !exists(json, 'startDate') ? undefined : (new Date(json['startDate'])),
|
|
67
|
-
'endDate': !exists(json, 'endDate') ? undefined : (new Date(json['endDate'])),
|
|
72
|
+
'startDate': !exists(json, 'startDate') ? undefined : (json['startDate'] === null ? null : new Date(json['startDate'])),
|
|
73
|
+
'endDate': !exists(json, 'endDate') ? undefined : (json['endDate'] === null ? null : new Date(json['endDate'])),
|
|
68
74
|
'status': !exists(json, 'status') ? undefined : FieldValueFromJSON(json['status']),
|
|
75
|
+
'marriageContract': !exists(json, 'marriageContract') ? undefined : FieldValueFromJSON(json['marriageContract']),
|
|
69
76
|
};
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -79,9 +86,10 @@ export function ContactContactMaritalStatusToJSON(value?: ContactContactMaritalS
|
|
|
79
86
|
return {
|
|
80
87
|
|
|
81
88
|
'id': value.id,
|
|
82
|
-
'startDate': value.startDate === undefined ? undefined : (value.startDate.toISOString().substr(0,10)),
|
|
83
|
-
'endDate': value.endDate === undefined ? undefined : (value.endDate.toISOString().substr(0,10)),
|
|
89
|
+
'startDate': value.startDate === undefined ? undefined : (value.startDate === null ? null : value.startDate.toISOString().substr(0,10)),
|
|
90
|
+
'endDate': value.endDate === undefined ? undefined : (value.endDate === null ? null : value.endDate.toISOString().substr(0,10)),
|
|
84
91
|
'status': FieldValueToJSON(value.status),
|
|
92
|
+
'marriageContract': FieldValueToJSON(value.marriageContract),
|
|
85
93
|
};
|
|
86
94
|
}
|
|
87
95
|
|
|
@@ -42,13 +42,19 @@ export interface ContactContactOccupation {
|
|
|
42
42
|
* @type {Date}
|
|
43
43
|
* @memberof ContactContactOccupation
|
|
44
44
|
*/
|
|
45
|
-
startDate?: Date;
|
|
45
|
+
startDate?: Date | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {Date}
|
|
49
49
|
* @memberof ContactContactOccupation
|
|
50
50
|
*/
|
|
51
|
-
endDate?: Date;
|
|
51
|
+
endDate?: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ContactContactOccupation
|
|
56
|
+
*/
|
|
57
|
+
annualIncome?: number | null;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
export function ContactContactOccupationFromJSON(json: any): ContactContactOccupation {
|
|
@@ -64,8 +70,9 @@ export function ContactContactOccupationFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
64
70
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
65
71
|
'occupation': !exists(json, 'occupation') ? undefined : json['occupation'],
|
|
66
72
|
'employer': !exists(json, 'employer') ? undefined : json['employer'],
|
|
67
|
-
'startDate': !exists(json, 'startDate') ? undefined : (new Date(json['startDate'])),
|
|
68
|
-
'endDate': !exists(json, 'endDate') ? undefined : (new Date(json['endDate'])),
|
|
73
|
+
'startDate': !exists(json, 'startDate') ? undefined : (json['startDate'] === null ? null : new Date(json['startDate'])),
|
|
74
|
+
'endDate': !exists(json, 'endDate') ? undefined : (json['endDate'] === null ? null : new Date(json['endDate'])),
|
|
75
|
+
'annualIncome': !exists(json, 'annualIncome') ? undefined : json['annualIncome'],
|
|
69
76
|
};
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -81,8 +88,9 @@ export function ContactContactOccupationToJSON(value?: ContactContactOccupation
|
|
|
81
88
|
'id': value.id,
|
|
82
89
|
'occupation': value.occupation,
|
|
83
90
|
'employer': value.employer,
|
|
84
|
-
'startDate': value.startDate === undefined ? undefined : (value.startDate.toISOString().substr(0,10)),
|
|
85
|
-
'endDate': value.endDate === undefined ? undefined : (value.endDate.toISOString().substr(0,10)),
|
|
91
|
+
'startDate': value.startDate === undefined ? undefined : (value.startDate === null ? null : value.startDate.toISOString().substr(0,10)),
|
|
92
|
+
'endDate': value.endDate === undefined ? undefined : (value.endDate === null ? null : value.endDate.toISOString().substr(0,10)),
|
|
93
|
+
'annualIncome': value.annualIncome,
|
|
86
94
|
};
|
|
87
95
|
}
|
|
88
96
|
|
|
@@ -68,6 +68,12 @@ export interface ContactContactPhone {
|
|
|
68
68
|
* @memberof ContactContactPhone
|
|
69
69
|
*/
|
|
70
70
|
notes?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof ContactContactPhone
|
|
75
|
+
*/
|
|
76
|
+
locked?: boolean;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export function ContactContactPhoneFromJSON(json: any): ContactContactPhone {
|
|
@@ -87,6 +93,7 @@ export function ContactContactPhoneFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
87
93
|
'extension': !exists(json, 'extension') ? undefined : json['extension'],
|
|
88
94
|
'longDistance': !exists(json, 'longDistance') ? undefined : json['longDistance'],
|
|
89
95
|
'notes': !exists(json, 'notes') ? undefined : json['notes'],
|
|
96
|
+
'locked': !exists(json, 'locked') ? undefined : json['locked'],
|
|
90
97
|
};
|
|
91
98
|
}
|
|
92
99
|
|
|
@@ -106,6 +113,7 @@ export function ContactContactPhoneToJSON(value?: ContactContactPhone | null): a
|
|
|
106
113
|
'extension': value.extension,
|
|
107
114
|
'longDistance': value.longDistance,
|
|
108
115
|
'notes': value.notes,
|
|
116
|
+
'locked': value.locked,
|
|
109
117
|
};
|
|
110
118
|
}
|
|
111
119
|
|
|
@@ -37,6 +37,12 @@ export interface ContactContactWebsite {
|
|
|
37
37
|
* @memberof ContactContactWebsite
|
|
38
38
|
*/
|
|
39
39
|
isMain?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ContactContactWebsite
|
|
44
|
+
*/
|
|
45
|
+
locked?: boolean;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
export function ContactContactWebsiteFromJSON(json: any): ContactContactWebsite {
|
|
@@ -52,6 +58,7 @@ export function ContactContactWebsiteFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
52
58
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
53
59
|
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
54
60
|
'isMain': !exists(json, 'isMain') ? undefined : json['isMain'],
|
|
61
|
+
'locked': !exists(json, 'locked') ? undefined : json['locked'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
|
|
@@ -67,6 +74,7 @@ export function ContactContactWebsiteToJSON(value?: ContactContactWebsite | null
|
|
|
67
74
|
'id': value.id,
|
|
68
75
|
'url': value.url,
|
|
69
76
|
'isMain': value.isMain,
|
|
77
|
+
'locked': value.locked,
|
|
70
78
|
};
|
|
71
79
|
}
|
|
72
80
|
|