@zimbra/api-client 101.0.1-master.3393cf5.0 → 101.0.1-master.50ef899.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 +9 -3
- package/dist/src/batch-client/index.d.ts +3 -2
- package/dist/src/batch-client/types.d.ts +1 -1
- package/dist/src/normalize/entities.d.ts +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +11 -3
- package/dist/zm-api-js-client.esm.js +79 -49
- 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 +8 -8
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/apollo/zimbra-in-memory-cache.ts +8 -0
- package/src/batch-client/index.ts +18 -5
- package/src/batch-client/types.ts +1 -1
- package/src/normalize/entities.ts +9 -0
- package/src/schema/generated-schema-types.ts +14 -3
- package/src/schema/schema.graphql +9 -3
- package/src/schema/schema.ts +2 -0
package/dist/schema.graphql
CHANGED
|
@@ -2141,7 +2141,7 @@ type MailboxMetadataAttrs {
|
|
|
2141
2141
|
zimbraPrefFoldersExpanded: String
|
|
2142
2142
|
zimbraPrefFolderTreeSash: Int
|
|
2143
2143
|
zimbraPrefGenerateLinkPreviews: Boolean
|
|
2144
|
-
|
|
2144
|
+
zimbraPrefGroupByListModern: String
|
|
2145
2145
|
zimbraPrefMessageListDensity: String
|
|
2146
2146
|
zimbraPrefMultitasking: String
|
|
2147
2147
|
zimbraPrefReadingPaneSashHorizontal: Int
|
|
@@ -2178,7 +2178,7 @@ input MailboxMetadataSectionAttrsInput {
|
|
|
2178
2178
|
zimbraPrefFoldersExpanded: String
|
|
2179
2179
|
zimbraPrefFolderTreeSash: Int
|
|
2180
2180
|
zimbraPrefGenerateLinkPreviews: Boolean
|
|
2181
|
-
|
|
2181
|
+
zimbraPrefGroupByListModern: String
|
|
2182
2182
|
zimbraPrefMessageListDensity: String
|
|
2183
2183
|
zimbraPrefMultitasking: String
|
|
2184
2184
|
zimbraPrefReadingPaneSashHorizontal: Int
|
|
@@ -3047,6 +3047,11 @@ input ForwardMessageInput {
|
|
|
3047
3047
|
emailAddresses: [MailItemEmailAddressInput] #e
|
|
3048
3048
|
}
|
|
3049
3049
|
|
|
3050
|
+
input RedirectMessgeInput {
|
|
3051
|
+
id: ID!
|
|
3052
|
+
emailAddresses: [MailItemEmailAddressInput]
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3050
3055
|
input ShareNotificationInput {
|
|
3051
3056
|
action: ShareInputAction
|
|
3052
3057
|
item: ShareNotificationItemInput!
|
|
@@ -3643,7 +3648,7 @@ type Query {
|
|
|
3643
3648
|
getMessagesMetadata(ids: [ID!]!, isLocal: Boolean): [MessageInfo]
|
|
3644
3649
|
getRights(input: GetRightsInput!): RightsResponse
|
|
3645
3650
|
getSMimePublicCerts(
|
|
3646
|
-
contactAddr: String!
|
|
3651
|
+
contactAddr: [String]!
|
|
3647
3652
|
store: String!
|
|
3648
3653
|
): SMimePublicCertsResponse
|
|
3649
3654
|
getSMimeCertInfo(certId: String): SmimeCertInfoResponse
|
|
@@ -3928,6 +3933,7 @@ type Mutation {
|
|
|
3928
3933
|
cancelPendingRemoteWipeSync(deviceId: String): Device
|
|
3929
3934
|
subscribeDistributionList(op: String!, by: String, dl: String!): String
|
|
3930
3935
|
distributionListAction(dlActions: DistributionListActionInput!): Boolean
|
|
3936
|
+
bounceMessage(message: RedirectMessgeInput): Boolean
|
|
3931
3937
|
}
|
|
3932
3938
|
|
|
3933
3939
|
schema {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonRequestOptions } from '../request/types';
|
|
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, RevokeRightsInput, SaveSMimeCertInputUpload, SearchFolderInput, SendMessageInput, SendTwoFactorAuthCodeInput, ShareNotificationInput, SignatureInput, WhiteBlackListInput, ZimletPreferenceInput } from '../schema/generated-schema-types';
|
|
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
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';
|
|
4
4
|
import { Notifier } from './notifier';
|
|
5
5
|
export declare class ZimbraBatchClient {
|
|
@@ -28,6 +28,7 @@ export declare class ZimbraBatchClient {
|
|
|
28
28
|
autoComplete: (options: AutoCompleteOptions) => Promise<any>;
|
|
29
29
|
autoCompleteGAL: (options: AutoCompleteGALOptions) => Promise<any>;
|
|
30
30
|
blockDeviceSync: (deviceId: string) => Promise<any>;
|
|
31
|
+
bounceMsg: (options: RedirectMessgeInput) => Promise<boolean>;
|
|
31
32
|
cancelPendingAccountOnlyRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
32
33
|
cancelPendingRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
33
34
|
cancelTask: ({ inviteId }: any) => Promise<boolean>;
|
|
@@ -121,7 +122,7 @@ export declare class ZimbraBatchClient {
|
|
|
121
122
|
}>;
|
|
122
123
|
getSignatures: () => Promise<{}>;
|
|
123
124
|
getSMimeCertInfo: () => Promise<any>;
|
|
124
|
-
getSMimePublicCerts: (
|
|
125
|
+
getSMimePublicCerts: ({ contactAddr, store }: GetSMimePublicCertsOptions) => Promise<any>;
|
|
125
126
|
getTag: () => Promise<any>;
|
|
126
127
|
getTasks: (options: SearchOptions) => Promise<any>;
|
|
127
128
|
getTrustedDevices: () => Promise<any>;
|
|
@@ -259,7 +259,7 @@ export interface CreateSearchFolderOptions {
|
|
|
259
259
|
view?: string;
|
|
260
260
|
}
|
|
261
261
|
export interface GetSMimePublicCertsOptions {
|
|
262
|
-
contactAddr: string
|
|
262
|
+
contactAddr: string | Array<string>;
|
|
263
263
|
store: string;
|
|
264
264
|
}
|
|
265
265
|
export declare enum SetRecoveryAccountOpType {
|
|
@@ -40,6 +40,7 @@ export declare const CalResourceAttributes: Entity;
|
|
|
40
40
|
export declare const CalResource: Entity;
|
|
41
41
|
export declare const SearchCalendarResourcesResponse: Entity;
|
|
42
42
|
export declare const GetAppointmentResponse: Entity;
|
|
43
|
+
export declare const RedirectMessage: Entity;
|
|
43
44
|
export declare const Filter: Entity;
|
|
44
45
|
export declare const InviteReply: Entity;
|
|
45
46
|
export declare const CreateSignatureRequest: Entity;
|
|
@@ -2193,7 +2193,7 @@ export type MailboxMetadataAttrs = {
|
|
|
2193
2193
|
zimbraPrefFolderTreeSash?: Maybe<Scalars['Int']['output']>;
|
|
2194
2194
|
zimbraPrefFoldersExpanded?: Maybe<Scalars['String']['output']>;
|
|
2195
2195
|
zimbraPrefGenerateLinkPreviews?: Maybe<Scalars['Boolean']['output']>;
|
|
2196
|
-
|
|
2196
|
+
zimbraPrefGroupByListModern?: Maybe<Scalars['String']['output']>;
|
|
2197
2197
|
zimbraPrefHideMuteConvModal?: Maybe<Scalars['Boolean']['output']>;
|
|
2198
2198
|
zimbraPrefMessageListDensity?: Maybe<Scalars['String']['output']>;
|
|
2199
2199
|
zimbraPrefMultitasking?: Maybe<Scalars['String']['output']>;
|
|
@@ -2225,7 +2225,7 @@ export type MailboxMetadataSectionAttrsInput = {
|
|
|
2225
2225
|
zimbraPrefFolderTreeSash?: InputMaybe<Scalars['Int']['input']>;
|
|
2226
2226
|
zimbraPrefFoldersExpanded?: InputMaybe<Scalars['String']['input']>;
|
|
2227
2227
|
zimbraPrefGenerateLinkPreviews?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2228
|
-
|
|
2228
|
+
zimbraPrefGroupByListModern?: InputMaybe<Scalars['String']['input']>;
|
|
2229
2229
|
zimbraPrefHideMuteConvModal?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2230
2230
|
zimbraPrefMessageListDensity?: InputMaybe<Scalars['String']['input']>;
|
|
2231
2231
|
zimbraPrefMultitasking?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2420,6 +2420,7 @@ export type Mutation = {
|
|
|
2420
2420
|
allowDeviceSync?: Maybe<Device>;
|
|
2421
2421
|
applyFilterRules?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2422
2422
|
blockDeviceSync?: Maybe<Device>;
|
|
2423
|
+
bounceMessage?: Maybe<Scalars['Boolean']['output']>;
|
|
2423
2424
|
cancelPendingAccountOnlyRemoteWipeSync?: Maybe<Device>;
|
|
2424
2425
|
cancelPendingRemoteWipeSync?: Maybe<Device>;
|
|
2425
2426
|
cancelTask?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2546,6 +2547,9 @@ export type MutationApplyFilterRulesArgs = {
|
|
|
2546
2547
|
export type MutationBlockDeviceSyncArgs = {
|
|
2547
2548
|
deviceId?: InputMaybe<Scalars['String']['input']>;
|
|
2548
2549
|
};
|
|
2550
|
+
export type MutationBounceMessageArgs = {
|
|
2551
|
+
message?: InputMaybe<RedirectMessgeInput>;
|
|
2552
|
+
};
|
|
2549
2553
|
export type MutationCancelPendingAccountOnlyRemoteWipeSyncArgs = {
|
|
2550
2554
|
deviceId?: InputMaybe<Scalars['String']['input']>;
|
|
2551
2555
|
};
|
|
@@ -3377,7 +3381,7 @@ export type QueryGetSMimeCertInfoArgs = {
|
|
|
3377
3381
|
certId?: InputMaybe<Scalars['String']['input']>;
|
|
3378
3382
|
};
|
|
3379
3383
|
export type QueryGetSMimePublicCertsArgs = {
|
|
3380
|
-
contactAddr: Scalars['String']['input']
|
|
3384
|
+
contactAddr: Array<InputMaybe<Scalars['String']['input']>>;
|
|
3381
3385
|
store: Scalars['String']['input'];
|
|
3382
3386
|
};
|
|
3383
3387
|
export type QueryGetScratchCodesArgs = {
|
|
@@ -3486,6 +3490,10 @@ export type RedirectActionInput = {
|
|
|
3486
3490
|
copy?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3487
3491
|
index?: InputMaybe<Scalars['Int']['input']>;
|
|
3488
3492
|
};
|
|
3493
|
+
export type RedirectMessgeInput = {
|
|
3494
|
+
emailAddresses?: InputMaybe<Array<InputMaybe<MailItemEmailAddressInput>>>;
|
|
3495
|
+
id: Scalars['ID']['input'];
|
|
3496
|
+
};
|
|
3489
3497
|
export type RelatedContact = {
|
|
3490
3498
|
__typename?: 'RelatedContact';
|
|
3491
3499
|
email?: Maybe<Scalars['String']['output']>;
|