@zimbra/api-client 71.0.0 → 73.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,6 +65,7 @@ const supportedContactAttributes = [
65
65
  'website',
66
66
  'notes',
67
67
  'image',
68
+ 'thumbnailPhoto',
68
69
  'userCertificate',
69
70
  'assistantPhone',
70
71
  'callbackPhone',
@@ -79,6 +80,25 @@ const supportedContactAttributes = [
79
80
  'fileAs',
80
81
  'type'
81
82
  ];
83
+
84
+ const ignoreAttributes = [
85
+ 'modifyTimeStamp',
86
+ 'createTimeStamp',
87
+ 'zimbraId',
88
+ 'objectClass',
89
+ 'zimbraMailForwardingAddress',
90
+ 'zimbraAccountCalendarUserType',
91
+ 'zimbraCalResLocationDisplayName',
92
+ 'zimbraCalResType',
93
+ 'cardOwner',
94
+ 'homeCardMessage',
95
+ 'homePhotoURL',
96
+ 'workCardMessage',
97
+ 'workPhotoURL',
98
+ 'firstLast',
99
+ 'vcardXProps',
100
+ 'imagepart'
101
+ ];
82
102
  export function createContactBody(data: any) {
83
103
  const { attributes, ...rest } = data;
84
104
  const contactAttrs = <Object[]>[];
@@ -129,7 +149,7 @@ export function normalizeOtherAttr(data: any) {
129
149
  }
130
150
 
131
151
  Object.keys(contact._attrs)
132
- .filter(key => !supportedContactAttributes.includes(key))
152
+ .filter(key => !supportedContactAttributes.includes(key) && !ignoreAttributes.includes(key))
133
153
  .forEach(
134
154
  key =>
135
155
  typeof contact._attrs[key] === 'string' &&