Skip to content

Commit

Permalink
ZBUG-3997 Meeting Invitation Mail Shows Conflict Banner Even When No …
Browse files Browse the repository at this point in the history
…Conflict

- Added support of excludeUid on freebusy api.
  • Loading branch information
miteshsavani810 authored and silentsakky committed Jul 4, 2024
1 parent 9fb9c1f commit 75f7f0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/batch-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -952,13 +952,14 @@ export class ZimbraBatchClient {
singleRequest: true
}).then(Boolean);

public freeBusy = ({ start, end, names }: FreeBusyOptions) =>
public freeBusy = ({ start, end, names, excludeUid }: FreeBusyOptions) =>
this.jsonRequest({
name: 'GetFreeBusy',
body: {
s: start,
e: end,
name: names.join(',')
name: names.join(','),
...(excludeUid && { excludeUid })
}
}).then(res => normalize(FreeBusy)(res.usr));

Expand Down
1 change: 1 addition & 0 deletions src/batch-client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export interface ZimbraClientOptions {

export interface FreeBusyOptions {
end: number;
excludeUid: string;
names: Array<string>;
start: number;
}
Expand Down
1 change: 1 addition & 0 deletions src/schema/generated-schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3686,6 +3686,7 @@ export type QueryDownloadMessageArgs = {

export type QueryFreeBusyArgs = {
end?: InputMaybe<Scalars['Float']['input']>;
excludeUid?: InputMaybe<Scalars['String']['input']>;
names: Array<Scalars['String']['input']>;
start?: InputMaybe<Scalars['Float']['input']>;
};
Expand Down
2 changes: 1 addition & 1 deletion src/schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3472,7 +3472,7 @@ type Query {
downloadDocument(id: ID!, url: String!): Attachment
listDocumentRevisions(id: ID!, version: Int!, count: Int!): Document
discoverRights(right: [DiscoverRightInput!]!): DiscoverRights
freeBusy(names: [String!]!, start: Float, end: Float): [FreeBusy]
freeBusy(names: [String!]!, start: Float, end: Float, excludeUid: String): [FreeBusy]
getContact(
id: ID
ids: [ID!]
Expand Down

0 comments on commit 75f7f0d

Please sign in to comment.