@zimbra/api-client 101.0.1-master.f5423b8.0 → 102.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 +12 -4
- package/dist/src/batch-client/index.d.ts +3 -2
- package/dist/src/batch-client/types.d.ts +1 -1
- package/dist/src/normalize/entities.d.ts +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +13 -3
- package/dist/zm-api-js-client.esm.js +101 -49
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +2 -2
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +8 -8
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +21073 -0
- package/package.json +2 -2
- package/src/apollo/zimbra-in-memory-cache.ts +30 -0
- package/src/batch-client/index.ts +18 -5
- package/src/batch-client/types.ts +1 -1
- package/src/normalize/entities.ts +9 -0
- package/src/schema/generated-schema-types.ts +16 -3
- package/src/schema/schema.graphql +12 -4
- package/src/schema/schema.ts +2 -0
package/dist/schema.graphql
CHANGED
|
@@ -1175,6 +1175,7 @@ type Folder {
|
|
|
1175
1175
|
absFolderPath: String
|
|
1176
1176
|
acl: ACL
|
|
1177
1177
|
color: Int
|
|
1178
|
+
rgb: String
|
|
1178
1179
|
flags: String
|
|
1179
1180
|
id: ID
|
|
1180
1181
|
uuid: ID
|
|
@@ -2141,7 +2142,7 @@ type MailboxMetadataAttrs {
|
|
|
2141
2142
|
zimbraPrefFoldersExpanded: String
|
|
2142
2143
|
zimbraPrefFolderTreeSash: Int
|
|
2143
2144
|
zimbraPrefGenerateLinkPreviews: Boolean
|
|
2144
|
-
|
|
2145
|
+
zimbraPrefGroupByListModern: String
|
|
2145
2146
|
zimbraPrefMessageListDensity: String
|
|
2146
2147
|
zimbraPrefMultitasking: String
|
|
2147
2148
|
zimbraPrefReadingPaneSashHorizontal: Int
|
|
@@ -2178,7 +2179,7 @@ input MailboxMetadataSectionAttrsInput {
|
|
|
2178
2179
|
zimbraPrefFoldersExpanded: String
|
|
2179
2180
|
zimbraPrefFolderTreeSash: Int
|
|
2180
2181
|
zimbraPrefGenerateLinkPreviews: Boolean
|
|
2181
|
-
|
|
2182
|
+
zimbraPrefGroupByListModern: String
|
|
2182
2183
|
zimbraPrefMessageListDensity: String
|
|
2183
2184
|
zimbraPrefMultitasking: String
|
|
2184
2185
|
zimbraPrefReadingPaneSashHorizontal: Int
|
|
@@ -3047,6 +3048,11 @@ input ForwardMessageInput {
|
|
|
3047
3048
|
emailAddresses: [MailItemEmailAddressInput] #e
|
|
3048
3049
|
}
|
|
3049
3050
|
|
|
3051
|
+
input RedirectMessgeInput {
|
|
3052
|
+
id: ID!
|
|
3053
|
+
emailAddresses: [MailItemEmailAddressInput]
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3050
3056
|
input ShareNotificationInput {
|
|
3051
3057
|
action: ShareInputAction
|
|
3052
3058
|
item: ShareNotificationItemInput!
|
|
@@ -3643,7 +3649,7 @@ type Query {
|
|
|
3643
3649
|
getMessagesMetadata(ids: [ID!]!, isLocal: Boolean): [MessageInfo]
|
|
3644
3650
|
getRights(input: GetRightsInput!): RightsResponse
|
|
3645
3651
|
getSMimePublicCerts(
|
|
3646
|
-
contactAddr: String!
|
|
3652
|
+
contactAddr: [String]!
|
|
3647
3653
|
store: String!
|
|
3648
3654
|
): SMimePublicCertsResponse
|
|
3649
3655
|
getSMimeCertInfo(certId: String): SmimeCertInfoResponse
|
|
@@ -3786,6 +3792,7 @@ type Mutation {
|
|
|
3786
3792
|
modifyContactList(contact: ModifyContactInput!): Contact
|
|
3787
3793
|
createFolder(
|
|
3788
3794
|
color: Int
|
|
3795
|
+
rgb: String
|
|
3789
3796
|
fetchIfExists: Boolean
|
|
3790
3797
|
flags: String
|
|
3791
3798
|
name: String!
|
|
@@ -3928,9 +3935,10 @@ type Mutation {
|
|
|
3928
3935
|
cancelPendingRemoteWipeSync(deviceId: String): Device
|
|
3929
3936
|
subscribeDistributionList(op: String!, by: String, dl: String!): String
|
|
3930
3937
|
distributionListAction(dlActions: DistributionListActionInput!): Boolean
|
|
3938
|
+
bounceMessage(message: RedirectMessgeInput): Boolean
|
|
3931
3939
|
}
|
|
3932
3940
|
|
|
3933
3941
|
schema {
|
|
3934
3942
|
query: Query
|
|
3935
3943
|
mutation: Mutation
|
|
3936
|
-
}
|
|
3944
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonRequestOptions } from '../request/types';
|
|
2
|
-
import { ActionOpResponse, AddMsgInput, CalendarItemInput, CounterAppointmentInput, CreateContactInput, CreateIdentityInput, CreateMountpointInput, CreateTagInput, DeleteAppointmentInput, DeleteIdentityInput, DistributionListActionInput, EnableTwoFactorAuthInput, ExternalAccountAddInput, ExternalAccountImportInput, ExternalAccountTestInput, FilterInput, FolderActionChangeColorInput, FolderActionCheckCalendarInput, ForwardAppointmentInput, ForwardAppointmentInviteInput, GetRightsInput, GrantRightsInput, InviteReplyInput, ModifyContactInput, ModifyIdentityInput, PreferencesInput, RevokeRightsInput, SaveSMimeCertInputUpload, SearchFolderInput, SendMessageInput, SendTwoFactorAuthCodeInput, ShareNotificationInput, SignatureInput, WhiteBlackListInput, ZimletPreferenceInput } from '../schema/generated-schema-types';
|
|
2
|
+
import { ActionOpResponse, AddMsgInput, CalendarItemInput, CounterAppointmentInput, CreateContactInput, CreateIdentityInput, CreateMountpointInput, CreateTagInput, DeleteAppointmentInput, DeleteIdentityInput, DistributionListActionInput, EnableTwoFactorAuthInput, ExternalAccountAddInput, ExternalAccountImportInput, ExternalAccountTestInput, FilterInput, FolderActionChangeColorInput, FolderActionCheckCalendarInput, ForwardAppointmentInput, ForwardAppointmentInviteInput, GetRightsInput, GrantRightsInput, InviteReplyInput, ModifyContactInput, ModifyIdentityInput, PreferencesInput, RedirectMessgeInput, RevokeRightsInput, SaveSMimeCertInputUpload, SearchFolderInput, SendMessageInput, SendTwoFactorAuthCodeInput, ShareNotificationInput, SignatureInput, WhiteBlackListInput, ZimletPreferenceInput } from '../schema/generated-schema-types';
|
|
3
3
|
import { ActionOptions, ActionType, ApplyFilterRulesOptions, AppointmentOptions, AutoCompleteGALOptions, AutoCompleteOptions, ChangePasswordOptions, CreateFolderOptions, CreateSearchFolderOptions, DiscoverRightOptions, ExternalAccountDeleteInput, ExternalAccountModifyInput, FreeBusyOptions, GetContactFrequencyOptions, GetContactOptions, GetConversationOptions, GetCustomMetadataOptions, GetDocumentShareURLOptions, GetFolderOptions, GetMailboxMetadataOptions, GetMessageOptions, GetSMimePublicCertsOptions, LoginOptions, ModifyProfileImageOptions, NoOpOptions, RecoverAccountOptions, RelatedContactsOptions, ResetPasswordOptions, SaveDocumentInput, SearchCalendarResourcesOptions, SearchOptions, SetRecoveryAccountOptions, ShareInfoOptions, WorkingHoursOptions, ZimbraClientOptions } from './types';
|
|
4
4
|
import { Notifier } from './notifier';
|
|
5
5
|
export declare class ZimbraBatchClient {
|
|
@@ -28,6 +28,7 @@ export declare class ZimbraBatchClient {
|
|
|
28
28
|
autoComplete: (options: AutoCompleteOptions) => Promise<any>;
|
|
29
29
|
autoCompleteGAL: (options: AutoCompleteGALOptions) => Promise<any>;
|
|
30
30
|
blockDeviceSync: (deviceId: string) => Promise<any>;
|
|
31
|
+
bounceMsg: (options: RedirectMessgeInput) => Promise<boolean>;
|
|
31
32
|
cancelPendingAccountOnlyRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
32
33
|
cancelPendingRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
33
34
|
cancelTask: ({ inviteId }: any) => Promise<boolean>;
|
|
@@ -121,7 +122,7 @@ export declare class ZimbraBatchClient {
|
|
|
121
122
|
}>;
|
|
122
123
|
getSignatures: () => Promise<{}>;
|
|
123
124
|
getSMimeCertInfo: () => Promise<any>;
|
|
124
|
-
getSMimePublicCerts: (
|
|
125
|
+
getSMimePublicCerts: ({ contactAddr, store }: GetSMimePublicCertsOptions) => Promise<any>;
|
|
125
126
|
getTag: () => Promise<any>;
|
|
126
127
|
getTasks: (options: SearchOptions) => Promise<any>;
|
|
127
128
|
getTrustedDevices: () => Promise<any>;
|
|
@@ -259,7 +259,7 @@ export interface CreateSearchFolderOptions {
|
|
|
259
259
|
view?: string;
|
|
260
260
|
}
|
|
261
261
|
export interface GetSMimePublicCertsOptions {
|
|
262
|
-
contactAddr: string
|
|
262
|
+
contactAddr: string | Array<string>;
|
|
263
263
|
store: string;
|
|
264
264
|
}
|
|
265
265
|
export declare enum SetRecoveryAccountOpType {
|
|
@@ -40,6 +40,7 @@ export declare const CalResourceAttributes: Entity;
|
|
|
40
40
|
export declare const CalResource: Entity;
|
|
41
41
|
export declare const SearchCalendarResourcesResponse: Entity;
|
|
42
42
|
export declare const GetAppointmentResponse: Entity;
|
|
43
|
+
export declare const RedirectMessage: Entity;
|
|
43
44
|
export declare const Filter: Entity;
|
|
44
45
|
export declare const InviteReply: Entity;
|
|
45
46
|
export declare const CreateSignatureRequest: Entity;
|
|
@@ -1672,6 +1672,7 @@ export type Folder = {
|
|
|
1672
1672
|
query?: Maybe<Scalars['String']['output']>;
|
|
1673
1673
|
retentionPolicy?: Maybe<Array<Maybe<RetentionPolicy>>>;
|
|
1674
1674
|
revision?: Maybe<Scalars['Float']['output']>;
|
|
1675
|
+
rgb?: Maybe<Scalars['String']['output']>;
|
|
1675
1676
|
search?: Maybe<Array<Maybe<Folder>>>;
|
|
1676
1677
|
sharedItemId?: Maybe<Scalars['ID']['output']>;
|
|
1677
1678
|
types?: Maybe<Scalars['String']['output']>;
|
|
@@ -2193,7 +2194,7 @@ export type MailboxMetadataAttrs = {
|
|
|
2193
2194
|
zimbraPrefFolderTreeSash?: Maybe<Scalars['Int']['output']>;
|
|
2194
2195
|
zimbraPrefFoldersExpanded?: Maybe<Scalars['String']['output']>;
|
|
2195
2196
|
zimbraPrefGenerateLinkPreviews?: Maybe<Scalars['Boolean']['output']>;
|
|
2196
|
-
|
|
2197
|
+
zimbraPrefGroupByListModern?: Maybe<Scalars['String']['output']>;
|
|
2197
2198
|
zimbraPrefHideMuteConvModal?: Maybe<Scalars['Boolean']['output']>;
|
|
2198
2199
|
zimbraPrefMessageListDensity?: Maybe<Scalars['String']['output']>;
|
|
2199
2200
|
zimbraPrefMultitasking?: Maybe<Scalars['String']['output']>;
|
|
@@ -2225,7 +2226,7 @@ export type MailboxMetadataSectionAttrsInput = {
|
|
|
2225
2226
|
zimbraPrefFolderTreeSash?: InputMaybe<Scalars['Int']['input']>;
|
|
2226
2227
|
zimbraPrefFoldersExpanded?: InputMaybe<Scalars['String']['input']>;
|
|
2227
2228
|
zimbraPrefGenerateLinkPreviews?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2228
|
-
|
|
2229
|
+
zimbraPrefGroupByListModern?: InputMaybe<Scalars['String']['input']>;
|
|
2229
2230
|
zimbraPrefHideMuteConvModal?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2230
2231
|
zimbraPrefMessageListDensity?: InputMaybe<Scalars['String']['input']>;
|
|
2231
2232
|
zimbraPrefMultitasking?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2420,6 +2421,7 @@ export type Mutation = {
|
|
|
2420
2421
|
allowDeviceSync?: Maybe<Device>;
|
|
2421
2422
|
applyFilterRules?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2422
2423
|
blockDeviceSync?: Maybe<Device>;
|
|
2424
|
+
bounceMessage?: Maybe<Scalars['Boolean']['output']>;
|
|
2423
2425
|
cancelPendingAccountOnlyRemoteWipeSync?: Maybe<Device>;
|
|
2424
2426
|
cancelPendingRemoteWipeSync?: Maybe<Device>;
|
|
2425
2427
|
cancelTask?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2546,6 +2548,9 @@ export type MutationApplyFilterRulesArgs = {
|
|
|
2546
2548
|
export type MutationBlockDeviceSyncArgs = {
|
|
2547
2549
|
deviceId?: InputMaybe<Scalars['String']['input']>;
|
|
2548
2550
|
};
|
|
2551
|
+
export type MutationBounceMessageArgs = {
|
|
2552
|
+
message?: InputMaybe<RedirectMessgeInput>;
|
|
2553
|
+
};
|
|
2549
2554
|
export type MutationCancelPendingAccountOnlyRemoteWipeSyncArgs = {
|
|
2550
2555
|
deviceId?: InputMaybe<Scalars['String']['input']>;
|
|
2551
2556
|
};
|
|
@@ -2614,6 +2619,7 @@ export type MutationCreateFolderArgs = {
|
|
|
2614
2619
|
isLocalFolder?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2615
2620
|
name: Scalars['String']['input'];
|
|
2616
2621
|
parentFolderId?: InputMaybe<Scalars['ID']['input']>;
|
|
2622
|
+
rgb?: InputMaybe<Scalars['String']['input']>;
|
|
2617
2623
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
2618
2624
|
view?: InputMaybe<FolderView>;
|
|
2619
2625
|
};
|
|
@@ -3377,7 +3383,7 @@ export type QueryGetSMimeCertInfoArgs = {
|
|
|
3377
3383
|
certId?: InputMaybe<Scalars['String']['input']>;
|
|
3378
3384
|
};
|
|
3379
3385
|
export type QueryGetSMimePublicCertsArgs = {
|
|
3380
|
-
contactAddr: Scalars['String']['input']
|
|
3386
|
+
contactAddr: Array<InputMaybe<Scalars['String']['input']>>;
|
|
3381
3387
|
store: Scalars['String']['input'];
|
|
3382
3388
|
};
|
|
3383
3389
|
export type QueryGetScratchCodesArgs = {
|
|
@@ -3486,6 +3492,10 @@ export type RedirectActionInput = {
|
|
|
3486
3492
|
copy?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3487
3493
|
index?: InputMaybe<Scalars['Int']['input']>;
|
|
3488
3494
|
};
|
|
3495
|
+
export type RedirectMessgeInput = {
|
|
3496
|
+
emailAddresses?: InputMaybe<Array<InputMaybe<MailItemEmailAddressInput>>>;
|
|
3497
|
+
id: Scalars['ID']['input'];
|
|
3498
|
+
};
|
|
3489
3499
|
export type RelatedContact = {
|
|
3490
3500
|
__typename?: 'RelatedContact';
|
|
3491
3501
|
email?: Maybe<Scalars['String']['output']>;
|