files.com 1.0.253 → 1.0.254

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/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.253
1
+ 1.0.254
@@ -9,6 +9,7 @@
9
9
  "name": "AS2 Partner Name",
10
10
  "uri": "example",
11
11
  "server_certificate": "require_match",
12
+ "enable_dedicated_ips": true,
12
13
  "hex_public_certificate_serial": "A5:EB:C1:95:DC:D8:2B:E7",
13
14
  "public_certificate_md5": "example",
14
15
  "public_certificate_subject": "example",
@@ -24,6 +25,7 @@
24
25
  * `name` (string): The partner's formal AS2 name.
25
26
  * `uri` (string): Public URI for sending AS2 message to.
26
27
  * `server_certificate` (string): Remote server certificate security setting
28
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
27
29
  * `hex_public_certificate_serial` (string): Serial of public certificate used for message security in hex format.
28
30
  * `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
29
31
  * `public_certificate_subject` (string): Subject of public certificate used for message security.
@@ -73,6 +75,7 @@ await As2Partner.create({
73
75
  'public_certificate': "public_certificate",
74
76
  'as2_station_id': 1,
75
77
  'server_certificate': "require_match",
78
+ 'enable_dedicated_ips': true,
76
79
  })
77
80
  ```
78
81
 
@@ -84,6 +87,7 @@ await As2Partner.create({
84
87
  * `public_certificate` (string): Required -
85
88
  * `as2_station_id` (int64): Required - Id of As2Station for this partner
86
89
  * `server_certificate` (string): Remote server certificate security setting
90
+ * `enable_dedicated_ips` (boolean):
87
91
 
88
92
  ---
89
93
 
@@ -96,6 +100,7 @@ await as2_partner.update({
96
100
  'name': "AS2 Partner Name",
97
101
  'uri': "example",
98
102
  'server_certificate': "require_match",
103
+ 'enable_dedicated_ips': true,
99
104
  })
100
105
  ```
101
106
 
@@ -106,6 +111,7 @@ await as2_partner.update({
106
111
  * `uri` (string): URL base for AS2 responses
107
112
  * `server_certificate` (string): Remote server certificate security setting
108
113
  * `public_certificate` (string):
114
+ * `enable_dedicated_ips` (boolean):
109
115
 
110
116
  ### Example Response
111
117
 
@@ -116,6 +122,7 @@ await as2_partner.update({
116
122
  "name": "AS2 Partner Name",
117
123
  "uri": "example",
118
124
  "server_certificate": "require_match",
125
+ "enable_dedicated_ips": true,
119
126
  "hex_public_certificate_serial": "A5:EB:C1:95:DC:D8:2B:E7",
120
127
  "public_certificate_md5": "example",
121
128
  "public_certificate_subject": "example",
@@ -66,6 +66,13 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
66
66
  (0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
67
67
  _this.attributes.server_certificate = value;
68
68
  });
69
+ // boolean # `true` if remote server only accepts connections from dedicated IPs
70
+ (0, _defineProperty2.default)(this, "getEnableDedicatedIps", function () {
71
+ return _this.attributes.enable_dedicated_ips;
72
+ });
73
+ (0, _defineProperty2.default)(this, "setEnableDedicatedIps", function (value) {
74
+ _this.attributes.enable_dedicated_ips = value;
75
+ });
69
76
  // string # Serial of public certificate used for message security in hex format.
70
77
  (0, _defineProperty2.default)(this, "getHexPublicCertificateSerial", function () {
71
78
  return _this.attributes.hex_public_certificate_serial;
@@ -127,6 +134,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
127
134
  // uri - string - URL base for AS2 responses
128
135
  // server_certificate - string - Remote server certificate security setting
129
136
  // public_certificate - string
137
+ // enable_dedicated_ips - boolean
130
138
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
131
139
  var params,
132
140
  response,
@@ -383,6 +391,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
383
391
  // public_certificate (required) - string
384
392
  // as2_station_id (required) - int64 - Id of As2Station for this partner
385
393
  // server_certificate - string - Remote server certificate security setting
394
+ // enable_dedicated_ips - boolean
386
395
  (0, _defineProperty2.default)(As2Partner, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
387
396
  var params,
388
397
  options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.253",
3
+ "version": "1.0.254",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -58,6 +58,13 @@ class As2Partner {
58
58
  this.attributes.server_certificate = value
59
59
  }
60
60
 
61
+ // boolean # `true` if remote server only accepts connections from dedicated IPs
62
+ getEnableDedicatedIps = () => this.attributes.enable_dedicated_ips
63
+
64
+ setEnableDedicatedIps = value => {
65
+ this.attributes.enable_dedicated_ips = value
66
+ }
67
+
61
68
  // string # Serial of public certificate used for message security in hex format.
62
69
  getHexPublicCertificateSerial = () => this.attributes.hex_public_certificate_serial
63
70
 
@@ -120,6 +127,7 @@ class As2Partner {
120
127
  // uri - string - URL base for AS2 responses
121
128
  // server_certificate - string - Remote server certificate security setting
122
129
  // public_certificate - string
130
+ // enable_dedicated_ips - boolean
123
131
  update = async (params = {}) => {
124
132
  if (!this.attributes.id) {
125
133
  throw new errors.EmptyPropertyError('Current object has no id')
@@ -250,6 +258,7 @@ class As2Partner {
250
258
  // public_certificate (required) - string
251
259
  // as2_station_id (required) - int64 - Id of As2Station for this partner
252
260
  // server_certificate - string - Remote server certificate security setting
261
+ // enable_dedicated_ips - boolean
253
262
  static create = async (params = {}, options = {}) => {
254
263
  if (!params['name']) {
255
264
  throw new errors.MissingParameterError('Parameter missing: name')