@zimbra/api-client 100.0.0 → 100.1.1-master.dc4f391.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.
@@ -181,6 +181,11 @@ enum AddressType {
181
181
  rf # resent-from
182
182
  }
183
183
 
184
+ enum ConversationOrderBy {
185
+ dateAsc
186
+ dateDesc
187
+ }
188
+
184
189
  # https://github.com/Zimbra/zm-mailbox/blob/develop/store/docs/acl.md
185
190
  enum GranteeType {
186
191
  usr # Zimbra User
@@ -1719,6 +1724,7 @@ type Preferences {
1719
1724
  zimbraPrefPop3DownloadSince: String
1720
1725
  zimbraPrefPop3IncludeSpam: Boolean
1721
1726
  zimbraPrefPop3DeleteOption: Pop3DeleteOption
1727
+ zimbraPrefConversationOrder: ConversationOrderBy
1722
1728
  }
1723
1729
 
1724
1730
  type GetAppointmentResponse {
@@ -2673,7 +2679,7 @@ input FolderActionChangeColorInput {
2673
2679
  color: Int!
2674
2680
  }
2675
2681
 
2676
- # Special case of FolderAction for `checkCalendar` resolver
2682
+ # Special case of FolderAction for `checkCalendars` resolver
2677
2683
  input FolderActionCheckCalendarInput {
2678
2684
  id: ID!
2679
2685
  value: Boolean
@@ -2809,6 +2815,7 @@ input PreferencesInput {
2809
2815
  zimbraPrefPop3DownloadSince: String
2810
2816
  zimbraPrefPop3IncludeSpam: Boolean
2811
2817
  zimbraPrefPop3DeleteOption: Pop3DeleteOption
2818
+ zimbraPrefConversationOrder: ConversationOrderBy
2812
2819
  }
2813
2820
 
2814
2821
  input ModifyIdentityInput {
@@ -3750,7 +3757,7 @@ type Mutation {
3750
3757
  content: String
3751
3758
  contentType: String
3752
3759
  ): ProfileImageChangeResponse
3753
- checkCalendar(id: ID!, value: Boolean!): ActionOpResponse
3760
+ checkCalendars(actions: [FolderActionCheckCalendarInput!]): [ActionOpResponse]
3754
3761
  contactAction(
3755
3762
  id: ID
3756
3763
  ids: [ID!]
@@ -18,22 +18,22 @@ export declare class ZimbraBatchClient {
18
18
  private userAgent?;
19
19
  constructor(options?: ZimbraClientOptions);
20
20
  accountInfo: () => Promise<any>;
21
- accountOnlyRemoteWipeSync: (deviceId: String) => Promise<any>;
21
+ accountOnlyRemoteWipeSync: (deviceId: string) => Promise<any>;
22
22
  action: (type: ActionType, options: ActionOptions) => Promise<boolean>;
23
23
  addExternalAccount: ({ accountType, ...accountInfo }: ExternalAccountAddInput) => Promise<any>;
24
24
  addMessage: (message: AddMsgInput) => Promise<any>;
25
- allowDeviceSync: (deviceId: String) => Promise<any>;
25
+ allowDeviceSync: (deviceId: string) => Promise<any>;
26
26
  applyFilterRules: ({ ids, filterRules }: ApplyFilterRulesOptions) => Promise<any>;
27
27
  attach: (files: any, message: any) => any;
28
28
  autoComplete: (options: AutoCompleteOptions) => Promise<any>;
29
29
  autoCompleteGAL: (options: AutoCompleteGALOptions) => Promise<any>;
30
- blockDeviceSync: (deviceId: String) => Promise<any>;
31
- cancelPendingAccountOnlyRemoteWipeSync: (deviceId: String) => Promise<any>;
32
- cancelPendingRemoteWipeSync: (deviceId: String) => Promise<any>;
30
+ blockDeviceSync: (deviceId: string) => Promise<any>;
31
+ cancelPendingAccountOnlyRemoteWipeSync: (deviceId: string) => Promise<any>;
32
+ cancelPendingRemoteWipeSync: (deviceId: string) => Promise<any>;
33
33
  cancelTask: ({ inviteId }: any) => Promise<boolean>;
34
34
  changeFolderColor: ({ id, color }: FolderActionChangeColorInput) => Promise<boolean>;
35
35
  changePassword: ({ loginNewPassword, password, username, dryRun, authToken }: ChangePasswordOptions) => Promise<any>;
36
- checkCalendar: ({ id, value }: FolderActionCheckCalendarInput) => Promise<ActionOpResponse>;
36
+ checkCalendars: (actions: FolderActionCheckCalendarInput[]) => Promise<ActionOpResponse[]>;
37
37
  clientInfo: ({ by, domain }: any) => Promise<any>;
38
38
  contactAction: (options: ActionOptions) => Promise<boolean>;
39
39
  conversationAction: (options: ActionOptions) => Promise<boolean>;
@@ -79,8 +79,8 @@ export declare class ZimbraBatchClient {
79
79
  forwardAppointment: (body: ForwardAppointmentInput) => Promise<boolean>;
80
80
  forwardAppointmentInvite: (body: ForwardAppointmentInviteInput) => Promise<boolean>;
81
81
  freeBusy: ({ start, end, names, excludeUid }: FreeBusyOptions) => Promise<any>;
82
- generateScratchCodes: (username: String) => Promise<any>;
83
- getAccountDistributionLists: (attrs: String, ownerOf: number) => Promise<{
82
+ generateScratchCodes: (username: string) => Promise<any>;
83
+ getAccountDistributionLists: (attrs: string, ownerOf: number) => Promise<{
84
84
  dls: any;
85
85
  }>;
86
86
  getAppointment: (options: AppointmentOptions) => Promise<any>;
@@ -94,8 +94,8 @@ export declare class ZimbraBatchClient {
94
94
  getCustomMetadata: ({ id, section }: GetCustomMetadataOptions) => Promise<{}>;
95
95
  getDataSources: () => Promise<{}>;
96
96
  getDeviceStatus: () => Promise<any>;
97
- getDistributionList: (dl: String, needOwners: Boolean, needRights: String, by: String) => Promise<any>;
98
- getDistributionListMembers: (limit: String, offset: String, dl: String) => Promise<any>;
97
+ getDistributionList: (dl: string, needOwners: boolean, needRights: string, by: string) => Promise<any>;
98
+ getDistributionListMembers: (limit: string, offset: string, dl: string) => Promise<any>;
99
99
  getDocumentShareURL: (options: GetDocumentShareURLOptions) => Promise<any>;
100
100
  getFilterRules: () => Promise<any>;
101
101
  getFolder: (options: GetFolderOptions) => Promise<any>;
@@ -113,7 +113,7 @@ export declare class ZimbraBatchClient {
113
113
  getPreferences: () => Promise<any>;
114
114
  getProfileImageUrl: (profileImageId: any) => string;
115
115
  getRights: (options: GetRightsInput) => Promise<any>;
116
- getScratchCodes: (username: String) => Promise<any>;
116
+ getScratchCodes: (username: string) => Promise<any>;
117
117
  getSearchFolder: () => Promise<{
118
118
  folders: any;
119
119
  } | {
@@ -150,11 +150,11 @@ export declare class ZimbraBatchClient {
150
150
  modifyZimletPrefs: (zimlet: Array<ZimletPreferenceInput>) => Promise<any>;
151
151
  noop: ({ wait, limitToOneBlocked }: NoOpOptions, fetchOptions: any) => Promise<any>;
152
152
  purgeRevision: ({ id, ver, includeOlderRevisions }: any) => Promise<boolean>;
153
- quarantineDeviceSync: (deviceId: String) => Promise<any>;
153
+ quarantineDeviceSync: (deviceId: string) => Promise<any>;
154
154
  recoverAccount: ({ channel, email, op }: RecoverAccountOptions) => Promise<any>;
155
155
  relatedContacts: ({ email }: RelatedContactsOptions) => Promise<any>;
156
- remoteWipeSync: (deviceId: String) => Promise<any>;
157
- removeDeviceSync: (deviceId: String) => Promise<any>;
156
+ remoteWipeSync: (deviceId: string) => Promise<any>;
157
+ removeDeviceSync: (deviceId: string) => Promise<any>;
158
158
  resetPassword: ({ password, dryRun, getPasswordRules, cancelResetPassword }: ResetPasswordOptions) => Promise<{}>;
159
159
  resolve: (path: string) => string;
160
160
  revokeAppSpecificPassword: (appName: string) => Promise<boolean>;
@@ -173,17 +173,17 @@ export declare class ZimbraBatchClient {
173
173
  searchGal: (options: SearchOptions) => Promise<any>;
174
174
  sendDeliveryReport: (messageId: string) => Promise<boolean>;
175
175
  sendInviteReply: (requestOptions: InviteReplyInput) => Promise<any>;
176
- sendMessage: (message: SendMessageInput, accountName: string, sign: Boolean, encrypt: Boolean) => Promise<any>;
176
+ sendMessage: (message: SendMessageInput, accountName: string, sign: boolean, encrypt: boolean) => Promise<any>;
177
177
  sendShareNotification: (body: ShareNotificationInput) => Promise<boolean>;
178
178
  sendTwoFactorAuthCode: ({ action, authToken }: SendTwoFactorAuthCodeInput) => Promise<any>;
179
179
  setCsrfToken: (csrfToken: string) => void;
180
180
  setCustomMetadata: (variables: any) => Promise<boolean>;
181
181
  setJwtToken: (jwtToken: string) => void;
182
182
  setRecoveryAccount: (options: SetRecoveryAccountOptions) => Promise<boolean>;
183
- setUserAgent: (userAgent: Object) => void;
183
+ setUserAgent: (userAgent: object) => void;
184
184
  shareInfo: (options: ShareInfoOptions) => Promise<any>;
185
185
  snoozeCalendarItem: (appointment: any, task: any) => Promise<boolean>;
186
- subscribeDistributionList: (op: String, by: String, dl: String) => Promise<any>;
186
+ subscribeDistributionList: (op: string, by: string, dl: string) => Promise<any>;
187
187
  taskFolders: () => Promise<any>;
188
188
  testExternalAccount: ({ accountType, ...accountInfo }: ExternalAccountTestInput) => Promise<{}>;
189
189
  uploadMessage: (message: string) => any;
@@ -119,7 +119,7 @@ export interface GetMailItemOptions {
119
119
  header?: Array<MailItemHeader>;
120
120
  html?: boolean;
121
121
  id: string;
122
- ids: [String];
122
+ ids: [string];
123
123
  isLocal?: boolean;
124
124
  max?: number;
125
125
  needExp?: boolean;
@@ -143,16 +143,16 @@ export interface AppointmentOptions {
143
143
  export interface SaveDocumentInput {
144
144
  content: string;
145
145
  ct: string;
146
- descEnabled: Boolean;
146
+ descEnabled: boolean;
147
147
  id: string;
148
148
  l: string;
149
149
  name: string;
150
150
  upload: UploadDocument;
151
- ver: Number;
151
+ ver: number;
152
152
  }
153
153
  export interface SearchOptions {
154
- calExpandInstEnd?: Number;
155
- calExpandInstStart?: Number;
154
+ calExpandInstEnd?: number;
155
+ calExpandInstStart?: number;
156
156
  cursor?: Cursor;
157
157
  fetch?: string;
158
158
  fullConversation?: boolean;
@@ -171,9 +171,9 @@ export interface SearchOptions {
171
171
  tz?: Timezone;
172
172
  }
173
173
  export interface SearchCalendarResourcesCondition {
174
- attr?: String;
175
- op?: String;
176
- value?: String;
174
+ attr?: string;
175
+ op?: string;
176
+ value?: string;
177
177
  }
178
178
  export interface SearchCalendarResourcesOptions {
179
179
  attrs?: string;
@@ -188,8 +188,8 @@ export interface SearchCalendarResourcesOptions {
188
188
  }
189
189
  export interface ShareInfoOptions {
190
190
  grantee?: Grantee;
191
- includeSelf?: Boolean;
192
- internal?: Boolean;
191
+ includeSelf?: boolean;
192
+ internal?: boolean;
193
193
  owner?: Owner;
194
194
  }
195
195
  export interface ChangePasswordOptions {
@@ -224,7 +224,7 @@ export interface ActionOptions {
224
224
  isLocal?: boolean;
225
225
  name?: string;
226
226
  op: string;
227
- recursive?: Boolean;
227
+ recursive?: boolean;
228
228
  rgb?: string;
229
229
  tagNames?: string;
230
230
  }
@@ -17,14 +17,14 @@ export interface BaseRequestOptions {
17
17
  authToken?: string;
18
18
  credentials?: RequestCredentials;
19
19
  csrfToken?: string | null;
20
- encrypt?: Boolean;
20
+ encrypt?: boolean;
21
21
  fetchOptions?: any;
22
22
  headers?: any;
23
23
  jwtToken?: string | null;
24
24
  origin?: string;
25
25
  sessionId?: SessionId;
26
26
  sessionSeq?: SessionSeq;
27
- sign?: Boolean;
27
+ sign?: boolean;
28
28
  singleRequest?: boolean;
29
29
  soapPathname?: string;
30
30
  userAgent?: UserAgent;
@@ -1066,6 +1066,10 @@ export type ConversationConditionInput = {
1066
1066
  negative?: InputMaybe<Scalars['Boolean']['input']>;
1067
1067
  where?: InputMaybe<Scalars['String']['input']>;
1068
1068
  };
1069
+ export declare enum ConversationOrderBy {
1070
+ DateAsc = "dateAsc",
1071
+ DateDesc = "dateDesc"
1072
+ }
1069
1073
  export type CounterAppointmentInput = {
1070
1074
  componentNum?: InputMaybe<Scalars['Int']['input']>;
1071
1075
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -2421,7 +2425,7 @@ export type Mutation = {
2421
2425
  cancelTask?: Maybe<Scalars['Boolean']['output']>;
2422
2426
  changeFolderColor?: Maybe<Scalars['Boolean']['output']>;
2423
2427
  changePassword?: Maybe<AuthResponse>;
2424
- checkCalendar?: Maybe<ActionOpResponse>;
2428
+ checkCalendars?: Maybe<Array<Maybe<ActionOpResponse>>>;
2425
2429
  contactAction?: Maybe<ActionOpResponse>;
2426
2430
  conversationAction?: Maybe<Scalars['Boolean']['output']>;
2427
2431
  counterAppointment?: Maybe<Scalars['Boolean']['output']>;
@@ -2562,9 +2566,8 @@ export type MutationChangePasswordArgs = {
2562
2566
  password: Scalars['String']['input'];
2563
2567
  username: Scalars['String']['input'];
2564
2568
  };
2565
- export type MutationCheckCalendarArgs = {
2566
- id: Scalars['ID']['input'];
2567
- value: Scalars['Boolean']['input'];
2569
+ export type MutationCheckCalendarsArgs = {
2570
+ actions?: InputMaybe<Array<FolderActionCheckCalendarInput>>;
2568
2571
  };
2569
2572
  export type MutationContactActionArgs = {
2570
2573
  folderId?: InputMaybe<Scalars['ID']['input']>;
@@ -3026,6 +3029,7 @@ export type Preferences = {
3026
3029
  zimbraPrefClientType?: Maybe<PrefClientType>;
3027
3030
  zimbraPrefComposeDirection?: Maybe<Scalars['String']['output']>;
3028
3031
  zimbraPrefComposeFormat?: Maybe<Mode>;
3032
+ zimbraPrefConversationOrder?: Maybe<ConversationOrderBy>;
3029
3033
  zimbraPrefDefaultCalendarId?: Maybe<Scalars['ID']['output']>;
3030
3034
  zimbraPrefDelegatedSendSaveTarget?: Maybe<PrefDelegatedSendSaveTarget>;
3031
3035
  zimbraPrefDeleteInviteOnReply?: Maybe<Scalars['Boolean']['output']>;
@@ -3097,6 +3101,7 @@ export type PreferencesInput = {
3097
3101
  zimbraPrefClientType?: InputMaybe<PrefClientType>;
3098
3102
  zimbraPrefComposeDirection?: InputMaybe<Scalars['String']['input']>;
3099
3103
  zimbraPrefComposeFormat?: InputMaybe<Mode>;
3104
+ zimbraPrefConversationOrder?: InputMaybe<ConversationOrderBy>;
3100
3105
  zimbraPrefDefaultCalendarId?: InputMaybe<Scalars['ID']['input']>;
3101
3106
  zimbraPrefDelegatedSendSaveTarget?: InputMaybe<PrefDelegatedSendSaveTarget>;
3102
3107
  zimbraPrefDeleteInviteOnReply?: InputMaybe<Scalars['Boolean']['input']>;
@@ -2,7 +2,7 @@ export declare function setCustomMetaDataBody(data: any): {
2
2
  id: any;
3
3
  meta: {
4
4
  section: any;
5
- _attrs: Object[];
5
+ _attrs: object[];
6
6
  };
7
7
  };
8
8
  export declare function normalizeCustomMetaDataAttrs(data: any): any;
@@ -1,4 +1,4 @@
1
- export declare function createContactBody(data: any, isDesktop: Boolean): {
1
+ export declare function createContactBody(data: any, isDesktop: boolean): {
2
2
  cn: any;
3
3
  };
4
4
  export declare function normalizeOtherAttr(data: any): any;