@zimbra/api-client 64.0.0 → 68.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.
@@ -490,6 +490,8 @@ type ClientInfoType {
490
490
  attributes: ClientInfoAttributes
491
491
  }
492
492
 
493
+ # whenever change/remove key then update the object accordingly in zm-x-web/src/notifications/messages.js on emptyMessage object.
494
+ # otherwise notification will be failed.
493
495
  type MessageInfo implements MailItem {
494
496
  id: ID
495
497
  size: Float # s
@@ -1495,6 +1497,7 @@ type Preferences {
1495
1497
  zimbraPrefMailLocalDeliveryDisabled: Boolean
1496
1498
  zimbraPrefTagTreeOpen: Boolean
1497
1499
  zimbraPrefPowerPasteEnabled: Boolean
1500
+ zimbraPrefDisplayTimeInMailList: Boolean
1498
1501
  }
1499
1502
 
1500
1503
  type GetAppointmentResponse {
@@ -1638,8 +1641,10 @@ type OtherContactAttribute {
1638
1641
 
1639
1642
  type ContactAttributes {
1640
1643
  firstName: String
1644
+ phoneticFirstName: String
1641
1645
  middleName: String
1642
1646
  lastName: String
1647
+ phoneticLastName: String
1643
1648
  fullName: String
1644
1649
  maidenName: String
1645
1650
  namePrefix: String
@@ -1742,8 +1747,10 @@ input OtherContactAttributeInput {
1742
1747
 
1743
1748
  input ContactAttrsInput {
1744
1749
  firstName: String
1750
+ phoneticFirstName: String
1745
1751
  middleName: String
1746
1752
  lastName: String
1753
+ phoneticLastName: String
1747
1754
  fullName: String
1748
1755
  maidenName: String
1749
1756
  namePrefix: String
@@ -2089,6 +2096,7 @@ input SendMessageInput {
2089
2096
  mimeParts: [MimePartInput] #mp
2090
2097
  emailAddresses: [MailItemEmailAddressInput] #e
2091
2098
  attachments: [AttachmentInput] #attach
2099
+ inlineAttachments: [MimePartInput] #attach
2092
2100
  }
2093
2101
 
2094
2102
  input CalendarItemInviteInput {
@@ -2480,6 +2488,7 @@ input PreferencesInput {
2480
2488
  zimbraPrefMailLocalDeliveryDisabled: Boolean
2481
2489
  zimbraPrefTagTreeOpen: Boolean
2482
2490
  zimbraPrefPowerPasteEnabled: Boolean
2491
+ zimbraPrefDisplayTimeInMailList: Boolean
2483
2492
  }
2484
2493
 
2485
2494
  input ModifyIdentityInput {
@@ -3267,6 +3276,7 @@ type Mutation {
3267
3276
  name: String
3268
3277
  isLocal: Boolean
3269
3278
  recursive: Boolean
3279
+ destFolderLocal: Boolean
3270
3280
  ): Boolean
3271
3281
  applyFilterRules(ids: String!, filterRules: [FilterRuleInput]): [String]
3272
3282
  testExternalAccount(
@@ -363,10 +363,16 @@ export function createZimbraSchema(options: ZimbraSchemaOptions): {
363
363
  modifySearchFolder: (_, variables) =>
364
364
  client.modifySearchFolder(variables as SearchFolderInput),
365
365
  deleteSignature: (_, variables) => client.deleteSignature(variables as NameIdInput),
366
- saveDraft: (_, { message, accountName }) =>
367
- client.saveDraft(message as SendMessageInput, accountName as string),
368
- sendMessage: (_, { message, accountName }) =>
369
- client.sendMessage(message as SendMessageInput, accountName as string),
366
+ saveDraft: (_, { message, accountName }, context = {}) =>
367
+ (context.local ? localStoreClient : client).saveDraft(
368
+ message as SendMessageInput,
369
+ accountName as string
370
+ ),
371
+ sendMessage: (_, { message, accountName }, context = {}) =>
372
+ (context.local ? localStoreClient : client).sendMessage(
373
+ message as SendMessageInput,
374
+ accountName as string
375
+ ),
370
376
  sendDeliveryReport: (_, { messageId }) => client.sendDeliveryReport(messageId),
371
377
  uploadMessage: (_, { value }) => client.uploadMessage(value),
372
378
  createTask: (_, { task }) => client.createTask(task as CalendarItemInput),
@@ -65,10 +65,7 @@ export function normalizeMimeParts(
65
65
  message: { [key: string]: any },
66
66
  { origin, jwtToken, isDesktop }: { isDesktop?: string; jwtToken?: string; origin?: string }
67
67
  ) {
68
- const processAttachment = (
69
- { ...attachment },
70
- forcedContentDisposition?: string
71
- ) => {
68
+ const processAttachment = ({ ...attachment }, forcedContentDisposition?: string) => {
72
69
  attachment.messageId = attachment.messageId || message.id;
73
70
  attachment.url = getAttachmentUrl(attachment, { origin, jwtToken });
74
71
 
@@ -6,8 +6,10 @@ import { ContactInputRequest } from '../normalize/entities';
6
6
 
7
7
  const supportedContactAttributes = [
8
8
  'firstName',
9
+ 'phoneticFirstName',
9
10
  'middleName',
10
11
  'lastName',
12
+ 'phoneticLastName',
11
13
  'fullName',
12
14
  'maidenName',
13
15
  'namePrefix',
package/tsconfig.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
- "compilerOptions": {
3
- "allowSyntheticDefaultImports": true,
4
- "esModuleInterop": true,
5
- "declaration": false,
6
- "jsx": "react",
7
- "jsxFactory": "h",
8
- "lib": ["dom", "es2015", "es2016"],
9
- "module": "ESNext",
10
- "moduleResolution": "node",
11
- "noUnusedLocals": true,
12
- "noUnusedParameters": true,
13
- "removeComments": true,
14
- "skipLibCheck": true,
15
- "sourceMap": true,
16
- "strict": true,
17
- "target": "esnext"
18
- },
19
- "include": [
20
- "./src/**/*",
21
- "./*.ts"
22
- ]
2
+ "compilerOptions": {
3
+ "allowSyntheticDefaultImports": true,
4
+ "esModuleInterop": true,
5
+ "declaration": false,
6
+ "jsx": "react",
7
+ "jsxFactory": "h",
8
+ "lib": ["dom", "es2015", "es2016"],
9
+ "module": "ESNext",
10
+ "moduleResolution": "node",
11
+ "noUnusedLocals": true,
12
+ "noUnusedParameters": true,
13
+ "removeComments": true,
14
+ "skipLibCheck": true,
15
+ "sourceMap": true,
16
+ "strict": true,
17
+ "target": "esnext"
18
+ },
19
+ "include": [
20
+ "./src/**/*",
21
+ "./*.ts"
22
+ ]
23
23
  }
package/tslint.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
- "extends": [
3
- "tslint-config-prettier",
4
- "tslint-plugin-prettier"
5
- ],
6
- "rules": {
7
- "function-name": false,
8
- "import-name": false,
9
- "member-ordering": [true, {"order": "fields-first", "alphabetize": true }],
10
- "ordered-imports": true,
11
- "prefer-array-literal": false,
12
- "prettier": [true, ".prettierrc"],
13
- "variable-name": false
14
- },
15
- "linterOptions": {
16
- "exclude": [
17
- "src/schema/generated-schema-types.ts"
18
- ]
19
- }
2
+ "extends": [
3
+ "tslint-config-prettier",
4
+ "tslint-plugin-prettier"
5
+ ],
6
+ "rules": {
7
+ "function-name": false,
8
+ "import-name": false,
9
+ "member-ordering": [true, {"order": "fields-first", "alphabetize": true }],
10
+ "ordered-imports": true,
11
+ "prefer-array-literal": false,
12
+ "prettier": [true, ".prettierrc"],
13
+ "variable-name": false
14
+ },
15
+ "linterOptions": {
16
+ "exclude": [
17
+ "src/schema/generated-schema-types.ts"
18
+ ]
19
+ }
20
20
  }