Skip to content

Commit

Permalink
Merge pull request #57 from Zimbra/PREAPPS-803
Browse files Browse the repository at this point in the history
PREAPPS-803: Saved Search context menu
  • Loading branch information
silentsakky authored Sep 18, 2018
2 parents 620c6fc + 7bed6e0 commit c4e6363
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/batch-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
FolderView,
InviteReplyInput,
PreferencesInput,
SearchFolderInput,
SendMessageInput,
ShareNotificationInput,
SignatureInput
Expand Down Expand Up @@ -495,6 +496,12 @@ export class ZimbraBatchClient {
}
});

public modifySearchFolder = (options: SearchFolderInput) =>
this.jsonRequest({
name: 'ModifySearchFolder',
body: options
});

public modifySignature = (options: SignatureInput) =>
this.jsonRequest({
name: 'ModifySignature',
Expand Down
10 changes: 10 additions & 0 deletions src/schema/generated-schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ export interface Mutation {
modifyPrefs?: boolean | null;
modifyFilterRules?: boolean | null;
modifySignature?: string | null;
modifySearchFolder?: boolean | null;
modifyTask?: boolean | null;
moveTask?: string | null;
prefAutoAddAppointmentToCalendar?: boolean | null;
Expand Down Expand Up @@ -1528,6 +1529,12 @@ export interface SizeConditionInput {
negative?: boolean | null;
}

export interface SearchFolderInput {
id: string;
query: string;
types: FolderView;
}

export interface SendMessageInput {
id?: string | null;
origId?: string | null;
Expand Down Expand Up @@ -1836,6 +1843,9 @@ export interface ModifyFilterRulesMutationArgs {
export interface ModifySignatureMutationArgs {
signature: SignatureInput;
}
export interface ModifySearchFolderMutationArgs {
search: SearchFolderInput;
}
export interface ModifyTaskMutationArgs {
task: CalendarItemInput;
}
Expand Down
7 changes: 7 additions & 0 deletions src/schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,12 @@ input SignatureInput {
contentId: String
}

input SearchFolderInput {
id: ID!
query: String!
types: FolderView!
}

input SignatureContentInput {
type: String
_content: String
Expand Down Expand Up @@ -1992,6 +1998,7 @@ type Mutation {
modifyPrefs(prefs: PreferencesInput!): Boolean
modifyFilterRules(filters: [FilterInput!]): Boolean
modifySignature(signature: SignatureInput!): String
modifySearchFolder(search: SearchFolderInput!): Boolean
modifyTask(task: CalendarItemInput!): Boolean
moveTask(inviteId: ID!, destFolderId: ID!): String
prefAutoAddAppointmentToCalendar(value: Boolean!): Boolean
Expand Down
3 changes: 3 additions & 0 deletions src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
InviteReplyInput,
NameIdInput,
PreferencesInput,
SearchFolderInput,
SendMessageInput,
ShareNotificationInput,
SignatureInput,
Expand Down Expand Up @@ -265,6 +266,8 @@ export function createZimbraSchema(
client.createSignature(variables as SignatureInput),
modifySignature: (_, variables) =>
client.modifySignature(variables as SignatureInput),
modifySearchFolder: (_, variables) =>
client.modifySearchFolder(variables as SearchFolderInput),
deleteSignature: (_, variables) =>
client.deleteSignature(variables as NameIdInput),
saveDraft: (_, variables) =>
Expand Down

0 comments on commit c4e6363

Please sign in to comment.