@zimbra/api-client 90.0.0 → 92.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 +24 -2
- package/dist/src/apollo/types.d.ts +8 -0
- package/dist/src/batch-client/index.d.ts +1 -1
- package/dist/src/batch-client/types.d.ts +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +22 -0
- package/dist/src/utils/normalize-attrs-custommetadata.d.ts +1 -0
- package/dist/zm-api-js-client.esm.js +34 -7
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +17 -5
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +18 -6
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +330 -272
- package/package.json +6 -3
- package/src/apollo/local-batch-link.ts +9 -9
- package/src/apollo/types.ts +9 -0
- package/src/apollo/zimbra-in-memory-cache.ts +6 -4
- package/src/batch-client/index.ts +7 -2
- package/src/batch-client/types.ts +1 -0
- package/src/schema/generated-schema-types.ts +24 -0
- package/src/schema/schema.graphql +24 -2
- package/src/utils/normalize-attrs-custommetadata.ts +9 -0
package/dist/schema.graphql
CHANGED
|
@@ -202,6 +202,7 @@ enum SearchType {
|
|
|
202
202
|
task
|
|
203
203
|
wiki
|
|
204
204
|
document
|
|
205
|
+
unknown
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
enum ContactType {
|
|
@@ -510,6 +511,9 @@ type ClientInfoAttributes {
|
|
|
510
511
|
zimbraWebClientSkipLogoff: Boolean
|
|
511
512
|
zimbraFeatureResetPasswordStatus: ResetPasswordStatus
|
|
512
513
|
zimbraHelpModernURL: String
|
|
514
|
+
zimbraClassicWebClientDisabled: Boolean
|
|
515
|
+
zimbraSkinLogoLoginBanner: String
|
|
516
|
+
zimbraSkinLogoAppBanner: String
|
|
513
517
|
}
|
|
514
518
|
|
|
515
519
|
type ClientInfoType {
|
|
@@ -560,6 +564,7 @@ type MessageInfo implements MailItem {
|
|
|
560
564
|
local: Boolean
|
|
561
565
|
part: String
|
|
562
566
|
meta: [CustomMetadataMeta]
|
|
567
|
+
_attrs: [CustomHeader]
|
|
563
568
|
}
|
|
564
569
|
|
|
565
570
|
type Conversation implements MailItem {
|
|
@@ -588,6 +593,7 @@ type Conversation implements MailItem {
|
|
|
588
593
|
subscribe: [DLSubscribe] # dlSub
|
|
589
594
|
replyType: String #rt
|
|
590
595
|
meta: [CustomMetadataMeta]
|
|
596
|
+
_attrs: [CustomHeader]
|
|
591
597
|
}
|
|
592
598
|
|
|
593
599
|
type MsgWithGroupInfo implements MailItem {
|
|
@@ -604,6 +610,7 @@ type MsgWithGroupInfo implements MailItem {
|
|
|
604
610
|
folderId: ID # l
|
|
605
611
|
subject: String # su
|
|
606
612
|
emailAddresses: [EmailAddress]
|
|
613
|
+
_attrs: [CustomHeader]
|
|
607
614
|
excerpt: String # fr
|
|
608
615
|
conversationId: ID # cid
|
|
609
616
|
flags: String # f
|
|
@@ -1478,6 +1485,7 @@ type AccountInfoAttrs {
|
|
|
1478
1485
|
zimbraFeatureFiltersEnabled: Boolean
|
|
1479
1486
|
zimbraFeatureReadReceiptsEnabled: Boolean
|
|
1480
1487
|
zimbraFeatureSharingEnabled: Boolean
|
|
1488
|
+
zimbraFeatureSharedFolderMobileSyncEnabled: Boolean
|
|
1481
1489
|
zimbraFeatureManageZimlets: Boolean
|
|
1482
1490
|
zimbraFeatureTwoFactorAuthAvailable: Boolean
|
|
1483
1491
|
zimbraFeatureTwoFactorAuthRequired: Boolean
|
|
@@ -1782,6 +1790,11 @@ type SaveDraftResponse {
|
|
|
1782
1790
|
message: [MessageInfo]
|
|
1783
1791
|
}
|
|
1784
1792
|
|
|
1793
|
+
type CustomHeader {
|
|
1794
|
+
key: String
|
|
1795
|
+
value: String
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1785
1798
|
type CustomMetadataAttrs {
|
|
1786
1799
|
key: String
|
|
1787
1800
|
value: String
|
|
@@ -2072,6 +2085,7 @@ type ShareInfo {
|
|
|
2072
2085
|
rights: String
|
|
2073
2086
|
view: FolderView
|
|
2074
2087
|
mid: ID
|
|
2088
|
+
activeSyncDisabled: Boolean
|
|
2075
2089
|
}
|
|
2076
2090
|
|
|
2077
2091
|
type MailboxMetadataAttrs {
|
|
@@ -2305,6 +2319,12 @@ input SendMessageInput {
|
|
|
2305
2319
|
emailAddresses: [MailItemEmailAddressInput] #e
|
|
2306
2320
|
attachments: [AttachmentInput] #attach
|
|
2307
2321
|
inlineAttachments: [MimePartInput] #attach
|
|
2322
|
+
header: [HeaderInput] #header
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
input HeaderInput {
|
|
2326
|
+
name: String #name
|
|
2327
|
+
_content: String #value
|
|
2308
2328
|
}
|
|
2309
2329
|
|
|
2310
2330
|
input SaveSMimeCertInputUpload {
|
|
@@ -2727,6 +2747,7 @@ input PreferencesInput {
|
|
|
2727
2747
|
zimbraPrefPowerPasteEnabled: Boolean
|
|
2728
2748
|
zimbraPrefDisplayTimeInMailList: Boolean
|
|
2729
2749
|
zimbraPrefPrimaryTwoFactorAuthMethod: String
|
|
2750
|
+
zimbraPrefDeleteInviteOnReply: Boolean
|
|
2730
2751
|
}
|
|
2731
2752
|
|
|
2732
2753
|
input ModifyIdentityInput {
|
|
@@ -3455,7 +3476,7 @@ type Query {
|
|
|
3455
3476
|
downloadDocument(id: ID!, url: String!): Attachment
|
|
3456
3477
|
listDocumentRevisions(id: ID!, version: Int!, count: Int!): Document
|
|
3457
3478
|
discoverRights(right: [DiscoverRightInput!]!): DiscoverRights
|
|
3458
|
-
freeBusy(names: [String!]!, start: Float, end: Float): [FreeBusy]
|
|
3479
|
+
freeBusy(names: [String!]!, start: Float, end: Float, excludeUid: String): [FreeBusy]
|
|
3459
3480
|
getContact(
|
|
3460
3481
|
id: ID
|
|
3461
3482
|
ids: [ID!]
|
|
@@ -3594,7 +3615,8 @@ type Query {
|
|
|
3594
3615
|
sortBy: SortBy
|
|
3595
3616
|
types: SearchType
|
|
3596
3617
|
resultMode: String
|
|
3597
|
-
inDumpster: Boolean
|
|
3618
|
+
inDumpster: Boolean,
|
|
3619
|
+
header: [MailItemHeaderInput]
|
|
3598
3620
|
): SearchResponse
|
|
3599
3621
|
|
|
3600
3622
|
searchCalendarResources(
|
|
@@ -4,3 +4,11 @@ export interface LocalBatchLinkOptions extends BatchLink.Options {
|
|
|
4
4
|
context?: any;
|
|
5
5
|
schema: GraphQLSchema;
|
|
6
6
|
}
|
|
7
|
+
export interface EmailAddress {
|
|
8
|
+
__typename?: 'EmailAddress';
|
|
9
|
+
address?: string;
|
|
10
|
+
displayName?: string;
|
|
11
|
+
isGroup?: boolean | null;
|
|
12
|
+
name?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
}
|
|
@@ -78,7 +78,7 @@ export declare class ZimbraBatchClient {
|
|
|
78
78
|
folderAction: (options: ActionOptions) => Promise<boolean>;
|
|
79
79
|
forwardAppointment: (body: ForwardAppointmentInput) => Promise<boolean>;
|
|
80
80
|
forwardAppointmentInvite: (body: ForwardAppointmentInviteInput) => Promise<boolean>;
|
|
81
|
-
freeBusy: ({ start, end, names }: FreeBusyOptions) => Promise<any>;
|
|
81
|
+
freeBusy: ({ start, end, names, excludeUid }: FreeBusyOptions) => Promise<any>;
|
|
82
82
|
generateScratchCodes: (username: String) => Promise<any>;
|
|
83
83
|
getAccountDistributionLists: (attrs: String, ownerOf: number) => Promise<{
|
|
84
84
|
dls: any;
|
|
@@ -145,6 +145,7 @@ export type AccountInfoAttrs = {
|
|
|
145
145
|
zimbraFeatureRelatedContactsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
146
146
|
zimbraFeatureResetPasswordStatus?: Maybe<ResetPasswordStatus>;
|
|
147
147
|
zimbraFeatureRetentionPolicyEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
148
|
+
zimbraFeatureSharedFolderMobileSyncEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
148
149
|
zimbraFeatureSharingEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
149
150
|
zimbraFeatureTaggingEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
150
151
|
zimbraFeatureTasksEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -771,8 +772,11 @@ export type CancelRuleInfo = {
|
|
|
771
772
|
};
|
|
772
773
|
export type ClientInfoAttributes = {
|
|
773
774
|
__typename?: 'ClientInfoAttributes';
|
|
775
|
+
zimbraClassicWebClientDisabled?: Maybe<Scalars['Boolean']['output']>;
|
|
774
776
|
zimbraFeatureResetPasswordStatus?: Maybe<ResetPasswordStatus>;
|
|
775
777
|
zimbraHelpModernURL?: Maybe<Scalars['String']['output']>;
|
|
778
|
+
zimbraSkinLogoAppBanner?: Maybe<Scalars['String']['output']>;
|
|
779
|
+
zimbraSkinLogoLoginBanner?: Maybe<Scalars['String']['output']>;
|
|
776
780
|
zimbraWebClientLoginURL?: Maybe<Scalars['String']['output']>;
|
|
777
781
|
zimbraWebClientLogoutURL?: Maybe<Scalars['String']['output']>;
|
|
778
782
|
zimbraWebClientSkipLogoff?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1007,6 +1011,7 @@ export declare enum ContactType {
|
|
|
1007
1011
|
}
|
|
1008
1012
|
export type Conversation = MailItem & {
|
|
1009
1013
|
__typename?: 'Conversation';
|
|
1014
|
+
_attrs?: Maybe<Array<Maybe<CustomHeader>>>;
|
|
1010
1015
|
changeDate?: Maybe<Scalars['Float']['output']>;
|
|
1011
1016
|
conversationId?: Maybe<Scalars['ID']['output']>;
|
|
1012
1017
|
date?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1091,6 +1096,11 @@ export type Cursor = {
|
|
|
1091
1096
|
includeOffset?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1092
1097
|
sortVal?: InputMaybe<Scalars['String']['input']>;
|
|
1093
1098
|
};
|
|
1099
|
+
export type CustomHeader = {
|
|
1100
|
+
__typename?: 'CustomHeader';
|
|
1101
|
+
key?: Maybe<Scalars['String']['output']>;
|
|
1102
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
1103
|
+
};
|
|
1094
1104
|
export type CustomMetadata = {
|
|
1095
1105
|
__typename?: 'CustomMetadata';
|
|
1096
1106
|
meta?: Maybe<Array<Maybe<CustomMetadataMeta>>>;
|
|
@@ -1848,6 +1858,10 @@ export type HeaderConditionInput = {
|
|
|
1848
1858
|
value?: InputMaybe<Scalars['String']['input']>;
|
|
1849
1859
|
valueComparison?: InputMaybe<Scalars['String']['input']>;
|
|
1850
1860
|
};
|
|
1861
|
+
export type HeaderInput = {
|
|
1862
|
+
_content?: InputMaybe<Scalars['String']['input']>;
|
|
1863
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
1864
|
+
};
|
|
1851
1865
|
export type Hit = {
|
|
1852
1866
|
__typename?: 'Hit';
|
|
1853
1867
|
id?: Maybe<Scalars['String']['output']>;
|
|
@@ -2200,6 +2214,7 @@ export type MessageAttributes = {
|
|
|
2200
2214
|
};
|
|
2201
2215
|
export type MessageInfo = MailItem & {
|
|
2202
2216
|
__typename?: 'MessageInfo';
|
|
2217
|
+
_attrs?: Maybe<Array<Maybe<CustomHeader>>>;
|
|
2203
2218
|
attachments?: Maybe<Array<Maybe<MimePart>>>;
|
|
2204
2219
|
attributes?: Maybe<MessageAttributes>;
|
|
2205
2220
|
autoSendTime?: Maybe<Scalars['Float']['output']>;
|
|
@@ -2330,6 +2345,7 @@ export type ModifyZimletPrefsResponse = {
|
|
|
2330
2345
|
};
|
|
2331
2346
|
export type MsgWithGroupInfo = MailItem & {
|
|
2332
2347
|
__typename?: 'MsgWithGroupInfo';
|
|
2348
|
+
_attrs?: Maybe<Array<Maybe<CustomHeader>>>;
|
|
2333
2349
|
autoSendTime?: Maybe<Scalars['Float']['output']>;
|
|
2334
2350
|
changeDate?: Maybe<Scalars['Float']['output']>;
|
|
2335
2351
|
cif?: Maybe<Scalars['String']['output']>;
|
|
@@ -3033,6 +3049,7 @@ export type PreferencesInput = {
|
|
|
3033
3049
|
zimbraPrefComposeFormat?: InputMaybe<Mode>;
|
|
3034
3050
|
zimbraPrefDefaultCalendarId?: InputMaybe<Scalars['ID']['input']>;
|
|
3035
3051
|
zimbraPrefDelegatedSendSaveTarget?: InputMaybe<PrefDelegatedSendSaveTarget>;
|
|
3052
|
+
zimbraPrefDeleteInviteOnReply?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3036
3053
|
zimbraPrefDisplayExternalImages?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3037
3054
|
zimbraPrefDisplayTimeInMailList?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3038
3055
|
zimbraPrefExternalSendersType?: InputMaybe<ExternalSendersType>;
|
|
@@ -3190,6 +3207,7 @@ export type QueryDownloadMessageArgs = {
|
|
|
3190
3207
|
};
|
|
3191
3208
|
export type QueryFreeBusyArgs = {
|
|
3192
3209
|
end?: InputMaybe<Scalars['Float']['input']>;
|
|
3210
|
+
excludeUid?: InputMaybe<Scalars['String']['input']>;
|
|
3193
3211
|
names: Array<Scalars['String']['input']>;
|
|
3194
3212
|
start?: InputMaybe<Scalars['Float']['input']>;
|
|
3195
3213
|
};
|
|
@@ -3332,6 +3350,7 @@ export type QuerySearchArgs = {
|
|
|
3332
3350
|
cursor?: InputMaybe<Cursor>;
|
|
3333
3351
|
fetch?: InputMaybe<Scalars['String']['input']>;
|
|
3334
3352
|
fullConversation?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3353
|
+
header?: InputMaybe<Array<InputMaybe<MailItemHeaderInput>>>;
|
|
3335
3354
|
inDumpster?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3336
3355
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
3337
3356
|
memberOf?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -3608,6 +3627,7 @@ export declare enum SearchType {
|
|
|
3608
3627
|
Document = "document",
|
|
3609
3628
|
Message = "message",
|
|
3610
3629
|
Task = "task",
|
|
3630
|
+
Unknown = "unknown",
|
|
3611
3631
|
Wiki = "wiki"
|
|
3612
3632
|
}
|
|
3613
3633
|
export type Secret = {
|
|
@@ -3624,6 +3644,7 @@ export type SendMessageInput = {
|
|
|
3624
3644
|
entityId?: InputMaybe<Scalars['String']['input']>;
|
|
3625
3645
|
flags?: InputMaybe<Scalars['String']['input']>;
|
|
3626
3646
|
folderId?: InputMaybe<Scalars['ID']['input']>;
|
|
3647
|
+
header?: InputMaybe<Array<InputMaybe<HeaderInput>>>;
|
|
3627
3648
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
3628
3649
|
inReplyTo?: InputMaybe<Scalars['String']['input']>;
|
|
3629
3650
|
inlineAttachments?: InputMaybe<Array<InputMaybe<MimePartInput>>>;
|
|
@@ -3660,6 +3681,7 @@ export declare enum SetRecoveryAccountOp {
|
|
|
3660
3681
|
}
|
|
3661
3682
|
export type ShareInfo = {
|
|
3662
3683
|
__typename?: 'ShareInfo';
|
|
3684
|
+
activeSyncDisabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3663
3685
|
folderId: Scalars['ID']['output'];
|
|
3664
3686
|
folderPath?: Maybe<Scalars['String']['output']>;
|
|
3665
3687
|
folderUuid?: Maybe<Scalars['String']['output']>;
|