Skip to content

Commit 7bed6e0

Browse files
authored
Merge branch 'master' into PREAPPS-803
2 parents 7dee4eb + 620c6fc commit 7bed6e0

File tree

6 files changed

+39
-18
lines changed

6 files changed

+39
-18
lines changed

.github/CODEOWNERS

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Global owners
2+
* @silentsakky @pl12133
3+
4+
# Anything which is not testcafe, used for all devs
5+
!tests/testcafe/ @itsmeprashant @jkester1986 @lavegupta @panditsavitags @sachinpatel88 @SantoshKShetty @Sigafoos @yashrajpchavda
6+
7+
# Test cafe owners, used for qa team
8+
tests/testcafe/ @jiteshsojitra @miteshsavani @pasch-synacor @shubhamvitec @ycai-synacor

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zimbra/api-client",
33
"amdName": "zmApiJsClient",
4-
"version": "6.0.0",
4+
"version": "6.2.0",
55
"description": "Zimbra JS API Client and GraphQL client for making requests against the Zimbra SOAP API.",
66
"main": "dist/zm-api-js-client.js",
77
"source": "index.ts",

src/batch-client/index.ts

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import DataLoader from 'dataloader';
2+
import castArray from 'lodash/castArray';
23
import get from 'lodash/get';
34
import isError from 'lodash/isError';
45
import mapValues from 'lodash/mapValues';
@@ -121,17 +122,25 @@ export class ZimbraBatchClient {
121122
this.jsonRequest({
122123
name: 'GetInfo',
123124
namespace: Namespace.Account
124-
}).then(res => ({
125-
...res,
126-
attrs: mapValuesDeep(res.attrs._attrs, coerceStringToBoolean),
127-
prefs: mapValuesDeep(res.prefs._attrs, coerceStringToBoolean),
128-
...(get(res, 'license.attr') && {
129-
license: {
130-
status: res.license.status,
131-
attr: mapValuesDeep(res.license.attr, coerceStringToBoolean)
132-
}
133-
})
134-
}));
125+
}).then(res => {
126+
let prefs: any = mapValuesDeep(res.prefs._attrs, coerceStringToBoolean);
127+
prefs.zimbraPrefMailTrustedSenderList =
128+
typeof prefs.zimbraPrefMailTrustedSenderList === 'string'
129+
? castArray(prefs.zimbraPrefMailTrustedSenderList)
130+
: prefs.zimbraPrefMailTrustedSenderList;
131+
132+
return {
133+
...res,
134+
attrs: mapValuesDeep(res.attrs._attrs, coerceStringToBoolean),
135+
prefs,
136+
...(get(res, 'license.attr') && {
137+
license: {
138+
status: res.license.status,
139+
attr: mapValuesDeep(res.license.attr, coerceStringToBoolean)
140+
}
141+
})
142+
};
143+
});
135144

136145
public action = (type: ActionType, options: ActionOptions) => {
137146
const { ids, id, ...rest } = options;

src/schema/generated-schema-types.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export interface AccountInfoAttrs {
140140
zimbraFeatureRelatedContactsEnabled?: boolean | null;
141141
zimbraFeatureChangePasswordEnabled?: boolean | null;
142142
zimbraFeatureResetPasswordEnabled?: boolean | null;
143+
zimbraMailBlacklistMaxNumEntries?: number | null;
143144
}
144145

145146
export interface Preferences {
@@ -345,7 +346,7 @@ export interface EmailAddress {
345346
}
346347

347348
export interface InviteInfo {
348-
type: InviteType;
349+
type?: InviteType | null;
349350
components?: InviteComponent[] | null;
350351
}
351352

@@ -400,7 +401,7 @@ export interface CalendarItemAlarmTriggerRelative {
400401
hours?: number | null;
401402
minutes?: number | null;
402403
seconds?: number | null;
403-
relatedTo: AlarmRelatedTo;
404+
relatedTo?: AlarmRelatedTo | null;
404405
negative: boolean;
405406
}
406407

@@ -1974,7 +1975,8 @@ export enum AlarmAction {
19741975
EMAIL = 'EMAIL',
19751976
PROCEDURE = 'PROCEDURE',
19761977
X_YAHOO_CALENDAR_ACTION_IM = 'X_YAHOO_CALENDAR_ACTION_IM',
1977-
X_YAHOO_CALENDAR_ACTION_MOBILE = 'X_YAHOO_CALENDAR_ACTION_MOBILE'
1978+
X_YAHOO_CALENDAR_ACTION_MOBILE = 'X_YAHOO_CALENDAR_ACTION_MOBILE',
1979+
NONE = 'NONE'
19781980
}
19791981

19801982
export enum AlarmRelatedTo {

src/schema/schema.graphql

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ enum AlarmAction {
5555
PROCEDURE
5656
X_YAHOO_CALENDAR_ACTION_IM
5757
X_YAHOO_CALENDAR_ACTION_MOBILE
58+
NONE
5859
}
5960

6061
enum AlarmRelatedTo {
@@ -440,7 +441,7 @@ enum InviteType {
440441
}
441442

442443
type InviteInfo {
443-
type: InviteType!
444+
type: InviteType #though type is a required value on the response, outdated invites come back as empty InviteInfo objects
444445
components: [InviteComponent] #comp
445446
}
446447

@@ -939,6 +940,7 @@ type AccountInfoAttrs {
939940
zimbraFeatureRelatedContactsEnabled: Boolean
940941
zimbraFeatureChangePasswordEnabled: Boolean
941942
zimbraFeatureResetPasswordEnabled: Boolean
943+
zimbraMailBlacklistMaxNumEntries: Int
942944
}
943945

944946
type Identities {
@@ -1367,7 +1369,7 @@ type CalendarItemAlarmTriggerRelative {
13671369
hours: Int
13681370
minutes: Int
13691371
seconds: Int
1370-
relatedTo: AlarmRelatedTo!
1372+
relatedTo: AlarmRelatedTo
13711373
negative: Boolean!
13721374
}
13731375

0 commit comments

Comments
 (0)