files.com 1.0.177 → 1.0.180
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 +1 -1
- package/lib/models/As2IncomingMessage.js +3 -0
- package/lib/models/As2OutgoingMessage.js +3 -0
- package/lib/models/Folder.js +6 -0
- package/package.json +1 -1
- package/src/models/As2IncomingMessage.js +10 -0
- package/src/models/As2OutgoingMessage.js +10 -0
- package/src/models/Folder.js +8 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.180
|
@@ -83,6 +83,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
83
83
|
(0, _defineProperty2.default)(this, "getSubject", function () {
|
84
84
|
return _this.attributes.subject;
|
85
85
|
});
|
86
|
+
(0, _defineProperty2.default)(this, "getDate", function () {
|
87
|
+
return _this.attributes.date;
|
88
|
+
});
|
86
89
|
(0, _defineProperty2.default)(this, "getBodySize", function () {
|
87
90
|
return _this.attributes.body_size;
|
88
91
|
});
|
@@ -74,6 +74,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
74
74
|
(0, _defineProperty2.default)(this, "getAs2From", function () {
|
75
75
|
return _this.attributes.as2_from;
|
76
76
|
});
|
77
|
+
(0, _defineProperty2.default)(this, "getDate", function () {
|
78
|
+
return _this.attributes.date;
|
79
|
+
});
|
77
80
|
(0, _defineProperty2.default)(this, "getMessageId", function () {
|
78
81
|
return _this.attributes.message_id;
|
79
82
|
});
|
package/lib/models/Folder.js
CHANGED
@@ -139,6 +139,12 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
139
139
|
(0, _defineProperty2.default)(this, "setPreview", function (value) {
|
140
140
|
_this.attributes.preview = value;
|
141
141
|
});
|
142
|
+
(0, _defineProperty2.default)(this, "getMkdirParents", function () {
|
143
|
+
return _this.attributes.mkdir_parents;
|
144
|
+
});
|
145
|
+
(0, _defineProperty2.default)(this, "setMkdirParents", function (value) {
|
146
|
+
_this.attributes.mkdir_parents = value;
|
147
|
+
});
|
142
148
|
(0, _defineProperty2.default)(this, "save", function () {
|
143
149
|
var newObject = Folder.create(_this.attributes.path, _this.attributes, _this.options);
|
144
150
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
package/package.json
CHANGED
@@ -64,6 +64,9 @@ class As2IncomingMessage {
|
|
64
64
|
// string # AS2 Subject Header
|
65
65
|
getSubject = () => this.attributes.subject
|
66
66
|
|
67
|
+
// string # Date Header
|
68
|
+
getDate = () => this.attributes.date
|
69
|
+
|
67
70
|
// string # Encrypted Payload Body Size
|
68
71
|
getBodySize = () => this.attributes.body_size
|
69
72
|
|
@@ -125,6 +128,13 @@ class As2IncomingMessage {
|
|
125
128
|
// Parameters:
|
126
129
|
// 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.
|
127
130
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
131
|
+
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `as2_partner_id`.
|
132
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
133
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
134
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
|
135
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
136
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
137
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
|
128
138
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
129
139
|
static list = async (params = {}, options = {}) => {
|
130
140
|
if (params['cursor'] && !isString(params['cursor'])) {
|
@@ -55,6 +55,9 @@ class As2OutgoingMessage {
|
|
55
55
|
// string # AS2 FROM
|
56
56
|
getAs2From = () => this.attributes.as2_from
|
57
57
|
|
58
|
+
// string # Date Header
|
59
|
+
getDate = () => this.attributes.date
|
60
|
+
|
58
61
|
// string # AS2 Message Id
|
59
62
|
getMessageId = () => this.attributes.message_id
|
60
63
|
|
@@ -110,6 +113,13 @@ class As2OutgoingMessage {
|
|
110
113
|
// Parameters:
|
111
114
|
// 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.
|
112
115
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
116
|
+
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `as2_partner_id`.
|
117
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
118
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
119
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
|
120
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
121
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
122
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
|
113
123
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
114
124
|
static list = async (params = {}, options = {}) => {
|
115
125
|
if (params['cursor'] && !isString(params['cursor'])) {
|
package/src/models/Folder.js
CHANGED
@@ -135,6 +135,13 @@ class Folder {
|
|
135
135
|
this.attributes.preview = value
|
136
136
|
}
|
137
137
|
|
138
|
+
// boolean # Create parent directories if they do not exist?
|
139
|
+
getMkdirParents = () => this.attributes.mkdir_parents
|
140
|
+
|
141
|
+
setMkdirParents = value => {
|
142
|
+
this.attributes.mkdir_parents = value
|
143
|
+
}
|
144
|
+
|
138
145
|
|
139
146
|
save = () => {
|
140
147
|
const newObject = Folder.create(this.attributes.path, this.attributes, this.options)
|
@@ -194,6 +201,7 @@ class Folder {
|
|
194
201
|
|
195
202
|
// Parameters:
|
196
203
|
// path (required) - string - Path to operate on.
|
204
|
+
// mkdir_parents - boolean - Create parent directories if they do not exist?
|
197
205
|
static create = async (path, params = {}, options = {}) => {
|
198
206
|
if (!isObject(params)) {
|
199
207
|
throw new Error(`Bad parameter: params must be of type object, received ${getType(params)}`)
|