@zimbra/api-client 70.0.0 → 71.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/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zimbra/api-client",
3
- "version": "70.0.0",
3
+ "version": "71.0.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimbra/api-client",
3
3
  "amdName": "zmApiJsClient",
4
- "version": "70.0.0",
4
+ "version": "71.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",
@@ -192,6 +192,7 @@ const ExistingAttachmentsInfo = new Entity({
192
192
  const AttachmentsInfo = new Entity({
193
193
  aid: 'attachmentId',
194
194
  doc: 'documents',
195
+ m: 'messages',
195
196
  mp: ['existingAttachments', ExistingAttachmentsInfo]
196
197
  });
197
198
 
@@ -330,6 +330,7 @@ export type AttachmentInput = {
330
330
  attachmentId?: Maybe<Scalars['String']>;
331
331
  documents?: Maybe<Array<Maybe<DocumentInput>>>;
332
332
  existingAttachments?: Maybe<Array<Maybe<ExistingAttachmentInput>>>;
333
+ messages?: Maybe<Array<Maybe<EmlInput>>>;
333
334
  };
334
335
 
335
336
  export type AuthResponse = {
@@ -1299,6 +1300,10 @@ export type DtTimeInfo = {
1299
1300
  utc?: Maybe<Scalars['Float']>;
1300
1301
  };
1301
1302
 
1303
+ export type EmlInput = {
1304
+ id?: Maybe<Scalars['ID']>;
1305
+ };
1306
+
1302
1307
  export type EmailAddress = {
1303
1308
  __typename?: 'EmailAddress';
1304
1309
  address?: Maybe<Scalars['String']>;
@@ -2013,9 +2013,14 @@ input DocumentInput {
2013
2013
  id: ID
2014
2014
  }
2015
2015
 
2016
+ input EMLInput {
2017
+ id: ID
2018
+ }
2019
+
2016
2020
  input AttachmentInput {
2017
2021
  attachmentId: String
2018
2022
  documents: [DocumentInput]
2023
+ messages: [EMLInput]
2019
2024
  existingAttachments: [ExistingAttachmentInput]
2020
2025
  }
2021
2026
 
@@ -144,8 +144,7 @@ export function normalizeMimeParts(
144
144
  if (!isBody && type.split('/')[0] !== 'multipart') {
145
145
  let mode = disposition === 'inline' ? 'inlineAttachments' : 'attachments';
146
146
 
147
-
148
- part.contentType !== 'application/pkcs7-signature' &&
147
+ part.contentType !== 'application/pkcs7-signature' &&
149
148
  part.contentType !== 'application/x-pkcs7-signature' &&
150
149
  (acc[mode] || (acc[mode] = [])).push(processAttachment(part, mode));
151
150