@zimbra/api-client 65.0.0 → 69.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/.babelrc.json +16 -16
- package/.husky/pre-commit +2 -1
- package/dist/schema.graphql +10 -0
- package/dist/src/apollo/offline-queue-link/index.d.ts +2 -2
- package/dist/src/batch-client/index.d.ts +2 -0
- package/dist/src/batch-client/types.d.ts +1 -1
- package/dist/src/request/types.d.ts +1 -1
- package/dist/src/schema/generated-schema-types.d.ts +1056 -1048
- package/dist/zm-api-js-client.esm.js +1108 -1079
- 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 +2746 -5538
- package/package.json +92 -94
- package/src/apollo/offline-queue-link/index.ts +1 -1
- package/src/apollo/zimbra-in-memory-cache.ts +36 -0
- package/src/batch-client/index.ts +16 -8
- package/src/batch-client/types.ts +1 -1
- package/src/request/index.ts +2 -2
- package/src/request/types.ts +1 -1
- package/src/schema/generated-schema-types.ts +1108 -1100
- package/src/schema/schema.graphql +10 -0
- package/src/schema/schema.ts +10 -4
- package/src/utils/normalize-mime-parts.ts +1 -4
- package/src/utils/normalize-otherAttribute-contact.ts +2 -0
- package/tsconfig.json +21 -21
- package/tslint.json +18 -18
package/.babelrc.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"presets": [
|
|
3
|
+
["@babel/preset-env", { "targets": "defaults" }],
|
|
4
|
+
"@babel/typescript"
|
|
5
|
+
],
|
|
6
|
+
"plugins": [
|
|
7
|
+
"@babel/proposal-class-properties",
|
|
8
|
+
"lodash"
|
|
9
|
+
],
|
|
10
|
+
"env": {
|
|
11
|
+
"test": {
|
|
12
|
+
"presets": [
|
|
13
|
+
["@babel/preset-env", { "targets": "defaults" }],
|
|
14
|
+
"@babel/typescript"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
18
|
}
|
package/.husky/pre-commit
CHANGED
package/dist/schema.graphql
CHANGED
|
@@ -490,6 +490,8 @@ type ClientInfoType {
|
|
|
490
490
|
attributes: ClientInfoAttributes
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
+
# whenever change/remove key then update the object accordingly in zm-x-web/src/notifications/messages.js on emptyMessage object.
|
|
494
|
+
# otherwise notification will be failed.
|
|
493
495
|
type MessageInfo implements MailItem {
|
|
494
496
|
id: ID
|
|
495
497
|
size: Float # s
|
|
@@ -1495,6 +1497,7 @@ type Preferences {
|
|
|
1495
1497
|
zimbraPrefMailLocalDeliveryDisabled: Boolean
|
|
1496
1498
|
zimbraPrefTagTreeOpen: Boolean
|
|
1497
1499
|
zimbraPrefPowerPasteEnabled: Boolean
|
|
1500
|
+
zimbraPrefDisplayTimeInMailList: Boolean
|
|
1498
1501
|
}
|
|
1499
1502
|
|
|
1500
1503
|
type GetAppointmentResponse {
|
|
@@ -1638,8 +1641,10 @@ type OtherContactAttribute {
|
|
|
1638
1641
|
|
|
1639
1642
|
type ContactAttributes {
|
|
1640
1643
|
firstName: String
|
|
1644
|
+
phoneticFirstName: String
|
|
1641
1645
|
middleName: String
|
|
1642
1646
|
lastName: String
|
|
1647
|
+
phoneticLastName: String
|
|
1643
1648
|
fullName: String
|
|
1644
1649
|
maidenName: String
|
|
1645
1650
|
namePrefix: String
|
|
@@ -1742,8 +1747,10 @@ input OtherContactAttributeInput {
|
|
|
1742
1747
|
|
|
1743
1748
|
input ContactAttrsInput {
|
|
1744
1749
|
firstName: String
|
|
1750
|
+
phoneticFirstName: String
|
|
1745
1751
|
middleName: String
|
|
1746
1752
|
lastName: String
|
|
1753
|
+
phoneticLastName: String
|
|
1747
1754
|
fullName: String
|
|
1748
1755
|
maidenName: String
|
|
1749
1756
|
namePrefix: String
|
|
@@ -2089,6 +2096,7 @@ input SendMessageInput {
|
|
|
2089
2096
|
mimeParts: [MimePartInput] #mp
|
|
2090
2097
|
emailAddresses: [MailItemEmailAddressInput] #e
|
|
2091
2098
|
attachments: [AttachmentInput] #attach
|
|
2099
|
+
inlineAttachments: [MimePartInput] #attach
|
|
2092
2100
|
}
|
|
2093
2101
|
|
|
2094
2102
|
input CalendarItemInviteInput {
|
|
@@ -2480,6 +2488,7 @@ input PreferencesInput {
|
|
|
2480
2488
|
zimbraPrefMailLocalDeliveryDisabled: Boolean
|
|
2481
2489
|
zimbraPrefTagTreeOpen: Boolean
|
|
2482
2490
|
zimbraPrefPowerPasteEnabled: Boolean
|
|
2491
|
+
zimbraPrefDisplayTimeInMailList: Boolean
|
|
2483
2492
|
}
|
|
2484
2493
|
|
|
2485
2494
|
input ModifyIdentityInput {
|
|
@@ -3267,6 +3276,7 @@ type Mutation {
|
|
|
3267
3276
|
name: String
|
|
3268
3277
|
isLocal: Boolean
|
|
3269
3278
|
recursive: Boolean
|
|
3279
|
+
destFolderLocal: Boolean
|
|
3270
3280
|
): Boolean
|
|
3271
3281
|
applyFilterRules(ids: String!, filterRules: [FilterRuleInput]): [String]
|
|
3272
3282
|
testExternalAccount(
|
|
@@ -14,13 +14,13 @@ export declare class OfflineQueueLink extends ApolloLink {
|
|
|
14
14
|
handleCancelAndOfflineQueue: (entry: OperationEntry) => void;
|
|
15
15
|
open: ({ apolloClient }?: {
|
|
16
16
|
apolloClient?: any;
|
|
17
|
-
}) => Promise<
|
|
17
|
+
}) => Promise<void> | undefined;
|
|
18
18
|
persist: () => Promise<any>;
|
|
19
19
|
purge: () => Promise<any>;
|
|
20
20
|
request(operation: Operation, forward: NextLink): Observable<FetchResult<{
|
|
21
21
|
[key: string]: any;
|
|
22
22
|
}, Record<string, any>, Record<string, any>>>;
|
|
23
|
-
retry: () => Promise<
|
|
23
|
+
retry: () => Promise<void>;
|
|
24
24
|
sync: ({ apolloClient }: {
|
|
25
25
|
apolloClient?: any;
|
|
26
26
|
}) => Promise<void | undefined> | undefined;
|
|
@@ -11,6 +11,7 @@ export declare class ZimbraBatchClient {
|
|
|
11
11
|
private authToken?;
|
|
12
12
|
private batchDataLoader;
|
|
13
13
|
private csrfToken?;
|
|
14
|
+
private customFetch;
|
|
14
15
|
private dataLoader;
|
|
15
16
|
private jwtToken?;
|
|
16
17
|
private sessionHandler?;
|
|
@@ -23,6 +24,7 @@ export declare class ZimbraBatchClient {
|
|
|
23
24
|
addMessage: (options: AddMsgInput) => Promise<any>;
|
|
24
25
|
allowDeviceSync: (deviceId: String) => Promise<any>;
|
|
25
26
|
applyFilterRules: ({ ids, filterRules }: ApplyFilterRulesOptions) => Promise<any>;
|
|
27
|
+
attach: (files: any, message: any) => any;
|
|
26
28
|
autoComplete: (options: AutoCompleteOptions) => Promise<any>;
|
|
27
29
|
autoCompleteGAL: (options: AutoCompleteGALOptions) => Promise<any>;
|
|
28
30
|
blockDeviceSync: (deviceId: String) => Promise<any>;
|
|
@@ -156,6 +156,7 @@ export interface SearchOptions {
|
|
|
156
156
|
fullConversation?: boolean;
|
|
157
157
|
inDumpster?: boolean;
|
|
158
158
|
limit?: number;
|
|
159
|
+
name?: string;
|
|
159
160
|
needExp?: boolean;
|
|
160
161
|
needIsMember?: NeedIsMemberType;
|
|
161
162
|
needIsOwner?: boolean;
|
|
@@ -165,7 +166,6 @@ export interface SearchOptions {
|
|
|
165
166
|
sortBy?: SortBy;
|
|
166
167
|
type?: GalSearchType;
|
|
167
168
|
types?: SearchType;
|
|
168
|
-
name?: string;
|
|
169
169
|
}
|
|
170
170
|
export interface SearchCalendarResourcesCondition {
|
|
171
171
|
attr?: String;
|
|
@@ -35,7 +35,7 @@ export interface RequestOptions {
|
|
|
35
35
|
export interface JsonRequestOptions extends BaseRequestOptions, RequestOptions {
|
|
36
36
|
}
|
|
37
37
|
export interface BatchRequestOptions extends BaseRequestOptions {
|
|
38
|
-
requests:
|
|
38
|
+
requests: ReadonlyArray<RequestOptions>;
|
|
39
39
|
}
|
|
40
40
|
export interface RequestResponse {
|
|
41
41
|
body?: any;
|