@zimbra/api-client 66.0.0 → 70.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 +10 -0
- package/dist/src/apollo/offline-queue-link/index.d.ts +2 -2
- package/dist/src/batch-client/index.d.ts +1 -1
- package/dist/src/request/types.d.ts +1 -1
- package/dist/src/schema/generated-schema-types.d.ts +1073 -1065
- package/dist/zm-api-js-client.esm.js +1127 -1080
- 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 +2402 -5603
- package/package.json +29 -29
- package/src/apollo/offline-queue-link/index.ts +1 -1
- package/src/apollo/zimbra-in-memory-cache.ts +41 -0
- package/src/batch-client/index.ts +20 -5
- package/src/normalize/entities.ts +3 -1
- package/src/request/index.ts +2 -2
- package/src/request/types.ts +1 -1
- package/src/schema/generated-schema-types.ts +1120 -1112
- package/src/schema/schema.graphql +10 -0
- package/src/utils/normalize-email-addresses.ts +2 -1
- package/src/utils/normalize-mime-parts.ts +3 -3
|
@@ -463,6 +463,7 @@ interface MailItem {
|
|
|
463
463
|
id: ID
|
|
464
464
|
size: Float # s
|
|
465
465
|
date: Float # d
|
|
466
|
+
senderDate: Float #sd
|
|
466
467
|
folderId: ID # l
|
|
467
468
|
subject: String # su
|
|
468
469
|
emailAddresses: [EmailAddress]
|
|
@@ -490,10 +491,13 @@ type ClientInfoType {
|
|
|
490
491
|
attributes: ClientInfoAttributes
|
|
491
492
|
}
|
|
492
493
|
|
|
494
|
+
# whenever change/remove key then update the object accordingly in zm-x-web/src/notifications/messages.js on emptyMessage object.
|
|
495
|
+
# otherwise notification will be failed.
|
|
493
496
|
type MessageInfo implements MailItem {
|
|
494
497
|
id: ID
|
|
495
498
|
size: Float # s
|
|
496
499
|
date: Float # d
|
|
500
|
+
senderDate: Float # sd
|
|
497
501
|
folderId: ID # l
|
|
498
502
|
origId: ID #origid
|
|
499
503
|
subject: String # su
|
|
@@ -514,6 +518,7 @@ type MessageInfo implements MailItem {
|
|
|
514
518
|
cc: [EmailAddress]
|
|
515
519
|
bcc: [EmailAddress]
|
|
516
520
|
sender: [EmailAddress]
|
|
521
|
+
replyTo: [EmailAddress]
|
|
517
522
|
html: String
|
|
518
523
|
text: String
|
|
519
524
|
attachments: [MimePart]
|
|
@@ -523,12 +528,14 @@ type MessageInfo implements MailItem {
|
|
|
523
528
|
attributes: MessageAttributes
|
|
524
529
|
autoSendTime: Float
|
|
525
530
|
local: Boolean
|
|
531
|
+
part: String
|
|
526
532
|
}
|
|
527
533
|
|
|
528
534
|
type Conversation implements MailItem {
|
|
529
535
|
id: ID
|
|
530
536
|
size: Float # s
|
|
531
537
|
date: Float # d
|
|
538
|
+
senderDate: Float # sd
|
|
532
539
|
folderId: ID # l
|
|
533
540
|
subject: String # su
|
|
534
541
|
excerpt: String # fr
|
|
@@ -560,6 +567,7 @@ type MsgWithGroupInfo implements MailItem {
|
|
|
560
567
|
autoSendTime: Float
|
|
561
568
|
size: Float # s
|
|
562
569
|
date: Float # d
|
|
570
|
+
senderDate: Float # sd
|
|
563
571
|
folderId: ID # l
|
|
564
572
|
subject: String # su
|
|
565
573
|
emailAddresses: [EmailAddress]
|
|
@@ -1295,6 +1303,7 @@ type AccountInfoAttrs {
|
|
|
1295
1303
|
zimbraFeatureBriefcasesEnabled: Boolean
|
|
1296
1304
|
zimbraFeatureMobileSyncEnabled: Boolean
|
|
1297
1305
|
zimbraFeatureRelatedContactsEnabled: Boolean
|
|
1306
|
+
zimbraFeatureMailForwardingInFiltersEnabled: Boolean
|
|
1298
1307
|
zimbraPasswordBlockCommonEnabled: Boolean
|
|
1299
1308
|
zimbraPasswordMinAlphaChars: Int
|
|
1300
1309
|
zimbraPasswordMinNumericChars: Int
|
|
@@ -3274,6 +3283,7 @@ type Mutation {
|
|
|
3274
3283
|
name: String
|
|
3275
3284
|
isLocal: Boolean
|
|
3276
3285
|
recursive: Boolean
|
|
3286
|
+
destFolderLocal: Boolean
|
|
3277
3287
|
): Boolean
|
|
3278
3288
|
applyFilterRules(ids: String!, filterRules: [FilterRuleInput]): [String]
|
|
3279
3289
|
testExternalAccount(
|
|
@@ -24,13 +24,13 @@ function reduceMimeParts(
|
|
|
24
24
|
if (parts && parts.length) {
|
|
25
25
|
for (let i = 0; i < parts.length; i++) {
|
|
26
26
|
accumulator = iterator(parts[i], i, accumulator);
|
|
27
|
-
|
|
27
|
+
if (parts[i].contentType !== 'message/rfc822')
|
|
28
|
+
reduceMimeParts(parts[i], iterator, accumulator);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
return accumulator;
|
|
32
33
|
}
|
|
33
|
-
|
|
34
34
|
export function getAttachmentUrl(
|
|
35
35
|
attachment: { [key: string]: any },
|
|
36
36
|
{ origin = '', jwtToken }: { jwtToken?: string; origin?: string }
|
|
@@ -144,7 +144,7 @@ export function normalizeMimeParts(
|
|
|
144
144
|
if (!isBody && type.split('/')[0] !== 'multipart') {
|
|
145
145
|
let mode = disposition === 'inline' ? 'inlineAttachments' : 'attachments';
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
|
|
148
148
|
part.contentType !== 'application/pkcs7-signature' &&
|
|
149
149
|
part.contentType !== 'application/x-pkcs7-signature' &&
|
|
150
150
|
(acc[mode] || (acc[mode] = [])).push(processAttachment(part, mode));
|