@zimbra/api-client 65.0.0 → 69.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.
- package/.babelrc.json +16 -16
- package/.husky/pre-commit +2 -1
- package/dist/schema.graphql +10 -0
- package/dist/src/apollo/offline-queue-link/index.d.ts +2 -2
- package/dist/src/batch-client/index.d.ts +2 -0
- package/dist/src/batch-client/types.d.ts +1 -1
- package/dist/src/request/types.d.ts +1 -1
- package/dist/src/schema/generated-schema-types.d.ts +1056 -1048
- package/dist/zm-api-js-client.esm.js +1108 -1079
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +1 -1
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +1 -1
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +2746 -5538
- package/package.json +92 -94
- package/src/apollo/offline-queue-link/index.ts +1 -1
- package/src/apollo/zimbra-in-memory-cache.ts +36 -0
- package/src/batch-client/index.ts +16 -8
- package/src/batch-client/types.ts +1 -1
- package/src/request/index.ts +2 -2
- package/src/request/types.ts +1 -1
- package/src/schema/generated-schema-types.ts +1108 -1100
- package/src/schema/schema.graphql +10 -0
- package/src/schema/schema.ts +10 -4
- package/src/utils/normalize-mime-parts.ts +1 -4
- package/src/utils/normalize-otherAttribute-contact.ts +2 -0
- package/tsconfig.json +21 -21
- package/tslint.json +18 -18
|
@@ -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(
|
package/src/schema/schema.ts
CHANGED
|
@@ -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
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
}
|