files.com 1.0.174 → 1.0.175

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.174
1
+ 1.0.175
@@ -47,6 +47,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
47
47
  (0, _defineProperty2.default)(this, "getAs2PartnerId", function () {
48
48
  return _this.attributes.as2_partner_id;
49
49
  });
50
+ (0, _defineProperty2.default)(this, "getAs2StationId", function () {
51
+ return _this.attributes.as2_station_id;
52
+ });
50
53
  (0, _defineProperty2.default)(this, "getUuid", function () {
51
54
  return _this.attributes.uuid;
52
55
  });
@@ -62,6 +65,12 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
62
65
  (0, _defineProperty2.default)(this, "getProcessingResult", function () {
63
66
  return _this.attributes.processing_result;
64
67
  });
68
+ (0, _defineProperty2.default)(this, "getMic", function () {
69
+ return _this.attributes.mic;
70
+ });
71
+ (0, _defineProperty2.default)(this, "getMicAlgo", function () {
72
+ return _this.attributes.mic_algo;
73
+ });
65
74
  (0, _defineProperty2.default)(this, "getAs2To", function () {
66
75
  return _this.attributes.as2_to;
67
76
  });
@@ -80,9 +89,48 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
80
89
  (0, _defineProperty2.default)(this, "getAttachmentFilename", function () {
81
90
  return _this.attributes.attachment_filename;
82
91
  });
92
+ (0, _defineProperty2.default)(this, "getIp", function () {
93
+ return _this.attributes.ip;
94
+ });
83
95
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
84
96
  return _this.attributes.created_at;
85
97
  });
98
+ (0, _defineProperty2.default)(this, "getHttpResponseCode", function () {
99
+ return _this.attributes.http_response_code;
100
+ });
101
+ (0, _defineProperty2.default)(this, "getHttpResponseHeaders", function () {
102
+ return _this.attributes.http_response_headers;
103
+ });
104
+ (0, _defineProperty2.default)(this, "getMessageReceived", function () {
105
+ return _this.attributes.message_received;
106
+ });
107
+ (0, _defineProperty2.default)(this, "getMessageDecrypted", function () {
108
+ return _this.attributes.message_decrypted;
109
+ });
110
+ (0, _defineProperty2.default)(this, "getMessageSignatureVerified", function () {
111
+ return _this.attributes.message_signature_verified;
112
+ });
113
+ (0, _defineProperty2.default)(this, "getMessageProcessingSuccess", function () {
114
+ return _this.attributes.message_processing_success;
115
+ });
116
+ (0, _defineProperty2.default)(this, "getMessageMdnReturned", function () {
117
+ return _this.attributes.message_mdn_returned;
118
+ });
119
+ (0, _defineProperty2.default)(this, "getEncryptedUri", function () {
120
+ return _this.attributes.encrypted_uri;
121
+ });
122
+ (0, _defineProperty2.default)(this, "getSmimeSignedUri", function () {
123
+ return _this.attributes.smime_signed_uri;
124
+ });
125
+ (0, _defineProperty2.default)(this, "getSmimeUri", function () {
126
+ return _this.attributes.smime_uri;
127
+ });
128
+ (0, _defineProperty2.default)(this, "getRawUri", function () {
129
+ return _this.attributes.raw_uri;
130
+ });
131
+ (0, _defineProperty2.default)(this, "getMdnResponseUri", function () {
132
+ return _this.attributes.mdn_response_uri;
133
+ });
86
134
  Object.entries(attributes).forEach(function (_ref) {
87
135
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
88
136
  key = _ref2[0],
@@ -47,6 +47,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
47
47
  (0, _defineProperty2.default)(this, "getAs2PartnerId", function () {
48
48
  return _this.attributes.as2_partner_id;
49
49
  });
50
+ (0, _defineProperty2.default)(this, "getAs2StationId", function () {
51
+ return _this.attributes.as2_station_id;
52
+ });
50
53
  (0, _defineProperty2.default)(this, "getUuid", function () {
51
54
  return _this.attributes.uuid;
52
55
  });
@@ -62,6 +65,15 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
62
65
  (0, _defineProperty2.default)(this, "getMic", function () {
63
66
  return _this.attributes.mic;
64
67
  });
68
+ (0, _defineProperty2.default)(this, "getMicSha256", function () {
69
+ return _this.attributes.mic_sha_256;
70
+ });
71
+ (0, _defineProperty2.default)(this, "getAs2To", function () {
72
+ return _this.attributes.as2_to;
73
+ });
74
+ (0, _defineProperty2.default)(this, "getAs2From", function () {
75
+ return _this.attributes.as2_from;
76
+ });
65
77
  (0, _defineProperty2.default)(this, "getMessageId", function () {
66
78
  return _this.attributes.message_id;
67
79
  });
@@ -74,6 +86,45 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
74
86
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
75
87
  return _this.attributes.created_at;
76
88
  });
