@zimbra/api-client 87.1.0 → 89.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 +64 -7
- package/dist/src/batch-client/index.d.ts +5 -4
- package/dist/src/schema/generated-schema-types.d.ts +1786 -1707
- package/dist/zm-api-js-client.esm.js +7389 -9366
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +9 -9
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +9 -9
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +3669 -6986
- package/package.json +10 -8
- package/rollup.config.js +14 -15
- package/src/batch-client/index.ts +27 -5
- package/src/schema/generated-schema-types.ts +1774 -1706
- package/src/schema/schema.graphql +64 -7
- package/src/schema/schema.ts +4 -1
- package/src/utils/normalize-mime-parts.ts +2 -2
|
@@ -20,6 +20,13 @@ enum SortBy {
|
|
|
20
20
|
sizeDesc
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
enum ExternalSendersType {
|
|
24
|
+
ALL
|
|
25
|
+
ALLNOTINAB
|
|
26
|
+
INAB
|
|
27
|
+
INSD
|
|
28
|
+
}
|
|
29
|
+
|
|
23
30
|
enum ShareInputAction {
|
|
24
31
|
edit
|
|
25
32
|
revoke
|
|
@@ -448,7 +455,8 @@ type EmailAddress {
|
|
|
448
455
|
address: String
|
|
449
456
|
name: String
|
|
450
457
|
type: String
|
|
451
|
-
displayName: String
|
|
458
|
+
displayName: String,
|
|
459
|
+
isGroup: Boolean
|
|
452
460
|
}
|
|
453
461
|
|
|
454
462
|
type ShareNotification {
|
|
@@ -1000,8 +1008,12 @@ type ImportanceCondition {
|
|
|
1000
1008
|
negative: Boolean
|
|
1001
1009
|
}
|
|
1002
1010
|
|
|
1011
|
+
type MethodCondition {
|
|
1012
|
+
_content: String
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1003
1015
|
type InviteCondition {
|
|
1004
|
-
|
|
1016
|
+
method: [MethodCondition]
|
|
1005
1017
|
index: Int
|
|
1006
1018
|
negative: Boolean
|
|
1007
1019
|
}
|
|
@@ -1165,11 +1177,43 @@ type DlAttrs {
|
|
|
1165
1177
|
lastName: String
|
|
1166
1178
|
}
|
|
1167
1179
|
|
|
1180
|
+
type Dlm {
|
|
1181
|
+
_content: String
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1168
1184
|
type DlGroupMember {
|
|
1169
1185
|
name: String
|
|
1170
1186
|
attributes: DlAttrs
|
|
1171
1187
|
}
|
|
1172
1188
|
|
|
1189
|
+
type DLSAttrs {
|
|
1190
|
+
zimbraDistributionListSubscriptionPolicy: String
|
|
1191
|
+
zimbraDistributionListUnsubscriptionPolicy: String
|
|
1192
|
+
zimbraHideInGal: String
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
type DLS {
|
|
1196
|
+
d: String
|
|
1197
|
+
dynamic: Boolean
|
|
1198
|
+
id: String
|
|
1199
|
+
isMember: Boolean
|
|
1200
|
+
isOwner: Boolean
|
|
1201
|
+
name: String
|
|
1202
|
+
ref: String
|
|
1203
|
+
_attrs: DLSAttrs
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
type DLSDetails {
|
|
1207
|
+
dls: [DLS]
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
type DLDetails {
|
|
1211
|
+
dlm: [Dlm]
|
|
1212
|
+
dlGroupMember: [DlGroupMember]
|
|
1213
|
+
more: Boolean,
|
|
1214
|
+
total: Int
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1173
1217
|
type HabGroup {
|
|
1174
1218
|
name: String
|
|
1175
1219
|
id: String
|
|
@@ -1401,6 +1445,8 @@ type AccountInfoAttrs {
|
|
|
1401
1445
|
zimbraFeatureImportFolderEnabled: Boolean
|
|
1402
1446
|
zimbraFeatureExportFolderEnabled: Boolean
|
|
1403
1447
|
zimbraFeatureGroupCalendarEnabled: Boolean
|
|
1448
|
+
zimbraFeatureDistributionListExpandMembersEnabled: Boolean
|
|
1449
|
+
zimbraFeatureDistributionListFolderEnabled: Boolean
|
|
1404
1450
|
}
|
|
1405
1451
|
|
|
1406
1452
|
type AccountCos {
|
|
@@ -1511,6 +1557,7 @@ type Preferences {
|
|
|
1511
1557
|
zimbraPrefDeleteInviteOnReply: Boolean
|
|
1512
1558
|
zimbraPrefDelegatedSendSaveTarget: PrefDelegatedSendSaveTarget
|
|
1513
1559
|
zimbraPrefDisplayExternalImages: Boolean
|
|
1560
|
+
zimbraPrefExternalSendersType: ExternalSendersType
|
|
1514
1561
|
zimbraPrefGroupMailBy: String
|
|
1515
1562
|
zimbraPrefMailPollingInterval: String
|
|
1516
1563
|
zimbraPrefMailRequestReadReceipts: Boolean
|
|
@@ -2279,6 +2326,7 @@ input CalendarItemAttendeesInput {
|
|
|
2279
2326
|
address: String!
|
|
2280
2327
|
name: String
|
|
2281
2328
|
calendarUserType: String
|
|
2329
|
+
isGroup: Boolean
|
|
2282
2330
|
}
|
|
2283
2331
|
|
|
2284
2332
|
type CalendarItemAlarmTriggerRelative {
|
|
@@ -2556,6 +2604,7 @@ input PreferencesInput {
|
|
|
2556
2604
|
zimbraPrefCalendarAlwaysShowMiniCal: Boolean
|
|
2557
2605
|
zimbraPrefComposeDirection: String
|
|
2558
2606
|
zimbraPrefComposeFormat: Mode
|
|
2607
|
+
zimbraPrefExternalSendersType: ExternalSendersType
|
|
2559
2608
|
zimbraPrefHtmlEditorDefaultFontColor: String
|
|
2560
2609
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
2561
2610
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
@@ -2690,9 +2739,13 @@ input ImportanceConditionInput {
|
|
|
2690
2739
|
}
|
|
2691
2740
|
|
|
2692
2741
|
input InviteConditionInput {
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2742
|
+
method: [MethodInput]
|
|
2743
|
+
index: Int
|
|
2744
|
+
negative: Boolean
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
input MethodInput {
|
|
2748
|
+
_content: String
|
|
2696
2749
|
}
|
|
2697
2750
|
|
|
2698
2751
|
input MimeHeaderConditionInput {
|
|
@@ -3336,11 +3389,15 @@ type Query {
|
|
|
3336
3389
|
local: Boolean
|
|
3337
3390
|
): Folder
|
|
3338
3391
|
getHAB(habRootGroupId: ID): HabGroup
|
|
3392
|
+
getAccountDistributionLists(
|
|
3393
|
+
attrs: String
|
|
3394
|
+
ownerOf: Int
|
|
3395
|
+
): DLSDetails
|
|
3339
3396
|
getDistributionListMembers(
|
|
3340
3397
|
limit: Int
|
|
3341
3398
|
offset: Int
|
|
3342
3399
|
dl: String
|
|
3343
|
-
):
|
|
3400
|
+
): DLDetails
|
|
3344
3401
|
getCustomMetadata(id: ID!, section: String): CustomMetadata
|
|
3345
3402
|
getMailboxMetadata(section: String): MailboxMetadata
|
|
3346
3403
|
getMessage(
|
|
@@ -3639,4 +3696,4 @@ type Mutation {
|
|
|
3639
3696
|
schema {
|
|
3640
3697
|
query: Query
|
|
3641
3698
|
mutation: Mutation
|
|
3642
|
-
}
|
|
3699
|
+
}
|
package/src/schema/schema.ts
CHANGED
|
@@ -142,6 +142,8 @@ export function createZimbraSchema(options: ZimbraSchemaOptions): {
|
|
|
142
142
|
return client.getFolder(variables as GetFolderOptions);
|
|
143
143
|
},
|
|
144
144
|
getHAB: (_, { habRootGroupId }) => client.getHAB(habRootGroupId),
|
|
145
|
+
getAccountDistributionLists: (_, { attrs, ownerOf }) =>
|
|
146
|
+
client.getAccountDistributionLists(attrs, ownerOf),
|
|
145
147
|
getDistributionListMembers: (_, { limit, offset, dl }) =>
|
|
146
148
|
client.getDistributionListMembers(limit, offset, dl),
|
|
147
149
|
getAppointment: (_: any, variables) =>
|
|
@@ -220,12 +222,13 @@ export function createZimbraSchema(options: ZimbraSchemaOptions): {
|
|
|
220
222
|
},
|
|
221
223
|
addMessage: (_, variables, context = {}) => {
|
|
222
224
|
const { local } = context;
|
|
225
|
+
const { message } = variables;
|
|
223
226
|
|
|
224
227
|
if (local) {
|
|
225
228
|
return localStoreClient.addMessage(variables as AddMsgInput);
|
|
226
229
|
}
|
|
227
230
|
|
|
228
|
-
return client.addMessage(
|
|
231
|
+
return client.addMessage(message as AddMsgInput);
|
|
229
232
|
},
|
|
230
233
|
applyFilterRules: (_, variables) =>
|
|
231
234
|
client.applyFilterRules(variables as ApplyFilterRulesOptions),
|
|
@@ -105,7 +105,7 @@ export function normalizeMimeParts(
|
|
|
105
105
|
type = normalizeType(part.contentType),
|
|
106
106
|
disposition = normalizeDisposition(part.contentDisposition),
|
|
107
107
|
parts = part.mimeParts,
|
|
108
|
-
content = part
|
|
108
|
+
content = part?.content || ''; //getPartContent(part);
|
|
109
109
|
|
|
110
110
|
// obey scapi's isBody flag:
|
|
111
111
|
if (isBody) acc.body = content;
|
|
@@ -127,7 +127,7 @@ export function normalizeMimeParts(
|
|
|
127
127
|
~subpart.contentType.indexOf('image/') &&
|
|
128
128
|
subpart.contentDisposition === 'attachment' &&
|
|
129
129
|
subpart.contentId &&
|
|
130
|
-
htmlPart
|
|
130
|
+
htmlPart?.content
|
|
131
131
|
) {
|
|
132
132
|
// remove angle brackets from <contentId>
|
|
133
133
|
const contentId = subpart.contentId.slice(1, -1);
|