@zimbra/api-client 97.0.0 → 98.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 +5 -2
- package/dist/src/batch-client/index.d.ts +2 -2
- package/dist/src/schema/generated-schema-types.d.ts +4 -1
- package/dist/zm-api-js-client.esm.js +757 -550
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +8 -8
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +7 -7
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +1683 -1079
- package/package.json +7 -7
- package/src/batch-client/index.ts +15 -4
- package/src/schema/generated-schema-types.ts +4 -1
- package/src/schema/schema.graphql +5 -2
- package/src/schema/schema.ts +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "98.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",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@apollo/client": "3.4.16",
|
|
51
|
-
"@graphql-tools/schema": "^10.0.
|
|
51
|
+
"@graphql-tools/schema": "^10.0.23",
|
|
52
52
|
"dataloader": "^2.2.2",
|
|
53
53
|
"graphql": "^16.9.0",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@babel/core": "^7.18.2",
|
|
60
60
|
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
61
61
|
"@babel/preset-env": "^7.18.2",
|
|
62
|
-
"@babel/preset-typescript": "^7.
|
|
62
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
63
63
|
"@babel/register": "^7.17.7",
|
|
64
|
-
"@graphql-codegen/cli": "^
|
|
64
|
+
"@graphql-codegen/cli": "^5.0.7",
|
|
65
65
|
"@graphql-codegen/typescript": "^4.0.1",
|
|
66
66
|
"@rollup/plugin-babel": "^6.0.4",
|
|
67
|
-
"@rollup/plugin-commonjs": "^
|
|
67
|
+
"@rollup/plugin-commonjs": "^28.0.5",
|
|
68
68
|
"@rollup/plugin-graphql": "^1.1.0",
|
|
69
69
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
70
70
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@types/node": "^20.10.4",
|
|
74
74
|
"@types/whatwg-fetch": "^0.0.33",
|
|
75
75
|
"babel-plugin-lodash": "^3.3.4",
|
|
76
|
-
"chai": "^4.
|
|
76
|
+
"chai": "^4.5.0",
|
|
77
77
|
"copyfiles": "^2.4.1",
|
|
78
78
|
"cross-var": "^1.1.0",
|
|
79
79
|
"husky": "^9.1.7",
|
|
80
80
|
"lint-staged": "15.2.8",
|
|
81
|
-
"mocha": "^10.2
|
|
81
|
+
"mocha": "^10.8.2",
|
|
82
82
|
"npm-run-all": "^4.1.5",
|
|
83
83
|
"prettier": "^2.6.2",
|
|
84
84
|
"rimraf": "^5.0.1",
|
|
@@ -59,6 +59,7 @@ import {
|
|
|
59
59
|
} from '../request';
|
|
60
60
|
import { JsonRequestOptions, Namespace, RequestBody, RequestOptions } from '../request/types';
|
|
61
61
|
import {
|
|
62
|
+
ActionOpResponse,
|
|
62
63
|
AddMsgInput,
|
|
63
64
|
CalendarItemInput,
|
|
64
65
|
CounterAppointmentInput,
|
|
@@ -569,11 +570,21 @@ export class ZimbraBatchClient {
|
|
|
569
570
|
}
|
|
570
571
|
};
|
|
571
572
|
|
|
572
|
-
public checkCalendar = ({
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
573
|
+
public checkCalendar = ({
|
|
574
|
+
id,
|
|
575
|
+
value
|
|
576
|
+
}: FolderActionCheckCalendarInput): Promise<ActionOpResponse> => {
|
|
577
|
+
return this.jsonRequest({
|
|
578
|
+
name: ActionType.folder,
|
|
579
|
+
body: {
|
|
580
|
+
action: {
|
|
581
|
+
id,
|
|
582
|
+
op: value ? 'check' : '!check'
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
singleRequest: true
|
|
576
586
|
});
|
|
587
|
+
};
|
|
577
588
|
|
|
578
589
|
public clientInfo = ({ by, domain }: any) =>
|
|
579
590
|
this.jsonRequest({
|
|
@@ -82,6 +82,8 @@ export type AccountInfo = {
|
|
|
82
82
|
export type AccountInfoAttrs = {
|
|
83
83
|
__typename?: 'AccountInfoAttrs';
|
|
84
84
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
85
|
+
zimbraAttachmentsBlocked?: Maybe<Scalars['Boolean']['output']>;
|
|
86
|
+
zimbraAttachmentsViewInHtmlOnly?: Maybe<Scalars['Boolean']['output']>;
|
|
85
87
|
zimbraBlockEmailSendFromImapPop?: Maybe<Scalars['Boolean']['output']>;
|
|
86
88
|
zimbraBrandingFolderName?: Maybe<Scalars['String']['output']>;
|
|
87
89
|
zimbraDataSourceMaxNumEntries?: Maybe<Scalars['Int']['output']>;
|
|
@@ -2194,6 +2196,7 @@ export type Instance = {
|
|
|
2194
2196
|
|
|
2195
2197
|
export type InstanceDate = {
|
|
2196
2198
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
2199
|
+
timezone?: InputMaybe<Scalars['String']['input']>;
|
|
2197
2200
|
};
|
|
2198
2201
|
|
|
2199
2202
|
export type IntervalRule = {
|
|
@@ -2656,7 +2659,7 @@ export type Mutation = {
|
|
|
2656
2659
|
cancelTask?: Maybe<Scalars['Boolean']['output']>;
|
|
2657
2660
|
changeFolderColor?: Maybe<Scalars['Boolean']['output']>;
|
|
2658
2661
|
changePassword?: Maybe<AuthResponse>;
|
|
2659
|
-
checkCalendar?: Maybe<
|
|
2662
|
+
checkCalendar?: Maybe<ActionOpResponse>;
|
|
2660
2663
|
contactAction?: Maybe<ActionOpResponse>;
|
|
2661
2664
|
conversationAction?: Maybe<Scalars['Boolean']['output']>;
|
|
2662
2665
|
counterAppointment?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1454,6 +1454,8 @@ type AccountZimletConfigInfo {
|
|
|
1454
1454
|
|
|
1455
1455
|
type AccountInfoAttrs {
|
|
1456
1456
|
displayName: String
|
|
1457
|
+
zimbraAttachmentsBlocked: Boolean
|
|
1458
|
+
zimbraAttachmentsViewInHtmlOnly: Boolean
|
|
1457
1459
|
zimbraBrandingFolderName: String
|
|
1458
1460
|
zimbraDataSourceMaxNumEntries: Int
|
|
1459
1461
|
zimbraDomainTrialConvertAtExpiration: Boolean
|
|
@@ -3150,7 +3152,8 @@ input NameIdInput {
|
|
|
3150
3152
|
name: String
|
|
3151
3153
|
}
|
|
3152
3154
|
input InstanceDate {
|
|
3153
|
-
date: String
|
|
3155
|
+
date: String,
|
|
3156
|
+
timezone: String
|
|
3154
3157
|
}
|
|
3155
3158
|
input DeleteAppointmentInput {
|
|
3156
3159
|
instanceDate: InstanceDate
|
|
@@ -3715,7 +3718,7 @@ type Mutation {
|
|
|
3715
3718
|
content: String
|
|
3716
3719
|
contentType: String
|
|
3717
3720
|
): ProfileImageChangeResponse
|
|
3718
|
-
checkCalendar(id: ID!, value: Boolean!):
|
|
3721
|
+
checkCalendar(id: ID!, value: Boolean!): ActionOpResponse
|
|
3719
3722
|
contactAction(
|
|
3720
3723
|
id: ID
|
|
3721
3724
|
ids: [ID!]
|
package/src/schema/schema.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { makeExecutableSchema } from '@graphql-tools/schema';
|
|
|
2
2
|
import mapValues from 'lodash/mapValues';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
+
ActionOpResponse,
|
|
5
6
|
AddMsgInput,
|
|
6
7
|
CalendarItemInput,
|
|
7
8
|
CounterAppointmentInput,
|
|
@@ -281,7 +282,7 @@ export function createZimbraSchema(options: ZimbraSchemaOptions): {
|
|
|
281
282
|
client.createMountpoint(variables as CreateMountpointInput),
|
|
282
283
|
deleteAppointment: (_, { appointment }) =>
|
|
283
284
|
client.deleteAppointment(appointment as DeleteAppointmentInput),
|
|
284
|
-
checkCalendar: (_, variables) =>
|
|
285
|
+
checkCalendar: (_, variables): Promise<ActionOpResponse> =>
|
|
285
286
|
client.checkCalendar(variables as FolderActionCheckCalendarInput),
|
|
286
287
|
counterAppointment: (_, { counterAppointmentInvite }) =>
|
|
287
288
|
client.counterAppointment(counterAppointmentInvite as CounterAppointmentInput),
|