@zimbra/api-client 94.0.0 → 96.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/.husky/pre-commit +1 -4
- package/.husky/prepare-commit-msg +0 -3
- package/dist/schema.graphql +15 -1
- package/dist/src/batch-client/types.d.ts +2 -1
- package/dist/src/schema/generated-schema-types.d.ts +13 -0
- package/dist/zm-api-js-client.esm.js +10 -4
- 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 +5 -5
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +61 -139
- package/package.json +3 -4
- package/src/batch-client/types.ts +2 -0
- package/src/schema/generated-schema-types.ts +14 -0
- package/src/schema/schema.graphql +15 -1
- package/src/utils/normalize-mime-parts.ts +13 -4
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "96.0.0",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -3044,21 +3044,6 @@
|
|
|
3044
3044
|
"integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
|
|
3045
3045
|
"dev": true
|
|
3046
3046
|
},
|
|
3047
|
-
"color-convert": {
|
|
3048
|
-
"version": "2.0.1",
|
|
3049
|
-
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
|
3050
|
-
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
|
3051
|
-
"dev": true,
|
|
3052
|
-
"requires": {
|
|
3053
|
-
"color-name": "~1.1.4"
|
|
3054
|
-
}
|
|
3055
|
-
},
|
|
3056
|
-
"color-name": {
|
|
3057
|
-
"version": "1.1.4",
|
|
3058
|
-
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
|
3059
|
-
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
|
3060
|
-
"dev": true
|
|
3061
|
-
},
|
|
3062
3047
|
"emoji-regex": {
|
|
3063
3048
|
"version": "9.2.2",
|
|
3064
3049
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
|
|
@@ -3076,40 +3061,6 @@
|
|
|
3076
3061
|
"strip-ansi": "^7.0.1"
|
|
3077
3062
|
}
|
|
3078
3063
|
},
|
|
3079
|
-
"string-width-cjs": {
|
|
3080
|
-
"version": "npm:string-width@4.2.3",
|
|
3081
|
-
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
3082
|
-
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
|
3083
|
-
"dev": true,
|
|
3084
|
-
"requires": {
|
|
3085
|
-
"emoji-regex": "^8.0.0",
|
|
3086
|
-
"is-fullwidth-code-point": "^3.0.0",
|
|
3087
|
-
"strip-ansi": "^6.0.1"
|
|
3088
|
-
},
|
|
3089
|
-
"dependencies": {
|
|
3090
|
-
"ansi-regex": {
|
|
3091
|
-
"version": "5.0.1",
|
|
3092
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
3093
|
-
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
3094
|
-
"dev": true
|
|
3095
|
-
},
|
|
3096
|
-
"emoji-regex": {
|
|
3097
|
-
"version": "8.0.0",
|
|
3098
|
-
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
3099
|
-
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
3100
|
-
"dev": true
|
|
3101
|
-
},
|
|
3102
|
-
"strip-ansi": {
|
|
3103
|
-
"version": "6.0.1",
|
|
3104
|
-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
3105
|
-
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
3106
|
-
"dev": true,
|
|
3107
|
-
"requires": {
|
|
3108
|
-
"ansi-regex": "^5.0.1"
|
|
3109
|
-
}
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
},
|
|
3113
3064
|
"strip-ansi": {
|
|
3114
3065
|
"version": "7.1.0",
|
|
3115
3066
|
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
|
|
@@ -3119,23 +3070,6 @@
|
|
|
3119
3070
|
"ansi-regex": "^6.0.1"
|
|
3120
3071
|
}
|
|
3121
3072
|
},
|
|
3122
|
-
"strip-ansi-cjs": {
|
|
3123
|
-
"version": "npm:strip-ansi@6.0.1",
|
|
3124
|
-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
3125
|
-
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
3126
|
-
"dev": true,
|
|
3127
|
-
"requires": {
|
|
3128
|
-
"ansi-regex": "^5.0.1"
|
|
3129
|
-
},
|
|
3130
|
-
"dependencies": {
|
|
3131
|
-
"ansi-regex": {
|
|
3132
|
-
"version": "5.0.1",
|
|
3133
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
3134
|
-
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
3135
|
-
"dev": true
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
},
|
|
3139
3073
|
"wrap-ansi": {
|
|
3140
3074
|
"version": "8.1.0",
|
|
3141
3075
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
|
|
@@ -3146,60 +3080,6 @@
|
|
|
3146
3080
|
"string-width": "^5.0.1",
|
|
3147
3081
|
"strip-ansi": "^7.0.1"
|
|
3148
3082
|
}
|
|
3149
|
-
},
|
|
3150
|
-
"wrap-ansi-cjs": {
|
|
3151
|
-
"version": "npm:wrap-ansi@7.0.0",
|
|
3152
|
-
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
|
3153
|
-
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
|
|
3154
|
-
"dev": true,
|
|
3155
|
-
"requires": {
|
|
3156
|
-
"ansi-styles": "^4.0.0",
|
|
3157
|
-
"string-width": "^4.1.0",
|
|
3158
|
-
"strip-ansi": "^6.0.0"
|
|
3159
|
-
},
|
|
3160
|
-
"dependencies": {
|
|
3161
|
-
"ansi-regex": {
|
|
3162
|
-
"version": "5.0.1",
|
|
3163
|
-
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
3164
|
-
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
3165
|
-
"dev": true
|
|
3166
|
-
},
|
|
3167
|
-
"ansi-styles": {
|
|
3168
|
-
"version": "4.3.0",
|
|
3169
|
-
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
3170
|
-
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
|
3171
|
-
"dev": true,
|
|
3172
|
-
"requires": {
|
|
3173
|
-
"color-convert": "^2.0.1"
|
|
3174
|
-
}
|
|
3175
|
-
},
|
|
3176
|
-
"emoji-regex": {
|
|
3177
|
-
"version": "8.0.0",
|
|
3178
|
-
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
3179
|
-
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
3180
|
-
"dev": true
|
|
3181
|
-
},
|
|
3182
|
-
"string-width": {
|
|
3183
|
-
"version": "4.2.3",
|
|
3184
|
-
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
3185
|
-
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
|
3186
|
-
"dev": true,
|
|
3187
|
-
"requires": {
|
|
3188
|
-
"emoji-regex": "^8.0.0",
|
|
3189
|
-
"is-fullwidth-code-point": "^3.0.0",
|
|
3190
|
-
"strip-ansi": "^6.0.1"
|
|
3191
|
-
}
|
|
3192
|
-
},
|
|
3193
|
-
"strip-ansi": {
|
|
3194
|
-
"version": "6.0.1",
|
|
3195
|
-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
3196
|
-
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
3197
|
-
"dev": true,
|
|
3198
|
-
"requires": {
|
|
3199
|
-
"ansi-regex": "^5.0.1"
|
|
3200
|
-
}
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
3083
|
}
|
|
3204
3084
|
}
|
|
3205
3085
|
},
|
|
@@ -5217,12 +5097,6 @@
|
|
|
5217
5097
|
"readdirp": "~3.6.0"
|
|
5218
5098
|
}
|
|
5219
5099
|
},
|
|
5220
|
-
"ci-info": {
|
|
5221
|
-
"version": "3.9.0",
|
|
5222
|
-
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
|
|
5223
|
-
"integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
|
|
5224
|
-
"dev": true
|
|
5225
|
-
},
|
|
5226
5100
|
"clean-stack": {
|
|
5227
5101
|
"version": "2.2.0",
|
|
5228
5102
|
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
|
|
@@ -6547,9 +6421,9 @@
|
|
|
6547
6421
|
"dev": true
|
|
6548
6422
|
},
|
|
6549
6423
|
"husky": {
|
|
6550
|
-
"version": "
|
|
6551
|
-
"resolved": "https://registry.npmjs.org/husky/-/husky-
|
|
6552
|
-
"integrity": "sha512
|
|
6424
|
+
"version": "9.1.7",
|
|
6425
|
+
"resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz",
|
|
6426
|
+
"integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==",
|
|
6553
6427
|
"dev": true
|
|
6554
6428
|
},
|
|
6555
6429
|
"iconv-lite": {
|
|
@@ -6789,15 +6663,6 @@
|
|
|
6789
6663
|
"integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
|
|
6790
6664
|
"dev": true
|
|
6791
6665
|
},
|
|
6792
|
-
"is-ci": {
|
|
6793
|
-
"version": "3.0.1",
|
|
6794
|
-
"resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",
|
|
6795
|
-
"integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",
|
|
6796
|
-
"dev": true,
|
|
6797
|
-
"requires": {
|
|
6798
|
-
"ci-info": "^3.2.0"
|
|
6799
|
-
}
|
|
6800
|
-
},
|
|
6801
6666
|
"is-core-module": {
|
|
6802
6667
|
"version": "2.13.1",
|
|
6803
6668
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz",
|
|
@@ -9231,6 +9096,17 @@
|
|
|
9231
9096
|
"strip-ansi": "^6.0.1"
|
|
9232
9097
|
}
|
|
9233
9098
|
},
|
|
9099
|
+
"string-width-cjs": {
|
|
9100
|
+
"version": "npm:string-width@4.2.3",
|
|
9101
|
+
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
9102
|
+
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
|
9103
|
+
"dev": true,
|
|
9104
|
+
"requires": {
|
|
9105
|
+
"emoji-regex": "^8.0.0",
|
|
9106
|
+
"is-fullwidth-code-point": "^3.0.0",
|
|
9107
|
+
"strip-ansi": "^6.0.1"
|
|
9108
|
+
}
|
|
9109
|
+
},
|
|
9234
9110
|
"string.prototype.padend": {
|
|
9235
9111
|
"version": "3.1.5",
|
|
9236
9112
|
"resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.5.tgz",
|
|
@@ -9293,6 +9169,15 @@
|
|
|
9293
9169
|
"ansi-regex": "^5.0.1"
|
|
9294
9170
|
}
|
|
9295
9171
|
},
|
|
9172
|
+
"strip-ansi-cjs": {
|
|
9173
|
+
"version": "npm:strip-ansi@6.0.1",
|
|
9174
|
+
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
9175
|
+
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
9176
|
+
"dev": true,
|
|
9177
|
+
"requires": {
|
|
9178
|
+
"ansi-regex": "^5.0.1"
|
|
9179
|
+
}
|
|
9180
|
+
},
|
|
9296
9181
|
"strip-bom": {
|
|
9297
9182
|
"version": "3.0.0",
|
|
9298
9183
|
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
|
|
@@ -9958,6 +9843,43 @@
|
|
|
9958
9843
|
}
|
|
9959
9844
|
}
|
|
9960
9845
|
},
|
|
9846
|
+
"wrap-ansi-cjs": {
|
|
9847
|
+
"version": "npm:wrap-ansi@7.0.0",
|
|
9848
|
+
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
|
9849
|
+
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
|
|
9850
|
+
"dev": true,
|
|
9851
|
+
"requires": {
|
|
9852
|
+
"ansi-styles": "^4.0.0",
|
|
9853
|
+
"string-width": "^4.1.0",
|
|
9854
|
+
"strip-ansi": "^6.0.0"
|
|
9855
|
+
},
|
|
9856
|
+
"dependencies": {
|
|
9857
|
+
"ansi-styles": {
|
|
9858
|
+
"version": "4.3.0",
|
|
9859
|
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
9860
|
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
|
9861
|
+
"dev": true,
|
|
9862
|
+
"requires": {
|
|
9863
|
+
"color-convert": "^2.0.1"
|
|
9864
|
+
}
|
|
9865
|
+
},
|
|
9866
|
+
"color-convert": {
|
|
9867
|
+
"version": "2.0.1",
|
|
9868
|
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
|
9869
|
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
|
9870
|
+
"dev": true,
|
|
9871
|
+
"requires": {
|
|
9872
|
+
"color-name": "~1.1.4"
|
|
9873
|
+
}
|
|
9874
|
+
},
|
|
9875
|
+
"color-name": {
|
|
9876
|
+
"version": "1.1.4",
|
|
9877
|
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
|
9878
|
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
|
9879
|
+
"dev": true
|
|
9880
|
+
}
|
|
9881
|
+
}
|
|
9882
|
+
},
|
|
9961
9883
|
"wrappy": {
|
|
9962
9884
|
"version": "1.0.2",
|
|
9963
9885
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "96.0.0",
|
|
5
5
|
"description": "Zimbra JS API Client and GraphQL client for making requests against the Zimbra SOAP API.",
|
|
6
6
|
"main": "dist/zm-api-js-client.js",
|
|
7
7
|
"source": "index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm test && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags",
|
|
30
30
|
"publish:beta": "npm publish --tag=beta",
|
|
31
31
|
"security:audit": "npx audit-ci@^6 --moderate --report-type summary --pass-enoaudit --skip-dev",
|
|
32
|
-
"prepare": "
|
|
32
|
+
"prepare": "husky || true"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
|
35
35
|
"zimbra",
|
|
@@ -76,8 +76,7 @@
|
|
|
76
76
|
"chai": "^4.3.7",
|
|
77
77
|
"copyfiles": "^2.4.1",
|
|
78
78
|
"cross-var": "^1.1.0",
|
|
79
|
-
"husky": "^
|
|
80
|
-
"is-ci": "^3.0.1",
|
|
79
|
+
"husky": "^9.1.7",
|
|
81
80
|
"lint-staged": "15.2.8",
|
|
82
81
|
"mocha": "^10.2.0",
|
|
83
82
|
"npm-run-all": "^4.1.5",
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
Owner,
|
|
8
8
|
SearchType,
|
|
9
9
|
SortBy,
|
|
10
|
+
Timezone,
|
|
10
11
|
UploadDocument
|
|
11
12
|
} from '../schema/generated-schema-types';
|
|
12
13
|
|
|
@@ -204,6 +205,7 @@ export interface SearchOptions {
|
|
|
204
205
|
sortBy?: SortBy;
|
|
205
206
|
type?: GalSearchType;
|
|
206
207
|
types?: SearchType;
|
|
208
|
+
tz?: Timezone;
|
|
207
209
|
}
|
|
208
210
|
|
|
209
211
|
export interface SearchCalendarResourcesCondition {
|
|
@@ -84,15 +84,18 @@ export type AccountInfoAttrs = {
|
|
|
84
84
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
85
85
|
zimbraBlockEmailSendFromImapPop?: Maybe<Scalars['Boolean']['output']>;
|
|
86
86
|
zimbraBrandingFolderName?: Maybe<Scalars['String']['output']>;
|
|
87
|
+
zimbraDataSourceMaxNumEntries?: Maybe<Scalars['Int']['output']>;
|
|
87
88
|
zimbraDomainTrialConvertAtExpiration?: Maybe<Scalars['Boolean']['output']>;
|
|
88
89
|
zimbraDomainTrialExpirationDate?: Maybe<Scalars['String']['output']>;
|
|
89
90
|
zimbraDumpsterEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
90
91
|
zimbraExternalSharingEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
91
92
|
zimbraFeatureAdminMailEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
92
93
|
zimbraFeatureAdminPreferencesEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
94
|
+
zimbraFeatureAdvancedChatEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
93
95
|
zimbraFeatureAllowUsernameInPassword?: Maybe<Scalars['Boolean']['output']>;
|
|
94
96
|
zimbraFeatureAntispamEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
95
97
|
zimbraFeatureAppSpecificPasswordsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
98
|
+
zimbraFeatureBasicOneToOneChatEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
96
99
|
zimbraFeatureBriefcasesEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
97
100
|
zimbraFeatureCalendarEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
98
101
|
zimbraFeatureChangePasswordEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -114,6 +117,8 @@ export type AccountInfoAttrs = {
|
|
|
114
117
|
zimbraFeatureMailForwardingEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
115
118
|
zimbraFeatureMailForwardingInFiltersEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
116
119
|
zimbraFeatureMailPriorityEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
120
|
+
zimbraFeatureMailRecallEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
121
|
+
zimbraFeatureMailRecallTime?: Maybe<Scalars['Int']['output']>;
|
|
117
122
|
zimbraFeatureMailSendLaterEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
118
123
|
zimbraFeatureManageZimlets?: Maybe<Scalars['Boolean']['output']>;
|
|
119
124
|
zimbraFeatureMobileSyncEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -140,9 +145,11 @@ export type AccountInfoAttrs = {
|
|
|
140
145
|
zimbraIdentityMaxNumEntries?: Maybe<Scalars['Int']['output']>;
|
|
141
146
|
zimbraIsAdminAccount?: Maybe<Scalars['Boolean']['output']>;
|
|
142
147
|
zimbraIsDelegatedAdminAccount?: Maybe<Scalars['Boolean']['output']>;
|
|
148
|
+
zimbraIsExternalVirtualAccount?: Maybe<Scalars['Boolean']['output']>;
|
|
143
149
|
zimbraMailAlias?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
144
150
|
zimbraMailAttachmentMaxSize?: Maybe<Scalars['Float']['output']>;
|
|
145
151
|
zimbraMailBlacklistMaxNumEntries?: Maybe<Scalars['Int']['output']>;
|
|
152
|
+
zimbraMailIdleSessionTimeout?: Maybe<Scalars['String']['output']>;
|
|
146
153
|
zimbraMailQuota?: Maybe<Scalars['String']['output']>;
|
|
147
154
|
zimbraMailSignatureMaxLength?: Maybe<Scalars['Float']['output']>;
|
|
148
155
|
zimbraMailWhitelistMaxNumEntries?: Maybe<Scalars['Int']['output']>;
|
|
@@ -2392,6 +2399,7 @@ export type MailboxMetadataAttrs = {
|
|
|
2392
2399
|
archivedFolder?: Maybe<Scalars['String']['output']>;
|
|
2393
2400
|
privacyOverlayPrefs_showOverlay?: Maybe<Scalars['Boolean']['output']>;
|
|
2394
2401
|
privacyOverlayPrefs_timeOut?: Maybe<Scalars['Int']['output']>;
|
|
2402
|
+
showSendAndArchive?: Maybe<Scalars['String']['output']>;
|
|
2395
2403
|
zimbraPrefColorMode?: Maybe<Scalars['String']['output']>;
|
|
2396
2404
|
zimbraPrefContactSourceFolderID?: Maybe<Scalars['String']['output']>;
|
|
2397
2405
|
zimbraPrefCustomFolderTreeOpen?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2424,6 +2432,7 @@ export type MailboxMetadataSectionAttrsInput = {
|
|
|
2424
2432
|
archivedFolder?: InputMaybe<Scalars['String']['input']>;
|
|
2425
2433
|
privacyOverlayPrefs_showOverlay?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2426
2434
|
privacyOverlayPrefs_timeOut?: InputMaybe<Scalars['Int']['input']>;
|
|
2435
|
+
showSendAndArchive?: InputMaybe<Scalars['String']['input']>;
|
|
2427
2436
|
zimbraPrefColorMode?: InputMaybe<Scalars['String']['input']>;
|
|
2428
2437
|
zimbraPrefContactSourceFolderID?: InputMaybe<Scalars['String']['input']>;
|
|
2429
2438
|
zimbraPrefCustomFolderTreeOpen?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -3908,6 +3917,7 @@ export type QuerySearchArgs = {
|
|
|
3908
3917
|
resultMode?: InputMaybe<Scalars['String']['input']>;
|
|
3909
3918
|
sortBy?: InputMaybe<SortBy>;
|
|
3910
3919
|
types?: InputMaybe<SearchType>;
|
|
3920
|
+
tz?: InputMaybe<Timezone>;
|
|
3911
3921
|
};
|
|
3912
3922
|
|
|
3913
3923
|
|
|
@@ -4535,6 +4545,10 @@ export type Targets = {
|
|
|
4535
4545
|
target?: Maybe<Array<Maybe<Target>>>;
|
|
4536
4546
|
};
|
|
4537
4547
|
|
|
4548
|
+
export type Timezone = {
|
|
4549
|
+
id: Scalars['ID']['input'];
|
|
4550
|
+
};
|
|
4551
|
+
|
|
4538
4552
|
export type TrustedDevicesEnabled = {
|
|
4539
4553
|
__typename?: 'TrustedDevicesEnabled';
|
|
4540
4554
|
_content?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1454,11 +1454,13 @@ type AccountZimletConfigInfo {
|
|
|
1454
1454
|
type AccountInfoAttrs {
|
|
1455
1455
|
displayName: String
|
|
1456
1456
|
zimbraBrandingFolderName: String
|
|
1457
|
+
zimbraDataSourceMaxNumEntries: Int
|
|
1457
1458
|
zimbraDomainTrialConvertAtExpiration: Boolean
|
|
1458
1459
|
zimbraDomainTrialExpirationDate: String
|
|
1459
1460
|
zimbraDumpsterEnabled: Boolean
|
|
1460
1461
|
zimbraIsAdminAccount: Boolean
|
|
1461
1462
|
zimbraIsDelegatedAdminAccount: Boolean
|
|
1463
|
+
zimbraIsExternalVirtualAccount: Boolean
|
|
1462
1464
|
zimbraFeatureMailEnabled: Boolean
|
|
1463
1465
|
zimbraFeatureCalendarEnabled: Boolean
|
|
1464
1466
|
zimbraFeatureBriefcasesEnabled: Boolean
|
|
@@ -1539,7 +1541,12 @@ type AccountInfoAttrs {
|
|
|
1539
1541
|
zimbraFeatureExportFolderEnabled: Boolean
|
|
1540
1542
|
zimbraFeatureGroupCalendarEnabled: Boolean
|
|
1541
1543
|
zimbraFeatureDistributionListExpandMembersEnabled: Boolean
|
|
1544
|
+
zimbraFeatureMailRecallEnabled: Boolean
|
|
1545
|
+
zimbraFeatureMailRecallTime: Int
|
|
1542
1546
|
zimbraFeatureDistributionListFolderEnabled: Boolean
|
|
1547
|
+
zimbraFeatureBasicOneToOneChatEnabled: Boolean
|
|
1548
|
+
zimbraFeatureAdvancedChatEnabled: Boolean
|
|
1549
|
+
zimbraMailIdleSessionTimeout: String
|
|
1543
1550
|
}
|
|
1544
1551
|
|
|
1545
1552
|
type AccountCos {
|
|
@@ -2116,6 +2123,7 @@ type MailboxMetadataAttrs {
|
|
|
2116
2123
|
zimbraPrefUndoSendEnabled: Boolean
|
|
2117
2124
|
zimbraPrefUndoSendTimeout: Int
|
|
2118
2125
|
archivedFolder: String
|
|
2126
|
+
showSendAndArchive: String
|
|
2119
2127
|
privacyOverlayPrefs_showOverlay: Boolean
|
|
2120
2128
|
privacyOverlayPrefs_timeOut: Int
|
|
2121
2129
|
zimbraPrefSMIMEDefaultSetting: String
|
|
@@ -2151,6 +2159,7 @@ input MailboxMetadataSectionAttrsInput {
|
|
|
2151
2159
|
zimbraPrefUndoSendEnabled: Boolean
|
|
2152
2160
|
zimbraPrefUndoSendTimeout: Int
|
|
2153
2161
|
archivedFolder: String
|
|
2162
|
+
showSendAndArchive: String
|
|
2154
2163
|
privacyOverlayPrefs_showOverlay: Boolean
|
|
2155
2164
|
privacyOverlayPrefs_timeOut: Int
|
|
2156
2165
|
zimbraPrefSMIMEDefaultSetting: String
|
|
@@ -3215,6 +3224,10 @@ input uploadDocument {
|
|
|
3215
3224
|
id: ID! #id
|
|
3216
3225
|
}
|
|
3217
3226
|
|
|
3227
|
+
input Timezone {
|
|
3228
|
+
id: ID! #id
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3218
3231
|
input messagePartForDocument {
|
|
3219
3232
|
messageId: ID! #id
|
|
3220
3233
|
attachmentPart: String! #part
|
|
@@ -3630,7 +3643,8 @@ type Query {
|
|
|
3630
3643
|
types: SearchType
|
|
3631
3644
|
resultMode: String
|
|
3632
3645
|
inDumpster: Boolean,
|
|
3633
|
-
header: [MailItemHeaderInput]
|
|
3646
|
+
header: [MailItemHeaderInput],
|
|
3647
|
+
tz: Timezone
|
|
3634
3648
|
): SearchResponse
|
|
3635
3649
|
|
|
3636
3650
|
searchCalendarResources(
|
|
@@ -76,6 +76,9 @@ export function normalizeMimeParts(
|
|
|
76
76
|
message: { [key: string]: any },
|
|
77
77
|
{ origin, jwtToken, isDesktop }: { isDesktop?: string; jwtToken?: string; origin?: string }
|
|
78
78
|
) {
|
|
79
|
+
let isMultipartWithInlineImage = false;
|
|
80
|
+
let iosMsgWithImage = '';
|
|
81
|
+
|
|
79
82
|
const processAttachment = ({ ...attachment }, forcedContentDisposition?: string) => {
|
|
80
83
|
attachment.messageId = attachment.messageId || message.id;
|
|
81
84
|
attachment.url = getAttachmentUrl(attachment, { origin, jwtToken });
|
|
@@ -158,12 +161,11 @@ export function normalizeMimeParts(
|
|
|
158
161
|
|
|
159
162
|
// Use `text` content, because iOS client always yield `text` part (no `html` part) when multiple attachments are present along with text content.
|
|
160
163
|
// In cases of forwarded msg from iOS client, there wouldn't be `text` part, instead `html` parts.
|
|
161
|
-
//
|
|
162
|
-
|
|
164
|
+
// To make sure to include inline image in html content store it in a variable and process later.
|
|
165
|
+
isMultipartWithInlineImage = true;
|
|
166
|
+
iosMsgWithImage = iosMsgWithImage.concat(
|
|
163
167
|
`<br /><div><img src="cid:${attachment.contentId}" /></div><br />`
|
|
164
168
|
);
|
|
165
|
-
|
|
166
|
-
acc['html'] = acc['text']; // And then update `html` part so that we render `html` in `viewer`.
|
|
167
169
|
} else {
|
|
168
170
|
const isTextType = MORE_TEXT_TYPES.includes(type);
|
|
169
171
|
let bodyType =
|
|
@@ -175,6 +177,7 @@ export function normalizeMimeParts(
|
|
|
175
177
|
isBody = true;
|
|
176
178
|
}
|
|
177
179
|
acc[bodyType] = (acc[bodyType] || '').concat(content);
|
|
180
|
+
iosMsgWithImage = iosMsgWithImage.concat(content);
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
183
|
}
|
|
@@ -203,6 +206,12 @@ export function normalizeMimeParts(
|
|
|
203
206
|
// Default to null if not exist to unset the key if this is an update.
|
|
204
207
|
message.autoSendTime = message.autoSendTime || null;
|
|
205
208
|
|
|
209
|
+
// For email sent from ios client or any other email client which may not provide html content and includes inline images,
|
|
210
|
+
// Convert the text part along with inline images into html so that it will be previewed as html content.
|
|
211
|
+
if (isMultipartWithInlineImage) {
|
|
212
|
+
message.html = iosMsgWithImage.replace(/\r\n/g, '<br />');
|
|
213
|
+
}
|
|
214
|
+
|
|
206
215
|
// Some mail clients add contentId and contentLocation to attachment data even though it's not inline attachments
|
|
207
216
|
// we are fixing it here
|
|
208
217
|
// @TODO we should extend this to check if we have any placeholder in body for inline attachments then only consider it as inline attachment
|