@zimbra/api-client 78.0.0-beta → 80.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.
@@ -485,6 +485,7 @@ interface MailItem {
485
485
  type ClientInfoAttributes {
486
486
  zimbraWebClientLoginURL: String
487
487
  zimbraWebClientLogoutURL: String
488
+ zimbraWebClientSkipLogoff: Boolean
488
489
  zimbraFeatureResetPasswordStatus: ResetPasswordStatus
489
490
  }
490
491
 
@@ -1309,6 +1310,7 @@ type AccountInfoAttrs {
1309
1310
  zimbraFeatureMobileSyncEnabled: Boolean
1310
1311
  zimbraFeatureRelatedContactsEnabled: Boolean
1311
1312
  zimbraFeatureMailForwardingInFiltersEnabled: Boolean
1313
+ zimbraPasswordAllowUsername: Boolean
1312
1314
  zimbraPasswordBlockCommonEnabled: Boolean
1313
1315
  zimbraPasswordMinAlphaChars: Int
1314
1316
  zimbraPasswordMinNumericChars: Int
@@ -1352,6 +1354,7 @@ type AccountInfoAttrs {
1352
1354
  zimbraMailAttachmentMaxSize: Float
1353
1355
  zimbraMtaMaxMessageSize: Float
1354
1356
  zimbraMailAlias: [String]
1357
+ zimbraMailSignatureMaxLength: Float
1355
1358
  zimbraFeatureTaggingEnabled: Boolean
1356
1359
  zimbraIdentityMaxNumEntries: Int
1357
1360
  zimbraFeatureIdentitiesEnabled: Boolean
@@ -1551,6 +1554,7 @@ type Document {
1551
1554
  revisedCreationDate: Float #cd
1552
1555
  lockOwnerId: ID #loid
1553
1556
  flags: String #f
1557
+ docs: [Document]
1554
1558
  }
1555
1559
 
1556
1560
  type SearchResponse {
@@ -2451,6 +2455,12 @@ input InviteReplyInput {
2451
2455
  exceptId: InstanceDate
2452
2456
  }
2453
2457
 
2458
+ input PurgetRevisionInput {
2459
+ id: ID!
2460
+ ver: Int!
2461
+ includeOlderRevisions: Int
2462
+ }
2463
+
2454
2464
  input PropertiesInput {
2455
2465
  zimlet: String!
2456
2466
  name: String!
@@ -2971,6 +2981,7 @@ input SaveDocumentInput {
2971
2981
  descriptionEnabled: Boolean #descEnabled
2972
2982
  action: SaveDocumentAction
2973
2983
  type: SaveDocumentType
2984
+ document: SaveDocumentInput
2974
2985
  }
2975
2986
 
2976
2987
  type SaveDocument {
@@ -3187,6 +3198,7 @@ type Query {
3187
3198
  downloadMessage(id: ID!, isSecure: Boolean, isLocal: Boolean): SMimeMessage
3188
3199
  downloadAttachment(id: ID!, part: ID!): Attachment
3189
3200
  downloadDocument(id: ID!, url: String!): Attachment
3201
+ listDocumentRevisions(id: ID!, version: Int!, count: Int!): Document
3190
3202
  discoverRights(right: [DiscoverRightInput!]!): DiscoverRights
3191
3203
  freeBusy(names: [String!]!, start: Float, end: Float): [FreeBusy]
3192
3204
  getContact(
@@ -3490,6 +3502,7 @@ type Mutation {
3490
3502
  modifyTask(task: CalendarItemInput!): Boolean
3491
3503
  modifyWhiteBlackList(whiteBlackList: WhiteBlackListInput!): Boolean
3492
3504
  moveTask(inviteId: ID!, destFolderId: ID!): String
3505
+ purgeRevision(id: ID!, ver: Int!, includeOlderRevisions: Int): Boolean
3493
3506
  prefEnableOutOfOfficeAlertOnLogin(value: Boolean!): Boolean
3494
3507
  prefEnableOutOfOfficeReply(value: Boolean!): Boolean
3495
3508
  prefOutOfOfficeFromDate(value: String!): String
@@ -1,5 +1,5 @@
1
1
  /// <reference types="zen-observable" />
2
- import { ApolloLink, FetchResult, Observable, Operation } from '@apollo/client';
2
+ import { ApolloLink, FetchResult, Observable, Operation } from '@apollo/client/core';
3
3
  import { LocalBatchLinkOptions } from './types';
4
4
  export declare class LocalBatchLink extends ApolloLink {
5
5
  off: any;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="zen-observable" />
2
- import { ApolloLink, FetchResult, NextLink, Observable, Operation } from '@apollo/client';
2
+ import { ApolloLink, FetchResult, NextLink, Observable, Operation } from '@apollo/client/core';
3
3
  import { OfflineQueueLinkOptions, OperationEntry, StorageProvider } from './types';
4
4
  export declare class OfflineQueueLink extends ApolloLink {
5
5
  isOpen: boolean;
@@ -1,5 +1,4 @@
1
- import { FetchResult, NextLink, Operation } from '@apollo/client';
2
- import { Observer } from '@apollo/client';
1
+ import { FetchResult, NextLink, Observer, Operation } from '@apollo/client/core';
3
2
  export interface OfflineQueueLinkOptions {
4
3
  isOpen?: boolean;
5
4
  storage: StorageProvider;
@@ -1,4 +1,4 @@
1
- import { Operation } from '@apollo/client';
1
+ import { Operation } from '@apollo/client/core';
2
2
  import { OfflineOperationEntry, OperationEntry } from './types';
3
3
  export declare function hasSensitiveVariables(operation: Operation): boolean;
4
4
  export declare function isMutationOperation({ query }: Operation): boolean;
@@ -1,4 +1,4 @@
1
- import { InMemoryCache, InMemoryCacheConfig } from '@apollo/client';
1
+ import { InMemoryCache, InMemoryCacheConfig } from '@apollo/client/core';
2
2
  export declare class ZimbraInMemoryCache extends InMemoryCache {
3
3
  constructor(config?: InMemoryCacheConfig);
4
4
  }
@@ -75,6 +75,7 @@ export declare class ZimbraBatchClient {
75
75
  isSecure: any;
76
76
  }>;
77
77
  enableTwoFactorAuth: ({ name, password, authToken, twoFactorCode, csrfTokenSecured, ignoreSameSite }: EnableTwoFactorAuthInput) => Promise<any>;
78
+ endSessionBeaconRequest: (options: JsonRequestOptions) => void;
78
79
  folderAction: (options: ActionOptions) => Promise<boolean>;
79
80
  forwardAppointment: (body: ForwardAppointmentInput) => Promise<boolean>;
80
81
  forwardAppointmentInvite: (body: ForwardAppointmentInviteInput) => Promise<boolean>;
@@ -124,6 +125,7 @@ export declare class ZimbraBatchClient {
124
125
  importExternalAccount: ({ accountType, id }: ExternalAccountImportInput) => Promise<boolean>;
125
126
  itemAction: (options: ActionOptions) => Promise<boolean>;
126
127
  jsonRequest: (options: JsonRequestOptions) => Promise<any>;
128
+ listDocumentRevisions: ({ id, version, count }: any) => Promise<any>;
127
129
  login: ({ username, password, recoveryCode, tokenType, persistAuthTokenCookie, twoFactorCode, deviceTrusted, csrfTokenSecured, ignoreSameSite }: LoginOptions) => Promise<{}>;
128
130
  logout: () => Promise<boolean>;
129
131
  messageAction: (options: ActionOptions) => Promise<boolean>;
@@ -141,12 +143,13 @@ export declare class ZimbraBatchClient {
141
143
  modifyWhiteBlackList: (whiteBlackList: WhiteBlackListInput) => Promise<boolean>;
142
144
  modifyZimletPrefs: (zimlet: Array<ZimletPreferenceInput>) => Promise<any>;
143
145
  noop: ({ wait, limitToOneBlocked }: NoOpOptions, fetchOptions: any) => Promise<any>;
146
+ purgeRevision: ({ id, ver, includeOlderRevisions }: any) => Promise<boolean>;
144
147
  quarantineDeviceSync: (deviceId: String) => Promise<any>;
145
148
  recoverAccount: ({ channel, email, op }: RecoverAccountOptions) => Promise<any>;
146
149
  relatedContacts: ({ email }: RelatedContactsOptions) => Promise<any>;
147
150
  remoteWipeSync: (deviceId: String) => Promise<any>;
148
151
  removeDeviceSync: (deviceId: String) => Promise<any>;
149
- resetPassword: ({ password, dryRun, getPasswordRules, cancelResetPassword }: ResetPasswordOptions) => Promise<any>;
152
+ resetPassword: ({ password, dryRun, getPasswordRules, cancelResetPassword }: ResetPasswordOptions) => Promise<{}>;
150
153
  resolve: (path: string) => string;
151
154
  revokeAppSpecificPassword: (appName: string) => Promise<boolean>;
152
155
  revokeOtherTrustedDevices: () => Promise<boolean>;
@@ -31,6 +31,7 @@ export declare const Contact: Entity;
31
31
  export declare const AutoCompleteGALResponse: Entity;
32
32
  export declare const Appointment: Entity;
33
33
  export declare const Document: Entity;
34
+ export declare const ListDocumentRevisions: Entity;
34
35
  export declare const MessagePartInputForDocuments: Entity;
35
36
  export declare const SaveDocument: Entity;
36
37
  export declare const SearchResponse: Entity;
@@ -127,7 +127,9 @@ export declare type AccountInfoAttrs = {
127
127
  zimbraMailAttachmentMaxSize?: Maybe<Scalars['Float']>;
128
128
  zimbraMailBlacklistMaxNumEntries?: Maybe<Scalars['Int']>;
129
129
  zimbraMailQuota?: Maybe<Scalars['String']>;
130
+ zimbraMailSignatureMaxLength?: Maybe<Scalars['Float']>;
130
131
  zimbraMtaMaxMessageSize?: Maybe<Scalars['Float']>;
132
+ zimbraPasswordAllowUsername?: Maybe<Scalars['Boolean']>;
131
133
  zimbraPasswordAllowedChars?: Maybe<Scalars['String']>;
132
134
  zimbraPasswordAllowedPunctuationChars?: Maybe<Scalars['String']>;
133
135
  zimbraPasswordBlockCommonEnabled?: Maybe<Scalars['Boolean']>;
@@ -710,6 +712,7 @@ export declare type ClientInfoAttributes = {
710
712
  zimbraFeatureResetPasswordStatus?: Maybe<ResetPasswordStatus>;
711
713
  zimbraWebClientLoginURL?: Maybe<Scalars['String']>;
712
714
  zimbraWebClientLogoutURL?: Maybe<Scalars['String']>;
715
+ zimbraWebClientSkipLogoff?: Maybe<Scalars['Boolean']>;
713
716
  };
714
717
  export declare type ClientInfoType = {
715
718
  __typename?: 'ClientInfoType';
@@ -1142,6 +1145,7 @@ export declare type Document = {
1142
1145
  contentType?: Maybe<Scalars['String']>;
1143
1146
  date?: Maybe<Scalars['Float']>;
1144
1147
  descriptionEnabled?: Maybe<Scalars['Boolean']>;
1148
+ docs?: Maybe<Array<Maybe<Document>>>;
1145
1149
  flags?: Maybe<Scalars['String']>;
1146
1150
  folderId?: Maybe<Scalars['ID']>;
1147
1151
  folderUuid?: Maybe<Scalars['String']>;
@@ -2211,6 +2215,7 @@ export declare type Mutation = {
2211
2215
  prefOutOfOfficeFromDate?: Maybe<Scalars['String']>;
2212
2216
  prefOutOfOfficeReply?: Maybe<Scalars['String']>;
2213
2217
  prefOutOfOfficeUntilDate?: Maybe<Scalars['String']>;
2218
+ purgeRevision?: Maybe<Scalars['Boolean']>;
2214
2219
  quarantineDeviceSync?: Maybe<Device>;
2215
2220
  recoverAccount?: Maybe<RecoverAccount>;
2216
2221
  remoteWipeSync?: Maybe<Device>;
@@ -2497,6 +2502,11 @@ export declare type MutationPrefOutOfOfficeReplyArgs = {
2497
2502
  export declare type MutationPrefOutOfOfficeUntilDateArgs = {
2498
2503
  value: Scalars['String'];
2499
2504
  };
2505
+ export declare type MutationPurgeRevisionArgs = {
2506
+ id: Scalars['ID'];
2507
+ includeOlderRevisions?: InputMaybe<Scalars['Int']>;
2508
+ ver: Scalars['Int'];
2509
+ };
2500
2510
  export declare type MutationQuarantineDeviceSyncArgs = {
2501
2511
  deviceId?: InputMaybe<Scalars['String']>;
2502
2512
  };
@@ -2829,6 +2839,11 @@ export declare type PropertiesInput = {
2829
2839
  name: Scalars['String'];
2830
2840
  zimlet: Scalars['String'];
2831
2841
  };
2842
+ export declare type PurgetRevisionInput = {
2843
+ id: Scalars['ID'];
2844
+ includeOlderRevisions?: InputMaybe<Scalars['Int']>;
2845
+ ver: Scalars['Int'];
2846
+ };
2832
2847
  export declare type Query = {
2833
2848
  __typename?: 'Query';
2834
2849
  accountInfo?: Maybe<AccountInfo>;
@@ -2873,6 +2888,7 @@ export declare type Query = {
2873
2888
  getTrustedDevices?: Maybe<GetTrustedDevicesResponse>;
2874
2889
  getWhiteBlackList?: Maybe<WhiteBlackList>;
2875
2890
  getWorkingHours?: Maybe<Array<Maybe<WorkingHours>>>;
2891
+ listDocumentRevisions?: Maybe<Document>;
2876
2892
  noop?: Maybe<NoOpResponse>;
2877
2893
  recoverAccount?: Maybe<RecoverAccount>;
2878
2894
  relatedContacts?: Maybe<Array<Maybe<RelatedContact>>>;
@@ -3027,6 +3043,11 @@ export declare type QueryGetWorkingHoursArgs = {
3027
3043
  names: Array<Scalars['String']>;
3028
3044
  start?: InputMaybe<Scalars['Float']>;
3029
3045
  };
3046
+ export declare type QueryListDocumentRevisionsArgs = {
3047
+ count: Scalars['Int'];
3048
+ id: Scalars['ID'];
3049
+ version: Scalars['Int'];
3050
+ };
3030
3051
  export declare type QueryNoopArgs = {
3031
3052
  limitToOneBlocked?: InputMaybe<Scalars['Int']>;
3032
3053
  wait?: InputMaybe<Scalars['Int']>;
@@ -3232,6 +3253,7 @@ export declare type SaveDocumentInput = {
3232
3253
  action?: InputMaybe<SaveDocumentAction>;
3233
3254
  contentType?: InputMaybe<Scalars['String']>;
3234
3255
  descriptionEnabled?: InputMaybe<Scalars['Boolean']>;
3256
+ document?: InputMaybe<SaveDocumentInput>;
3235
3257
  folderId?: InputMaybe<Scalars['ID']>;
3236
3258
  id?: InputMaybe<Scalars['ID']>;
3237
3259
  messageData?: InputMaybe<Array<InputMaybe<MessagePartForDocument>>>;