@zimbra/api-client 75.0.0 → 78.0.0-beta
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 +0 -1
- package/dist/schema.graphql +7 -1
- package/dist/src/batch-client/index.d.ts +2 -2
- package/dist/src/batch-client/types.d.ts +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +717 -710
- package/dist/zm-api-js-client.esm.js +351 -65
- 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 +1836 -2743
- package/package.json +29 -31
- package/src/batch-client/index.ts +6 -2
- package/src/batch-client/types.ts +1 -0
- package/src/schema/generated-schema-types.ts +717 -710
- package/src/schema/schema.graphql +7 -1
- package/src/utils/normalize-mime-parts.ts +17 -20
- package/src/utils/normalize-otherAttribute-contact.ts +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": "78.0.0-beta",
|
|
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",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"lint:fix": "npm run lint -- --fix",
|
|
15
15
|
"test:unit": "BABEL_ENV=test mocha --require ./babelRegisterConfig.js test/**/*.js",
|
|
16
16
|
"test:watch": "npm run test:unit -- --watch",
|
|
17
|
-
"test:no-synacor-npm-refs": "node ./scripts/synacor-npm-refs.js",
|
|
18
17
|
"clean": "rimraf dist",
|
|
19
18
|
"build": "npm-run-all clean generateSchemaTypes rollup:* -p build:ts minify:* copySchema",
|
|
20
19
|
"build:ts": "tsc --emitDeclarationOnly --declaration --outDir \"dist\"",
|
|
@@ -45,50 +44,49 @@
|
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|
|
47
46
|
"@apollo/client": "^3.4.16",
|
|
48
|
-
"dataloader": "^2.
|
|
49
|
-
"graphql": "^15.
|
|
50
|
-
"graphql-tools": "^8.2.
|
|
47
|
+
"dataloader": "^2.1.0",
|
|
48
|
+
"graphql": "^15.8.0",
|
|
49
|
+
"graphql-tools": "^8.2.8",
|
|
51
50
|
"lodash": "^4.17.21",
|
|
52
51
|
"mitt": "^3.0.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@babel/cli": "^7.
|
|
56
|
-
"@babel/core": "^7.
|
|
57
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
58
|
-
"@babel/preset-env": "^7.
|
|
59
|
-
"@babel/preset-typescript": "^7.
|
|
60
|
-
"@babel/register": "^7.
|
|
61
|
-
"@graphql-codegen/cli": "^2.2
|
|
62
|
-
"@graphql-codegen/typescript": "^2.
|
|
63
|
-
"@rollup/plugin-babel": "^5.3.
|
|
64
|
-
"@rollup/plugin-commonjs": "^
|
|
65
|
-
"@rollup/plugin-node-resolve": "^13.0
|
|
66
|
-
"@rollup/plugin-typescript": "^8.2
|
|
54
|
+
"@babel/cli": "^7.17.10",
|
|
55
|
+
"@babel/core": "^7.17.10",
|
|
56
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
57
|
+
"@babel/preset-env": "^7.17.10",
|
|
58
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
59
|
+
"@babel/register": "^7.17.7",
|
|
60
|
+
"@graphql-codegen/cli": "^2.6.2",
|
|
61
|
+
"@graphql-codegen/typescript": "^2.4.10",
|
|
62
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
63
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
65
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
67
66
|
"@types/graphql": "^14.5.0",
|
|
68
|
-
"@types/lodash": "^4.14.
|
|
69
|
-
"@types/node": "^17.0.
|
|
67
|
+
"@types/lodash": "^4.14.182",
|
|
68
|
+
"@types/node": "^17.0.31",
|
|
70
69
|
"@types/whatwg-fetch": "^0.0.33",
|
|
71
|
-
"audit-ci": "^
|
|
70
|
+
"audit-ci": "^6.2.0",
|
|
72
71
|
"babel-plugin-lodash": "^3.3.4",
|
|
73
|
-
"chai": "^4.3.
|
|
72
|
+
"chai": "^4.3.6",
|
|
74
73
|
"copyfiles": "^2.4.1",
|
|
75
74
|
"cross-var": "^1.1.0",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"mocha": "^9.1.2",
|
|
75
|
+
"husky": "^8.0.0",
|
|
76
|
+
"is-ci": "^3.0.1",
|
|
77
|
+
"lint-staged": "^12.4.1",
|
|
78
|
+
"mocha": "^10.0.0",
|
|
81
79
|
"npm-run-all": "^4.1.5",
|
|
82
|
-
"prettier": "^2.
|
|
80
|
+
"prettier": "^2.6.2",
|
|
83
81
|
"rimraf": "^3.0.2",
|
|
84
|
-
"rollup": "^2.
|
|
82
|
+
"rollup": "^2.72.1",
|
|
85
83
|
"rollup-plugin-graphql": "^0.1.0",
|
|
86
84
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
87
|
-
"tslib": "^2.
|
|
85
|
+
"tslib": "^2.4.0",
|
|
88
86
|
"tslint": "^6.1.3",
|
|
89
87
|
"tslint-config-prettier": "^1.18.0",
|
|
90
88
|
"tslint-plugin-prettier": "^2.3.0",
|
|
91
|
-
"typescript": "^4.
|
|
92
|
-
"uglify-js": "^3.
|
|
89
|
+
"typescript": "^4.6.4",
|
|
90
|
+
"uglify-js": "^3.15.4"
|
|
93
91
|
}
|
|
94
92
|
}
|
|
@@ -819,7 +819,8 @@ export class ZimbraBatchClient {
|
|
|
819
819
|
password,
|
|
820
820
|
authToken,
|
|
821
821
|
twoFactorCode,
|
|
822
|
-
csrfTokenSecured
|
|
822
|
+
csrfTokenSecured,
|
|
823
|
+
ignoreSameSite
|
|
823
824
|
}: EnableTwoFactorAuthInput) =>
|
|
824
825
|
this.jsonRequest({
|
|
825
826
|
name: 'EnableTwoFactorAuth',
|
|
@@ -842,6 +843,7 @@ export class ZimbraBatchClient {
|
|
|
842
843
|
_content: twoFactorCode
|
|
843
844
|
}
|
|
844
845
|
}),
|
|
846
|
+
...(ignoreSameSite && { ignoreSameSite }),
|
|
845
847
|
csrfTokenSecured
|
|
846
848
|
},
|
|
847
849
|
namespace: Namespace.Account,
|
|
@@ -1324,7 +1326,8 @@ export class ZimbraBatchClient {
|
|
|
1324
1326
|
persistAuthTokenCookie,
|
|
1325
1327
|
twoFactorCode,
|
|
1326
1328
|
deviceTrusted,
|
|
1327
|
-
csrfTokenSecured
|
|
1329
|
+
csrfTokenSecured,
|
|
1330
|
+
ignoreSameSite
|
|
1328
1331
|
}: LoginOptions) =>
|
|
1329
1332
|
this.jsonRequest({
|
|
1330
1333
|
name: 'Auth',
|
|
@@ -1337,6 +1340,7 @@ export class ZimbraBatchClient {
|
|
|
1337
1340
|
by: 'name',
|
|
1338
1341
|
_content: username
|
|
1339
1342
|
},
|
|
1343
|
+
...(ignoreSameSite && { ignoreSameSite }),
|
|
1340
1344
|
...(password && { password }),
|
|
1341
1345
|
...(recoveryCode && {
|
|
1342
1346
|
recoveryCode: {
|
|
@@ -244,6 +244,7 @@ export interface ModifyProfileImageOptions {
|
|
|
244
244
|
export interface LoginOptions {
|
|
245
245
|
csrfTokenSecured: boolean;
|
|
246
246
|
deviceTrusted?: boolean;
|
|
247
|
+
ignoreSameSite?: boolean;
|
|
247
248
|
password: string;
|
|
248
249
|
persistAuthTokenCookie?: boolean;
|
|
249
250
|
recoveryCode?: string;
|