@zimbra/api-client 98.0.0 → 100.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.
Files changed (36) hide show
  1. package/.babelrc.json +1 -2
  2. package/dist/schema.graphql +37 -3
  3. package/dist/src/apollo/local-batch-link.d.ts +0 -1
  4. package/dist/src/apollo/offline-queue-link/index.d.ts +1 -4
  5. package/dist/src/batch-client/index.d.ts +4 -1
  6. package/dist/src/batch-client/types.d.ts +2 -1
  7. package/dist/src/normalize/entities.d.ts +1 -0
  8. package/dist/src/normalize/index.d.ts +1 -1
  9. package/dist/src/request/types.d.ts +0 -1
  10. package/dist/src/schema/generated-schema-types.d.ts +38 -2
  11. package/dist/src/utils/map-values-deep.d.ts +1 -0
  12. package/dist/zm-api-js-client.esm.js +660 -355
  13. package/dist/zm-api-js-client.esm.js.map +1 -1
  14. package/dist/zm-api-js-client.js +8 -8
  15. package/dist/zm-api-js-client.js.map +1 -1
  16. package/dist/zm-api-js-client.umd.js +8 -8
  17. package/dist/zm-api-js-client.umd.js.map +1 -1
  18. package/package-lock.json +832 -1399
  19. package/package.json +6 -6
  20. package/rollup.config.js +1 -1
  21. package/src/apollo/offline-queue-link/util.ts +1 -2
  22. package/src/apollo/zimbra-error-link.ts +4 -3
  23. package/src/apollo/zimbra-in-memory-cache.ts +38 -8
  24. package/src/batch-client/index.ts +74 -44
  25. package/src/batch-client/types.ts +2 -1
  26. package/src/normalize/entities.ts +10 -3
  27. package/src/normalize/index.ts +42 -39
  28. package/src/request/index.ts +36 -48
  29. package/src/request/types.ts +0 -1
  30. package/src/schema/generated-schema-types.ts +41 -2
  31. package/src/schema/schema.graphql +37 -3
  32. package/src/schema/schema.ts +3 -2
  33. package/src/schema/session-handler.ts +1 -2
  34. package/src/utils/map-values-deep.ts +10 -2
  35. package/src/utils/normalize-attrs-custommetadata.ts +5 -6
  36. package/src/utils/normalize-otherAttribute-contact.ts +29 -19
package/.babelrc.json CHANGED
@@ -4,8 +4,7 @@
4
4
  "@babel/typescript"
5
5
  ],
6
6
  "plugins": [
7
- "@babel/proposal-class-properties",
8
- "lodash"
7
+ "@babel/proposal-class-properties"
9
8
  ],
