@zimbra/api-client 86.1.0 → 87.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/dist/schema.graphql +26 -1
- package/dist/src/schema/generated-schema-types.d.ts +24 -1
- package/dist/zm-api-js-client.esm.js +110 -5939
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +2 -16
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +85 -122
- package/package.json +2 -6
- package/rollup.config.js +7 -14
- package/src/normalize/entities.ts +2 -2
- package/src/schema/generated-schema-types.ts +28 -1
- package/src/schema/schema.graphql +26 -1
- package/src/utils/normalize-mime-parts.ts +33 -0
- package/stats.html +4838 -0
- package/dist/zm-api-js-client.js +0 -20
- package/dist/zm-api-js-client.js.map +0 -1
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "87.0.0",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -5792,67 +5792,6 @@
|
|
|
5792
5792
|
}
|
|
5793
5793
|
}
|
|
5794
5794
|
},
|
|
5795
|
-
"@rollup/plugin-commonjs": {
|
|
5796
|
-
"version": "22.0.0",
|
|
5797
|
-
"resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.0.tgz",
|
|
5798
|
-
"integrity": "sha512-Ktvf2j+bAO+30awhbYoCaXpBcyPmJbaEUYClQns/+6SNCYFURbvBiNbWgHITEsIgDDWCDUclWRKEuf8cwZCFoQ==",
|
|
5799
|
-
"dev": true,
|
|
5800
|
-
"requires": {
|
|
5801
|
-
"@rollup/pluginutils": "^3.1.0",
|
|
5802
|
-
"commondir": "^1.0.1",
|
|
5803
|
-
"estree-walker": "^2.0.1",
|
|
5804
|
-
"glob": "^7.1.6",
|
|
5805
|
-
"is-reference": "^1.2.1",
|
|
5806
|
-
"magic-string": "^0.25.7",
|
|
5807
|
-
"resolve": "^1.17.0"
|
|
5808
|
-
},
|
|
5809
|
-
"dependencies": {
|
|
5810
|
-
"estree-walker": {
|
|
5811
|
-
"version": "2.0.2",
|
|
5812
|
-
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
|
5813
|
-
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
|
|
5814
|
-
"dev": true
|
|
5815
|
-
},
|
|
5816
|
-
"resolve": {
|
|
5817
|
-
"version": "1.22.0",
|
|
5818
|
-
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
|
|
5819
|
-
"integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
|
|
5820
|
-
"dev": true,
|
|
5821
|
-
"requires": {
|
|
5822
|
-
"is-core-module": "^2.8.1",
|
|
5823
|
-
"path-parse": "^1.0.7",
|
|
5824
|
-
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
5825
|
-
}
|
|
5826
|
-
}
|
|
5827
|
-
}
|
|
5828
|
-
},
|
|
5829
|
-
"@rollup/plugin-node-resolve": {
|
|
5830
|
-
"version": "13.3.0",
|
|
5831
|
-
"resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz",
|
|
5832
|
-
"integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==",
|
|
5833
|
-
"dev": true,
|
|
5834
|
-
"requires": {
|
|
5835
|
-
"@rollup/pluginutils": "^3.1.0",
|
|
5836
|
-
"@types/resolve": "1.17.1",
|
|
5837
|
-
"deepmerge": "^4.2.2",
|
|
5838
|
-
"is-builtin-module": "^3.1.0",
|
|
5839
|
-
"is-module": "^1.0.0",
|
|
5840
|
-
"resolve": "^1.19.0"
|
|
5841
|
-
},
|
|
5842
|
-
"dependencies": {
|
|
5843
|
-
"resolve": {
|
|
5844
|
-
"version": "1.22.0",
|
|
5845
|
-
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
|
|
5846
|
-
"integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
|
|
5847
|
-
"dev": true,
|
|
5848
|
-
"requires": {
|
|
5849
|
-
"is-core-module": "^2.8.1",
|
|
5850
|
-
"path-parse": "^1.0.7",
|
|
5851
|
-
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
5852
|
-
}
|
|
5853
|
-
}
|
|
5854
|
-
}
|
|
5855
|
-
},
|
|
5856
5795
|
"@rollup/plugin-typescript": {
|
|
5857
5796
|
"version": "8.3.2",
|
|
5858
5797
|
"resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-8.3.2.tgz",
|
|
@@ -5979,15 +5918,6 @@
|
|
|
5979
5918
|
"integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==",
|
|
5980
5919
|
"dev": true
|
|
5981
5920
|
},
|
|
5982
|
-
"@types/resolve": {
|
|
5983
|
-
"version": "1.17.1",
|
|
5984
|
-
"resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz",
|
|
5985
|
-
"integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==",
|
|
5986
|
-
"dev": true,
|
|
5987
|
-
"requires": {
|
|
5988
|
-
"@types/node": "*"
|
|
5989
|
-
}
|
|
5990
|
-
},
|
|
5991
5921
|
"@types/whatwg-fetch": {
|
|
5992
5922
|
"version": "0.0.33",
|
|
5993
5923
|
"resolved": "https://registry.npmjs.org/@types/whatwg-fetch/-/whatwg-fetch-0.0.33.tgz",
|
|
@@ -7952,12 +7882,6 @@
|
|
|
7952
7882
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
|
7953
7883
|
"dev": true
|
|
7954
7884
|
},
|
|
7955
|
-
"builtin-modules": {
|
|
7956
|
-
"version": "3.2.0",
|
|
7957
|
-
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.2.0.tgz",
|
|
7958
|
-
"integrity": "sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==",
|
|
7959
|
-
"dev": true
|
|
7960
|
-
},
|
|
7961
7885
|
"busboy": {
|
|
7962
7886
|
"version": "1.6.0",
|
|
7963
7887
|
"resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
|
|
@@ -8565,12 +8489,6 @@
|
|
|
8565
8489
|
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
|
|
8566
8490
|
"dev": true
|
|
8567
8491
|
},
|
|
8568
|
-
"deepmerge": {
|
|
8569
|
-
"version": "4.2.2",
|
|
8570
|
-
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
|
|
8571
|
-
"integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",
|
|
8572
|
-
"dev": true
|
|
8573
|
-
},
|
|
8574
8492
|
"defaults": {
|
|
8575
8493
|
"version": "1.0.3",
|
|
8576
8494
|
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz",
|
|
@@ -8586,6 +8504,12 @@
|
|
|
8586
8504
|
"integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==",
|
|
8587
8505
|
"dev": true
|
|
8588
8506
|
},
|
|
8507
|
+
"define-lazy-prop": {
|
|
8508
|
+
"version": "2.0.0",
|
|
8509
|
+
"resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
|
|
8510
|
+
"integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
|
|
8511
|
+
"dev": true
|
|
8512
|
+
},
|
|
8589
8513
|
"define-properties": {
|
|
8590
8514
|
"version": "1.1.3",
|
|
8591
8515
|
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
|
|
@@ -9632,15 +9556,6 @@
|
|
|
9632
9556
|
"binary-extensions": "^2.0.0"
|
|
9633
9557
|
}
|
|
9634
9558
|
},
|
|
9635
|
-
"is-builtin-module": {
|
|
9636
|
-
"version": "3.1.0",
|
|
9637
|
-
"resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz",
|
|
9638
|
-
"integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==",
|
|
9639
|
-
"dev": true,
|
|
9640
|
-
"requires": {
|
|
9641
|
-
"builtin-modules": "^3.0.0"
|
|
9642
|
-
}
|
|
9643
|
-
},
|
|
9644
9559
|
"is-callable": {
|
|
9645
9560
|
"version": "1.1.4",
|
|
9646
9561
|
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz",
|
|
@@ -9671,6 +9586,12 @@
|
|
|
9671
9586
|
"integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=",
|
|
9672
9587
|
"dev": true
|
|
9673
9588
|
},
|
|
9589
|
+
"is-docker": {
|
|
9590
|
+
"version": "2.2.1",
|
|
9591
|
+
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
|
|
9592
|
+
"integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
|
|
9593
|
+
"dev": true
|
|
9594
|
+
},
|
|
9674
9595
|
"is-extglob": {
|
|
9675
9596
|
"version": "2.1.1",
|
|
9676
9597
|
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
|
@@ -9716,12 +9637,6 @@
|
|
|
9716
9637
|
"tslib": "^2.0.3"
|
|
9717
9638
|
}
|
|
9718
9639
|
},
|
|
9719
|
-
"is-module": {
|
|
9720
|
-
"version": "1.0.0",
|
|
9721
|
-
"resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
|
|
9722
|
-
"integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==",
|
|
9723
|
-
"dev": true
|
|
9724
|
-
},
|
|
9725
9640
|
"is-number": {
|
|
9726
9641
|
"version": "7.0.0",
|
|
9727
9642
|
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
|
@@ -9766,15 +9681,6 @@
|
|
|
9766
9681
|
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",
|
|
9767
9682
|
"dev": true
|
|
9768
9683
|
},
|
|
9769
|
-
"is-reference": {
|
|
9770
|
-
"version": "1.2.1",
|
|
9771
|
-
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",
|
|
9772
|
-
"integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
|
|
9773
|
-
"dev": true,
|
|
9774
|
-
"requires": {
|
|
9775
|
-
"@types/estree": "*"
|
|
9776
|
-
}
|
|
9777
|
-
},
|
|
9778
9684
|
"is-regex": {
|
|
9779
9685
|
"version": "1.0.4",
|
|
9780
9686
|
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz",
|
|
@@ -9838,6 +9744,15 @@
|
|
|
9838
9744
|
"integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
|
|
9839
9745
|
"dev": true
|
|
9840
9746
|
},
|
|
9747
|
+
"is-wsl": {
|
|
9748
|
+
"version": "2.2.0",
|
|
9749
|
+
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
|
|
9750
|
+
"integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
|
|
9751
|
+
"dev": true,
|
|
9752
|
+
"requires": {
|
|
9753
|
+
"is-docker": "^2.0.0"
|
|
9754
|
+
}
|
|
9755
|
+
},
|
|
9841
9756
|
"isarray": {
|
|
9842
9757
|
"version": "1.0.0",
|
|
9843
9758
|
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
|
@@ -10671,15 +10586,6 @@
|
|
|
10671
10586
|
"yallist": "^2.1.2"
|
|
10672
10587
|
}
|
|
10673
10588
|
},
|
|
10674
|
-
"magic-string": {
|
|
10675
|
-
"version": "0.25.9",
|
|
10676
|
-
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz",
|
|
10677
|
-
"integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==",
|
|
10678
|
-
"dev": true,
|
|
10679
|
-
"requires": {
|
|
10680
|
-
"sourcemap-codec": "^1.4.8"
|
|
10681
|
-
}
|
|
10682
|
-
},
|
|
10683
10589
|
"make-dir": {
|
|
10684
10590
|
"version": "2.1.0",
|
|
10685
10591
|
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
|
|
@@ -11269,6 +11175,17 @@
|
|
|
11269
11175
|
"mimic-fn": "^2.1.0"
|
|
11270
11176
|
}
|
|
11271
11177
|
},
|
|
11178
|
+
"open": {
|
|
11179
|
+
"version": "8.4.2",
|
|
11180
|
+
"resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
|
|
11181
|
+
"integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
|
|
11182
|
+
"dev": true,
|
|
11183
|
+
"requires": {
|
|
11184
|
+
"define-lazy-prop": "^2.0.0",
|
|
11185
|
+
"is-docker": "^2.1.1",
|
|
11186
|
+
"is-wsl": "^2.2.0"
|
|
11187
|
+
}
|
|
11188
|
+
},
|
|
11272
11189
|
"optimism": {
|
|
11273
11190
|
"version": "0.16.1",
|
|
11274
11191
|
"resolved": "https://registry.npmjs.org/optimism/-/optimism-0.16.1.tgz",
|
|
@@ -12152,6 +12069,58 @@
|
|
|
12152
12069
|
"integrity": "sha512-qYd2aYtcidHiQQ3RLLsgG9PO/pw+U9OJcHtszetaOnfFmAR7FC9vwByMwHRUllqgs83jRjaMdwlsPSXx4856Wg==",
|
|
12153
12070
|
"dev": true
|
|
12154
12071
|
},
|
|
12072
|
+
"rollup-plugin-visualizer": {
|
|
12073
|
+
"version": "5.9.2",
|
|
12074
|
+
"resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.2.tgz",
|
|
12075
|
+
"integrity": "sha512-waHktD5mlWrYFrhOLbti4YgQCn1uR24nYsNuXxg7LkPH8KdTXVWR9DNY1WU0QqokyMixVXJS4J04HNrVTMP01A==",
|
|
12076
|
+
"dev": true,
|
|
12077
|
+
"requires": {
|
|
12078
|
+
"open": "^8.4.0",
|
|
12079
|
+
"picomatch": "^2.3.1",
|
|
12080
|
+
"source-map": "^0.7.4",
|
|
12081
|
+
"yargs": "^17.5.1"
|
|
12082
|
+
},
|
|
12083
|
+
"dependencies": {
|
|
12084
|
+
"cliui": {
|
|
12085
|
+
"version": "8.0.1",
|
|
12086
|
+
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
|
12087
|
+
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
|
|
12088
|
+
"dev": true,
|
|
12089
|
+
"requires": {
|
|
12090
|
+
"string-width": "^4.2.0",
|
|
12091
|
+
"strip-ansi": "^6.0.1",
|
|
12092
|
+
"wrap-ansi": "^7.0.0"
|
|
12093
|
+
}
|
|
12094
|
+
},
|
|
12095
|
+
"source-map": {
|
|
12096
|
+
"version": "0.7.4",
|
|
12097
|
+
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
|
|
12098
|
+
"integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
|
|
12099
|
+
"dev": true
|
|
12100
|
+
},
|
|
12101
|
+
"yargs": {
|
|
12102
|
+
"version": "17.7.2",
|
|
12103
|
+
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
|
12104
|
+
"integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
|
|
12105
|
+
"dev": true,
|
|
12106
|
+
"requires": {
|
|
12107
|
+
"cliui": "^8.0.1",
|
|
12108
|
+
"escalade": "^3.1.1",
|
|
12109
|
+
"get-caller-file": "^2.0.5",
|
|
12110
|
+
"require-directory": "^2.1.1",
|
|
12111
|
+
"string-width": "^4.2.3",
|
|
12112
|
+
"y18n": "^5.0.5",
|
|
12113
|
+
"yargs-parser": "^21.1.1"
|
|
12114
|
+
}
|
|
12115
|
+
},
|
|
12116
|
+
"yargs-parser": {
|
|
12117
|
+
"version": "21.1.1",
|
|
12118
|
+
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
|
|
12119
|
+
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
|
|
12120
|
+
"dev": true
|
|
12121
|
+
}
|
|
12122
|
+
}
|
|
12123
|
+
},
|
|
12155
12124
|
"rollup-pluginutils": {
|
|
12156
12125
|
"version": "2.8.2",
|
|
12157
12126
|
"resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
|
|
@@ -12329,12 +12298,6 @@
|
|
|
12329
12298
|
}
|
|
12330
12299
|
}
|
|
12331
12300
|
},
|
|
12332
|
-
"sourcemap-codec": {
|
|
12333
|
-
"version": "1.4.8",
|
|
12334
|
-
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
|
|
12335
|
-
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
|
|
12336
|
-
"dev": true
|
|
12337
|
-
},
|
|
12338
12301
|
"spdx-correct": {
|
|
12339
12302
|
"version": "3.1.0",
|
|
12340
12303
|
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "87.0.0",
|
|
5
5
|
"description": "Zimbra JS API Client and GraphQL client for making requests against the Zimbra SOAP API.",
|
|
6
|
-
"main": "dist/zm-api-js-client.js",
|
|
7
6
|
"source": "index.ts",
|
|
8
7
|
"module": "dist/zm-api-js-client.esm.js",
|
|
9
8
|
"umd:main": "dist/zm-api-js-client.umd.js",
|
|
@@ -18,11 +17,9 @@
|
|
|
18
17
|
"build": "npm-run-all clean generateSchemaTypes rollup:* -p build:ts minify:* copySchema",
|
|
19
18
|
"build:ts": "tsc --emitDeclarationOnly --declaration --outDir \"dist\"",
|
|
20
19
|
"copySchema": "copyfiles -f src/schema/schema.graphql dist",
|
|
21
|
-
"rollup:cjs": "cross-var rollup -c rollup.config.js -m -f cjs -n $npm_package_amdName $npm_package_source -o $npm_package_main",
|
|
22
20
|
"rollup:umd": "cross-var rollup -c rollup.config.js -m -f umd -n $npm_package_amdName $npm_package_source -o $npm_package_umd_main",
|
|
23
21
|
"rollup:esm": "cross-var rollup -c rollup.config.js -m -f es --environment FORMAT:es -n $npm_package_amdName $npm_package_source -o $npm_package_module",
|
|
24
22
|
"linkedBuild": "npm run rollup:esm -- --watch",
|
|
25
|
-
"minify:cjs": "cross-var uglifyjs $npm_package_main -c pure_getters,pure_funcs=classCallCheck -m toplevel,reserved=['_createClass'] --keep-fnames -o $npm_package_main --source-map content=$npm_package_main.map,url=zm-api-js-client.js.map,filename=$npm_package_main.map",
|
|
26
23
|
"minify:umd": "cross-var uglifyjs $npm_package_umd_main -c pure_getters,pure_funcs=classCallCheck -m toplevel,reserved=['_createClass'] --keep-fnames -o $npm_package_umd_main --source-map content=$npm_package_umd_main.map,url=zm-api-js-client.umd.js.map,filename=$npm_package_umd_main.map",
|
|
27
24
|
"size": "echo \"Gzipped Size: $(gzip-size $npm_package_main | pretty-bytes)\"",
|
|
28
25
|
"prepublishOnly": "npm test && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags",
|
|
@@ -60,8 +57,6 @@
|
|
|
60
57
|
"@graphql-codegen/cli": "^2.6.2",
|
|
61
58
|
"@graphql-codegen/typescript": "^2.4.11",
|
|
62
59
|
"@rollup/plugin-babel": "^5.3.1",
|
|
63
|
-
"@rollup/plugin-commonjs": "^22.0.0",
|
|
64
|
-
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
65
60
|
"@rollup/plugin-typescript": "^8.3.2",
|
|
66
61
|
"@types/graphql": "^14.5.0",
|
|
67
62
|
"@types/lodash": "^4.14.182",
|
|
@@ -81,6 +76,7 @@
|
|
|
81
76
|
"rollup": "^2.75.0",
|
|
82
77
|
"rollup-plugin-graphql": "^0.1.0",
|
|
83
78
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
79
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
84
80
|
"tslib": "^2.5.0",
|
|
85
81
|
"tslint": "^6.1.3",
|
|
86
82
|
"tslint-config-prettier": "^1.18.0",
|
package/rollup.config.js
CHANGED
|
@@ -2,8 +2,7 @@ import babel from '@rollup/plugin-babel';
|
|
|
2
2
|
import typescript from '@rollup/plugin-typescript';
|
|
3
3
|
import graphql from 'rollup-plugin-graphql';
|
|
4
4
|
import localResolve from 'rollup-plugin-local-resolve';
|
|
5
|
-
import
|
|
6
|
-
import commonjs from '@rollup/plugin-commonjs';
|
|
5
|
+
import { visualizer } from 'rollup-plugin-visualizer';
|
|
7
6
|
import pkg from './package.json';
|
|
8
7
|
|
|
9
8
|
let FORMAT = process.env.FORMAT;
|
|
@@ -11,13 +10,10 @@ let FORMAT = process.env.FORMAT;
|
|
|
11
10
|
// graphql-tools currently has a rollup build failure, so always call it an external until they fix it
|
|
12
11
|
// otherwise, make all npm production dependencies external, plus their subpath usages
|
|
13
12
|
// throughout the codebase, which rollup doesn't automatically pick up on
|
|
14
|
-
let external =
|
|
15
|
-
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
['graphql']) :
|
|
19
|
-
[];
|
|
20
|
-
|
|
13
|
+
let external = (Object.keys(pkg.dependencies) || [])
|
|
14
|
+
.concat(
|
|
15
|
+
['castArray', 'get','isError', 'isObject', 'mapValues', 'reduce', 'omitBy', 'uniqBy', 'concat', 'uniqBy', 'differenceBy', 'forEach'].map(v => 'lodash/'+v)
|
|
16
|
+
);
|
|
21
17
|
|
|
22
18
|
export default {
|
|
23
19
|
external,
|
|
@@ -25,16 +21,13 @@ export default {
|
|
|
25
21
|
plugins: [
|
|
26
22
|
graphql(),
|
|
27
23
|
localResolve(),
|
|
28
|
-
nodeResolve({
|
|
29
|
-
extensions: [ '.js', '.ts', '.json' ]
|
|
30
|
-
}),
|
|
31
|
-
commonjs(),
|
|
32
24
|
typescript(),
|
|
33
25
|
babel({
|
|
34
26
|
extensions: ['.ts'],
|
|
35
27
|
exclude: 'node_modules/**',
|
|
36
28
|
babelHelpers: 'bundled'
|
|
37
|
-
})
|
|
29
|
+
}),
|
|
30
|
+
visualizer()
|
|
38
31
|
],
|
|
39
32
|
output: {
|
|
40
33
|
exports: FORMAT==='es' ? null : 'named'
|
|
@@ -131,7 +131,8 @@ const commonInviteFields = {
|
|
|
131
131
|
invId: 'inviteId',
|
|
132
132
|
loc: 'location',
|
|
133
133
|
or: ['organizer', CalendarItemOrganizer],
|
|
134
|
-
ridZ: 'utcRecurrenceId'
|
|
134
|
+
ridZ: 'utcRecurrenceId',
|
|
135
|
+
tzo: 'timezoneOffset'
|
|
135
136
|
};
|
|
136
137
|
|
|
137
138
|
const InviteComponent = new Entity({
|
|
@@ -368,7 +369,6 @@ export const CalendarItemHitInfo = new Entity({
|
|
|
368
369
|
recur: 'isRecurring',
|
|
369
370
|
ptst: 'participationStatus',
|
|
370
371
|
dur: 'duration',
|
|
371
|
-
tzo: 'timezoneOffset',
|
|
372
372
|
otherAtt: 'otherAttendees',
|
|
373
373
|
inst: ['instances', Instance],
|
|
374
374
|
inv: ['invitations', Invitation],
|
|
@@ -88,6 +88,7 @@ export type AccountInfoAttrs = {
|
|
|
88
88
|
zimbraExternalSharingEnabled?: Maybe<Scalars['Boolean']>;
|
|
89
89
|
zimbraFeatureAdminMailEnabled?: Maybe<Scalars['Boolean']>;
|
|
90
90
|
zimbraFeatureAdminPreferencesEnabled?: Maybe<Scalars['Boolean']>;
|
|
91
|
+
zimbraFeatureAllowUsernameInPassword?: Maybe<Scalars['Boolean']>;
|
|
91
92
|
zimbraFeatureAntispamEnabled?: Maybe<Scalars['Boolean']>;
|
|
92
93
|
zimbraFeatureAppSpecificPasswordsEnabled?: Maybe<Scalars['Boolean']>;
|
|
93
94
|
zimbraFeatureBriefcasesEnabled?: Maybe<Scalars['Boolean']>;
|
|
@@ -141,7 +142,6 @@ export type AccountInfoAttrs = {
|
|
|
141
142
|
zimbraMailSignatureMaxLength?: Maybe<Scalars['Float']>;
|
|
142
143
|
zimbraMailWhitelistMaxNumEntries?: Maybe<Scalars['Int']>;
|
|
143
144
|
zimbraMtaMaxMessageSize?: Maybe<Scalars['Float']>;
|
|
144
|
-
zimbraPasswordAllowUsername?: Maybe<Scalars['Boolean']>;
|
|
145
145
|
zimbraPasswordAllowedChars?: Maybe<Scalars['String']>;
|
|
146
146
|
zimbraPasswordAllowedPunctuationChars?: Maybe<Scalars['String']>;
|
|
147
147
|
zimbraPasswordBlockCommonEnabled?: Maybe<Scalars['Boolean']>;
|
|
@@ -337,6 +337,26 @@ export type AppointmentInfo = {
|
|
|
337
337
|
invitations?: Maybe<Array<Maybe<Invitation>>>;
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
+
export type AttachDoc = {
|
|
341
|
+
__typename?: 'AttachDoc';
|
|
342
|
+
doc?: Maybe<Array<Maybe<AttachDocs>>>;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
export type AttachDocInput = {
|
|
346
|
+
doc?: InputMaybe<Array<InputMaybe<AttachDocsInput>>>;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export type AttachDocs = {
|
|
350
|
+
__typename?: 'AttachDocs';
|
|
351
|
+
optional?: Maybe<Scalars['Int']>;
|
|
352
|
+
path?: Maybe<Scalars['String']>;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
export type AttachDocsInput = {
|
|
356
|
+
optional?: InputMaybe<Scalars['Int']>;
|
|
357
|
+
path?: InputMaybe<Scalars['String']>;
|
|
358
|
+
};
|
|
359
|
+
|
|
340
360
|
export type Attachment = {
|
|
341
361
|
__typename?: 'Attachment';
|
|
342
362
|
content?: Maybe<Scalars['String']>;
|
|
@@ -345,6 +365,8 @@ export type Attachment = {
|
|
|
345
365
|
|
|
346
366
|
export type AttachmentInput = {
|
|
347
367
|
attachmentId?: InputMaybe<Scalars['String']>;
|
|
368
|
+
cd?: InputMaybe<Scalars['String']>;
|
|
369
|
+
ct?: InputMaybe<Scalars['String']>;
|
|
348
370
|
documents?: InputMaybe<Array<InputMaybe<DocumentInput>>>;
|
|
349
371
|
existingAttachments?: InputMaybe<Array<InputMaybe<ExistingAttachmentInput>>>;
|
|
350
372
|
messages?: InputMaybe<Array<InputMaybe<EmlInput>>>;
|
|
@@ -1317,6 +1339,8 @@ export type DocumentActionData = {
|
|
|
1317
1339
|
|
|
1318
1340
|
export type DocumentInput = {
|
|
1319
1341
|
id?: InputMaybe<Scalars['ID']>;
|
|
1342
|
+
optional?: InputMaybe<Scalars['Int']>;
|
|
1343
|
+
path?: InputMaybe<Scalars['String']>;
|
|
1320
1344
|
};
|
|
1321
1345
|
|
|
1322
1346
|
export type DtTimeInfo = {
|
|
@@ -1979,6 +2003,7 @@ export type Instance = {
|
|
|
1979
2003
|
revision?: Maybe<Scalars['Float']>;
|
|
1980
2004
|
start?: Maybe<Scalars['Float']>;
|
|
1981
2005
|
status?: Maybe<InviteCompletionStatus>;
|
|
2006
|
+
timezoneOffset?: Maybe<Scalars['Int']>;
|
|
1982
2007
|
tzoDue?: Maybe<Scalars['Int']>;
|
|
1983
2008
|
utcRecurrenceId?: Maybe<Scalars['String']>;
|
|
1984
2009
|
};
|
|
@@ -2310,6 +2335,7 @@ export type MimeHeaderConditionInput = {
|
|
|
2310
2335
|
|
|
2311
2336
|
export type MimePart = {
|
|
2312
2337
|
__typename?: 'MimePart';
|
|
2338
|
+
attach?: Maybe<AttachDoc>;
|
|
2313
2339
|
base64?: Maybe<Scalars['String']>;
|
|
2314
2340
|
body?: Maybe<Scalars['Boolean']>;
|
|
2315
2341
|
content?: Maybe<Scalars['String']>;
|
|
@@ -2327,6 +2353,7 @@ export type MimePart = {
|
|
|
2327
2353
|
};
|
|
2328
2354
|
|
|
2329
2355
|
export type MimePartInput = {
|
|
2356
|
+
attach?: InputMaybe<AttachDocInput>;
|
|
2330
2357
|
attachments?: InputMaybe<Array<InputMaybe<AttachmentInput>>>;
|
|
2331
2358
|
base64?: InputMaybe<Scalars['String']>;
|
|
2332
2359
|
body?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -410,6 +410,7 @@ type Instance {
|
|
|
410
410
|
status: InviteCompletionStatus
|
|
411
411
|
isOrganizer: Boolean # isOrg
|
|
412
412
|
exceptId: [DtTimeInfo]
|
|
413
|
+
timezoneOffset: Int
|
|
413
414
|
}
|
|
414
415
|
|
|
415
416
|
type Alarm {
|
|
@@ -1332,7 +1333,7 @@ type AccountInfoAttrs {
|
|
|
1332
1333
|
zimbraFeatureMailForwardingEnabled: Boolean
|
|
1333
1334
|
zimbraFeatureMailForwardingInFiltersEnabled: Boolean
|
|
1334
1335
|
zimbraFeatureRetentionPolicyEnabled: Boolean
|
|
1335
|
-
|
|
1336
|
+
zimbraFeatureAllowUsernameInPassword: Boolean
|
|
1336
1337
|
zimbraPasswordBlockCommonEnabled: Boolean
|
|
1337
1338
|
zimbraPasswordMinAlphaChars: Int
|
|
1338
1339
|
zimbraPasswordMinNumericChars: Int
|
|
@@ -2021,6 +2022,25 @@ type MimePart {
|
|
|
2021
2022
|
messageId: ID
|
|
2022
2023
|
base64: String
|
|
2023
2024
|
truncated: Boolean
|
|
2025
|
+
attach: AttachDoc
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
type AttachDoc {
|
|
2029
|
+
doc: [AttachDocs]
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
type AttachDocs {
|
|
2033
|
+
path: String
|
|
2034
|
+
optional: Int
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
input AttachDocInput {
|
|
2038
|
+
doc: [AttachDocsInput]
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
input AttachDocsInput {
|
|
2042
|
+
path: String
|
|
2043
|
+
optional: Int
|
|
2024
2044
|
}
|
|
2025
2045
|
|
|
2026
2046
|
type ActionData {
|
|
@@ -2049,6 +2069,7 @@ input MimePartInput {
|
|
|
2049
2069
|
attachments: [AttachmentInput]
|
|
2050
2070
|
base64: String,
|
|
2051
2071
|
truncated: Boolean
|
|
2072
|
+
attach: AttachDocInput
|
|
2052
2073
|
}
|
|
2053
2074
|
|
|
2054
2075
|
input ExistingAttachmentInput {
|
|
@@ -2058,6 +2079,8 @@ input ExistingAttachmentInput {
|
|
|
2058
2079
|
|
|
2059
2080
|
input DocumentInput {
|
|
2060
2081
|
id: ID
|
|
2082
|
+
path: String
|
|
2083
|
+
optional: Int
|
|
2061
2084
|
}
|
|
2062
2085
|
|
|
2063
2086
|
input EMLInput {
|
|
@@ -2069,6 +2092,8 @@ input AttachmentInput {
|
|
|
2069
2092
|
documents: [DocumentInput]
|
|
2070
2093
|
messages: [EMLInput]
|
|
2071
2094
|
existingAttachments: [ExistingAttachmentInput]
|
|
2095
|
+
ct: String
|
|
2096
|
+
cd: String
|
|
2072
2097
|
}
|
|
2073
2098
|
|
|
2074
2099
|
type AutoCompleteResponse {
|
|
@@ -104,11 +104,44 @@ export function normalizeMimeParts(
|
|
|
104
104
|
let isBody = false,
|
|
105
105
|
type = normalizeType(part.contentType),
|
|
106
106
|
disposition = normalizeDisposition(part.contentDisposition),
|
|
107
|
+
parts = part.mimeParts,
|
|
107
108
|
content = part.content || ''; //getPartContent(part);
|
|
108
109
|
|
|
109
110
|
// obey scapi's isBody flag:
|
|
110
111
|
if (isBody) acc.body = content;
|
|
111
112
|
|
|
113
|
+
// for a part of type /image, if its contentId matches with src of an <img /> in text/html part,
|
|
114
|
+
// change its contentDisposition to "inline"
|
|
115
|
+
if (type === 'multipart/related') {
|
|
116
|
+
let htmlPart: any;
|
|
117
|
+
|
|
118
|
+
parts.forEach((subpart: any) => {
|
|
119
|
+
// first set the html
|
|
120
|
+
if (subpart.contentType === 'text/html') {
|
|
121
|
+
htmlPart = subpart;
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// then look for related image parts
|
|
126
|
+
if (
|
|
127
|
+
~subpart.contentType.indexOf('image/') &&
|
|
128
|
+
subpart.contentDisposition === 'attachment' &&
|
|
129
|
+
subpart.contentId &&
|
|
130
|
+
htmlPart.content
|
|
131
|
+
) {
|
|
132
|
+
// remove angle brackets from <contentId>
|
|
133
|
+
const contentId = subpart.contentId.slice(1, -1);
|
|
134
|
+
const bodyDom = new DOMParser().parseFromString(htmlPart.content, 'text/html');
|
|
135
|
+
const images = bodyDom?.querySelectorAll(`img[src="cid:${contentId}"]`) || [];
|
|
136
|
+
|
|
137
|
+
// change disposition to inline
|
|
138
|
+
if (images.length > 0) {
|
|
139
|
+
subpart.contentDisposition = 'inline';
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
112
145
|
const isInline = disposition === 'inline';
|
|
113
146
|
|
|
114
147
|
// if not explicitly an attachment, discover html/text body:
|