@zimbra/api-client 84.0.0 → 85.0.1
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 +40 -1
- package/dist/src/schema/generated-schema-types.d.ts +36 -0
- package/dist/zm-api-js-client.esm.js +254 -76
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +15 -1
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +15 -1
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +11582 -10357
- package/package.json +17 -17
- package/rollup.config.js +2 -2
- package/src/normalize/entities.ts +2 -1
- package/src/schema/generated-schema-types.ts +42 -0
- package/src/schema/schema.graphql +40 -1
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.1",
|
|
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",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@apollo/client": "
|
|
47
|
-
"
|
|
46
|
+
"@apollo/client": "3.4.16",
|
|
47
|
+
"@graphql-tools/schema": "^9.0.17",
|
|
48
|
+
"dataloader": "^2.2.2",
|
|
48
49
|
"graphql": "^15.8.0",
|
|
49
|
-
"graphql-tools": "^8.2.9",
|
|
50
50
|
"lodash": "^4.17.21",
|
|
51
51
|
"mitt": "^3.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/cli": "^7.17.10",
|
|
55
|
-
"@babel/core": "^7.
|
|
56
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
57
|
-
"@babel/preset-env": "^7.
|
|
58
|
-
"@babel/preset-typescript": "^7.
|
|
55
|
+
"@babel/core": "^7.18.2",
|
|
56
|
+
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
57
|
+
"@babel/preset-env": "^7.18.2",
|
|
58
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
59
59
|
"@babel/register": "^7.17.7",
|
|
60
60
|
"@graphql-codegen/cli": "^2.6.2",
|
|
61
61
|
"@graphql-codegen/typescript": "^2.4.11",
|
|
@@ -65,28 +65,28 @@
|
|
|
65
65
|
"@rollup/plugin-typescript": "^8.3.2",
|
|
66
66
|
"@types/graphql": "^14.5.0",
|
|
67
67
|
"@types/lodash": "^4.14.182",
|
|
68
|
-
"@types/node": "^17.0.
|
|
68
|
+
"@types/node": "^17.0.35",
|
|
69
69
|
"@types/whatwg-fetch": "^0.0.33",
|
|
70
|
-
"audit-ci": "^6.
|
|
70
|
+
"audit-ci": "^6.6.1",
|
|
71
71
|
"babel-plugin-lodash": "^3.3.4",
|
|
72
|
-
"chai": "^4.3.
|
|
72
|
+
"chai": "^4.3.7",
|
|
73
73
|
"copyfiles": "^2.4.1",
|
|
74
74
|
"cross-var": "^1.1.0",
|
|
75
|
-
"husky": "^8.0.
|
|
75
|
+
"husky": "^8.0.3",
|
|
76
76
|
"is-ci": "^3.0.1",
|
|
77
|
-
"lint-staged": "^
|
|
78
|
-
"mocha": "^10.
|
|
77
|
+
"lint-staged": "^13.2.0",
|
|
78
|
+
"mocha": "^10.2.0",
|
|
79
79
|
"npm-run-all": "^4.1.5",
|
|
80
80
|
"prettier": "^2.6.2",
|
|
81
81
|
"rimraf": "^3.0.2",
|
|
82
|
-
"rollup": "^2.
|
|
82
|
+
"rollup": "^2.75.0",
|
|
83
83
|
"rollup-plugin-graphql": "^0.1.0",
|
|
84
84
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
85
|
-
"tslib": "^2.
|
|
85
|
+
"tslib": "^2.5.0",
|
|
86
86
|
"tslint": "^6.1.3",
|
|
87
87
|
"tslint-config-prettier": "^1.18.0",
|
|
88
88
|
"tslint-plugin-prettier": "^2.3.0",
|
|
89
|
-
"typescript": "^4.
|
|
89
|
+
"typescript": "^4.7.2",
|
|
90
90
|
"uglify-js": "^3.15.5"
|
|
91
91
|
}
|
|
92
92
|
}
|
package/rollup.config.js
CHANGED
|
@@ -15,8 +15,8 @@ let external = FORMAT==='es' ?
|
|
|
15
15
|
Object.keys(pkg.dependencies)
|
|
16
16
|
.concat(
|
|
17
17
|
['castArray', 'get','isError', 'isObject', 'mapValues', 'reduce', 'omitBy', 'uniqBy', 'concat', 'uniqBy', 'differenceBy', 'forEach'].map(v => 'lodash/'+v),
|
|
18
|
-
['graphql'
|
|
19
|
-
[
|
|
18
|
+
['graphql']) :
|
|
19
|
+
[];
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
export default {
|
|
@@ -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,6 +1618,7 @@ 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']>;
|
|
@@ -1641,6 +1648,7 @@ export type FolderActionInput = {
|
|
|
1641
1648
|
id: Scalars['ID'];
|
|
1642
1649
|
name?: InputMaybe<Scalars['String']>;
|
|
1643
1650
|
op: Scalars['String'];
|
|
1651
|
+
retentionPolicy?: InputMaybe<Array<InputMaybe<RetentionPolicyInput>>>;
|
|
1644
1652
|
zimbraId?: InputMaybe<Scalars['ID']>;
|
|
1645
1653
|
};
|
|
1646
1654
|
|
|
@@ -3118,6 +3126,26 @@ export enum PasswordRecoveryAddressStatus {
|
|
|
3118
3126
|
Verified = 'verified'
|
|
3119
3127
|
}
|
|
3120
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
|
+
|
|
3121
3149
|
export enum PrefCalendarInitialView {
|
|
3122
3150
|
Day = 'day',
|
|
3123
3151
|
List = 'list',
|
|
@@ -3205,6 +3233,7 @@ export type Preferences = {
|
|
|
3205
3233
|
zimbraPrefReadingPaneEnabled?: Maybe<Scalars['Boolean']>;
|
|
3206
3234
|
zimbraPrefReadingPaneLocation?: Maybe<ReadingPaneLocation>;
|
|
3207
3235
|
zimbraPrefSaveToSent?: Maybe<Scalars['Boolean']>;
|
|
3236
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled?: Maybe<Scalars['Boolean']>;
|
|
3208
3237
|
zimbraPrefShowAllNewMailNotifications?: Maybe<Scalars['Boolean']>;
|
|
3209
3238
|
zimbraPrefShowFragments?: Maybe<Scalars['Boolean']>;
|
|
3210
3239
|
zimbraPrefSlackCalendarReminderEnabled?: Maybe<Scalars['Boolean']>;
|
|
@@ -3263,6 +3292,7 @@ export type PreferencesInput = {
|
|
|
3263
3292
|
zimbraPrefReadingPaneEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
3264
3293
|
zimbraPrefReadingPaneLocation?: InputMaybe<ReadingPaneLocation>;
|
|
3265
3294
|
zimbraPrefSaveToSent?: InputMaybe<Scalars['Boolean']>;
|
|
3295
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
3266
3296
|
zimbraPrefShowAllNewMailNotifications?: InputMaybe<Scalars['Boolean']>;
|
|
3267
3297
|
zimbraPrefShowFragments?: InputMaybe<Scalars['Boolean']>;
|
|
3268
3298
|
zimbraPrefSlackCalendarReminderEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -3754,6 +3784,17 @@ export enum ResetPasswordStatus {
|
|
|
3754
3784
|
Suspended = 'suspended'
|
|
3755
3785
|
}
|
|
3756
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
|
+
|
|
3757
3798
|
export type RevokeRightsInput = {
|
|
3758
3799
|
access?: InputMaybe<Array<InputMaybe<AccountAceInfoInput>>>;
|
|
3759
3800
|
};
|
|
@@ -4159,6 +4200,7 @@ export type Tag = {
|
|
|
4159
4200
|
color?: Maybe<Scalars['Int']>;
|
|
4160
4201
|
id?: Maybe<Scalars['ID']>;
|
|
4161
4202
|
name?: Maybe<Scalars['String']>;
|
|
4203
|
+
rgb?: Maybe<Scalars['String']>;
|
|
4162
4204
|
unread?: Maybe<Scalars['Float']>;
|
|
4163
4205
|
};
|
|
4164
4206
|
|
|
@@ -1141,6 +1141,21 @@ type Folder {
|
|
|
1141
1141
|
deletable: Boolean
|
|
1142
1142
|
unreadDescendent: Boolean
|
|
1143
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
|
|
1144
1159
|
}
|
|
1145
1160
|
|
|
1146
1161
|
type DlAttrs {
|
|
@@ -1314,6 +1329,7 @@ type AccountInfoAttrs {
|
|
|
1314
1329
|
zimbraFeatureBriefcasesEnabled: Boolean
|
|
1315
1330
|
zimbraFeatureMobileSyncEnabled: Boolean
|
|
1316
1331
|
zimbraFeatureRelatedContactsEnabled: Boolean
|
|
1332
|
+
zimbraFeatureMailForwardingEnabled: Boolean
|
|
1317
1333
|
zimbraFeatureMailForwardingInFiltersEnabled: Boolean
|
|
1318
1334
|
zimbraPasswordAllowUsername: Boolean
|
|
1319
1335
|
zimbraPasswordBlockCommonEnabled: Boolean
|
|
@@ -1334,6 +1350,7 @@ type AccountInfoAttrs {
|
|
|
1334
1350
|
zimbraFeatureResetPasswordStatus: ResetPasswordStatus
|
|
1335
1351
|
zimbraFeatureWebClientOfflineAccessEnabled: Boolean
|
|
1336
1352
|
zimbraMailBlacklistMaxNumEntries: Int
|
|
1353
|
+
zimbraMailWhitelistMaxNumEntries: Int
|
|
1337
1354
|
zimbraMailQuota: String
|
|
1338
1355
|
zimbraPublicSharingEnabled: Boolean
|
|
1339
1356
|
zimbraExternalSharingEnabled: Boolean
|
|
@@ -1379,6 +1396,9 @@ type AccountInfoAttrs {
|
|
|
1379
1396
|
zimbraFeatureDiscardInFiltersEnabled: Boolean
|
|
1380
1397
|
zimbraFeatureAdminMailEnabled: Boolean
|
|
1381
1398
|
zimbraFeatureAdminPreferencesEnabled: Boolean
|
|
1399
|
+
zimbraFeatureImportFolderEnabled: Boolean
|
|
1400
|
+
zimbraFeatureExportFolderEnabled: Boolean
|
|
1401
|
+
zimbraFeatureGroupCalendarEnabled: Boolean
|
|
1382
1402
|
}
|
|
1383
1403
|
|
|
1384
1404
|
type AccountCos {
|
|
@@ -1483,6 +1503,7 @@ type Preferences {
|
|
|
1483
1503
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
1484
1504
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
1485
1505
|
zimbraPrefMailToasterEnabled: Boolean
|
|
1506
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled: Boolean
|
|
1486
1507
|
zimbraPrefShowAllNewMailNotifications: Boolean
|
|
1487
1508
|
zimbraPrefDefaultCalendarId: ID
|
|
1488
1509
|
zimbraPrefDeleteInviteOnReply: Boolean
|
|
@@ -1566,6 +1587,7 @@ type Document {
|
|
|
1566
1587
|
flags: String #f
|
|
1567
1588
|
permission: String #perm
|
|
1568
1589
|
docs: [Document]
|
|
1590
|
+
sfid: ID
|
|
1569
1591
|
}
|
|
1570
1592
|
|
|
1571
1593
|
type SearchResponse {
|
|
@@ -1767,6 +1789,7 @@ type Tag {
|
|
|
1767
1789
|
name: String
|
|
1768
1790
|
color: Int
|
|
1769
1791
|
unread: Float
|
|
1792
|
+
rgb: String
|
|
1770
1793
|
}
|
|
1771
1794
|
|
|
1772
1795
|
input OtherContactAttributeInput {
|
|
@@ -2396,7 +2419,22 @@ input FolderActionInput {
|
|
|
2396
2419
|
name: String
|
|
2397
2420
|
folderId: ID
|
|
2398
2421
|
zimbraId: ID
|
|
2399
|
-
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
|
|
2400
2438
|
}
|
|
2401
2439
|
|
|
2402
2440
|
input CreateTagInput {
|
|
@@ -2496,6 +2534,7 @@ input PreferencesInput {
|
|
|
2496
2534
|
zimbraPrefHtmlEditorDefaultFontFamily: String
|
|
2497
2535
|
zimbraPrefHtmlEditorDefaultFontSize: String
|
|
2498
2536
|
zimbraPrefMailToasterEnabled: Boolean
|
|
2537
|
+
zimbraPrefSharedAddrBookAutoCompleteEnabled: Boolean
|
|
2499
2538
|
zimbraPrefShowAllNewMailNotifications: Boolean
|
|
2500
2539
|
zimbraPrefDelegatedSendSaveTarget: PrefDelegatedSendSaveTarget
|
|
2501
2540
|
zimbraPrefDisplayExternalImages: Boolean
|