10
9
  "env": {
11
10
  "test": {
@@ -203,6 +203,7 @@ enum SearchType {
203
203
  wiki
204
204
  document
205
205
  unknown
206
+ briefcase
206
207
  }
207
208
 
208
209
  enum ContactType {
@@ -322,6 +323,13 @@ enum PrefClientType {
322
323
  standard
323
324
  }
324
325
 
326
+ enum Pop3DeleteOption {
327
+ keep
328
+ read
329
+ trash
330
+ delete
331
+ }
332
+
325
333
  enum Mode {
326
334
  text
327
335
  html
@@ -1070,7 +1078,7 @@ type SizeCondition {
1070
1078
  }
1071
1079
 
1072
1080
  type FilterCondition {
1073
- allOrAny: FilterMatchCondition! # condition
1081
+ allOrAny: FilterMatchCondition # condition
1074
1082
  addressBook: [HeaderCheckCondition] # addressBookTest
1075
1083
  address: [AddressCondition] # addressTest
1076
1084
  attachment: [BasicCondition] # attachmentTest
@@ -1551,6 +1559,9 @@ type AccountInfoAttrs {
1551
1559
  zimbraFeatureAdvancedChatEnabled: Boolean
1552
1560
  zimbraMailIdleSessionTimeout: String
1553
1561
  zimbraFeatureDeliveryStatusNotificationEnabled: Boolean
1562
+ zimbraPop3Enabled: Boolean
1563
+ zimbraFeatureOptionsEnabled: Boolean
1564
+ zimbraFeatureContactsEnabled: Boolean
1554
1565
  }
1555
1566
 
1556
1567
  type AccountCos {
@@ -1697,11 +1708,17 @@ type Preferences {
1697
1708
  zimbraPrefUseTimeZoneListInCalendar: Boolean
1698
1709
  zimbraPrefMailForwardingAddress: String
1699
1710
  zimbraPrefMailLocalDeliveryDisabled: Boolean
1711
+ zimbraPrefFolderTreeOpen: Boolean
1700
1712
  zimbraPrefTagTreeOpen: Boolean
1701
1713
  zimbraPrefPowerPasteEnabled: Boolean
1702
1714
  zimbraPrefDisplayTimeInMailList: Boolean
1703
1715
  zimbraPrefPrimaryTwoFactorAuthMethod: String
1704
1716
  zimbraPrefMailDeliveryStatusNotification: Boolean
1717
+ zimbraPrefImapEnabled: Boolean
1718
+ zimbraPrefPop3Enabled: Boolean
1719
+ zimbraPrefPop3DownloadSince: String
1720
+ zimbraPrefPop3IncludeSpam: Boolean
1721
+ zimbraPrefPop3DeleteOption: Pop3DeleteOption
1705
1722
  }
1706
1723
 
1707
1724
  type GetAppointmentResponse {
@@ -2136,6 +2153,7 @@ type MailboxMetadataAttrs {
2136
2153
  zimbraPrefContactSourceFolderID: String
2137
2154
  zimbraPrefHideMuteConvModal: Boolean
2138
2155
  zimbraPrefColorMode: String
2156
+ zimbraPrefSidebarCollapsed: Boolean
2139
2157
  }
2140
2158
 
2141
2159
  type MailboxMetadataMeta {
@@ -2172,6 +2190,7 @@ input MailboxMetadataSectionAttrsInput {
2172
2190
  zimbraPrefContactSourceFolderID: String
2173
2191
  zimbraPrefHideMuteConvModal: Boolean
2174
2192
  zimbraPrefColorMode: String
2193
+ zimbraPrefSidebarCollapsed: Boolean
2175
2194
  }
2176
2195
 
2177
2196
  type MimePart {
@@ -2429,7 +2448,8 @@ input CalendarItemInviteComponentCounterInput {
2429
2448
  status: InviteCompletionStatus
2430
2449
  noBlob: Boolean
2431
2450
  description: [CalendarItemInviteComponentDescriptionInput]
2432
- draft: Boolean
2451
+ draft: Boolean,
2452
+ seq: Int
2433
2453
  }
2434
2454
 
2435
2455
  type CalendarItemAttendee {
@@ -2439,11 +2459,13 @@ type CalendarItemAttendee {
2439
2459
  address: String
2440
2460
  name: String
2441
2461
  calendarUserType: String
2462
+ isGroup: Boolean
2442
2463
  }
2443
2464
 
2444
2465
  type CalendarItemReply {
2445
2466
  participationStatus: ParticipationStatus
2446
2467
  address: String
2468
+ isGroup: Boolean
2447
2469
  }
2448
2470
 
2449
2471
  input CalendarItemAttendeesInput {
@@ -2621,6 +2643,7 @@ input FolderActionInput {
2621
2643
  folderId: ID
2622
2644
  zimbraId: ID
2623
2645
  color: Int,
2646
+ rgb: String,
2624
2647
  retentionPolicy: [RetentionPolicyInput]
2625
2648
  }
2626
2649
 
@@ -2641,6 +2664,7 @@ input PolicyAttrsInput {
2641
2664
  input CreateTagInput {
2642
2665
  name: String!
2643
2666
  color: Int
2667
+ rgb: String
2644
2668
  }
2645
2669
 
2646
2670
  # Special case of FolderAction for `changeFolderColor` resolver
@@ -2773,12 +2797,18 @@ input PreferencesInput {
2773
2797
  zimbraPrefUseTimeZoneListInCalendar: Boolean
2774
2798
  zimbraPrefMailForwardingAddress: String
2775
2799
  zimbraPrefMailLocalDeliveryDisabled: Boolean
2800
+ zimbraPrefFolderTreeOpen: Boolean
2776
2801
  zimbraPrefTagTreeOpen: Boolean
2777
2802
  zimbraPrefPowerPasteEnabled: Boolean
2778
2803
  zimbraPrefDisplayTimeInMailList: Boolean
2779
2804
  zimbraPrefPrimaryTwoFactorAuthMethod: String
2780
2805
  zimbraPrefDeleteInviteOnReply: Boolean
2781
2806
  zimbraPrefMailDeliveryStatusNotification: Boolean
2807
+ zimbraPrefImapEnabled: Boolean
2808
+ zimbraPrefPop3Enabled: Boolean
2809
+ zimbraPrefPop3DownloadSince: String
2810
+ zimbraPrefPop3IncludeSpam: Boolean
2811
+ zimbraPrefPop3DeleteOption: Pop3DeleteOption
2782
2812
  }
2783
2813
 
2784
2814
  input ModifyIdentityInput {
@@ -3247,6 +3277,7 @@ input SaveDocumentInput {
3247
3277
  name: String #name
3248
3278
  version: Float #ver # Note :same item may have different versions (i.e same names) will need to implement ListDocumentRevisionsRequest
3249
3279
  contentType: String #ct
3280
+ content: String
3250
3281
  upload: uploadDocument #upload with a id
3251
3282
  messageData: [messagePartForDocument] #m
3252
3283
  descriptionEnabled: Boolean #descEnabled
@@ -3510,6 +3541,7 @@ type Query {
3510
3541
  downloadAttachment(id: ID!, part: ID!): Attachment
3511
3542
  downloadDocument(id: ID!, url: String!): Attachment
3512
3543
  listDocumentRevisions(id: ID!, version: Int!, count: Int!): Document
3544
+ getItem(id: ID!): Document
3513
3545
  discoverRights(right: [DiscoverRightInput!]!): DiscoverRights
3514
3546
  freeBusy(names: [String!]!, start: Float, end: Float, excludeUid: String): [FreeBusy]
3515
3547
  getContact(
@@ -3694,6 +3726,7 @@ type Mutation {
3694
3726
  tagNames: String
3695
3727
  name: String
3696
3728
  isLocal: Boolean
3729
+ isBatchOperation: Boolean
3697
3730
  recursive: Boolean
3698
3731
  destFolderLocal: Boolean
3699
3732
  ): Boolean
@@ -3712,7 +3745,6 @@ type Mutation {
3712
3745
  password: String!
3713
3746
  username: String!
3714
3747
  authToken: String
3715
- csrfToken: String
3716
3748
  ): AuthResponse
3717
3749
  modifyProfileImage(
3718
3750
  content: String
@@ -3725,6 +3757,7 @@ type Mutation {
3725
3757
  folderId: ID
3726
3758
  op: String!
3727
3759
  tagNames: String
3760
+ isBatchOperation: Boolean
3728
3761
  ): ActionOpResponse
3729
3762
  conversationAction(ids: [ID!]!, op: String!): Boolean
3730
3763
  counterAppointment(
@@ -3787,6 +3820,7 @@ type Mutation {
3787
3820
  op: String!
3788
3821
  tagNames: String
3789
3822
  name: String
3823
+ isBatchOperation: Boolean
3790
3824
  ): Boolean
3791
3825
  importExternalAccount(externalAccount: ExternalAccountImportInput!): Boolean
3792
3826
  logout: Boolean
@@ -1,4 +1,3 @@
1
- /// <reference types="zen-observable" />
2
1
  import { ApolloLink, FetchResult, Observable, Operation } from '@apollo/client/core';
3
2
  import { LocalBatchLinkOptions } from './types';
4
3
  export declare class LocalBatchLink extends ApolloLink {
@@ -1,4 +1,3 @@
1
- /// <reference types="zen-observable" />
2
1
  import { ApolloLink, FetchResult, NextLink, Observable, Operation } from '@apollo/client/core';
3
2
  import { OfflineQueueLinkOptions, OperationEntry, StorageProvider } from './types';
4
3
  export declare class OfflineQueueLink extends ApolloLink {
@@ -17,9 +16,7 @@ export declare class OfflineQueueLink extends ApolloLink {
17
16
  }) => Promise<void> | undefined;
18
17
  persist: () => Promise<any>;
19
18
  purge: () => Promise<any>;
20
- request(operation: Operation, forward: NextLink): Observable<FetchResult<{
21
- [key: string]: any;
22
- }, Record<string, any>, Record<string, any>>>;
19
+ request(operation: Operation, forward: NextLink): Observable<FetchResult>;
23
20
  retry: () => Promise<void>;
24
21
  sync: ({ apolloClient }: {
25
22
  apolloClient?: any;
@@ -32,7 +32,7 @@ export declare class ZimbraBatchClient {
32
32
  cancelPendingRemoteWipeSync: (deviceId: String) => Promise<any>;
33
33
  cancelTask: ({ inviteId }: any) => Promise<boolean>;
34
34
  changeFolderColor: ({ id, color }: FolderActionChangeColorInput) => Promise<boolean>;
35
- changePassword: ({ loginNewPassword, password, username, dryRun, authToken, csrfToken }: ChangePasswordOptions) => Promise<any>;
35
+ changePassword: ({ loginNewPassword, password, username, dryRun, authToken }: ChangePasswordOptions) => Promise<any>;
36
36
  checkCalendar: ({ id, value }: FolderActionCheckCalendarInput) => Promise<ActionOpResponse>;
37
37
  clientInfo: ({ by, domain }: any) => Promise<any>;
38
38
  contactAction: (options: ActionOptions) => Promise<boolean>;
@@ -102,6 +102,9 @@ export declare class ZimbraBatchClient {
102
102
  getHAB: (habRootGroupId: string) => Promise<any>;
103
103
  getIdentities: () => Promise<{}>;
104
104
  getImportStatus: () => Promise<any>;
105
+ getItem: ({ id }: any) => Promise<{
106
+ docs: any;
107
+ }>;
105
108
  getMailboxMetadata: ({ section }: GetMailboxMetadataOptions) => Promise<{}>;
106
109
  getMessage: ({ id, html, raw, header, read, max, ridZ, part }: GetMessageOptions) => Promise<{
107
110
  [key: string]: any;
@@ -141,6 +141,7 @@ export interface AppointmentOptions {
141
141
  id?: string;
142
142
  }
143
143
  export interface SaveDocumentInput {
144
+ content: string;
144
145
  ct: string;
145
146
  descEnabled: Boolean;
146
147
  id: string;
@@ -193,7 +194,6 @@ export interface ShareInfoOptions {
193
194
  }
194
195
  export interface ChangePasswordOptions {
195
196
  authToken: string;
196
- csrfToken: string;
197
197
  dryRun: boolean;
198
198
  loginNewPassword: string;
199
199
  password: string;
@@ -220,6 +220,7 @@ export interface ActionOptions {
220
220
  folderId?: string;
221
221
  id?: string;
222
222
  ids?: Array<string>;
223
+ isBatchOperation?: boolean;
223
224
  isLocal?: boolean;
224
225
  name?: string;
225
226
  op: string;
@@ -32,6 +32,7 @@ export declare const AutoCompleteGALResponse: Entity;
32
32
  export declare const Appointment: Entity;
33
33
  export declare const Document: Entity;
34
34
  export declare const ListDocumentRevisions: Entity;
35
+ export declare const GetItem: Entity;
35
36
  export declare const MessagePartInputForDocuments: Entity;
36
37
  export declare const SaveDocument: Entity;
37
38
  export declare const SearchResponse: Entity;
@@ -4,7 +4,7 @@ export declare class Entity {
4
4
  private mapping;
5
5
  constructor(mapping: EntityMapping);
6
6
  addMapping(mapping: EntityMapping): void;
7
- initInverseMapping(mapping: EntityMapping, accumulator?: {}): EntityMapping;
7
+ initInverseMapping(mapping: EntityMapping, accumulator?: EntityMapping): EntityMapping;
8
8
  inverseKey(k: string): EntityMappingValue;
9
9
  key(k: string): EntityMappingValue;
10
10
  }
@@ -82,7 +82,6 @@ export interface SOAPHeader {
82
82
  authTokenControl?: {
83
83
  voidOnExpired: boolean;
84
84
  };
85
- csrfToken?: string;
86
85
  jwtToken?: {
87
86
  _content: string;
88
87
  };
@@ -122,6 +122,7 @@ export type AccountInfoAttrs = {
122
122
  zimbraFeatureBriefcasesEnabled?: Maybe<Scalars['Boolean']['output']>;
123
123
  zimbraFeatureCalendarEnabled?: Maybe<Scalars['Boolean']['output']>;
124
124
  zimbraFeatureChangePasswordEnabled?: Maybe<Scalars['Boolean']['output']>;
125
+ zimbraFeatureContactsEnabled?: Maybe<Scalars['Boolean']['output']>;
125
126
  zimbraFeatureConversationsEnabled?: Maybe<Scalars['Boolean']['output']>;
126
127
  zimbraFeatureDeliveryStatusNotificationEnabled?: Maybe<Scalars['Boolean']['output']>;
127
128
  zimbraFeatureDiscardInFiltersEnabled?: Maybe<Scalars['Boolean']['output']>;
@@ -146,6 +147,7 @@ export type AccountInfoAttrs = {
146
147
  zimbraFeatureMailSendLaterEnabled?: Maybe<Scalars['Boolean']['output']>;
147
148
  zimbraFeatureManageZimlets?: Maybe<Scalars['Boolean']['output']>;
148
149
  zimbraFeatureMobileSyncEnabled?: Maybe<Scalars['Boolean']['output']>;
150
+ zimbraFeatureOptionsEnabled?: Maybe<Scalars['Boolean']['output']>;
149
151
  zimbraFeatureOutOfOfficeReplyEnabled?: Maybe<Scalars['Boolean']['output']>;
150
152
  zimbraFeaturePop3DataSourceEnabled?: Maybe<Scalars['Boolean']['output']>;
151
153
  zimbraFeaturePowerPasteEnabled?: Maybe<Scalars['Boolean']['output']>;
@@ -192,6 +194,7 @@ export type AccountInfoAttrs = {
192
194
  zimbraPasswordMinNumericChars?: Maybe<Scalars['Int']['output']>;
193
195
  zimbraPasswordMinPunctuationChars?: Maybe<Scalars['Int']['output']>;
194
196
  zimbraPasswordMinUpperCaseChars?: Maybe<Scalars['Int']['output']>;
197
+ zimbraPop3Enabled?: Maybe<Scalars['Boolean']['output']>;
195
198
  zimbraPublicSharingEnabled?: Maybe<Scalars['Boolean']['output']>;
196
199
  zimbraSignupAffiliate?: Maybe<Scalars['String']['output']>;
197
200
  zimbraSignupRecoveryEmail?: Maybe<Scalars['String']['output']>;
@@ -576,6 +579,7 @@ export type CalendarItemAttendee = {
576
579
  __typename?: 'CalendarItemAttendee';
577
580
  address?: Maybe<Scalars['String']['output']>;
578
581
  calendarUserType?: Maybe<Scalars['String']['output']>;
582
+ isGroup?: Maybe<Scalars['Boolean']['output']>;
579
583
  name?: Maybe<Scalars['String']['output']>;
580
584
  participationStatus?: Maybe<ParticipationStatus>;
581
585
  role?: Maybe<ParticipationRole>;
@@ -666,6 +670,7 @@ export type CalendarItemInviteComponentCounterInput = {
666
670
  percentComplete?: InputMaybe<Scalars['String']['input']>;
667
671
  priority?: InputMaybe<Scalars['String']['input']>;
668
672
  recurrence?: InputMaybe<CalendarItemRecurrenceInput>;
673
+ seq?: InputMaybe<Scalars['Int']['input']>;
669
674
  start: CalendarItemDateTimeInput;
670
675
  status?: InputMaybe<InviteCompletionStatus>;
671
676
  uid?: InputMaybe<Scalars['String']['input']>;
@@ -768,6 +773,7 @@ export type CalendarItemRecurrenceRuleInput = {
768
773
  export type CalendarItemReply = {
769
774
  __typename?: 'CalendarItemReply';
770
775
  address?: Maybe<Scalars['String']['output']>;
776
+ isGroup?: Maybe<Scalars['Boolean']['output']>;
771
777
  participationStatus?: Maybe<ParticipationStatus>;
772
778
  };
773
779
  export type CalendarOptionalItemDateTimeInput = {
@@ -1096,6 +1102,7 @@ export type CreateMountpointInput = {
1096
1102
  export type CreateTagInput = {
1097
1103
  color?: InputMaybe<Scalars['Int']['input']>;
1098
1104
  name: Scalars['String']['input'];
1105
+ rgb?: InputMaybe<Scalars['String']['input']>;
1099
1106
  };
1100
1107
  export type CsrfToken = {
1101
1108
  __typename?: 'CsrfToken';
@@ -1555,7 +1562,7 @@ export type FilterCondition = {
1555
1562
  __typename?: 'FilterCondition';
1556
1563
  address?: Maybe<Array<Maybe<AddressCondition>>>;
1557
1564
  addressBook?: Maybe<Array<Maybe<HeaderCheckCondition>>>;
1558
- allOrAny: FilterMatchCondition;
1565
+ allOrAny?: Maybe<FilterMatchCondition>;
1559
1566
  attachment?: Maybe<Array<Maybe<BasicCondition>>>;
1560
1567
  body?: Maybe<Array<Maybe<BodyCondition>>>;
1561
1568
  bulk?: Maybe<Array<Maybe<BasicCondition>>>;
@@ -1687,6 +1694,7 @@ export type FolderActionInput = {
1687
1694
  name?: InputMaybe<Scalars['String']['input']>;
1688
1695
  op: Scalars['String']['input'];
1689
1696
  retentionPolicy?: InputMaybe<Array<InputMaybe<RetentionPolicyInput>>>;
1697
+ rgb?: InputMaybe<Scalars['String']['input']>;
1690
1698
  zimbraId?: InputMaybe<Scalars['ID']['input']>;
1691
1699
  };
1692
1700
  export type FolderQueryInput = {
@@ -2190,6 +2198,7 @@ export type MailboxMetadataAttrs = {
2190
2198
  zimbraPrefSMIMEDefaultSetting?: Maybe<Scalars['String']['output']>;
2191
2199
  zimbraPrefSMIMELastOperation?: Maybe<Scalars['String']['output']>;
2192
2200
  zimbraPrefSharedFolderTreeOpen?: Maybe<Scalars['Boolean']['output']>;
2201
+ zimbraPrefSidebarCollapsed?: Maybe<Scalars['Boolean']['output']>;
2193
2202
  zimbraPrefSmartFolderTreeOpen?: Maybe<Scalars['Boolean']['output']>;
2194
2203
  zimbraPrefTimeFormat?: Maybe<Scalars['String']['output']>;
2195
2204
  zimbraPrefUndoSendEnabled?: Maybe<Scalars['Boolean']['output']>;
@@ -2221,6 +2230,7 @@ export type MailboxMetadataSectionAttrsInput = {
2221
2230
  zimbraPrefSMIMEDefaultSetting?: InputMaybe<Scalars['String']['input']>;
2222
2231
  zimbraPrefSMIMELastOperation?: InputMaybe<Scalars['String']['input']>;
2223
2232
  zimbraPrefSharedFolderTreeOpen?: InputMaybe<Scalars['Boolean']['input']>;
2233
+ zimbraPrefSidebarCollapsed?: InputMaybe<Scalars['Boolean']['input']>;
2224
2234
  zimbraPrefSmartFolderTreeOpen?: InputMaybe<Scalars['Boolean']['input']>;
2225
2235
  zimbraPrefTimeFormat?: InputMaybe<Scalars['String']['input']>;
2226
2236
  zimbraPrefUndoSendEnabled?: InputMaybe<Scalars['Boolean']['input']>;
@@ -2507,6 +2517,7 @@ export type MutationActionArgs = {
2507
2517
  folderId?: InputMaybe<Scalars['ID']['input']>;
2508
2518
  id?: InputMaybe<Scalars['ID']['input']>;
2509
2519
  ids?: InputMaybe<Array<Scalars['ID']['input']>>;
2520
+ isBatchOperation?: InputMaybe<Scalars['Boolean']['input']>;
2510
2521
  isLocal?: InputMaybe<Scalars['Boolean']['input']>;
2511
2522
  name?: InputMaybe<Scalars['String']['input']>;
2512
2523
  op: Scalars['String']['input'];
@@ -2546,7 +2557,6 @@ export type MutationChangeFolderColorArgs = {
2546
2557
  };
2547
2558
  export type MutationChangePasswordArgs = {
2548
2559
  authToken?: InputMaybe<Scalars['String']['input']>;
2549
- csrfToken?: InputMaybe<Scalars['String']['input']>;
2550
2560
  dryRun?: InputMaybe<Scalars['Boolean']['input']>;
2551
2561
  loginNewPassword: Scalars['String']['input'];
2552
2562
  password: Scalars['String']['input'];
@@ -2560,6 +2570,7 @@ export type MutationContactActionArgs = {
2560
2570
  folderId?: InputMaybe<Scalars['ID']['input']>;
2561
2571
  id?: InputMaybe<Scalars['ID']['input']>;
2562
2572
  ids?: InputMaybe<Array<Scalars['ID']['input']>>;
2573
+ isBatchOperation?: InputMaybe<Scalars['Boolean']['input']>;
2563
2574
  op: Scalars['String']['input'];
2564
2575
  tagNames?: InputMaybe<Scalars['String']['input']>;
2565
2576
  };
@@ -2682,6 +2693,7 @@ export type MutationItemActionArgs = {
2682
2693
  folderId?: InputMaybe<Scalars['ID']['input']>;
2683
2694
  id?: InputMaybe<Scalars['ID']['input']>;
2684
2695
  ids?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
2696
+ isBatchOperation?: InputMaybe<Scalars['Boolean']['input']>;
2685
2697
  name?: InputMaybe<Scalars['String']['input']>;
2686
2698
  op: Scalars['String']['input'];
2687
2699
  tagNames?: InputMaybe<Scalars['String']['input']>;
@@ -2960,6 +2972,12 @@ export type PolicyAttrsInput = {
2960
2972
  export type PolicyInput = {
2961
2973
  policy?: InputMaybe<Array<InputMaybe<PolicyAttrsInput>>>;
2962
2974
  };
2975
+ export declare enum Pop3DeleteOption {
2976
+ Delete = "delete",
2977
+ Keep = "keep",
2978
+ Read = "read",
2979
+ Trash = "trash"
2980
+ }
2963
2981
  export declare enum PrefCalendarInitialView {
2964
2982
  Day = "day",
2965
2983
  List = "list",
@@ -3014,11 +3032,13 @@ export type Preferences = {
3014
3032
  zimbraPrefDisplayExternalImages?: Maybe<Scalars['Boolean']['output']>;
3015
3033
  zimbraPrefDisplayTimeInMailList?: Maybe<Scalars['Boolean']['output']>;
3016
3034
  zimbraPrefExternalSendersType?: Maybe<ExternalSendersType>;
3035
+ zimbraPrefFolderTreeOpen?: Maybe<Scalars['Boolean']['output']>;
3017
3036
  zimbraPrefForwardReplyInOriginalFormat?: Maybe<Scalars['Boolean']['output']>;
3018
3037
  zimbraPrefGroupMailBy?: Maybe<Scalars['String']['output']>;
3019
3038
  zimbraPrefHtmlEditorDefaultFontColor?: Maybe<Scalars['String']['output']>;
3020
3039
  zimbraPrefHtmlEditorDefaultFontFamily?: Maybe<Scalars['String']['output']>;
3021
3040
  zimbraPrefHtmlEditorDefaultFontSize?: Maybe<Scalars['String']['output']>;
3041
+ zimbraPrefImapEnabled?: Maybe<Scalars['Boolean']['output']>;
3022
3042
  zimbraPrefLocale?: Maybe<Scalars['String']['output']>;
3023
3043
  zimbraPrefMailDeliveryStatusNotification?: Maybe<Scalars['Boolean']['output']>;
3024
3044
  zimbraPrefMailForwardingAddress?: Maybe<Scalars['String']['output']>;
@@ -3041,6 +3061,10 @@ export type Preferences = {
3041
3061
  zimbraPrefOutOfOfficeUntilDate?: Maybe<Scalars['String']['output']>;
3042
3062
  zimbraPrefPasswordRecoveryAddress?: Maybe<Scalars['String']['output']>;
3043
3063
  zimbraPrefPasswordRecoveryAddressStatus?: Maybe<PasswordRecoveryAddressStatus>;
3064
+ zimbraPrefPop3DeleteOption?: Maybe<Pop3DeleteOption>;
3065
+ zimbraPrefPop3DownloadSince?: Maybe<Scalars['String']['output']>;
3066
+ zimbraPrefPop3Enabled?: Maybe<Scalars['Boolean']['output']>;
3067
+ zimbraPrefPop3IncludeSpam?: Maybe<Scalars['Boolean']['output']>;
3044
3068
  zimbraPrefPowerPasteEnabled?: Maybe<Scalars['Boolean']['output']>;
3045
3069
  zimbraPrefPrimaryTwoFactorAuthMethod?: Maybe<Scalars['String']['output']>;
3046
3070
  zimbraPrefReadingPaneEnabled?: Maybe<Scalars['Boolean']['output']>;
@@ -3079,11 +3103,13 @@ export type PreferencesInput = {
3079
3103
  zimbraPrefDisplayExternalImages?: InputMaybe<Scalars['Boolean']['input']>;
3080
3104
  zimbraPrefDisplayTimeInMailList?: InputMaybe<Scalars['Boolean']['input']>;
3081
3105
  zimbraPrefExternalSendersType?: InputMaybe<ExternalSendersType>;
3106
+ zimbraPrefFolderTreeOpen?: InputMaybe<Scalars['Boolean']['input']>;
3082
3107
  zimbraPrefForwardReplyInOriginalFormat?: InputMaybe<Scalars['Boolean']['input']>;
3083
3108
  zimbraPrefGroupMailBy?: InputMaybe<Scalars['String']['input']>;
3084
3109
  zimbraPrefHtmlEditorDefaultFontColor?: InputMaybe<Scalars['String']['input']>;
3085
3110
  zimbraPrefHtmlEditorDefaultFontFamily?: InputMaybe<Scalars['String']['input']>;
3086
3111
  zimbraPrefHtmlEditorDefaultFontSize?: InputMaybe<Scalars['String']['input']>;
3112
+ zimbraPrefImapEnabled?: InputMaybe<Scalars['Boolean']['input']>;
3087
3113
  zimbraPrefLocale?: InputMaybe<Scalars['String']['input']>;
3088
3114
  zimbraPrefMailDeliveryStatusNotification?: InputMaybe<Scalars['Boolean']['input']>;
3089
3115
  zimbraPrefMailForwardingAddress?: InputMaybe<Scalars['String']['input']>;
@@ -3104,6 +3130,10 @@ export type PreferencesInput = {
3104
3130
  zimbraPrefOutOfOfficeStatusAlertOnLogin?: InputMaybe<Scalars['Boolean']['input']>;
3105
3131
  zimbraPrefOutOfOfficeSuppressExternalReply?: InputMaybe<Scalars['Boolean']['input']>;
3106
3132
  zimbraPrefOutOfOfficeUntilDate?: InputMaybe<Scalars['String']['input']>;
3133
+ zimbraPrefPop3DeleteOption?: InputMaybe<Pop3DeleteOption>;
3134
+ zimbraPrefPop3DownloadSince?: InputMaybe<Scalars['String']['input']>;
3135
+ zimbraPrefPop3Enabled?: InputMaybe<Scalars['Boolean']['input']>;
3136
+ zimbraPrefPop3IncludeSpam?: InputMaybe<Scalars['Boolean']['input']>;
3107
3137
  zimbraPrefPowerPasteEnabled?: InputMaybe<Scalars['Boolean']['input']>;
3108
3138
  zimbraPrefPrimaryTwoFactorAuthMethod?: InputMaybe<Scalars['String']['input']>;
3109
3139
  zimbraPrefReadingPaneEnabled?: InputMaybe<Scalars['Boolean']['input']>;
@@ -3173,6 +3203,7 @@ export type Query = {
3173
3203
  getHAB?: Maybe<HabGroup>;
3174
3204
  getIdentities?: Maybe<Identities>;
3175
3205
  getImportStatus?: Maybe<ImportStatusResponse>;
3206
+ getItem?: Maybe<Document>;
3176
3207
  getMailboxMetadata?: Maybe<MailboxMetadata>;
3177
3208
  getMessage?: Maybe<MessageInfo>;
3178
3209
  getMessagesMetadata?: Maybe<Array<Maybe<MessageInfo>>>;
@@ -3303,6 +3334,9 @@ export type QueryGetFolderArgs = {
3303
3334
  export type QueryGetHabArgs = {
3304
3335
  habRootGroupId?: InputMaybe<Scalars['ID']['input']>;
3305
3336
  };
3337
+ export type QueryGetItemArgs = {
3338
+ id: Scalars['ID']['input'];
3339
+ };
3306
3340
  export type QueryGetMailboxMetadataArgs = {
3307
3341
  section?: InputMaybe<Scalars['String']['input']>;
3308
3342
  };
@@ -3578,6 +3612,7 @@ export declare enum SaveDocumentAction {
3578
3612
  }
3579
3613
  export type SaveDocumentInput = {
3580
3614
  action?: InputMaybe<SaveDocumentAction>;
3615
+ content?: InputMaybe<Scalars['String']['input']>;
3581
3616
  contentType?: InputMaybe<Scalars['String']['input']>;
3582
3617
  descriptionEnabled?: InputMaybe<Scalars['Boolean']['input']>;
3583
3618
  document?: InputMaybe<SaveDocumentInput>;
@@ -3654,6 +3689,7 @@ export type SearchResponse = {
3654
3689
  };
3655
3690
  export declare enum SearchType {
3656
3691
  Appointment = "appointment",
3692
+ Briefcase = "briefcase",
3657
3693
  Contact = "contact",
3658
3694
  Conversation = "conversation",
3659
3695
  Document = "document",
@@ -1 +1,2 @@
1
1
  export declare function mapValuesDeep(obj: {}, callback: (v: any) => any): {};
2
+ export declare function getValueByPath(obj: any, path: string): any;