files.com 1.2.40 → 1.2.41

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.40
1
+ 1.2.41
@@ -26,7 +26,7 @@
26
26
  * `name` (string): The partner's formal AS2 name.
27
27
  * `uri` (string): Public URI for sending AS2 message to.
28
28
  * `server_certificate` (string): Remote server certificate security setting
29
- * `mdn_validation_level` (string): MDN Validation Level
29
+ * `mdn_validation_level` (string): MDN Validation Level controls how to evaluate message transfer success based on a partner's MDN response. NOTE: This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
30
30
  * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
31
31
  * `hex_public_certificate_serial` (string): Serial of public certificate used for message security in hex format.
32
32
  * `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
@@ -76,7 +76,8 @@
76
76
  "has_inbox": true,
77
77
  "paths": [
78
78
  "file.txt"
79
- ]
79
+ ],
80
+ "bundlepaths": "example"
80
81
  }
81
82
  ```
82
83
 
@@ -118,6 +119,7 @@
118
119
  * `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
119
120
  * `has_inbox` (boolean): Does this bundle have an associated inbox?
120
121
  * `paths` (array): A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
122
+ * `bundlepaths` (BundlePath): A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
121
123
  * `password` (string): Password for this bundle.
122
124
  * `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
123
125
  * `create_snapshot` (boolean): If true, create a snapshot of this bundle's contents.
@@ -392,7 +394,8 @@ await bundle.update({
392
394
  "has_inbox": true,
393
395
  "paths": [
394
396
  "file.txt"
395
- ]
397
+ ],
398
+ "bundlepaths": "example"
396
399
  }
397
400
  ```
398
401
 
@@ -0,0 +1,13 @@
1
+ # BundlePath
2
+
3
+ ## Example BundlePath Object
4
+
5
+ ```
6
+ {
7
+ "recursive": true,
8
+ "path": "example"
9
+ }
10
+ ```
11
+
12
+ * `recursive` (boolean): Allow access to subfolders content?
13
+ * `path` (string): The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.40';
14
+ var version = '1.2.41';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -68,7 +68,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
68
68
  (0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
69
69
  _this.attributes.server_certificate = value;
70
70
  });
71
- // string # MDN Validation Level
71
+ // string # MDN Validation Level controls how to evaluate message transfer success based on a partner's MDN response. NOTE: This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
72
72
  (0, _defineProperty2.default)(this, "getMdnValidationLevel", function () {
73
73
  return _this.attributes.mdn_validation_level;
74
74
  });
@@ -296,6 +296,13 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
296
296
  (0, _defineProperty2.default)(this, "setPaths", function (value) {
297
297
  _this.attributes.paths = value;
298
298
  });
299
+ // BundlePath # A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
300
+ (0, _defineProperty2.default)(this, "getBundlepaths", function () {
301
+ return _this.attributes.bundlepaths;
302
+ });
303
+ (0, _defineProperty2.default)(this, "setBundlepaths", function (value) {
304
+ _this.attributes.bundlepaths = value;
305
+ });
299
306
  // string # Password for this bundle.
300
307
  (0, _defineProperty2.default)(this, "getPassword", function () {
301
308
  return _this.attributes.password;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
8
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _Api = _interopRequireDefault(require("../Api"));
12
+ var errors = _interopRequireWildcard(require("../Errors"));
13
+ var _utils = require("../utils");
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable no-unused-vars */
18
+ /* eslint-enable no-unused-vars */
19
+ /**
20
+ * Class BundlePath
21
+ */
22
+ var BundlePath = /*#__PURE__*/(0, _createClass2.default)(function BundlePath() {
23
+ var _this = this;
24
+ var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
25
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26
+ (0, _classCallCheck2.default)(this, BundlePath);
27
+ (0, _defineProperty2.default)(this, "attributes", {});
28
+ (0, _defineProperty2.default)(this, "options", {});
29
+ (0, _defineProperty2.default)(this, "isLoaded", function () {
30
+ return !!_this.attributes.id;
31
+ });
32
+ // boolean # Allow access to subfolders content?
33
+ (0, _defineProperty2.default)(this, "getRecursive", function () {
34
+ return _this.attributes.recursive;
35
+ });
36
+ // string # The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
+ (0, _defineProperty2.default)(this, "getPath", function () {
38
+ return _this.attributes.path;
39
+ });
40
+ Object.entries(attributes).forEach(function (_ref) {
41
+ var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
42
+ key = _ref2[0],
43
+ value = _ref2[1];
44
+ var normalizedKey = key.replace('?', '');
45
+ _this.attributes[normalizedKey] = value;
46
+ Object.defineProperty(_this, normalizedKey, {
47
+ value: value,
48
+ writable: false
49
+ });
50
+ });
51
+ this.options = _objectSpread({}, options);
52
+ });
53
+ var _default = exports.default = BundlePath;
54
+ module.exports = BundlePath;
55
+ module.exports.default = BundlePath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.40",
3
+ "version": "1.2.41",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.40'
8
+ const version = '1.2.41'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -63,7 +63,7 @@ class As2Partner {
63
63
  this.attributes.server_certificate = value
64
64
  }
65
65
 
66
- // string # MDN Validation Level
66
+ // string # MDN Validation Level controls how to evaluate message transfer success based on a partner's MDN response. NOTE: This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
67
67
  getMdnValidationLevel = () => this.attributes.mdn_validation_level
68
68
 
69
69
  setMdnValidationLevel = value => {
@@ -290,6 +290,13 @@ class Bundle {
290
290
  this.attributes.paths = value
291
291
  }
292
292
 
293
+ // BundlePath # A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
294
+ getBundlepaths = () => this.attributes.bundlepaths
295
+
296
+ setBundlepaths = value => {
297
+ this.attributes.bundlepaths = value
298
+ }
299
+
293
300
  // string # Password for this bundle.
294
301
  getPassword = () => this.attributes.password
295
302
 
@@ -0,0 +1,41 @@
1
+ /* eslint-disable no-unused-vars */
2
+ import Api from '../Api'
3
+ import * as errors from '../Errors'
4
+ import {
5
+ getType, isArray, isInt, isObject, isString,
6
+ } from '../utils'
7
+ /* eslint-enable no-unused-vars */
8
+
9
+ /**
10
+ * Class BundlePath
11
+ */
12
+ class BundlePath {
13
+ attributes = {}
14
+
15
+ options = {}
16
+
17
+ constructor(attributes = {}, options = {}) {
18
+ Object.entries(attributes).forEach(([key, value]) => {
19
+ const normalizedKey = key.replace('?', '')
20
+
21
+ this.attributes[normalizedKey] = value
22
+
23
+ Object.defineProperty(this, normalizedKey, { value, writable: false })
24
+ })
25
+
26
+ this.options = { ...options }
27
+ }
28
+
29
+ isLoaded = () => !!this.attributes.id
30
+
31
+ // boolean # Allow access to subfolders content?
32
+ getRecursive = () => this.attributes.recursive
33
+
34
+ // string # The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
+ getPath = () => this.attributes.path
36
+ }
37
+
38
+ export default BundlePath
39
+
40
+ module.exports = BundlePath
41
+ module.exports.default = BundlePath