@zimbra/api-client 102.0.1-master.cd150cc.0 → 103.0.1-PREAPPS-9724.27b2a1a.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 +19 -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 +22 -0
- package/dist/zm-api-js-client.esm.js +3967 -3777
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +14 -10
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +14 -10
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package.json +16 -12
- package/rollup.config.js +1 -0
- package/src/batch-client/index.ts +28 -1
- package/src/batch-client/types.ts +10 -0
- package/src/schema/generated-schema-types.ts +28 -0
- package/src/schema/schema.graphql +19 -0
- package/src/schema/schema.ts +5 -2
package/dist/schema.graphql
CHANGED
|
@@ -1568,6 +1568,7 @@ type AccountInfoAttrs {
|
|
|
1568
1568
|
zimbraPop3Enabled: Boolean
|
|
1569
1569
|
zimbraFeatureOptionsEnabled: Boolean
|
|
1570
1570
|
zimbraFeatureContactsEnabled: Boolean
|
|
1571
|
+
zimbraAllowFromAddress: [String]
|
|
1571
1572
|
}
|
|
1572
1573
|
|
|
1573
1574
|
type AccountCos {
|
|
@@ -1669,6 +1670,7 @@ type Preferences {
|
|
|
1669
1670
|
zimbraPrefComposeDirection: String
|
|
1670
1671
|
zimbraPrefComposeFormat: Mode
|
|
1671
1672
|
zimbraPrefForwardReplyInOriginalFormat: Boolean
|
|
1673
|
+
zimbraPrefMandatorySpellCheckEnabled: Boolean
|
|
1672
1674
|
zimbraPrefHtmlEditorDefaultFontColor: String
|
|
1673
1675
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
1674
1676
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
@@ -2763,6 +2765,7 @@ input PreferencesInput {
|
|
|
2763
2765
|
zimbraPrefComposeDirection: String
|
|
2764
2766
|
zimbraPrefComposeFormat: Mode
|
|
2765
2767
|
zimbraPrefForwardReplyInOriginalFormat: Boolean
|
|
2768
|
+
zimbraPrefMandatorySpellCheckEnabled: Boolean
|
|
2766
2769
|
zimbraPrefExternalSendersType: ExternalSendersType
|
|
2767
2770
|
zimbraPrefHtmlEditorDefaultFontColor: String
|
|
2768
2771
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
@@ -3530,6 +3533,16 @@ input DiscoverRightInput {
|
|
|
3530
3533
|
_content: String
|
|
3531
3534
|
}
|
|
3532
3535
|
|
|
3536
|
+
type Misspelling {
|
|
3537
|
+
word: String
|
|
3538
|
+
suggestions: [String]
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
type CheckSpellingResponse {
|
|
3542
|
+
available: Boolean
|
|
3543
|
+
misspelled: [Misspelling]
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3533
3546
|
# Zimbra GraphQL Queries
|
|
3534
3547
|
# - [[SOAP API Reference]](https://files.zimbra.com/docs/soap_api/8.7.11/api-reference/index.html)
|
|
3535
3548
|
# - [[SOAP Documentation]](https://github.com/Zimbra/zm-mailbox/blob/develop/store/docs/soap.txt)
|
|
@@ -3723,6 +3736,11 @@ type Query {
|
|
|
3723
3736
|
taskFolders: [Folder]
|
|
3724
3737
|
|
|
3725
3738
|
getTag: [Tag]
|
|
3739
|
+
|
|
3740
|
+
checkSpelling(
|
|
3741
|
+
text: String!
|
|
3742
|
+
ignore: [String]
|
|
3743
|
+
): CheckSpellingResponse
|
|
3726
3744
|
}
|
|
3727
3745
|
|
|
3728
3746
|
type Mutation {
|
|
@@ -3936,6 +3954,7 @@ type Mutation {
|
|
|
3936
3954
|
subscribeDistributionList(op: String!, by: String, dl: String!): String
|
|
3937
3955
|
distributionListAction(dlActions: DistributionListActionInput!): Boolean
|
|
3938
3956
|
bounceMessage(message: RedirectMessgeInput): Boolean
|
|
3957
|
+
addToSpellCheckDictionary(word: String): Boolean
|
|
3939
3958
|
}
|
|
3940
3959
|
|
|
3941
3960
|
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
|
+
}
|
|
@@ -103,6 +103,7 @@ export type AccountInfo = {
|
|
|
103
103
|
export type AccountInfoAttrs = {
|
|
104
104
|
__typename?: 'AccountInfoAttrs';
|
|
105
105
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
106
|
+
zimbraAllowFromAddress?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
106
107
|
zimbraAttachmentsBlocked?: Maybe<Scalars['Boolean']['output']>;
|
|
107
108
|
zimbraAttachmentsViewInHtmlOnly?: Maybe<Scalars['Boolean']['output']>;
|
|
108
109
|
zimbraBlockEmailSendFromImapPop?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -787,6 +788,11 @@ export type CancelRuleInfo = {
|
|
|
787
788
|
ridZ?: Maybe<Scalars['String']['output']>;
|
|
788
789
|
tz?: Maybe<Scalars['String']['output']>;
|
|
789
790
|
};
|
|
791
|
+
export type CheckSpellingResponse = {
|
|
792
|
+
__typename?: 'CheckSpellingResponse';
|
|
793
|
+
available?: Maybe<Scalars['Boolean']['output']>;
|
|
794
|
+
misspelled?: Maybe<Array<Maybe<Misspelling>>>;
|
|
795
|
+
};
|
|
790
796
|
export type ClientInfoAttributes = {
|
|
791
797
|
__typename?: 'ClientInfoAttributes';
|
|
792
798
|
zimbraClassicWebClientDisabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2355,6 +2361,11 @@ export type MimePartInput = {
|
|
|
2355
2361
|
truncated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2356
2362
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
2357
2363
|
};
|
|
2364
|
+
export type Misspelling = {
|
|
2365
|
+
__typename?: 'Misspelling';
|
|
2366
|
+
suggestions?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2367
|
+
word?: Maybe<Scalars['String']['output']>;
|
|
2368
|
+
};
|
|
2358
2369
|
export declare enum Mode {
|
|
2359
2370
|
Html = "html",
|
|
2360
2371
|
Text = "text"
|
|
@@ -2418,6 +2429,7 @@ export type Mutation = {
|
|
|
2418
2429
|
action?: Maybe<Scalars['Boolean']['output']>;
|
|
2419
2430
|
addExternalAccount?: Maybe<Scalars['ID']['output']>;
|
|
2420
2431
|
addMessage?: Maybe<MessageInfo>;
|
|
2432
|
+
addToSpellCheckDictionary?: Maybe<Scalars['Boolean']['output']>;
|
|
2421
2433
|
allowDeviceSync?: Maybe<Device>;
|
|
2422
2434
|
applyFilterRules?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2423
2435
|
blockDeviceSync?: Maybe<Device>;
|
|
@@ -2538,6 +2550,9 @@ export type MutationAddExternalAccountArgs = {
|
|
|
2538
2550
|
export type MutationAddMessageArgs = {
|
|
2539
2551
|
message: AddMsgInput;
|
|
2540
2552
|
};
|
|
2553
|
+
export type MutationAddToSpellCheckDictionaryArgs = {
|
|
2554
|
+
word?: InputMaybe<Scalars['String']['input']>;
|
|
2555
|
+
};
|
|
2541
2556
|
export type MutationAllowDeviceSyncArgs = {
|
|
2542
2557
|
deviceId?: InputMaybe<Scalars['String']['input']>;
|
|
2543
2558
|
};
|
|
@@ -3059,6 +3074,7 @@ export type Preferences = {
|
|
|
3059
3074
|
zimbraPrefMailSendReadReceipts?: Maybe<PrefMailSendReadReceipts>;
|
|
3060
3075
|
zimbraPrefMailToasterEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3061
3076
|
zimbraPrefMailTrustedSenderList?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
3077
|
+
zimbraPrefMandatorySpellCheckEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3062
3078
|
zimbraPrefMarkMsgRead?: Maybe<Scalars['Int']['output']>;
|
|
3063
3079
|
zimbraPrefMessageViewHtmlPreferred?: Maybe<Scalars['Boolean']['output']>;
|
|
3064
3080
|
zimbraPrefOutOfOfficeExternalReply?: Maybe<Scalars['String']['output']>;
|
|
@@ -3131,6 +3147,7 @@ export type PreferencesInput = {
|
|
|
3131
3147
|
zimbraPrefMailSendReadReceipts?: InputMaybe<PrefMailSendReadReceipts>;
|
|
3132
3148
|
zimbraPrefMailToasterEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3133
3149
|
zimbraPrefMailTrustedSenderList?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3150
|
+
zimbraPrefMandatorySpellCheckEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3134
3151
|
zimbraPrefMarkMsgRead?: InputMaybe<Scalars['Int']['input']>;
|
|
3135
3152
|
zimbraPrefMessageViewHtmlPreferred?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3136
3153
|
zimbraPrefOutOfOfficeExternalReply?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3189,6 +3206,7 @@ export type Query = {
|
|
|
3189
3206
|
accountInfo?: Maybe<AccountInfo>;
|
|
3190
3207
|
autoComplete?: Maybe<AutoCompleteResponse>;
|
|
3191
3208
|
autoCompleteGAL?: Maybe<AutoCompleteGalResponse>;
|
|
3209
|
+
checkSpelling?: Maybe<CheckSpellingResponse>;
|
|
3192
3210
|
clientInfo?: Maybe<ClientInfoType>;
|
|
3193
3211
|
discoverRights?: Maybe<DiscoverRights>;
|
|
3194
3212
|
downloadAttachment?: Maybe<Attachment>;
|
|
@@ -3254,6 +3272,10 @@ export type QueryAutoCompleteGalArgs = {
|
|
|
3254
3272
|
needExp?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3255
3273
|
type?: InputMaybe<GalSearchType>;
|
|
3256
3274
|
};
|
|
3275
|
+
export type QueryCheckSpellingArgs = {
|
|
3276
|
+
ignore?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3277
|
+
text: Scalars['String']['input'];
|
|
3278
|
+
};
|
|
3257
3279
|
export type QueryClientInfoArgs = {
|
|
3258
3280
|
by?: InputMaybe<Scalars['String']['input']>;
|
|
3259
3281
|
domain?: InputMaybe<Scalars['String']['input']>;
|