@zimbra/api-client 96.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 +10 -2
- package/dist/src/batch-client/index.d.ts +2 -2
- package/dist/src/schema/generated-schema-types.d.ts +9 -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 +9 -1
- package/src/schema/schema.graphql +10 -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']>;
|
|
@@ -100,6 +102,7 @@ export type AccountInfoAttrs = {
|
|
|
100
102
|
zimbraFeatureCalendarEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
101
103
|
zimbraFeatureChangePasswordEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
102
104
|
zimbraFeatureConversationsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
105
|
+
zimbraFeatureDeliveryStatusNotificationEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
103
106
|
zimbraFeatureDiscardInFiltersEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
104
107
|
zimbraFeatureDistributionListExpandMembersEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
105
108
|
zimbraFeatureDistributionListFolderEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2193,6 +2196,7 @@ export type Instance = {
|
|
|
2193
2196
|
|
|
2194
2197
|
export type InstanceDate = {
|
|
2195
2198
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
2199
|
+
timezone?: InputMaybe<Scalars['String']['input']>;
|
|
2196
2200
|
};
|
|
2197
2201
|
|
|
2198
2202
|
export type IntervalRule = {
|
|
@@ -2479,6 +2483,7 @@ export type MessageInfo = MailItem & {
|
|
|
2479
2483
|
conversationId?: Maybe<Scalars['ID']['output']>;
|
|
2480
2484
|
date?: Maybe<Scalars['Float']['output']>;
|
|
2481
2485
|
decryptionErrorCode?: Maybe<Scalars['String']['output']>;
|
|
2486
|
+
deliveryReport?: Maybe<Scalars['Boolean']['output']>;
|
|
2482
2487
|
emailAddresses?: Maybe<Array<Maybe<EmailAddress>>>;
|
|
2483
2488
|
excerpt?: Maybe<Scalars['String']['output']>;
|
|
2484
2489
|
flags?: Maybe<Scalars['String']['output']>;
|
|
@@ -2654,7 +2659,7 @@ export type Mutation = {
|
|
|
2654
2659
|
cancelTask?: Maybe<Scalars['Boolean']['output']>;
|
|
2655
2660
|
changeFolderColor?: Maybe<Scalars['Boolean']['output']>;
|
|
2656
2661
|
changePassword?: Maybe<AuthResponse>;
|
|
2657
|
-
checkCalendar?: Maybe<
|
|
2662
|
+
checkCalendar?: Maybe<ActionOpResponse>;
|
|
2658
2663
|
contactAction?: Maybe<ActionOpResponse>;
|
|
2659
2664
|
conversationAction?: Maybe<Scalars['Boolean']['output']>;
|
|
2660
2665
|
counterAppointment?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -3474,6 +3479,7 @@ export type Preferences = {
|
|
|
3474
3479
|
zimbraPrefHtmlEditorDefaultFontFamily?: Maybe<Scalars['String']['output']>;
|
|
3475
3480
|
zimbraPrefHtmlEditorDefaultFontSize?: Maybe<Scalars['String']['output']>;
|
|
3476
3481
|
zimbraPrefLocale?: Maybe<Scalars['String']['output']>;
|
|
3482
|
+
zimbraPrefMailDeliveryStatusNotification?: Maybe<Scalars['Boolean']['output']>;
|
|
3477
3483
|
zimbraPrefMailForwardingAddress?: Maybe<Scalars['String']['output']>;
|
|
3478
3484
|
zimbraPrefMailLocalDeliveryDisabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3479
3485
|
zimbraPrefMailPollingInterval?: Maybe<Scalars['String']['output']>;
|
|
@@ -3539,6 +3545,7 @@ export type PreferencesInput = {
|
|
|
3539
3545
|
zimbraPrefHtmlEditorDefaultFontFamily?: InputMaybe<Scalars['String']['input']>;
|
|
3540
3546
|
zimbraPrefHtmlEditorDefaultFontSize?: InputMaybe<Scalars['String']['input']>;
|
|
3541
3547
|
zimbraPrefLocale?: InputMaybe<Scalars['String']['input']>;
|
|
3548
|
+
zimbraPrefMailDeliveryStatusNotification?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3542
3549
|
zimbraPrefMailForwardingAddress?: InputMaybe<Scalars['String']['input']>;
|
|
3543
3550
|
zimbraPrefMailLocalDeliveryDisabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3544
3551
|
zimbraPrefMailPollingInterval?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4248,6 +4255,7 @@ export type SendMessageInput = {
|
|
|
4248
4255
|
attachmentId?: InputMaybe<Scalars['ID']['input']>;
|
|
4249
4256
|
attachments?: InputMaybe<Array<InputMaybe<AttachmentInput>>>;
|
|
4250
4257
|
autoSendTime?: InputMaybe<Scalars['Float']['input']>;
|
|
4258
|
+
deliveryReport?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4251
4259
|
draftId?: InputMaybe<Scalars['ID']['input']>;
|
|
4252
4260
|
emailAddresses?: InputMaybe<Array<InputMaybe<MailItemEmailAddressInput>>>;
|
|
4253
4261
|
entityId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -576,6 +576,7 @@ type MessageInfo implements MailItem {
|
|
|
576
576
|
part: String
|
|
577
577
|
meta: [CustomMetadataMeta]
|
|
578
578
|
_attrs: [CustomHeader]
|
|
579
|
+
deliveryReport: Boolean
|
|
579
580
|
}
|
|
580
581
|
|
|
581
582
|
type Conversation implements MailItem {
|
|
@@ -1453,6 +1454,8 @@ type AccountZimletConfigInfo {
|
|
|
1453
1454
|
|
|
1454
1455
|
type AccountInfoAttrs {
|
|
1455
1456
|
displayName: String
|
|
1457
|
+
zimbraAttachmentsBlocked: Boolean
|
|
1458
|
+
zimbraAttachmentsViewInHtmlOnly: Boolean
|
|
1456
1459
|
zimbraBrandingFolderName: String
|
|
1457
1460
|
zimbraDataSourceMaxNumEntries: Int
|
|
1458
1461
|
zimbraDomainTrialConvertAtExpiration: Boolean
|
|
@@ -1547,6 +1550,7 @@ type AccountInfoAttrs {
|
|
|
1547
1550
|
zimbraFeatureBasicOneToOneChatEnabled: Boolean
|
|
1548
1551
|
zimbraFeatureAdvancedChatEnabled: Boolean
|
|
1549
1552
|
zimbraMailIdleSessionTimeout: String
|
|
1553
|
+
zimbraFeatureDeliveryStatusNotificationEnabled: Boolean
|
|
1550
1554
|
}
|
|
1551
1555
|
|
|
1552
1556
|
type AccountCos {
|
|
@@ -1697,6 +1701,7 @@ type Preferences {
|
|
|
1697
1701
|
zimbraPrefPowerPasteEnabled: Boolean
|
|
1698
1702
|
zimbraPrefDisplayTimeInMailList: Boolean
|
|
1699
1703
|
zimbraPrefPrimaryTwoFactorAuthMethod: String
|
|
1704
|
+
zimbraPrefMailDeliveryStatusNotification: Boolean
|
|
1700
1705
|
}
|
|
1701
1706
|
|
|
1702
1707
|
type GetAppointmentResponse {
|
|
@@ -2344,6 +2349,7 @@ input SendMessageInput {
|
|
|
2344
2349
|
attachments: [AttachmentInput] #attach
|
|
2345
2350
|
inlineAttachments: [MimePartInput] #attach
|
|
2346
2351
|
header: [HeaderInput] #header
|
|
2352
|
+
deliveryReport: Boolean #deliveryReport
|
|
2347
2353
|
}
|
|
2348
2354
|
|
|
2349
2355
|
input HeaderInput {
|
|
@@ -2772,6 +2778,7 @@ input PreferencesInput {
|
|
|
2772
2778
|
zimbraPrefDisplayTimeInMailList: Boolean
|
|
2773
2779
|
zimbraPrefPrimaryTwoFactorAuthMethod: String
|
|
2774
2780
|
zimbraPrefDeleteInviteOnReply: Boolean
|
|
2781
|
+
zimbraPrefMailDeliveryStatusNotification: Boolean
|
|
2775
2782
|
}
|
|
2776
2783
|
|
|
2777
2784
|
input ModifyIdentityInput {
|
|
@@ -3145,7 +3152,8 @@ input NameIdInput {
|
|
|
3145
3152
|
name: String
|
|
3146
3153
|
}
|
|
3147
3154
|
input InstanceDate {
|
|
3148
|
-
date: String
|
|
3155
|
+
date: String,
|
|
3156
|
+
timezone: String
|
|
3149
3157
|
}
|
|
3150
3158
|
input DeleteAppointmentInput {
|
|
3151
3159
|
instanceDate: InstanceDate
|
|
@@ -3710,7 +3718,7 @@ type Mutation {
|
|
|
3710
3718
|
content: String
|
|
3711
3719
|
contentType: String
|
|
3712
3720
|
): ProfileImageChangeResponse
|
|
3713
|
-
checkCalendar(id: ID!, value: Boolean!):
|
|
3721
|
+
checkCalendar(id: ID!, value: Boolean!): ActionOpResponse
|
|
3714
3722
|
contactAction(
|
|
3715
3723
|
id: ID
|
|
3716
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),
|