@eway-crm/connector 1.0.97 → 1.0.98

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.
@@ -60,5 +60,6 @@ export declare class ApiConnection {
60
60
  readonly callWithoutSession: <TResult extends IApiResult>(methodName: string, data: TInputData | null, successCallback: (result: TResult) => void, unsuccessCallback: (result: TResult) => void, headers?: Record<string, string> | null, httpMethod?: HttpMethod, errorCallback?: ((error: TUnionError) => void) | undefined) => void;
61
61
  readonly getItemPreviewGetMethodUrl: (folderName: string, itemGuid: string, itemVersion?: number) => string;
62
62
  readonly getEmailAttachmentGetMethodUrl: (itemGuid: string, contentId: string) => string;
63
+ readonly getAllEmailAttachmentsZipGetMethodUrl: (itemGuid: string) => string;
63
64
  private static handleCallPromise;
64
65
  }
@@ -236,6 +236,9 @@ var ApiConnection = /** @class */ (function () {
236
236
  this.getEmailAttachmentGetMethodUrl = function (itemGuid, contentId) {
237
237
  return _this.svcUri + '/' + ApiMethods_1.ApiMethods.getEmailAttachment + '?itemGuid=' + encodeURIComponent(itemGuid) + '&contentId=' + encodeURIComponent(contentId);
238
238
  };
239
+ this.getAllEmailAttachmentsZipGetMethodUrl = function (itemGuid) {
240
+ return _this.svcUri + '/' + ApiMethods_1.ApiMethods.getAllEmailAttachments + '?itemGuid=' + encodeURIComponent(itemGuid);
241
+ };
239
242
  if (!apiServiceUri) {
240
243
  throw new Error("The argument 'apiServiceUri' cannot be empty.");
241
244
  }
@@ -3,4 +3,5 @@ export declare class ApiMethods {
3
3
  static readonly logOut = "LogOut";
4
4
  static readonly getItemPreview = "GetItemPreview";
5
5
  static readonly getEmailAttachment = "GetEmailAttachment";
6
+ static readonly getAllEmailAttachments = "GetAllEmailAttachments";
6
7
  }
package/lib/ApiMethods.js CHANGED
@@ -8,6 +8,7 @@ var ApiMethods = /** @class */ (function () {
8
8
  ApiMethods.logOut = 'LogOut';
9
9
  ApiMethods.getItemPreview = 'GetItemPreview';
10
10
  ApiMethods.getEmailAttachment = 'GetEmailAttachment';
11
+ ApiMethods.getAllEmailAttachments = 'GetAllEmailAttachments';
11
12
  return ApiMethods;
12
13
  }());
13
14
  exports.ApiMethods = ApiMethods;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eway-crm/connector",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "eWay-CRM API JavaScript connector library.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -52,4 +52,4 @@
52
52
  "es6-promise": "^4.2.8",
53
53
  "jwt-decode": "^3.1.2"
54
54
  }
55
- }
55
+ }