89
+ (0, _defineProperty2.default)(this, "getHttpResponseCode", function () {
90
+ return _this.attributes.http_response_code;
91
+ });
92
+ (0, _defineProperty2.default)(this, "getHttpResponseHeaders", function () {
93
+ return _this.attributes.http_response_headers;
94
+ });
95
+ (0, _defineProperty2.default)(this, "getMdnReceived", function () {
96
+ return _this.attributes.mdn_received;
97
+ });
98
+ (0, _defineProperty2.default)(this, "getMdnValid", function () {
99
+ return _this.attributes.mdn_valid;
100
+ });
101
+ (0, _defineProperty2.default)(this, "getMdnSignatureVerified", function () {
102
+ return _this.attributes.mdn_signature_verified;
103
+ });
104
+ (0, _defineProperty2.default)(this, "getMdnMessageIdMatched", function () {
105
+ return _this.attributes.mdn_message_id_matched;
106
+ });
107
+ (0, _defineProperty2.default)(this, "getMdnMicMatched", function () {
108
+ return _this.attributes.mdn_mic_matched;
109
+ });
110
+ (0, _defineProperty2.default)(this, "getMdnProcessingSuccess", function () {
111
+ return _this.attributes.mdn_processing_success;
112
+ });
113
+ (0, _defineProperty2.default)(this, "getRawUri", function () {
114
+ return _this.attributes.raw_uri;
115
+ });
116
+ (0, _defineProperty2.default)(this, "getSmimeUri", function () {
117
+ return _this.attributes.smime_uri;
118
+ });
119
+ (0, _defineProperty2.default)(this, "getSmimeSignedUri", function () {
120
+ return _this.attributes.smime_signed_uri;
121
+ });
122
+ (0, _defineProperty2.default)(this, "getEncryptedUri", function () {
123
+ return _this.attributes.encrypted_uri;
124
+ });
125
+ (0, _defineProperty2.default)(this, "getMdnResponseUri", function () {
126
+ return _this.attributes.mdn_response_uri;
127
+ });
77
128
  Object.entries(attributes).forEach(function (_ref) {
78
129
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
79
130
  key = _ref2[0],
@@ -71,6 +71,12 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
71
71
  (0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
72
72
  _this.attributes.server_certificate = value;
73
73
  });
74
+ (0, _defineProperty2.default)(this, "getHexPublicCertificateSerial", function () {
75
+ return _this.attributes.hex_public_certificate_serial;
76
+ });
77
+ (0, _defineProperty2.default)(this, "setHexPublicCertificateSerial", function (value) {
78
+ _this.attributes.hex_public_certificate_serial = value;
79
+ });
74
80
  (0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
75
81
  return _this.attributes.public_certificate_md5;
76
82
  });
@@ -65,6 +65,12 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
65
65
  (0, _defineProperty2.default)(this, "setDomain", function (value) {
66
66
  _this.attributes.domain = value;
67
67
  });
