@zimbra/api-client 102.0.0 → 102.0.1-PREAPPS-9707.9e46b27.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 +15 -0
- package/dist/src/batch-client/index.d.ts +5 -1
- package/dist/src/batch-client/types.d.ts +8 -0
- package/dist/src/schema/generated-schema-types.d.ts +15 -0
- package/dist/zm-api-js-client.esm.js +25 -5
- 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 +3 -3
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/batch-client/index.ts +14 -0
- package/src/batch-client/types.ts +10 -0
- package/src/schema/generated-schema-types.ts +19 -0
- package/src/schema/schema.graphql +15 -0
- package/src/schema/schema.ts +3 -1
- package/package-lock.json +0 -21073
package/dist/schema.graphql
CHANGED
|
@@ -3530,6 +3530,16 @@ input DiscoverRightInput {
|
|
|
3530
3530
|
_content: String
|
|
3531
3531
|
}
|
|
3532
3532
|
|
|
3533
|
+
type Misspelling {
|
|
3534
|
+
word: String
|
|
3535
|
+
suggestions: [String]
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
type CheckSpellingResponse {
|
|
3539
|
+
available: Boolean
|
|
3540
|
+
misspelled: [Misspelling]
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3533
3543
|
# Zimbra GraphQL Queries
|
|
3534
3544
|
# - [[SOAP API Reference]](https://files.zimbra.com/docs/soap_api/8.7.11/api-reference/index.html)
|
|
3535
3545
|
# - [[SOAP Documentation]](https://github.com/Zimbra/zm-mailbox/blob/develop/store/docs/soap.txt)
|
|
@@ -3723,6 +3733,11 @@ type Query {
|
|
|
3723
3733
|
taskFolders: [Folder]
|
|
3724
3734
|
|
|
3725
3735
|
getTag: [Tag]
|
|
3736
|
+
|
|
3737
|
+
checkSpelling(
|
|
3738
|
+
text: String!
|
|
3739
|
+
ignore: [String]
|
|
3740
|
+
): CheckSpellingResponse
|
|
3726
3741
|
}
|
|
3727
3742
|
|
|
3728
3743
|
type Mutation {
|
|
@@ -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,10 @@ 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
|
+
}>;
|
|
191
195
|
private batchDataHandler;
|
|
192
196
|
private checkAndUpdateSessionId;
|
|
193
197
|
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
|
+
}
|
|
@@ -787,6 +787,11 @@ export type CancelRuleInfo = {
|
|
|
787
787
|
ridZ?: Maybe<Scalars['String']['output']>;
|
|
788
788
|
tz?: Maybe<Scalars['String']['output']>;
|
|
789
789
|
};
|
|
790
|
+
export type CheckSpellingResponse = {
|
|
791
|
+
__typename?: 'CheckSpellingResponse';
|
|
792
|
+
available?: Maybe<Scalars['Boolean']['output']>;
|
|
793
|
+
misspelled?: Maybe<Array<Maybe<Misspelling>>>;
|
|
794
|
+
};
|
|
790
795
|
export type ClientInfoAttributes = {
|
|
791
796
|
__typename?: 'ClientInfoAttributes';
|
|
792
797
|
zimbraClassicWebClientDisabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2355,6 +2360,11 @@ export type MimePartInput = {
|
|
|
2355
2360
|
truncated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2356
2361
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
2357
2362
|
};
|
|
2363
|
+
export type Misspelling = {
|
|
2364
|
+
__typename?: 'Misspelling';
|
|
2365
|
+
suggestions?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2366
|
+
word?: Maybe<Scalars['String']['output']>;
|
|
2367
|
+
};
|
|
2358
2368
|
export declare enum Mode {
|
|
2359
2369
|
Html = "html",
|
|
2360
2370
|
Text = "text"
|
|
@@ -3189,6 +3199,7 @@ export type Query = {
|
|
|
3189
3199
|
accountInfo?: Maybe<AccountInfo>;
|
|
3190
3200
|
autoComplete?: Maybe<AutoCompleteResponse>;
|
|
3191
3201
|
autoCompleteGAL?: Maybe<AutoCompleteGalResponse>;
|
|
3202
|
+
checkSpelling?: Maybe<CheckSpellingResponse>;
|
|
3192
3203
|
clientInfo?: Maybe<ClientInfoType>;
|
|
3193
3204
|
discoverRights?: Maybe<DiscoverRights>;
|
|
3194
3205
|
downloadAttachment?: Maybe<Attachment>;
|
|
@@ -3254,6 +3265,10 @@ export type QueryAutoCompleteGalArgs = {
|
|
|
3254
3265
|
needExp?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3255
3266
|
type?: InputMaybe<GalSearchType>;
|
|
3256
3267
|
};
|
|
3268
|
+
export type QueryCheckSpellingArgs = {
|
|
3269
|
+
ignore?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3270
|
+
text: Scalars['String']['input'];
|
|
3271
|
+
};
|
|
3257
3272
|
export type QueryClientInfoArgs = {
|
|
3258
3273
|
by?: InputMaybe<Scalars['String']['input']>;
|
|
3259
3274
|
domain?: InputMaybe<Scalars['String']['input']>;
|