@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.
- package/dist/schema.graphql +2 -0
- package/dist/src/batch-client/index.d.ts +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +2 -0
- package/dist/zm-api-js-client.esm.js +21 -11
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +1 -1
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +1 -1
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +136 -152
- package/package.json +8 -8
- package/src/apollo/zimbra-in-memory-cache.ts +6 -2
- package/src/batch-client/index.ts +4 -4
- package/src/schema/generated-schema-types.ts +2 -0
- package/src/schema/schema.graphql +2 -0
- package/src/utils/normalize-mime-parts.ts +10 -2
- package/src/utils/normalize-otherAttribute-contact.ts +21 -1
- package/.tmp/introspected-schema.json +0 -31072
|
@@ -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' &&
|