@zimbra/api-client 69.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 +14 -0
- package/dist/src/batch-client/index.d.ts +2 -1
- package/dist/src/schema/generated-schema-types.d.ts +13 -0
- package/dist/zm-api-js-client.esm.js +56 -15
- 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 +11 -2
- package/src/batch-client/index.ts +21 -6
- package/src/normalize/entities.ts +4 -1
- package/src/schema/generated-schema-types.ts +14 -0
- package/src/schema/schema.graphql +14 -0
- package/src/utils/normalize-email-addresses.ts +2 -1
- package/src/utils/normalize-mime-parts.ts +12 -5
- package/src/utils/normalize-otherAttribute-contact.ts +21 -1
- package/.tmp/introspected-schema.json +0 -31072
package/dist/schema.graphql
CHANGED
|
@@ -153,6 +153,7 @@ enum InviteCompletionStatus {
|
|
|
153
153
|
enum ParticipationRole {
|
|
154
154
|
REQ # required
|
|
155
155
|
OPT # optional
|
|
156
|
+
CHA # chair
|
|
156
157
|
NON # informational purposes only
|
|
157
158
|
}
|
|
158
159
|
|
|
@@ -463,6 +464,7 @@ interface MailItem {
|
|
|
463
464
|
id: ID
|
|
464
465
|
size: Float # s
|
|
465
466
|
date: Float # d
|
|
467
|
+
senderDate: Float #sd
|
|
466
468
|
folderId: ID # l
|
|
467
469
|
subject: String # su
|
|
468
470
|
emailAddresses: [EmailAddress]
|
|
@@ -496,6 +498,7 @@ type MessageInfo implements MailItem {
|
|
|
496
498
|
id: ID
|
|
497
499
|
size: Float # s
|
|
498
500
|
date: Float # d
|
|
501
|
+
senderDate: Float # sd
|
|
499
502
|
folderId: ID # l
|
|
500
503
|
origId: ID #origid
|
|
501
504
|
subject: String # su
|
|
@@ -516,6 +519,7 @@ type MessageInfo implements MailItem {
|
|
|
516
519
|
cc: [EmailAddress]
|
|
517
520
|
bcc: [EmailAddress]
|
|
518
521
|
sender: [EmailAddress]
|
|
522
|
+
replyTo: [EmailAddress]
|
|
519
523
|
html: String
|
|
520
524
|
text: String
|
|
521
525
|
attachments: [MimePart]
|
|
@@ -525,12 +529,14 @@ type MessageInfo implements MailItem {
|
|
|
525
529
|
attributes: MessageAttributes
|
|
526
530
|
autoSendTime: Float
|
|
527
531
|
local: Boolean
|
|
532
|
+
part: String
|
|
528
533
|
}
|
|
529
534
|
|
|
530
535
|
type Conversation implements MailItem {
|
|
531
536
|
id: ID
|
|
532
537
|
size: Float # s
|
|
533
538
|
date: Float # d
|
|
539
|
+
senderDate: Float # sd
|
|
534
540
|
folderId: ID # l
|
|
535
541
|
subject: String # su
|
|
536
542
|
excerpt: String # fr
|
|
@@ -562,6 +568,7 @@ type MsgWithGroupInfo implements MailItem {
|
|
|
562
568
|
autoSendTime: Float
|
|
563
569
|
size: Float # s
|
|
564
570
|
date: Float # d
|
|
571
|
+
senderDate: Float # sd
|
|
565
572
|
folderId: ID # l
|
|
566
573
|
subject: String # su
|
|
567
574
|
emailAddresses: [EmailAddress]
|
|
@@ -1297,6 +1304,7 @@ type AccountInfoAttrs {
|
|
|
1297
1304
|
zimbraFeatureBriefcasesEnabled: Boolean
|
|
1298
1305
|
zimbraFeatureMobileSyncEnabled: Boolean
|
|
1299
1306
|
zimbraFeatureRelatedContactsEnabled: Boolean
|
|
1307
|
+
zimbraFeatureMailForwardingInFiltersEnabled: Boolean
|
|
1300
1308
|
zimbraPasswordBlockCommonEnabled: Boolean
|
|
1301
1309
|
zimbraPasswordMinAlphaChars: Int
|
|
1302
1310
|
zimbraPasswordMinNumericChars: Int
|
|
@@ -2006,9 +2014,14 @@ input DocumentInput {
|
|
|
2006
2014
|
id: ID
|
|
2007
2015
|
}
|
|
2008
2016
|
|
|
2017
|
+
input EMLInput {
|
|
2018
|
+
id: ID
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2009
2021
|
input AttachmentInput {
|
|
2010
2022
|
attachmentId: String
|
|
2011
2023
|
documents: [DocumentInput]
|
|
2024
|
+
messages: [EMLInput]
|
|
2012
2025
|
existingAttachments: [ExistingAttachmentInput]
|
|
2013
2026
|
}
|
|
2014
2027
|
|
|
@@ -2978,6 +2991,7 @@ type SMimePublicCertsResponse {
|
|
|
2978
2991
|
type SMimeMessage {
|
|
2979
2992
|
id: ID
|
|
2980
2993
|
content: String
|
|
2994
|
+
isSecure: Boolean
|
|
2981
2995
|
}
|
|
2982
2996
|
|
|
2983
2997
|
type Attachment {
|
|
@@ -72,6 +72,7 @@ export declare class ZimbraBatchClient {
|
|
|
72
72
|
downloadMessage: ({ id, isSecure }: any) => Promise<{
|
|
73
73
|
id: any;
|
|
74
74
|
content: any;
|
|
75
|
+
isSecure: any;
|
|
75
76
|
}>;
|
|
76
77
|
enableTwoFactorAuth: ({ name, password, authToken, twoFactorCode, csrfTokenSecured }: EnableTwoFactorAuthInput) => Promise<any>;
|
|
77
78
|
folderAction: (options: ActionOptions) => Promise<boolean>;
|
|
@@ -98,7 +99,7 @@ export declare class ZimbraBatchClient {
|
|
|
98
99
|
getIdentities: () => Promise<{}>;
|
|
99
100
|
getImportStatus: () => Promise<any>;
|
|
100
101
|
getMailboxMetadata: ({ section }: GetMailboxMetadataOptions) => Promise<{}>;
|
|
101
|
-
getMessage: ({ id, html, raw, header, read, max, ridZ }: GetMessageOptions) => Promise<{
|
|
102
|
+
getMessage: ({ id, html, raw, header, read, max, ridZ, part }: GetMessageOptions) => Promise<{
|
|
102
103
|
[key: string]: any;
|
|
103
104
|
} | null>;
|
|
104
105
|
getMessagesMetadata: ({ ids }: GetMessageOptions) => Promise<any>;
|
|
@@ -95,6 +95,7 @@ export declare type AccountInfoAttrs = {
|
|
|
95
95
|
zimbraFeatureIdentitiesEnabled?: Maybe<Scalars['Boolean']>;
|
|
96
96
|
zimbraFeatureImapDataSourceEnabled?: Maybe<Scalars['Boolean']>;
|
|
97
97
|
zimbraFeatureMailEnabled?: Maybe<Scalars['Boolean']>;
|
|
98
|
+
zimbraFeatureMailForwardingInFiltersEnabled?: Maybe<Scalars['Boolean']>;
|
|
98
99
|
zimbraFeatureMailPriorityEnabled?: Maybe<Scalars['Boolean']>;
|
|
99
100
|
zimbraFeatureMailSendLaterEnabled?: Maybe<Scalars['Boolean']>;
|
|
100
101
|
zimbraFeatureManageZimlets?: Maybe<Scalars['Boolean']>;
|
|
@@ -305,6 +306,7 @@ export declare type AttachmentInput = {
|
|
|
305
306
|
attachmentId?: Maybe<Scalars['String']>;
|
|
306
307
|
documents?: Maybe<Array<Maybe<DocumentInput>>>;
|
|
307
308
|
existingAttachments?: Maybe<Array<Maybe<ExistingAttachmentInput>>>;
|
|
309
|
+
messages?: Maybe<Array<Maybe<EmlInput>>>;
|
|
308
310
|
};
|
|
309
311
|
export declare type AuthResponse = {
|
|
310
312
|
__typename?: 'AuthResponse';
|
|
@@ -951,6 +953,7 @@ export declare type Conversation = MailItem & {
|
|
|
951
953
|
numMessages?: Maybe<Scalars['Float']>;
|
|
952
954
|
replyType?: Maybe<Scalars['String']>;
|
|
953
955
|
revision?: Maybe<Scalars['Float']>;
|
|
956
|
+
senderDate?: Maybe<Scalars['Float']>;
|
|
954
957
|
share?: Maybe<Array<Maybe<ShareNotification>>>;
|
|
955
958
|
size?: Maybe<Scalars['Float']>;
|
|
956
959
|
sortField?: Maybe<Scalars['String']>;
|
|
@@ -1166,6 +1169,9 @@ export declare type DtTimeInfo = {
|
|
|
1166
1169
|
timezone?: Maybe<Scalars['String']>;
|
|
1167
1170
|
utc?: Maybe<Scalars['Float']>;
|
|
1168
1171
|
};
|
|
1172
|
+
export declare type EmlInput = {
|
|
1173
|
+
id?: Maybe<Scalars['ID']>;
|
|
1174
|
+
};
|
|
1169
1175
|
export declare type EmailAddress = {
|
|
1170
1176
|
__typename?: 'EmailAddress';
|
|
1171
1177
|
address?: Maybe<Scalars['String']>;
|
|
@@ -1900,6 +1906,7 @@ export declare type MailItem = {
|
|
|
1900
1906
|
modifiedSequence?: Maybe<Scalars['Float']>;
|
|
1901
1907
|
replyType?: Maybe<Scalars['String']>;
|
|
1902
1908
|
revision?: Maybe<Scalars['Float']>;
|
|
1909
|
+
senderDate?: Maybe<Scalars['Float']>;
|
|
1903
1910
|
share?: Maybe<Array<Maybe<ShareNotification>>>;
|
|
1904
1911
|
size?: Maybe<Scalars['Float']>;
|
|
1905
1912
|
sortField?: Maybe<Scalars['String']>;
|
|
@@ -2003,9 +2010,12 @@ export declare type MessageInfo = MailItem & {
|
|
|
2003
2010
|
mimeParts?: Maybe<Array<Maybe<MimePart>>>;
|
|
2004
2011
|
modifiedSequence?: Maybe<Scalars['Float']>;
|
|
2005
2012
|
origId?: Maybe<Scalars['ID']>;
|
|
2013
|
+
part?: Maybe<Scalars['String']>;
|
|
2014
|
+
replyTo?: Maybe<Array<Maybe<EmailAddress>>>;
|
|
2006
2015
|
replyType?: Maybe<Scalars['String']>;
|
|
2007
2016
|
revision?: Maybe<Scalars['Float']>;
|
|
2008
2017
|
sender?: Maybe<Array<Maybe<EmailAddress>>>;
|
|
2018
|
+
senderDate?: Maybe<Scalars['Float']>;
|
|
2009
2019
|
share?: Maybe<Array<Maybe<ShareNotification>>>;
|
|
2010
2020
|
size?: Maybe<Scalars['Float']>;
|
|
2011
2021
|
sortField?: Maybe<Scalars['String']>;
|
|
@@ -2110,6 +2120,7 @@ export declare type MsgWithGroupInfo = MailItem & {
|
|
|
2110
2120
|
origid?: Maybe<Scalars['String']>;
|
|
2111
2121
|
replyType?: Maybe<Scalars['String']>;
|
|
2112
2122
|
revision?: Maybe<Scalars['Float']>;
|
|
2123
|
+
senderDate?: Maybe<Scalars['Float']>;
|
|
2113
2124
|
share?: Maybe<Array<Maybe<ShareNotification>>>;
|
|
2114
2125
|
size?: Maybe<Scalars['Float']>;
|
|
2115
2126
|
sortField?: Maybe<Scalars['String']>;
|
|
@@ -2611,6 +2622,7 @@ export declare type Owner = {
|
|
|
2611
2622
|
by?: Maybe<Scalars['String']>;
|
|
2612
2623
|
};
|
|
2613
2624
|
export declare enum ParticipationRole {
|
|
2625
|
+
Cha = "CHA",
|
|
2614
2626
|
Non = "NON",
|
|
2615
2627
|
Opt = "OPT",
|
|
2616
2628
|
Req = "REQ"
|
|
@@ -3163,6 +3175,7 @@ export declare type SMimeMessage = {
|
|
|
3163
3175
|
__typename?: 'SMimeMessage';
|
|
3164
3176
|
content?: Maybe<Scalars['String']>;
|
|
3165
3177
|
id?: Maybe<Scalars['ID']>;
|
|
3178
|
+
isSecure?: Maybe<Scalars['Boolean']>;
|
|
3166
3179
|
};
|
|
3167
3180
|
export declare type SMimePublicCert = {
|
|
3168
3181
|
__typename?: 'SMimePublicCert';
|