@zimbra/api-client 102.0.1-master.cd150cc.0 → 103.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 +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +1 -0
- package/dist/zm-api-js-client.esm.js +3950 -3792
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +14 -10
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +14 -10
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package.json +16 -12
- package/rollup.config.js +1 -0
- package/src/batch-client/index.ts +3 -1
- package/src/schema/generated-schema-types.ts +1 -0
- package/src/schema/schema.graphql +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "103.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",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"build:ts": "tsc --emitDeclarationOnly --declaration --outDir \"dist\"",
|
|
20
20
|
"build:analyze": "visualize=true npm run build",
|
|
21
21
|
"copySchema": "copyfiles -f src/schema/schema.graphql dist",
|
|
22
|
-
"rollup:cjs": "
|
|
23
|
-
"rollup:umd": "
|
|
24
|
-
"rollup:esm": "
|
|
22
|
+
"rollup:cjs": "rollup -c rollup.config.js -m -f cjs -n zmApiJsClient index.ts -o dist/zm-api-js-client.js",
|
|
23
|
+
"rollup:umd": "rollup -c rollup.config.js -m -f umd -n zmApiJsClient index.ts -o dist/zm-api-js-client.umd.js",
|
|
24
|
+
"rollup:esm": "rollup -c rollup.config.js -m -f es --environment FORMAT:es -n zmApiJsClient index.ts -o dist/zm-api-js-client.esm.js",
|
|
25
25
|
"linkedBuild": "npm run rollup:esm -- --watch",
|
|
26
|
-
"minify:cjs": "
|
|
27
|
-
"minify:umd": "
|
|
28
|
-
"size": "echo \"Gzipped Size: $(gzip-size
|
|
29
|
-
"prepublishOnly": "if [ \"$CI\" != \"true\" ]; then npm test && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags; fi",
|
|
26
|
+
"minify:cjs": "uglifyjs dist/zm-api-js-client.js -c pure_getters,pure_funcs=classCallCheck -m toplevel,reserved=['_createClass'] --keep-fnames -o dist/zm-api-js-client.js --source-map content=dist/zm-api-js-client.js.map,url=zm-api-js-client.js.map,filename=dist/zm-api-js-client.js.map",
|
|
27
|
+
"minify:umd": "uglifyjs dist/zm-api-js-client.umd.js -c pure_getters,pure_funcs=classCallCheck -m toplevel,reserved=['_createClass'] --keep-fnames -o dist/zm-api-js-client.umd.js --source-map content=dist/zm-api-js-client.umd.js.map,url=zm-api-js-client.umd.js.map,filename=dist/zm-api-js-client.umd.js.map",
|
|
28
|
+
"size": "echo \"Gzipped Size: $(gzip-size dist/zm-api-js-client.js | pretty-bytes)\"",
|
|
29
|
+
"prepublishOnly": "if [ \"$CI\" != \"true\" ]; then npm run test:unit && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags; fi",
|
|
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
32
|
"prepare": "husky || true"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"repository": "Zimbra/zm-api-js-client",
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": ">=18.
|
|
41
|
+
"node": ">=24.18.0"
|
|
42
42
|
},
|
|
43
43
|
"license": "BSD-3-Clause",
|
|
44
44
|
"lint-staged": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@apollo/client": "
|
|
50
|
+
"@apollo/client": "3.10.0",
|
|
51
51
|
"@graphql-tools/schema": "^10.0.25",
|
|
52
52
|
"dataloader": "^2.2.2",
|
|
53
53
|
"es-toolkit": "^1.39.10",
|
|
@@ -73,11 +73,10 @@
|
|
|
73
73
|
"@types/node": "^20.10.4",
|
|
74
74
|
"@types/whatwg-fetch": "^0.0.33",
|
|
75
75
|
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
76
|
-
"@zimbra/eslint-config": "^
|
|
76
|
+
"@zimbra/eslint-config": "^3.0.0",
|
|
77
77
|
"babel-plugin-lodash": "^3.3.4",
|
|
78
78
|
"chai": "^4.5.0",
|
|
79
79
|
"copyfiles": "^2.4.1",
|
|
80
|
-
"cross-var": "^1.1.0",
|
|
81
80
|
"eslint": "^9.39.4",
|
|
82
81
|
"husky": "^9.1.7",
|
|
83
82
|
"lint-staged": "15.2.8",
|
|
@@ -91,5 +90,10 @@
|
|
|
91
90
|
"tslib": "^2.5.0",
|
|
92
91
|
"typescript": "^5.3.3",
|
|
93
92
|
"uglify-js": "^3.15.5"
|
|
93
|
+
},
|
|
94
|
+
"overrides": {
|
|
95
|
+
"@apollo/client": {
|
|
96
|
+
"graphql-ws": "^6.2.1"
|
|
97
|
+
}
|
|
94
98
|
}
|
|
95
99
|
}
|
package/rollup.config.js
CHANGED
|
@@ -346,13 +346,15 @@ export class ZimbraBatchClient {
|
|
|
346
346
|
const {
|
|
347
347
|
zimbraMailAlias,
|
|
348
348
|
zimbraTwoFactorAuthMethodAllowed,
|
|
349
|
-
zimbraTwoFactorAuthMethodEnabled
|
|
349
|
+
zimbraTwoFactorAuthMethodEnabled,
|
|
350
|
+
zimbraAllowFromAddress
|
|
350
351
|
} = res?.attrs?._attrs || {};
|
|
351
352
|
return {
|
|
352
353
|
...res,
|
|
353
354
|
attrs: {
|
|
354
355
|
...mapValuesDeep(res?.attrs?._attrs, coerceStringToBoolean),
|
|
355
356
|
zimbraMailAlias: [].concat(zimbraMailAlias || []),
|
|
357
|
+
zimbraAllowFromAddress: [].concat(zimbraAllowFromAddress || []),
|
|
356
358
|
zimbraTwoFactorAuthMethodAllowed: [].concat(zimbraTwoFactorAuthMethodAllowed || []),
|
|
357
359
|
zimbraTwoFactorAuthMethodEnabled: [].concat(zimbraTwoFactorAuthMethodEnabled || [])
|
|
358
360
|
},
|
|
@@ -82,6 +82,7 @@ export type AccountInfo = {
|
|
|
82
82
|
export type AccountInfoAttrs = {
|
|
83
83
|
__typename?: 'AccountInfoAttrs';
|
|
84
84
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
85
|
+
zimbraAllowFromAddress?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
85
86
|
zimbraAttachmentsBlocked?: Maybe<Scalars['Boolean']['output']>;
|
|
86
87
|
zimbraAttachmentsViewInHtmlOnly?: Maybe<Scalars['Boolean']['output']>;
|
|
87
88
|
zimbraBlockEmailSendFromImapPop?: Maybe<Scalars['Boolean']['output']>;
|