@zimbra/api-client 83.1.0 → 85.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 +41 -1
- package/dist/src/schema/generated-schema-types.d.ts +37 -0
- package/dist/zm-api-js-client.esm.js +8 -3
- 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 +1 -1
- package/package.json +1 -1
- package/src/batch-client/index.ts +5 -1
- package/src/schema/generated-schema-types.ts +43 -0
- package/src/schema/schema.graphql +41 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "85.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",
|
|
@@ -1096,7 +1096,8 @@ export class ZimbraBatchClient {
|
|
|
1096
1096
|
folder.view === FolderView.Contact ||
|
|
1097
1097
|
folder.view === FolderView.Document
|
|
1098
1098
|
) {
|
|
1099
|
-
const { absFolderPath, oname, folders, ownerZimbraId, sharedItemId } =
|
|
1099
|
+
const { absFolderPath, oname, folders, ownerZimbraId, sharedItemId, linkedFolders } =
|
|
1100
|
+
folder;
|
|
1100
1101
|
|
|
1101
1102
|
/** changed the id to zimbraId:sharedItemId, which is required while moving contact to shared folder and
|
|
1102
1103
|
* server also returns this id in notfications. The original id is stored in userId.
|
|
@@ -1108,6 +1109,9 @@ export class ZimbraBatchClient {
|
|
|
1108
1109
|
if (oname && folders) {
|
|
1109
1110
|
folder.folders = updateAbsoluteFolderPath(oname, absFolderPath, folders);
|
|
1110
1111
|
}
|
|
1112
|
+
if (linkedFolders) {
|
|
1113
|
+
folder.linkedFolders = updateAbsoluteFolderPath(oname, absFolderPath, linkedFolders);
|
|
1114
|
+
}
|
|
1111
1115
|
}
|
|
1112
1116
|
|
|
1113
1117
|
return folder;
|
|
@@ -96,13 +96,17 @@ export type AccountInfoAttrs = {
|
|
|
96
96
|
zimbraFeatureConversationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
97
97
|
zimbraFeatureDiscardInFiltersEnabled?: Maybe<Scalars['Boolean']>;
|
|
98
98
|
zimbraFeatureDocumentEditingEnabled?: Maybe<Scalars['Boolean']>;
|
|
99
|
+
zimbraFeatureExportFolderEnabled?: Maybe<Scalars['Boolean']>;
|
|
99
100
|
zimbraFeatureFiltersEnabled?: Maybe<Scalars['Boolean']>;
|
|
100
101
|
zimbraFeatureGalAutoCompleteEnabled?: Maybe<Scalars['Boolean']>;
|
|
101
102
|
zimbraFeatureGalEnabled?: Maybe<Scalars['Boolean']>;
|
|
103
|
+
zimbraFeatureGroupCalendarEnabled?: Maybe<Scalars['Boolean']>;
|
|
102
104
|
zimbraFeatureIdentitiesEnabled?: Maybe<Scalars['Boolean']>;
|
|
103
105
|
zimbraFeatureImapDataSourceEnabled?: Maybe<Scalars['Boolean']>;
|
|
106
|
+
zimbraFeatureImportFolderEnabled?: Maybe<Scalars['Boolean']>;
|
|
104
107
|
zimbraFeatureInstantNotify?: Maybe<Scalars['Boolean']>;
|
|
105
108
|
zimbraFeatureMailEnabled?: Maybe<Scalars['Boolean']>;
|
|
109
|
+
zimbraFeatureMailForwardingEnabled?: Maybe<Scalars['Boolean']>;
|
|
106
110
|
zimbraFeatureMailForwardingInFiltersEnabled?: Maybe<Scalars['Boolean']>;
|
|
107
111
|
zimbraFeatureMailPriorityEnabled?: Maybe<Scalars['Boolean']>;
|
|
108
112
|
zimbraFeatureMailSendLaterEnabled?: Maybe<Scalars['Boolean']>;
|
|
@@ -134,6 +138,7 @@ export type AccountInfoAttrs = {
|
|
|
134
138
|
zimbraMailBlacklistMaxNumEntries?: Maybe<Scalars['Int']>;
|
|
135
139
|
zimbraMailQuota?: Maybe<Scalars['String']>;
|
|
136
140
|
zimbraMailSignatureMaxLength?: Maybe<Scalars['Float']>;
|
|
141
|
+
zimbraMailWhitelistMaxNumEntries?: Maybe<Scalars['Int']>;
|
|
137
142
|
zimbraMtaMaxMessageSize?: Maybe<Scalars['Float']>;
|
|
138
143
|
zimbraPasswordAllowUsername?: Maybe<Scalars['Boolean']>;
|
|
139
144
|
zimbraPasswordAllowedChars?: Maybe<Scalars['String']>;
|
|
@@ -1295,6 +1300,7 @@ export type Document = {
|
|
|
1295
1300
|
revisedCreationDate?: Maybe<Scalars['Float']>;
|
|
1296
1301
|
revision?: Maybe<Scalars['Float']>;
|
|
1297
1302
|
revisonCreator?: Maybe<Scalars['String']>;
|
|
1303
|
+
sfid?: Maybe<Scalars['ID']>;
|
|
1298
1304
|
size?: Maybe<Scalars['Float']>;
|
|
1299
1305
|
sortField?: Maybe<Scalars['String']>;
|
|
1300
1306
|
tagNames?: Maybe<Scalars['String']>;
|
|
@@ -1612,9 +1618,11 @@ export type Folder = {
|
|
|
1612
1618
|
parentFolderId?: Maybe<Scalars['ID']>;
|
|
1613
1619
|
permissions?: Maybe<Scalars['String']>;
|
|
1614
1620
|
query?: Maybe<Scalars['String']>;
|
|
1621
|
+
retentionPolicy?: Maybe<Array<Maybe<RetentionPolicy>>>;
|
|
1615
1622
|
revision?: Maybe<Scalars['Float']>;
|
|
1616
1623
|
search?: Maybe<Array<Maybe<Folder>>>;
|
|
1617
1624
|
sharedItemId?: Maybe<Scalars['ID']>;
|
|
1625
|
+
types?: Maybe<Scalars['String']>;
|
|
1618
1626
|
unread?: Maybe<Scalars['Float']>;
|
|
1619
1627
|
unreadDescendent?: Maybe<Scalars['Boolean']>;
|
|
1620
1628
|
url?: Maybe<Scalars['String']>;
|
|
@@ -1640,6 +1648,7 @@ export type FolderActionInput = {
|
|
|
1640
1648
|
id: Scalars['ID'];
|
|
1641
1649
|
name?: InputMaybe<Scalars['String']>;
|
|
1642
1650
|
op: Scalars['String'];
|
|
1651
|
+
retentionPolicy?: InputMaybe<Array<InputMaybe<RetentionPolicyInput>>>;
|
|
1643
1652
|
zimbraId?: InputMaybe<Scalars['ID']>;
|
|
1644
1653
|
};
|
|
1645
1654
|
|
|
@@ -3117,6 +3126,26 @@ export enum PasswordRecoveryAddressStatus {
|
|
|
3117
3126
|
Verified = 'verified'
|
|
3118
3127
|
}
|
|
3119
3128
|
|
|
3129
|
+
export type Policy = {
|
|
3130
|
+
__typename?: 'Policy';
|
|
3131
|
+
policy?: Maybe<Array<Maybe<PolicyAttrs>>>;
|
|
3132
|
+
};
|
|
3133
|
+
|
|
3134
|
+
export type PolicyAttrs = {
|
|
3135
|
+
__typename?: 'PolicyAttrs';
|
|
3136
|
+
lifetime?: Maybe<Scalars['String']>;
|
|
3137
|
+
type?: Maybe<Scalars['String']>;
|
|
3138
|
+
};
|
|
3139
|
+
|
|
3140
|
+
export type PolicyAttrsInput = {
|
|
3141
|
+
lifetime?: InputMaybe<Scalars['String']>;
|
|
3142
|
+
type?: InputMaybe<Scalars['String']>;
|
|
3143
|
+
};
|
|
3144
|
+
|
|
3145
|
+
export type PolicyInput = {
|
|
3146
|
+
policy?: InputMaybe<Array<InputMaybe<PolicyAttrsInput>>>;
|
|
3147
|
+
};
|
|
3148
|
+
|
|
3120
3149
|
export enum PrefCalendarInitialView {
|
|
3121
3150
|
Day = 'day',
|
|
3122
3151
|
List = 'list',
|
|
@@ -3204,6 +3233,7 @@ export type Preferences = {
|
|
|
3204
3233
|
zimbraPrefReadingPaneEnabled?: Maybe<Scalars['Boolean']>;
|
|
3205
3234
|
zimbraPrefReadingPaneLocation?: Maybe<ReadingPaneLocation>;
|
|
3206
3235
|
zimbraPrefSaveToSent?: Maybe<Scalars['Boolean']>;
|
|
3236
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled?: Maybe<Scalars['Boolean']>;
|
|
3207
3237
|
zimbraPrefShowAllNewMailNotifications?: Maybe<Scalars['Boolean']>;
|
|
3208
3238
|
zimbraPrefShowFragments?: Maybe<Scalars['Boolean']>;
|
|
3209
3239
|
zimbraPrefSlackCalendarReminderEnabled?: Maybe<Scalars['Boolean']>;
|
|
@@ -3262,6 +3292,7 @@ export type PreferencesInput = {
|
|
|
3262
3292
|
zimbraPrefReadingPaneEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
3263
3293
|
zimbraPrefReadingPaneLocation?: InputMaybe<ReadingPaneLocation>;
|
|
3264
3294
|
zimbraPrefSaveToSent?: InputMaybe<Scalars['Boolean']>;
|
|
3295
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
3265
3296
|
zimbraPrefShowAllNewMailNotifications?: InputMaybe<Scalars['Boolean']>;
|
|
3266
3297
|
zimbraPrefShowFragments?: InputMaybe<Scalars['Boolean']>;
|
|
3267
3298
|
zimbraPrefSlackCalendarReminderEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -3753,6 +3784,17 @@ export enum ResetPasswordStatus {
|
|
|
3753
3784
|
Suspended = 'suspended'
|
|
3754
3785
|
}
|
|
3755
3786
|
|
|
3787
|
+
export type RetentionPolicy = {
|
|
3788
|
+
__typename?: 'RetentionPolicy';
|
|
3789
|
+
keep?: Maybe<Array<Maybe<Policy>>>;
|
|
3790
|
+
purge?: Maybe<Array<Maybe<Policy>>>;
|
|
3791
|
+
};
|
|
3792
|
+
|
|
3793
|
+
export type RetentionPolicyInput = {
|
|
3794
|
+
keep?: InputMaybe<Array<InputMaybe<PolicyInput>>>;
|
|
3795
|
+
purge?: InputMaybe<Array<InputMaybe<PolicyInput>>>;
|
|
3796
|
+
};
|
|
3797
|
+
|
|
3756
3798
|
export type RevokeRightsInput = {
|
|
3757
3799
|
access?: InputMaybe<Array<InputMaybe<AccountAceInfoInput>>>;
|
|
3758
3800
|
};
|
|
@@ -4158,6 +4200,7 @@ export type Tag = {
|
|
|
4158
4200
|
color?: Maybe<Scalars['Int']>;
|
|
4159
4201
|
id?: Maybe<Scalars['ID']>;
|
|
4160
4202
|
name?: Maybe<Scalars['String']>;
|
|
4203
|
+
rgb?: Maybe<Scalars['String']>;
|
|
4161
4204
|
unread?: Maybe<Scalars['Float']>;
|
|
4162
4205
|
};
|
|
4163
4206
|
|
|
@@ -1140,6 +1140,22 @@ type Folder {
|
|
|
1140
1140
|
broken: Boolean #shared folder link is broken or not
|
|
1141
1141
|
deletable: Boolean
|
|
1142
1142
|
unreadDescendent: Boolean
|
|
1143
|
+
types: String
|
|
1144
|
+
retentionPolicy: [RetentionPolicy]
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
type RetentionPolicy {
|
|
1148
|
+
keep: [Policy]
|
|
1149
|
+
purge: [Policy]
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
type Policy {
|
|
1153
|
+
policy: [PolicyAttrs]
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
type PolicyAttrs {
|
|
1157
|
+
lifetime: String
|
|
1158
|
+
type: String
|
|
1143
1159
|
}
|
|
1144
1160
|
|
|
1145
1161
|
type DlAttrs {
|
|
@@ -1313,6 +1329,7 @@ type AccountInfoAttrs {
|
|
|
1313
1329
|
zimbraFeatureBriefcasesEnabled: Boolean
|
|
1314
1330
|
zimbraFeatureMobileSyncEnabled: Boolean
|
|
1315
1331
|
zimbraFeatureRelatedContactsEnabled: Boolean
|
|
1332
|
+
zimbraFeatureMailForwardingEnabled: Boolean
|
|
1316
1333
|
zimbraFeatureMailForwardingInFiltersEnabled: Boolean
|
|
1317
1334
|
zimbraPasswordAllowUsername: Boolean
|
|
1318
1335
|
zimbraPasswordBlockCommonEnabled: Boolean
|
|
@@ -1333,6 +1350,7 @@ type AccountInfoAttrs {
|
|
|
1333
1350
|
zimbraFeatureResetPasswordStatus: ResetPasswordStatus
|
|
1334
1351
|
zimbraFeatureWebClientOfflineAccessEnabled: Boolean
|
|
1335
1352
|
zimbraMailBlacklistMaxNumEntries: Int
|
|
1353
|
+
zimbraMailWhitelistMaxNumEntries: Int
|
|
1336
1354
|
zimbraMailQuota: String
|
|
1337
1355
|
zimbraPublicSharingEnabled: Boolean
|
|
1338
1356
|
zimbraExternalSharingEnabled: Boolean
|
|
@@ -1378,6 +1396,9 @@ type AccountInfoAttrs {
|
|
|
1378
1396
|
zimbraFeatureDiscardInFiltersEnabled: Boolean
|
|
1379
1397
|
zimbraFeatureAdminMailEnabled: Boolean
|
|
1380
1398
|
zimbraFeatureAdminPreferencesEnabled: Boolean
|
|
1399
|
+
zimbraFeatureImportFolderEnabled: Boolean
|
|
1400
|
+
zimbraFeatureExportFolderEnabled: Boolean
|
|
1401
|
+
zimbraFeatureGroupCalendarEnabled: Boolean
|
|
1381
1402
|
}
|
|
1382
1403
|
|
|
1383
1404
|
type AccountCos {
|
|
@@ -1482,6 +1503,7 @@ type Preferences {
|
|
|
1482
1503
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
1483
1504
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
1484
1505
|
zimbraPrefMailToasterEnabled: Boolean
|
|
1506
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled: Boolean
|
|
1485
1507
|
zimbraPrefShowAllNewMailNotifications: Boolean
|
|
1486
1508
|
zimbraPrefDefaultCalendarId: ID
|
|
1487
1509
|
zimbraPrefDeleteInviteOnReply: Boolean
|
|
@@ -1565,6 +1587,7 @@ type Document {
|
|
|
1565
1587
|
flags: String #f
|
|
1566
1588
|
permission: String #perm
|
|
1567
1589
|
docs: [Document]
|
|
1590
|
+
sfid: ID
|
|
1568
1591
|
}
|
|
1569
1592
|
|
|
1570
1593
|
type SearchResponse {
|
|
@@ -1766,6 +1789,7 @@ type Tag {
|
|
|
1766
1789
|
name: String
|
|
1767
1790
|
color: Int
|
|
1768
1791
|
unread: Float
|
|
1792
|
+
rgb: String
|
|
1769
1793
|
}
|
|
1770
1794
|
|
|
1771
1795
|
input OtherContactAttributeInput {
|
|
@@ -2395,7 +2419,22 @@ input FolderActionInput {
|
|
|
2395
2419
|
name: String
|
|
2396
2420
|
folderId: ID
|
|
2397
2421
|
zimbraId: ID
|
|
2398
|
-
color: Int
|
|
2422
|
+
color: Int,
|
|
2423
|
+
retentionPolicy: [RetentionPolicyInput]
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
input RetentionPolicyInput {
|
|
2427
|
+
keep: [PolicyInput]
|
|
2428
|
+
purge: [PolicyInput]
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
input PolicyInput {
|
|
2432
|
+
policy: [PolicyAttrsInput]
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
input PolicyAttrsInput {
|
|
2436
|
+
lifetime: String
|
|
2437
|
+
type: String
|
|
2399
2438
|
}
|
|
2400
2439
|
|
|
2401
2440
|
input CreateTagInput {
|
|
@@ -2495,6 +2534,7 @@ input PreferencesInput {
|
|
|
2495
2534
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
2496
2535
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
2497
2536
|
zimbraPrefMailToasterEnabled: Boolean
|
|
2537
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled: Boolean
|
|
2498
2538
|
zimbraPrefShowAllNewMailNotifications: Boolean
|
|
2499
2539
|
zimbraPrefDelegatedSendSaveTarget: PrefDelegatedSendSaveTarget
|
|
2500
2540
|
zimbraPrefDisplayExternalImages: Boolean
|