68
+ (0, _defineProperty2.default)(this, "getHexPublicCertificateSerial", function () {
69
+ return _this.attributes.hex_public_certificate_serial;
70
+ });
71
+ (0, _defineProperty2.default)(this, "setHexPublicCertificateSerial", function (value) {
72
+ _this.attributes.hex_public_certificate_serial = value;
73
+ });
68
74
  (0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
69
75
  return _this.attributes.public_certificate_md5;
70
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.174",
3
+ "version": "1.0.175",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -28,6 +28,9 @@ class As2IncomingMessage {
28
28
  // int64 # Id of the AS2 Partner associated with this message.
29
29
  getAs2PartnerId = () => this.attributes.as2_partner_id
30
30
 
31
+ // int64 # Id of the AS2 Station associated with this message.
32
+ getAs2StationId = () => this.attributes.as2_station_id
33
+
31
34
  // string # UUID assigned to this message.
32
35
  getUuid = () => this.attributes.uuid
33
36
 
@@ -43,6 +46,12 @@ class As2IncomingMessage {
43
46
  // string # Result of processing.
44
47
  getProcessingResult = () => this.attributes.processing_result
45
48
 
49
+ // string # AS2 Message Integrity Check
50
+ getMic = () => this.attributes.mic
51
+
52
+ // string # AS2 Message Integrity Check Algorithm Used
53
+ getMicAlgo = () => this.attributes.mic_algo
54
+
46
55
  // string # AS2 TO header of message
47
56
  getAs2To = () => this.attributes.as2_to
48
57
 
@@ -61,9 +70,48 @@ class As2IncomingMessage {
61
70
  // string # Filename of the file being received.
62
71
  getAttachmentFilename = () => this.attributes.attachment_filename
63
72
 
73
+ // string # IP Address of the Sender
74
+ getIp = () => this.attributes.ip
75
+
64
76
  // date-time # Message creation date/time
65
77
  getCreatedAt = () => this.attributes.created_at
66
78
 
79
+ // string # HTTP Response Code sent for this message
80
+ getHttpResponseCode = () => this.attributes.http_response_code
81
+
82
+ // object # HTTP Headers sent for this message.
83
+ getHttpResponseHeaders = () => this.attributes.http_response_headers
84
+
85
+ // boolean # Message body received?
86
+ getMessageReceived = () => this.attributes.message_received
87
+
88
+ // boolean # Message decrypted successfully?
89
+ getMessageDecrypted = () => this.attributes.message_decrypted
90
+
91
+ // boolean # Message signature verified?
92
+ getMessageSignatureVerified = () => this.attributes.message_signature_verified
93
+
94
+ // boolean # Message processed successfully?
95
+ getMessageProcessingSuccess = () => this.attributes.message_processing_success
96
+
97
+ // boolean # MDN returned?
98
+ getMessageMdnReturned = () => this.attributes.message_mdn_returned
99
+
100
+ // string # URL to download the encrypted signed smime that is to sent as AS2 body
101
+ getEncryptedUri = () => this.attributes.encrypted_uri
102
+
103
+ // string # URL to download the file contents as smime with signature
104
+ getSmimeSignedUri = () => this.attributes.smime_signed_uri
105
+
106
+ // string # URL to download the file contents encoded as smime
107
+ getSmimeUri = () => this.attributes.smime_uri
108
+
109
+ // string # URL to download the original file contents
110
+ getRawUri = () => this.attributes.raw_uri
111
+
112
+ // string # URL to download the http response body
113
+ getMdnResponseUri = () => this.attributes.mdn_response_uri
114
+
67
115
 
68
116
  // Parameters:
69
117
  // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
@@ -28,6 +28,9 @@ class As2OutgoingMessage {
28
28
  // int64 # Id of the AS2 Partner associated with this message.
29
29
  getAs2PartnerId = () => this.attributes.as2_partner_id
30
30
 
31
+ // int64 # Id of the AS2 Station associated with this message.
32
+ getAs2StationId = () => this.attributes.as2_station_id
33
+
31
34
  // string # UUID assigned to this message.
32
35
  getUuid = () => this.attributes.uuid
33
36
 
@@ -40,9 +43,18 @@ class As2OutgoingMessage {
40
43
  // string # Result of processing.
41
44
  getProcessingResult = () => this.attributes.processing_result
42
45
 
43
- // string # AS2 Message Integrity Check
46
+ // string # AS2 Message Integrity Check SHA1
44
47
  getMic = () => this.attributes.mic
45
48
 
49
+ // string # AS2 Message Integrity Check SHA256
50
+ getMicSha256 = () => this.attributes.mic_sha_256
51
+
52
+ // string # AS2 TO
53
+ getAs2To = () => this.attributes.as2_to
54
+
55
+ // string # AS2 FROM
56
+ getAs2From = () => this.attributes.as2_from
57
+
46
58
  // string # AS2 Message Id
47
59
  getMessageId = () => this.attributes.message_id
48
60
 
@@ -55,6 +67,45 @@ class As2OutgoingMessage {
55
67
  // date-time # Message creation date/time
56
68
  getCreatedAt = () => this.attributes.created_at
57
69
 
70
+ // string # HTTP Response Code received for this message
71
+ getHttpResponseCode = () => this.attributes.http_response_code
72
+
73
+ // object # HTTP Headers received for this message.
74
+ getHttpResponseHeaders = () => this.attributes.http_response_headers
75
+
76
+ // boolean # Did the partner give a response body?
77
+ getMdnReceived = () => this.attributes.mdn_received
78
+
79
+ // boolean # Is the response in MDN format?
80
+ getMdnValid = () => this.attributes.mdn_valid
81
+
82
+ // boolean # MDN signature verified?
83
+ getMdnSignatureVerified = () => this.attributes.mdn_signature_verified
84
+
85
+ // boolean # MDN message id matched?
86
+ getMdnMessageIdMatched = () => this.attributes.mdn_message_id_matched
87
+
88
+ // boolean # MDN MIC matched?
89
+ getMdnMicMatched = () => this.attributes.mdn_mic_matched
90
+
91
+ // boolean # MDN disposition indicate a successful processing?
92
+ getMdnProcessingSuccess = () => this.attributes.mdn_processing_success
93
+
94
+ // string # URL to download the original file contents
95
+ getRawUri = () => this.attributes.raw_uri
96
+
97
+ // string # URL to download the file contents encoded as smime
98
+ getSmimeUri = () => this.attributes.smime_uri
99
+
100
+ // string # URL to download the file contents as smime with signature
101
+ getSmimeSignedUri = () => this.attributes.smime_signed_uri
102
+
103
+ // string # URL to download the encrypted signed smime that is to sent as AS2 body
104
+ getEncryptedUri = () => this.attributes.encrypted_uri
105
+
106
+ // string # URL to download the http response body
107
+ getMdnResponseUri = () => this.attributes.mdn_response_uri
108
+
58
109
 
59
110
  // Parameters:
60
111
  // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
@@ -57,6 +57,13 @@ class As2Partner {
57
57
  this.attributes.server_certificate = value
58
58
  }
59
59
 
60
+ // string # Serial of public certificate used for message security in hex format.
61
+ getHexPublicCertificateSerial = () => this.attributes.hex_public_certificate_serial
62
+
63
+ setHexPublicCertificateSerial = value => {
64
+ this.attributes.hex_public_certificate_serial = value
65
+ }
66
+
60
67
  // string # MD5 hash of public certificate used for message security.
61
68
  getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
62
69
 
@@ -50,6 +50,13 @@ class As2Station {
50
50
  this.attributes.domain = value
51
51
  }
52
52
 
53
+ // string # Serial of public certificate used for message security in hex format.
54
+ getHexPublicCertificateSerial = () => this.attributes.hex_public_certificate_serial
55
+
56
+ setHexPublicCertificateSerial = value => {
57
+ this.attributes.hex_public_certificate_serial = value
58
+ }
59
+
53
60
  // string # MD5 hash of public certificate used for message security.
54
61
  getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
55
62