@zimbra/api-client 78.0.0 → 80.1.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 -0
- package/dist/src/apollo/local-batch-link.d.ts +1 -1
- package/dist/src/apollo/offline-queue-link/index.d.ts +1 -1
- package/dist/src/apollo/offline-queue-link/types.d.ts +1 -2
- package/dist/src/apollo/offline-queue-link/util.d.ts +1 -1
- package/dist/src/apollo/zimbra-in-memory-cache.d.ts +1 -1
- package/dist/src/batch-client/index.d.ts +3 -1
- package/dist/src/normalize/entities.d.ts +1 -0
- package/dist/src/schema/generated-schema-types.d.ts +21 -0
- package/dist/zm-api-js-client.esm.js +5682 -1283
- 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 +196 -193
- package/package.json +6 -6
- package/src/apollo/local-batch-link.ts +1 -1
- package/src/apollo/offline-queue-link/index.ts +8 -1
- package/src/apollo/offline-queue-link/types.ts +1 -2
- package/src/apollo/offline-queue-link/util.ts +1 -1
- package/src/apollo/zimbra-in-memory-cache.ts +3 -1
- package/src/batch-client/index.ts +44 -3
- package/src/normalize/entities.ts +6 -1
- package/src/schema/generated-schema-types.ts +26 -0
- package/src/schema/schema.graphql +12 -0
- package/src/schema/schema.ts +3 -0
- package/src/schema/session-handler.ts +1 -1
- package/.tmp/introspected-schema.json +0 -31072
package/dist/schema.graphql
CHANGED
|
@@ -1310,6 +1310,7 @@ type AccountInfoAttrs {
|
|
|
1310
1310
|
zimbraFeatureMobileSyncEnabled: Boolean
|
|
1311
1311
|
zimbraFeatureRelatedContactsEnabled: Boolean
|
|
1312
1312
|
zimbraFeatureMailForwardingInFiltersEnabled: Boolean
|
|
1313
|
+
zimbraPasswordAllowUsername: Boolean
|
|
1313
1314
|
zimbraPasswordBlockCommonEnabled: Boolean
|
|
1314
1315
|
zimbraPasswordMinAlphaChars: Int
|
|
1315
1316
|
zimbraPasswordMinNumericChars: Int
|
|
@@ -1353,6 +1354,7 @@ type AccountInfoAttrs {
|
|
|
1353
1354
|
zimbraMailAttachmentMaxSize: Float
|
|
1354
1355
|
zimbraMtaMaxMessageSize: Float
|
|
1355
1356
|
zimbraMailAlias: [String]
|
|
1357
|
+
zimbraMailSignatureMaxLength: Float
|
|
1356
1358
|
zimbraFeatureTaggingEnabled: Boolean
|
|
1357
1359
|
zimbraIdentityMaxNumEntries: Int
|
|
1358
1360
|
zimbraFeatureIdentitiesEnabled: Boolean
|
|
@@ -1552,6 +1554,7 @@ type Document {
|
|
|
1552
1554
|
revisedCreationDate: Float #cd
|
|
1553
1555
|
lockOwnerId: ID #loid
|
|
1554
1556
|
flags: String #f
|
|
1557
|
+
docs: [Document]
|
|
1555
1558
|
}
|
|
1556
1559
|
|
|
1557
1560
|
type SearchResponse {
|
|
@@ -2452,6 +2455,12 @@ input InviteReplyInput {
|
|
|
2452
2455
|
exceptId: InstanceDate
|
|
2453
2456
|
}
|
|
2454
2457
|
|
|
2458
|
+
input PurgetRevisionInput {
|
|
2459
|
+
id: ID!
|
|
2460
|
+
ver: Int!
|
|
2461
|
+
includeOlderRevisions: Int
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2455
2464
|
input PropertiesInput {
|
|
2456
2465
|
zimlet: String!
|
|
2457
2466
|
name: String!
|
|
@@ -2972,6 +2981,7 @@ input SaveDocumentInput {
|
|
|
2972
2981
|
descriptionEnabled: Boolean #descEnabled
|
|
2973
2982
|
action: SaveDocumentAction
|
|
2974
2983
|
type: SaveDocumentType
|
|
2984
|
+
document: SaveDocumentInput
|
|
2975
2985
|
}
|
|
2976
2986
|
|
|
2977
2987
|
type SaveDocument {
|
|
@@ -3188,6 +3198,7 @@ type Query {
|
|
|
3188
3198
|
downloadMessage(id: ID!, isSecure: Boolean, isLocal: Boolean): SMimeMessage
|
|
3189
3199
|
downloadAttachment(id: ID!, part: ID!): Attachment
|
|
3190
3200
|
downloadDocument(id: ID!, url: String!): Attachment
|
|
3201
|
+
listDocumentRevisions(id: ID!, version: Int!, count: Int!): Document
|
|
3191
3202
|
discoverRights(right: [DiscoverRightInput!]!): DiscoverRights
|
|
3192
3203
|
freeBusy(names: [String!]!, start: Float, end: Float): [FreeBusy]
|
|
3193
3204
|
getContact(
|
|
@@ -3491,6 +3502,7 @@ type Mutation {
|
|
|
3491
3502
|
modifyTask(task: CalendarItemInput!): Boolean
|
|
3492
3503
|
modifyWhiteBlackList(whiteBlackList: WhiteBlackListInput!): Boolean
|
|
3493
3504
|
moveTask(inviteId: ID!, destFolderId: ID!): String
|
|
3505
|
+
purgeRevision(id: ID!, ver: Int!, includeOlderRevisions: Int): Boolean
|
|
3494
3506
|
prefEnableOutOfOfficeAlertOnLogin(value: Boolean!): Boolean
|
|
3495
3507
|
prefEnableOutOfOfficeReply(value: Boolean!): Boolean
|
|
3496
3508
|
prefOutOfOfficeFromDate(value: String!): String
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="zen-observable" />
|
|
2
|
-
import { ApolloLink, FetchResult, Observable, Operation } from '@apollo/client';
|
|
2
|
+
import { ApolloLink, FetchResult, Observable, Operation } from '@apollo/client/core';
|
|
3
3
|
import { LocalBatchLinkOptions } from './types';
|
|
4
4
|
export declare class LocalBatchLink extends ApolloLink {
|
|
5
5
|
off: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="zen-observable" />
|
|
2
|
-
import { ApolloLink, FetchResult, NextLink, Observable, Operation } from '@apollo/client';
|
|
2
|
+
import { ApolloLink, FetchResult, NextLink, Observable, Operation } from '@apollo/client/core';
|
|
3
3
|
import { OfflineQueueLinkOptions, OperationEntry, StorageProvider } from './types';
|
|
4
4
|
export declare class OfflineQueueLink extends ApolloLink {
|
|
5
5
|
isOpen: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FetchResult, NextLink, Operation } from '@apollo/client';
|
|
2
|
-
import { Observer } from '@apollo/client';
|
|
1
|
+
import { FetchResult, NextLink, Observer, Operation } from '@apollo/client/core';
|
|
3
2
|
export interface OfflineQueueLinkOptions {
|
|
4
3
|
isOpen?: boolean;
|
|
5
4
|
storage: StorageProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Operation } from '@apollo/client';
|
|
1
|
+
import { Operation } from '@apollo/client/core';
|
|
2
2
|
import { OfflineOperationEntry, OperationEntry } from './types';
|
|
3
3
|
export declare function hasSensitiveVariables(operation: Operation): boolean;
|
|
4
4
|
export declare function isMutationOperation({ query }: Operation): boolean;
|
|
@@ -125,6 +125,7 @@ export declare class ZimbraBatchClient {
|
|
|
125
125
|
importExternalAccount: ({ accountType, id }: ExternalAccountImportInput) => Promise<boolean>;
|
|
126
126
|
itemAction: (options: ActionOptions) => Promise<boolean>;
|
|
127
127
|
jsonRequest: (options: JsonRequestOptions) => Promise<any>;
|
|
128
|
+
listDocumentRevisions: ({ id, version, count }: any) => Promise<any>;
|
|
128
129
|
login: ({ username, password, recoveryCode, tokenType, persistAuthTokenCookie, twoFactorCode, deviceTrusted, csrfTokenSecured, ignoreSameSite }: LoginOptions) => Promise<{}>;
|
|
129
130
|
logout: () => Promise<boolean>;
|
|
130
131
|
messageAction: (options: ActionOptions) => Promise<boolean>;
|
|
@@ -142,12 +143,13 @@ export declare class ZimbraBatchClient {
|
|
|
142
143
|
modifyWhiteBlackList: (whiteBlackList: WhiteBlackListInput) => Promise<boolean>;
|
|
143
144
|
modifyZimletPrefs: (zimlet: Array<ZimletPreferenceInput>) => Promise<any>;
|
|
144
145
|
noop: ({ wait, limitToOneBlocked }: NoOpOptions, fetchOptions: any) => Promise<any>;
|
|
146
|
+
purgeRevision: ({ id, ver, includeOlderRevisions }: any) => Promise<boolean>;
|
|
145
147
|
quarantineDeviceSync: (deviceId: String) => Promise<any>;
|
|
146
148
|
recoverAccount: ({ channel, email, op }: RecoverAccountOptions) => Promise<any>;
|
|
147
149
|
relatedContacts: ({ email }: RelatedContactsOptions) => Promise<any>;
|
|
148
150
|
remoteWipeSync: (deviceId: String) => Promise<any>;
|
|
149
151
|
removeDeviceSync: (deviceId: String) => Promise<any>;
|
|
150
|
-
resetPassword: ({ password, dryRun, getPasswordRules, cancelResetPassword }: ResetPasswordOptions) => Promise<
|
|
152
|
+
resetPassword: ({ password, dryRun, getPasswordRules, cancelResetPassword }: ResetPasswordOptions) => Promise<{}>;
|
|
151
153
|
resolve: (path: string) => string;
|
|
152
154
|
revokeAppSpecificPassword: (appName: string) => Promise<boolean>;
|
|
153
155
|
revokeOtherTrustedDevices: () => Promise<boolean>;
|
|
@@ -31,6 +31,7 @@ export declare const Contact: Entity;
|
|
|
31
31
|
export declare const AutoCompleteGALResponse: Entity;
|
|
32
32
|
export declare const Appointment: Entity;
|
|
33
33
|
export declare const Document: Entity;
|
|
34
|
+
export declare const ListDocumentRevisions: Entity;
|
|
34
35
|
export declare const MessagePartInputForDocuments: Entity;
|
|
35
36
|
export declare const SaveDocument: Entity;
|
|
36
37
|
export declare const SearchResponse: Entity;
|
|
@@ -127,7 +127,9 @@ export declare type AccountInfoAttrs = {
|
|
|
127
127
|
zimbraMailAttachmentMaxSize?: Maybe<Scalars['Float']>;
|
|
128
128
|
zimbraMailBlacklistMaxNumEntries?: Maybe<Scalars['Int']>;
|
|
129
129
|
zimbraMailQuota?: Maybe<Scalars['String']>;
|
|
130
|
+
zimbraMailSignatureMaxLength?: Maybe<Scalars['Float']>;
|
|
130
131
|
zimbraMtaMaxMessageSize?: Maybe<Scalars['Float']>;
|
|
132
|
+
zimbraPasswordAllowUsername?: Maybe<Scalars['Boolean']>;
|
|
131
133
|
zimbraPasswordAllowedChars?: Maybe<Scalars['String']>;
|
|
132
134
|
zimbraPasswordAllowedPunctuationChars?: Maybe<Scalars['String']>;
|
|
133
135
|
zimbraPasswordBlockCommonEnabled?: Maybe<Scalars['Boolean']>;
|
|
@@ -1143,6 +1145,7 @@ export declare type Document = {
|
|
|
1143
1145
|
contentType?: Maybe<Scalars['String']>;
|
|
1144
1146
|
date?: Maybe<Scalars['Float']>;
|
|
1145
1147
|
descriptionEnabled?: Maybe<Scalars['Boolean']>;
|
|
1148
|
+
docs?: Maybe<Array<Maybe<Document>>>;
|
|
1146
1149
|
flags?: Maybe<Scalars['String']>;
|
|
1147
1150
|
folderId?: Maybe<Scalars['ID']>;
|
|
1148
1151
|
folderUuid?: Maybe<Scalars['String']>;
|
|
@@ -2212,6 +2215,7 @@ export declare type Mutation = {
|
|
|
2212
2215
|
prefOutOfOfficeFromDate?: Maybe<Scalars['String']>;
|
|
2213
2216
|
prefOutOfOfficeReply?: Maybe<Scalars['String']>;
|
|
2214
2217
|
prefOutOfOfficeUntilDate?: Maybe<Scalars['String']>;
|
|
2218
|
+
purgeRevision?: Maybe<Scalars['Boolean']>;
|
|
2215
2219
|
quarantineDeviceSync?: Maybe<Device>;
|
|
2216
2220
|
recoverAccount?: Maybe<RecoverAccount>;
|
|
2217
2221
|
remoteWipeSync?: Maybe<Device>;
|
|
@@ -2498,6 +2502,11 @@ export declare type MutationPrefOutOfOfficeReplyArgs = {
|
|
|
2498
2502
|
export declare type MutationPrefOutOfOfficeUntilDateArgs = {
|
|
2499
2503
|
value: Scalars['String'];
|
|
2500
2504
|
};
|
|
2505
|
+
export declare type MutationPurgeRevisionArgs = {
|
|
2506
|
+
id: Scalars['ID'];
|
|
2507
|
+
includeOlderRevisions?: InputMaybe<Scalars['Int']>;
|
|
2508
|
+
ver: Scalars['Int'];
|
|
2509
|
+
};
|
|
2501
2510
|
export declare type MutationQuarantineDeviceSyncArgs = {
|
|
2502
2511
|
deviceId?: InputMaybe<Scalars['String']>;
|
|
2503
2512
|
};
|
|
@@ -2830,6 +2839,11 @@ export declare type PropertiesInput = {
|
|
|
2830
2839
|
name: Scalars['String'];
|
|
2831
2840
|
zimlet: Scalars['String'];
|
|
2832
2841
|
};
|
|
2842
|
+
export declare type PurgetRevisionInput = {
|
|
2843
|
+
id: Scalars['ID'];
|
|
2844
|
+
includeOlderRevisions?: InputMaybe<Scalars['Int']>;
|
|
2845
|
+
ver: Scalars['Int'];
|
|
2846
|
+
};
|
|
2833
2847
|
export declare type Query = {
|
|
2834
2848
|
__typename?: 'Query';
|
|
2835
2849
|
accountInfo?: Maybe<AccountInfo>;
|
|
@@ -2874,6 +2888,7 @@ export declare type Query = {
|
|
|
2874
2888
|
getTrustedDevices?: Maybe<GetTrustedDevicesResponse>;
|
|
2875
2889
|
getWhiteBlackList?: Maybe<WhiteBlackList>;
|
|
2876
2890
|
getWorkingHours?: Maybe<Array<Maybe<WorkingHours>>>;
|
|
2891
|
+
listDocumentRevisions?: Maybe<Document>;
|
|
2877
2892
|
noop?: Maybe<NoOpResponse>;
|
|
2878
2893
|
recoverAccount?: Maybe<RecoverAccount>;
|
|
2879
2894
|
relatedContacts?: Maybe<Array<Maybe<RelatedContact>>>;
|
|
@@ -3028,6 +3043,11 @@ export declare type QueryGetWorkingHoursArgs = {
|
|
|
3028
3043
|
names: Array<Scalars['String']>;
|
|
3029
3044
|
start?: InputMaybe<Scalars['Float']>;
|
|
3030
3045
|
};
|
|
3046
|
+
export declare type QueryListDocumentRevisionsArgs = {
|
|
3047
|
+
count: Scalars['Int'];
|
|
3048
|
+
id: Scalars['ID'];
|
|
3049
|
+
version: Scalars['Int'];
|
|
3050
|
+
};
|
|
3031
3051
|
export declare type QueryNoopArgs = {
|
|
3032
3052
|
limitToOneBlocked?: InputMaybe<Scalars['Int']>;
|
|
3033
3053
|
wait?: InputMaybe<Scalars['Int']>;
|
|
@@ -3233,6 +3253,7 @@ export declare type SaveDocumentInput = {
|
|
|
3233
3253
|
action?: InputMaybe<SaveDocumentAction>;
|
|
3234
3254
|
contentType?: InputMaybe<Scalars['String']>;
|
|
3235
3255
|
descriptionEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
3256
|
+
document?: InputMaybe<SaveDocumentInput>;
|
|
3236
3257
|
folderId?: InputMaybe<Scalars['ID']>;
|
|
3237
3258
|
id?: InputMaybe<Scalars['ID']>;
|
|
3238
3259
|
messageData?: InputMaybe<Array<InputMaybe<MessagePartForDocument>>>;
|