@zimbra/api-client 100.1.0 → 100.1.1-master.dc4f391.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 +9 -2
- package/dist/src/batch-client/index.d.ts +17 -17
- package/dist/src/batch-client/types.d.ts +11 -11
- package/dist/src/request/types.d.ts +2 -2
- package/dist/src/schema/generated-schema-types.d.ts +9 -4
- package/dist/src/utils/normalize-attrs-custommetadata.d.ts +1 -1
- package/dist/src/utils/normalize-otherAttribute-contact.d.ts +1 -1
- package/dist/zm-api-js-client.esm.js +144 -134
- 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 +2 -2
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/eslint.config.mjs +10 -0
- package/package-lock.json +13265 -3625
- package/package.json +8 -9
- package/src/batch-client/index.ts +57 -64
- package/src/batch-client/types.ts +11 -11
- package/src/normalize/index.ts +1 -1
- package/src/request/index.ts +20 -8
- package/src/request/types.ts +2 -2
- package/src/schema/generated-schema-types.ts +10 -4
- package/src/schema/schema.graphql +9 -2
- package/src/schema/schema.ts +6 -4
- package/src/utils/normalize-attrs-custommetadata.ts +1 -1
- package/src/utils/normalize-mime-parts.ts +10 -6
- package/src/utils/normalize-otherAttribute-contact.ts +2 -2
- package/.prettierrc +0 -6
- package/tslint.json +0 -20
package/dist/schema.graphql
CHANGED
|
@@ -181,6 +181,11 @@ enum AddressType {
|
|
|
181
181
|
rf # resent-from
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
enum ConversationOrderBy {
|
|
185
|
+
dateAsc
|
|
186
|
+
dateDesc
|
|
187
|
+
}
|
|
188
|
+
|
|
184
189
|
# https://github.com/Zimbra/zm-mailbox/blob/develop/store/docs/acl.md
|
|
185
190
|
enum GranteeType {
|
|
186
191
|
usr # Zimbra User
|
|
@@ -1719,6 +1724,7 @@ type Preferences {
|
|
|
1719
1724
|
zimbraPrefPop3DownloadSince: String
|
|
1720
1725
|
zimbraPrefPop3IncludeSpam: Boolean
|
|
1721
1726
|
zimbraPrefPop3DeleteOption: Pop3DeleteOption
|
|
1727
|
+
zimbraPrefConversationOrder: ConversationOrderBy
|
|
1722
1728
|
}
|
|
1723
1729
|
|
|
1724
1730
|
type GetAppointmentResponse {
|
|
@@ -2673,7 +2679,7 @@ input FolderActionChangeColorInput {
|
|
|
2673
2679
|
color: Int!
|
|
2674
2680
|
}
|
|
2675
2681
|
|
|
2676
|
-
# Special case of FolderAction for `
|
|
2682
|
+
# Special case of FolderAction for `checkCalendars` resolver
|
|
2677
2683
|
input FolderActionCheckCalendarInput {
|
|
2678
2684
|
id: ID!
|
|
2679
2685
|
value: Boolean
|
|
@@ -2809,6 +2815,7 @@ input PreferencesInput {
|
|
|
2809
2815
|
zimbraPrefPop3DownloadSince: String
|
|
2810
2816
|
zimbraPrefPop3IncludeSpam: Boolean
|
|
2811
2817
|
zimbraPrefPop3DeleteOption: Pop3DeleteOption
|
|
2818
|
+
zimbraPrefConversationOrder: ConversationOrderBy
|
|
2812
2819
|
}
|
|
2813
2820
|
|
|
2814
2821
|
input ModifyIdentityInput {
|
|
@@ -3750,7 +3757,7 @@ type Mutation {
|
|
|
3750
3757
|
content: String
|
|
3751
3758
|
contentType: String
|
|
3752
3759
|
): ProfileImageChangeResponse
|
|
3753
|
-
|
|
3760
|
+
checkCalendars(actions: [FolderActionCheckCalendarInput!]): [ActionOpResponse]
|
|
3754
3761
|
contactAction(
|
|
3755
3762
|
id: ID
|
|
3756
3763
|
ids: [ID!]
|
|
@@ -18,22 +18,22 @@ export declare class ZimbraBatchClient {
|
|
|
18
18
|
private userAgent?;
|
|
19
19
|
constructor(options?: ZimbraClientOptions);
|
|
20
20
|
accountInfo: () => Promise<any>;
|
|
21
|
-
accountOnlyRemoteWipeSync: (deviceId:
|
|
21
|
+
accountOnlyRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
22
22
|
action: (type: ActionType, options: ActionOptions) => Promise<boolean>;
|
|
23
23
|
addExternalAccount: ({ accountType, ...accountInfo }: ExternalAccountAddInput) => Promise<any>;
|
|
24
24
|
addMessage: (message: AddMsgInput) => Promise<any>;
|
|
25
|
-
allowDeviceSync: (deviceId:
|
|
25
|
+
allowDeviceSync: (deviceId: string) => Promise<any>;
|
|
26
26
|
applyFilterRules: ({ ids, filterRules }: ApplyFilterRulesOptions) => Promise<any>;
|
|
27
27
|
attach: (files: any, message: any) => any;
|
|
28
28
|
autoComplete: (options: AutoCompleteOptions) => Promise<any>;
|
|
29
29
|
autoCompleteGAL: (options: AutoCompleteGALOptions) => Promise<any>;
|
|
30
|
-
blockDeviceSync: (deviceId:
|
|
31
|
-
cancelPendingAccountOnlyRemoteWipeSync: (deviceId:
|
|
32
|
-
cancelPendingRemoteWipeSync: (deviceId:
|
|
30
|
+
blockDeviceSync: (deviceId: string) => Promise<any>;
|
|
31
|
+
cancelPendingAccountOnlyRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
32
|
+
cancelPendingRemoteWipeSync: (deviceId: string) => Promise<any>;
|
|
33
33
|
cancelTask: ({ inviteId }: any) => Promise<boolean>;
|
|
34
34
|
changeFolderColor: ({ id, color }: FolderActionChangeColorInput) => Promise<boolean>;
|
|
35
35
|
changePassword: ({ loginNewPassword, password, username, dryRun, authToken }: ChangePasswordOptions) => Promise<any>;
|
|
36
|
-
|
|
36
|
+
checkCalendars: (actions: FolderActionCheckCalendarInput[]) => Promise<ActionOpResponse[]>;
|
|
37
37
|
clientInfo: ({ by, domain }: any) => Promise<any>;
|
|
38
38
|
contactAction: (options: ActionOptions) => Promise<boolean>;
|
|
39
39
|
conversationAction: (options: ActionOptions) => Promise<boolean>;
|
|
@@ -79,8 +79,8 @@ export declare class ZimbraBatchClient {
|
|
|
79
79
|
forwardAppointment: (body: ForwardAppointmentInput) => Promise<boolean>;
|
|
80
80
|
forwardAppointmentInvite: (body: ForwardAppointmentInviteInput) => Promise<boolean>;
|
|
81
81
|
freeBusy: ({ start, end, names, excludeUid }: FreeBusyOptions) => Promise<any>;
|
|
82
|
-
generateScratchCodes: (username:
|
|
83
|
-
getAccountDistributionLists: (attrs:
|
|
82
|
+
generateScratchCodes: (username: string) => Promise<any>;
|
|
83
|
+
getAccountDistributionLists: (attrs: string, ownerOf: number) => Promise<{
|
|
84
84
|
dls: any;
|
|
85
85
|
}>;
|
|
86
86
|
getAppointment: (options: AppointmentOptions) => Promise<any>;
|
|
@@ -94,8 +94,8 @@ export declare class ZimbraBatchClient {
|
|
|
94
94
|
getCustomMetadata: ({ id, section }: GetCustomMetadataOptions) => Promise<{}>;
|
|
95
95
|
getDataSources: () => Promise<{}>;
|
|
96
96
|
getDeviceStatus: () => Promise<any>;
|
|
97
|
-
getDistributionList: (dl:
|
|
98
|
-
getDistributionListMembers: (limit:
|
|
97
|
+
getDistributionList: (dl: string, needOwners: boolean, needRights: string, by: string) => Promise<any>;
|
|
98
|
+
getDistributionListMembers: (limit: string, offset: string, dl: string) => Promise<any>;
|
|
99
99
|
getDocumentShareURL: (options: GetDocumentShareURLOptions) => Promise<any>;
|
|
100
100
|
getFilterRules: () => Promise<any>;
|
|
101
101
|
getFolder: (options: GetFolderOptions) => Promise<any>;
|
|
@@ -113,7 +113,7 @@ export declare class ZimbraBatchClient {
|
|
|
113
113
|
getPreferences: () => Promise<any>;
|
|
114
114
|
getProfileImageUrl: (profileImageId: any) => string;
|
|
115
115
|
getRights: (options: GetRightsInput) => Promise<any>;
|
|
116
|
-
getScratchCodes: (username:
|
|
116
|
+
getScratchCodes: (username: string) => Promise<any>;
|
|
117
117
|
getSearchFolder: () => Promise<{
|
|
118
118
|
folders: any;
|
|
119
119
|
} | {
|
|
@@ -150,11 +150,11 @@ export declare class ZimbraBatchClient {
|
|
|
150
150
|
modifyZimletPrefs: (zimlet: Array<ZimletPreferenceInput>) => Promise<any>;
|
|
151
151
|
noop: ({ wait, limitToOneBlocked }: NoOpOptions, fetchOptions: any) => Promise<any>;
|
|
152
152
|
purgeRevision: ({ id, ver, includeOlderRevisions }: any) => Promise<boolean>;
|
|
153
|
-
quarantineDeviceSync: (deviceId:
|
|
153
|
+
quarantineDeviceSync: (deviceId: string) => Promise<any>;
|
|
154
154
|
recoverAccount: ({ channel, email, op }: RecoverAccountOptions) => Promise<any>;
|
|
155
155
|
relatedContacts: ({ email }: RelatedContactsOptions) => Promise<any>;
|
|
156
|
-
remoteWipeSync: (deviceId:
|
|
157
|
-
removeDeviceSync: (deviceId:
|
|
156
|
+
remoteWipeSync: (deviceId: string) => Promise<any>;
|
|
157
|
+
removeDeviceSync: (deviceId: string) => Promise<any>;
|
|
158
158
|
resetPassword: ({ password, dryRun, getPasswordRules, cancelResetPassword }: ResetPasswordOptions) => Promise<{}>;
|
|
159
159
|
resolve: (path: string) => string;
|
|
160
160
|
revokeAppSpecificPassword: (appName: string) => Promise<boolean>;
|
|
@@ -173,17 +173,17 @@ export declare class ZimbraBatchClient {
|
|
|
173
173
|
searchGal: (options: SearchOptions) => Promise<any>;
|
|
174
174
|
sendDeliveryReport: (messageId: string) => Promise<boolean>;
|
|
175
175
|
sendInviteReply: (requestOptions: InviteReplyInput) => Promise<any>;
|
|
176
|
-
sendMessage: (message: SendMessageInput, accountName: string, sign:
|
|
176
|
+
sendMessage: (message: SendMessageInput, accountName: string, sign: boolean, encrypt: boolean) => Promise<any>;
|
|
177
177
|
sendShareNotification: (body: ShareNotificationInput) => Promise<boolean>;
|
|
178
178
|
sendTwoFactorAuthCode: ({ action, authToken }: SendTwoFactorAuthCodeInput) => Promise<any>;
|
|
179
179
|
setCsrfToken: (csrfToken: string) => void;
|
|
180
180
|
setCustomMetadata: (variables: any) => Promise<boolean>;
|
|
181
181
|
setJwtToken: (jwtToken: string) => void;
|
|
182
182
|
setRecoveryAccount: (options: SetRecoveryAccountOptions) => Promise<boolean>;
|
|
183
|
-
setUserAgent: (userAgent:
|
|
183
|
+
setUserAgent: (userAgent: object) => void;
|
|
184
184
|
shareInfo: (options: ShareInfoOptions) => Promise<any>;
|
|
185
185
|
snoozeCalendarItem: (appointment: any, task: any) => Promise<boolean>;
|
|
186
|
-
subscribeDistributionList: (op:
|
|
186
|
+
subscribeDistributionList: (op: string, by: string, dl: string) => Promise<any>;
|
|
187
187
|
taskFolders: () => Promise<any>;
|
|
188
188
|
testExternalAccount: ({ accountType, ...accountInfo }: ExternalAccountTestInput) => Promise<{}>;
|
|
189
189
|
uploadMessage: (message: string) => any;
|
|
@@ -119,7 +119,7 @@ export interface GetMailItemOptions {
|
|
|
119
119
|
header?: Array<MailItemHeader>;
|
|
120
120
|
html?: boolean;
|
|
121
121
|
id: string;
|
|
122
|
-
ids: [
|
|
122
|
+
ids: [string];
|
|
123
123
|
isLocal?: boolean;
|
|
124
124
|
max?: number;
|
|
125
125
|
needExp?: boolean;
|
|
@@ -143,16 +143,16 @@ export interface AppointmentOptions {
|
|
|
143
143
|
export interface SaveDocumentInput {
|
|
144
144
|
content: string;
|
|
145
145
|
ct: string;
|
|
146
|
-
descEnabled:
|
|
146
|
+
descEnabled: boolean;
|
|
147
147
|
id: string;
|
|
148
148
|
l: string;
|
|
149
149
|
name: string;
|
|
150
150
|
upload: UploadDocument;
|
|
151
|
-
ver:
|
|
151
|
+
ver: number;
|
|
152
152
|
}
|
|
153
153
|
export interface SearchOptions {
|
|
154
|
-
calExpandInstEnd?:
|
|
155
|
-
calExpandInstStart?:
|
|
154
|
+
calExpandInstEnd?: number;
|
|
155
|
+
calExpandInstStart?: number;
|
|
156
156
|
cursor?: Cursor;
|
|
157
157
|
fetch?: string;
|
|
158
158
|
fullConversation?: boolean;
|
|
@@ -171,9 +171,9 @@ export interface SearchOptions {
|
|
|
171
171
|
tz?: Timezone;
|
|
172
172
|
}
|
|
173
173
|
export interface SearchCalendarResourcesCondition {
|
|
174
|
-
attr?:
|
|
175
|
-
op?:
|
|
176
|
-
value?:
|
|
174
|
+
attr?: string;
|
|
175
|
+
op?: string;
|
|
176
|
+
value?: string;
|
|
177
177
|
}
|
|
178
178
|
export interface SearchCalendarResourcesOptions {
|
|
179
179
|
attrs?: string;
|
|
@@ -188,8 +188,8 @@ export interface SearchCalendarResourcesOptions {
|
|
|
188
188
|
}
|
|
189
189
|
export interface ShareInfoOptions {
|
|
190
190
|
grantee?: Grantee;
|
|
191
|
-
includeSelf?:
|
|
192
|
-
internal?:
|
|
191
|
+
includeSelf?: boolean;
|
|
192
|
+
internal?: boolean;
|
|
193
193
|
owner?: Owner;
|
|
194
194
|
}
|
|
195
195
|
export interface ChangePasswordOptions {
|
|
@@ -224,7 +224,7 @@ export interface ActionOptions {
|
|
|
224
224
|
isLocal?: boolean;
|
|
225
225
|
name?: string;
|
|
226
226
|
op: string;
|
|
227
|
-
recursive?:
|
|
227
|
+
recursive?: boolean;
|
|
228
228
|
rgb?: string;
|
|
229
229
|
tagNames?: string;
|
|
230
230
|
}
|
|
@@ -17,14 +17,14 @@ export interface BaseRequestOptions {
|
|
|
17
17
|
authToken?: string;
|
|
18
18
|
credentials?: RequestCredentials;
|
|
19
19
|
csrfToken?: string | null;
|
|
20
|
-
encrypt?:
|
|
20
|
+
encrypt?: boolean;
|
|
21
21
|
fetchOptions?: any;
|
|
22
22
|
headers?: any;
|
|
23
23
|
jwtToken?: string | null;
|
|
24
24
|
origin?: string;
|
|
25
25
|
sessionId?: SessionId;
|
|
26
26
|
sessionSeq?: SessionSeq;
|
|
27
|
-
sign?:
|
|
27
|
+
sign?: boolean;
|
|
28
28
|
singleRequest?: boolean;
|
|
29
29
|
soapPathname?: string;
|
|
30
30
|
userAgent?: UserAgent;
|
|
@@ -1066,6 +1066,10 @@ export type ConversationConditionInput = {
|
|
|
1066
1066
|
negative?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1067
1067
|
where?: InputMaybe<Scalars['String']['input']>;
|
|
1068
1068
|
};
|
|
1069
|
+
export declare enum ConversationOrderBy {
|
|
1070
|
+
DateAsc = "dateAsc",
|
|
1071
|
+
DateDesc = "dateDesc"
|
|
1072
|
+
}
|
|
1069
1073
|
export type CounterAppointmentInput = {
|
|
1070
1074
|
componentNum?: InputMaybe<Scalars['Int']['input']>;
|
|
1071
1075
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -2421,7 +2425,7 @@ export type Mutation = {
|
|
|
2421
2425
|
cancelTask?: Maybe<Scalars['Boolean']['output']>;
|
|
2422
2426
|
changeFolderColor?: Maybe<Scalars['Boolean']['output']>;
|
|
2423
2427
|
changePassword?: Maybe<AuthResponse>;
|
|
2424
|
-
|
|
2428
|
+
checkCalendars?: Maybe<Array<Maybe<ActionOpResponse>>>;
|
|
2425
2429
|
contactAction?: Maybe<ActionOpResponse>;
|
|
2426
2430
|
conversationAction?: Maybe<Scalars['Boolean']['output']>;
|
|
2427
2431
|
counterAppointment?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2562,9 +2566,8 @@ export type MutationChangePasswordArgs = {
|
|
|
2562
2566
|
password: Scalars['String']['input'];
|
|
2563
2567
|
username: Scalars['String']['input'];
|
|
2564
2568
|
};
|
|
2565
|
-
export type
|
|
2566
|
-
|
|
2567
|
-
value: Scalars['Boolean']['input'];
|
|
2569
|
+
export type MutationCheckCalendarsArgs = {
|
|
2570
|
+
actions?: InputMaybe<Array<FolderActionCheckCalendarInput>>;
|
|
2568
2571
|
};
|
|
2569
2572
|
export type MutationContactActionArgs = {
|
|
2570
2573
|
folderId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -3026,6 +3029,7 @@ export type Preferences = {
|
|
|
3026
3029
|
zimbraPrefClientType?: Maybe<PrefClientType>;
|
|
3027
3030
|
zimbraPrefComposeDirection?: Maybe<Scalars['String']['output']>;
|
|
3028
3031
|
zimbraPrefComposeFormat?: Maybe<Mode>;
|
|
3032
|
+
zimbraPrefConversationOrder?: Maybe<ConversationOrderBy>;
|
|
3029
3033
|
zimbraPrefDefaultCalendarId?: Maybe<Scalars['ID']['output']>;
|
|
3030
3034
|
zimbraPrefDelegatedSendSaveTarget?: Maybe<PrefDelegatedSendSaveTarget>;
|
|
3031
3035
|
zimbraPrefDeleteInviteOnReply?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -3097,6 +3101,7 @@ export type PreferencesInput = {
|
|
|
3097
3101
|
zimbraPrefClientType?: InputMaybe<PrefClientType>;
|
|
3098
3102
|
zimbraPrefComposeDirection?: InputMaybe<Scalars['String']['input']>;
|
|
3099
3103
|
zimbraPrefComposeFormat?: InputMaybe<Mode>;
|
|
3104
|
+
zimbraPrefConversationOrder?: InputMaybe<ConversationOrderBy>;
|
|
3100
3105
|
zimbraPrefDefaultCalendarId?: InputMaybe<Scalars['ID']['input']>;
|
|
3101
3106
|
zimbraPrefDelegatedSendSaveTarget?: InputMaybe<PrefDelegatedSendSaveTarget>;
|
|
3102
3107
|
zimbraPrefDeleteInviteOnReply?: InputMaybe<Scalars['Boolean']['input']>;
|