@zimbra/api-client 103.0.1-master.e2fc2e1.0 → 103.0.1-master.f5b7ef4.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 +20 -0
- package/dist/src/batch-client/index.d.ts +6 -1
- package/dist/src/batch-client/types.d.ts +8 -0
- package/dist/src/schema/generated-schema-types.d.ts +23 -0
- package/dist/zm-api-js-client.esm.js +36 -4
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +2 -2
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +2 -2
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/batch-client/index.ts +25 -0
- package/src/batch-client/types.ts +10 -0
- package/src/schema/generated-schema-types.ts +29 -0
- package/src/schema/schema.graphql +20 -0
- package/src/schema/schema.ts +5 -2
package/dist/schema.graphql
CHANGED
|
@@ -1399,6 +1399,7 @@ type AccountInfo {
|
|
|
1399
1399
|
cos: AccountCos
|
|
1400
1400
|
pasteitcleanedEnabled: Boolean
|
|
1401
1401
|
adminDelegated: Boolean
|
|
1402
|
+
isSpellCheckAvailable: Boolean
|
|
1402
1403
|
}
|
|
1403
1404
|
|
|
1404
1405
|
type OnlyEmailAddress {
|
|
@@ -1670,6 +1671,8 @@ type Preferences {
|
|
|
1670
1671
|
zimbraPrefComposeDirection: String
|
|
1671
1672
|
zimbraPrefComposeFormat: Mode
|
|
1672
1673
|
zimbraPrefForwardReplyInOriginalFormat: Boolean
|
|
1674
|
+
zimbraPrefMandatorySpellCheckEnabled: Boolean
|
|
1675
|
+
zimbraPrefSpellDictionary: String
|
|
1673
1676
|
zimbraPrefHtmlEditorDefaultFontColor: String
|
|
1674
1677
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
1675
1678
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
@@ -2764,6 +2767,7 @@ input PreferencesInput {
|
|
|
2764
2767
|
zimbraPrefComposeDirection: String
|
|
2765
2768
|
zimbraPrefComposeFormat: Mode
|
|
2766
2769
|
zimbraPrefForwardReplyInOriginalFormat: Boolean
|
|
2770
|
+
zimbraPrefMandatorySpellCheckEnabled: Boolean
|
|
2767
2771
|
zimbraPrefExternalSendersType: ExternalSendersType
|
|
2768
2772
|
zimbraPrefHtmlEditorDefaultFontColor: String
|
|
2769
2773
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
@@ -3531,6 +3535,16 @@ input DiscoverRightInput {
|
|
|
3531
3535
|
_content: String
|
|
3532
3536
|
}
|
|
3533
3537
|
|
|
3538
|
+
type Misspelling {
|
|
3539
|
+
word: String
|
|
3540
|
+
suggestions: [String]
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
type CheckSpellingResponse {
|
|
3544
|
+
available: Boolean
|
|
3545
|
+
misspelled: [Misspelling]
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3534
3548
|
# Zimbra GraphQL Queries
|
|
3535
3549
|
# - [[SOAP API Reference]](https://files.zimbra.com/docs/soap_api/8.7.11/api-reference/index.html)
|
|
3536
3550
|
# - [[SOAP Documentation]](https://github.com/Zimbra/zm-mailbox/blob/develop/store/docs/soap.txt)
|
|
@@ -3724,6 +3738,11 @@ type Query {
|
|
|
3724
3738
|
taskFolders: [Folder]
|
|
3725
3739
|
|
|
3726
3740
|
getTag: [Tag]
|
|
3741
|
+
|
|
3742
|
+
checkSpelling(
|
|
3743
|
+
text: String!
|
|
3744
|
+
ignore: [String]
|
|
3745
|
+
): CheckSpellingResponse
|
|
3727
3746
|
}
|
|
3728
3747
|
|
|
3729
3748
|
type Mutation {
|
|
@@ -3937,6 +3956,7 @@ type Mutation {
|
|
|
3937
3956
|
subscribeDistributionList(op: String!, by: String, dl: String!): String
|
|
3938
3957
|
distributionListAction(dlActions: DistributionListActionInput!): Boolean
|
|
3939
3958
|
bounceMessage(message: RedirectMessgeInput): Boolean
|
|
3959
|
+
addToSpellCheckDictionary(word: String!): Boolean
|
|
3940
3960
|
}
|
|
3941
3961
|
|
|
3942
3962
|
schema {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JsonRequestOptions } from '../request/types';
|
|
2
2
|
import { ActionOpResponse, AddMsgInput, CalendarItemInput, CounterAppointmentInput, CreateContactInput, CreateIdentityInput, CreateMountpointInput, CreateTagInput, DeleteAppointmentInput, DeleteIdentityInput, DistributionListActionInput, EnableTwoFactorAuthInput, ExternalAccountAddInput, ExternalAccountImportInput, ExternalAccountTestInput, FilterInput, FolderActionChangeColorInput, FolderActionCheckCalendarInput, ForwardAppointmentInput, ForwardAppointmentInviteInput, GetRightsInput, GrantRightsInput, InviteReplyInput, ModifyContactInput, ModifyIdentityInput, PreferencesInput, RedirectMessgeInput, RevokeRightsInput, SaveSMimeCertInputUpload, SearchFolderInput, SendMessageInput, SendTwoFactorAuthCodeInput, ShareNotificationInput, SignatureInput, WhiteBlackListInput, ZimletPreferenceInput } from '../schema/generated-schema-types';
|
|
3
|
-
import { ActionOptions, ActionType, ApplyFilterRulesOptions, AppointmentOptions, AutoCompleteGALOptions, AutoCompleteOptions, ChangePasswordOptions, CreateFolderOptions, CreateSearchFolderOptions, DiscoverRightOptions, ExternalAccountDeleteInput, ExternalAccountModifyInput, FreeBusyOptions, GetContactFrequencyOptions, GetContactOptions, GetConversationOptions, GetCustomMetadataOptions, GetDocumentShareURLOptions, GetFolderOptions, GetMailboxMetadataOptions, GetMessageOptions, GetSMimePublicCertsOptions, LoginOptions, ModifyProfileImageOptions, NoOpOptions, RecoverAccountOptions, RelatedContactsOptions, ResetPasswordOptions, SaveDocumentInput, SearchCalendarResourcesOptions, SearchOptions, SetRecoveryAccountOptions, ShareInfoOptions, WorkingHoursOptions, ZimbraClientOptions } from './types';
|
|
3
|
+
import { ActionOptions, ActionType, ApplyFilterRulesOptions, AppointmentOptions, AutoCompleteGALOptions, AutoCompleteOptions, ChangePasswordOptions, CheckSpellingOptions, CreateFolderOptions, CreateSearchFolderOptions, DiscoverRightOptions, ExternalAccountDeleteInput, ExternalAccountModifyInput, FreeBusyOptions, GetContactFrequencyOptions, GetContactOptions, GetConversationOptions, GetCustomMetadataOptions, GetDocumentShareURLOptions, GetFolderOptions, GetMailboxMetadataOptions, GetMessageOptions, GetSMimePublicCertsOptions, LoginOptions, ModifyProfileImageOptions, NoOpOptions, RecoverAccountOptions, RelatedContactsOptions, ResetPasswordOptions, SaveDocumentInput, SearchCalendarResourcesOptions, SearchOptions, SetRecoveryAccountOptions, ShareInfoOptions, WorkingHoursOptions, ZimbraClientOptions } from './types';
|
|
4
4
|
import { Notifier } from './notifier';
|
|
5
5
|
export declare class ZimbraBatchClient {
|
|
6
6
|
localStoreClient: any;
|
|
@@ -188,6 +188,11 @@ export declare class ZimbraBatchClient {
|
|
|
188
188
|
taskFolders: () => Promise<any>;
|
|
189
189
|
testExternalAccount: ({ accountType, ...accountInfo }: ExternalAccountTestInput) => Promise<{}>;
|
|
190
190
|
uploadMessage: (message: string) => any;
|
|
191
|
+
checkSpelling: ({ text, ignore }: CheckSpellingOptions) => Promise<{
|
|
192
|
+
available: any;
|
|
193
|
+
misspelled: any;
|
|
194
|
+
}>;
|
|
195
|
+
addToSpellCheckDictionary: (word: string) => Promise<boolean>;
|
|
191
196
|
private batchDataHandler;
|
|
192
197
|
private checkAndUpdateSessionId;
|
|
193
198
|
private dataHandler;
|
|
@@ -317,3 +317,11 @@ export interface DiscoverRightInput {
|
|
|
317
317
|
export interface DiscoverRightOptions {
|
|
318
318
|
right: Array<DiscoverRightInput>;
|
|
319
319
|
}
|
|
320
|
+
export interface CheckSpellingOptions {
|
|
321
|
+
text: string;
|
|
322
|
+
ignore?: Array<string>;
|
|
323
|
+
}
|
|
324
|
+
export interface Misspelled {
|
|
325
|
+
word: string;
|
|
326
|
+
suggestions: string;
|
|
327
|
+
}
|
|
@@ -88,6 +88,7 @@ export type AccountInfo = {
|
|
|
88
88
|
cos?: Maybe<AccountCos>;
|
|
89
89
|
habRoots?: Maybe<HabRoots>;
|
|
90
90
|
id: Scalars['ID']['output'];
|
|
91
|
+
isSpellCheckAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
91
92
|
license?: Maybe<License>;
|
|
92
93
|
name?: Maybe<Scalars['String']['output']>;
|
|
93
94
|
pasteitcleanedEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -788,6 +789,11 @@ export type CancelRuleInfo = {
|
|
|
788
789
|
ridZ?: Maybe<Scalars['String']['output']>;
|
|
789
790
|
tz?: Maybe<Scalars['String']['output']>;
|
|
790
791
|
};
|
|
792
|
+
export type CheckSpellingResponse = {
|
|
793
|
+
__typename?: 'CheckSpellingResponse';
|
|
794
|
+
available?: Maybe<Scalars['Boolean']['output']>;
|
|
795
|
+
misspelled?: Maybe<Array<Maybe<Misspelling>>>;
|
|
796
|
+
};
|
|
791
797
|
export type ClientInfoAttributes = {
|
|
792
798
|
__typename?: 'ClientInfoAttributes';
|
|
793
799
|
zimbraClassicWebClientDisabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2356,6 +2362,11 @@ export type MimePartInput = {
|
|
|
2356
2362
|
truncated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2357
2363
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
2358
2364
|
};
|
|
2365
|
+
export type Misspelling = {
|
|
2366
|
+
__typename?: 'Misspelling';
|
|
2367
|
+
suggestions?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2368
|
+
word?: Maybe<Scalars['String']['output']>;
|
|
2369
|
+
};
|
|
2359
2370
|
export declare enum Mode {
|
|
2360
2371
|
Html = "html",
|
|
2361
2372
|
Text = "text"
|
|
@@ -2419,6 +2430,7 @@ export type Mutation = {
|
|
|
2419
2430
|
action?: Maybe<Scalars['Boolean']['output']>;
|
|
2420
2431
|
addExternalAccount?: Maybe<Scalars['ID']['output']>;
|
|
2421
2432
|
addMessage?: Maybe<MessageInfo>;
|
|
2433
|
+
addToSpellCheckDictionary?: Maybe<Scalars['Boolean']['output']>;
|
|
2422
2434
|
allowDeviceSync?: Maybe<Device>;
|
|
2423
2435
|
applyFilterRules?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2424
2436
|
blockDeviceSync?: Maybe<Device>;
|
|
@@ -2539,6 +2551,9 @@ export type MutationAddExternalAccountArgs = {
|
|
|
2539
2551
|
export type MutationAddMessageArgs = {
|
|
2540
2552
|
message: AddMsgInput;
|
|
2541
2553
|
};
|
|
2554
|
+
export type MutationAddToSpellCheckDictionaryArgs = {
|
|
2555
|
+
word: Scalars['String']['input'];
|
|
2556
|
+
};
|
|
2542
2557
|
export type MutationAllowDeviceSyncArgs = {
|
|
2543
2558
|
deviceId?: InputMaybe<Scalars['String']['input']>;
|
|
2544
2559
|
};
|
|
@@ -3060,6 +3075,7 @@ export type Preferences = {
|
|
|
3060
3075
|
zimbraPrefMailSendReadReceipts?: Maybe<PrefMailSendReadReceipts>;
|
|
3061
3076
|
zimbraPrefMailToasterEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3062
3077
|
zimbraPrefMailTrustedSenderList?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
3078
|
+
zimbraPrefMandatorySpellCheckEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3063
3079
|
zimbraPrefMarkMsgRead?: Maybe<Scalars['Int']['output']>;
|
|
3064
3080
|
zimbraPrefMessageViewHtmlPreferred?: Maybe<Scalars['Boolean']['output']>;
|
|
3065
3081
|
zimbraPrefOutOfOfficeExternalReply?: Maybe<Scalars['String']['output']>;
|
|
@@ -3086,6 +3102,7 @@ export type Preferences = {
|
|
|
3086
3102
|
zimbraPrefShowFragments?: Maybe<Scalars['Boolean']['output']>;
|
|
3087
3103
|
zimbraPrefSlackCalendarReminderEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3088
3104
|
zimbraPrefSortOrder?: Maybe<Scalars['String']['output']>;
|
|
3105
|
+
zimbraPrefSpellDictionary?: Maybe<Scalars['String']['output']>;
|
|
3089
3106
|
zimbraPrefTagTreeOpen?: Maybe<Scalars['Boolean']['output']>;
|
|
3090
3107
|
zimbraPrefTimeZoneId?: Maybe<Scalars['String']['output']>;
|
|
3091
3108
|
zimbraPrefUseTimeZoneListInCalendar?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -3132,6 +3149,7 @@ export type PreferencesInput = {
|
|
|
3132
3149
|
zimbraPrefMailSendReadReceipts?: InputMaybe<PrefMailSendReadReceipts>;
|
|
3133
3150
|
zimbraPrefMailToasterEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3134
3151
|
zimbraPrefMailTrustedSenderList?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3152
|
+
zimbraPrefMandatorySpellCheckEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3135
3153
|
zimbraPrefMarkMsgRead?: InputMaybe<Scalars['Int']['input']>;
|
|
3136
3154
|
zimbraPrefMessageViewHtmlPreferred?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3137
3155
|
zimbraPrefOutOfOfficeExternalReply?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3190,6 +3208,7 @@ export type Query = {
|
|
|
3190
3208
|
accountInfo?: Maybe<AccountInfo>;
|
|
3191
3209
|
autoComplete?: Maybe<AutoCompleteResponse>;
|
|
3192
3210
|
autoCompleteGAL?: Maybe<AutoCompleteGalResponse>;
|
|
3211
|
+
checkSpelling?: Maybe<CheckSpellingResponse>;
|
|
3193
3212
|
clientInfo?: Maybe<ClientInfoType>;
|
|
3194
3213
|
discoverRights?: Maybe<DiscoverRights>;
|
|
3195
3214
|
downloadAttachment?: Maybe<Attachment>;
|
|
@@ -3255,6 +3274,10 @@ export type QueryAutoCompleteGalArgs = {
|
|
|
3255
3274
|
needExp?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3256
3275
|
type?: InputMaybe<GalSearchType>;
|
|
3257
3276
|
};
|
|
3277
|
+
export type QueryCheckSpellingArgs = {
|
|
3278
|
+
ignore?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3279
|
+
text: Scalars['String']['input'];
|
|
3280
|
+
};
|
|
3258
3281
|
export type QueryClientInfoArgs = {
|
|
3259
3282
|
by?: InputMaybe<Scalars['String']['input']>;
|
|
3260
3283
|
domain?: InputMaybe<Scalars['String']['input']>;
|