files.com 1.2.102 → 1.2.104

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/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.102';
14
+ var version = '1.2.104';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -69,6 +69,10 @@ var Action = /*#__PURE__*/(0, _createClass2.default)(function Action() {
69
69
  (0, _defineProperty2.default)(this, "getUsername", function () {
70
70
  return _this.attributes.username;
71
71
  });
72
+ // boolean # true if this change was performed by a user on a parent site.
73
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
74
+ return _this.attributes.user_is_from_parent_site;
75
+ });
72
76
  // string # Type of action
73
77
  (0, _defineProperty2.default)(this, "getAction", function () {
74
78
  return _this.attributes.action;
@@ -53,6 +53,10 @@ var ApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function ApiRequestL
53
53
  (0, _defineProperty2.default)(this, "getUsername", function () {
54
54
  return _this.attributes.username;
55
55
  });
56
+ // boolean # true if this change was performed by a user on a parent site.
57
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
58
+ return _this.attributes.user_is_from_parent_site;
59
+ });
56
60
  // string # API Interface
57
61
  (0, _defineProperty2.default)(this, "getInterface", function () {
58
62
  return _this.attributes.interface;
@@ -73,6 +73,10 @@ var History = /*#__PURE__*/(0, _createClass2.default)(function History() {
73
73
  (0, _defineProperty2.default)(this, "getUsername", function () {
74
74
  return _this.attributes.username;
75
75
  });
76
+ // boolean # true if this change was performed by a user on a parent site.
77
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
78
+ return _this.attributes.user_is_from_parent_site;
79
+ });
76
80
  // string # Type of action
77
81
  (0, _defineProperty2.default)(this, "getAction", function () {
78
82
  return _this.attributes.action;
@@ -81,6 +81,10 @@ var HistoryExportResult = /*#__PURE__*/(0, _createClass2.default)(function Histo
81
81
  (0, _defineProperty2.default)(this, "getUsername", function () {
82
82
  return _this.attributes.username;
83
83
  });
84
+ // boolean # true if this change was performed by a user on a parent site.
85
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
86
+ return _this.attributes.user_is_from_parent_site;
87
+ });
84
88
  // string # What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
85
89
  (0, _defineProperty2.default)(this, "getAction", function () {
86
90
  return _this.attributes.action;
@@ -53,6 +53,10 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
53
53
  (0, _defineProperty2.default)(this, "getUserIsFilesSupport", function () {
54
54
  return _this.attributes.user_is_files_support;
55
55
  });
56
+ // boolean # true if this change was performed by a user on a parent site.
57
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
58
+ return _this.attributes.user_is_from_parent_site;
59
+ });
56
60
  // string # The username of the user responsible for this change
57
61
  (0, _defineProperty2.default)(this, "getUsername", function () {
58
62
  return _this.attributes.username;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.102",
3
+ "version": "1.2.104",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Errors.js CHANGED
@@ -145,6 +145,7 @@ export class NotAuthenticated_InboxRegistrationCodeFailedError extends NotAuthen
145
145
  export class NotAuthenticated_InvalidCredentialsError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_InvalidCredentialsError' } } errorClasses.NotAuthenticated_InvalidCredentialsError = NotAuthenticated_InvalidCredentialsError
146
146
  export class NotAuthenticated_InvalidOauthError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_InvalidOauthError' } } errorClasses.NotAuthenticated_InvalidOauthError = NotAuthenticated_InvalidOauthError
147
147
  export class NotAuthenticated_InvalidOrExpiredCodeError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_InvalidOrExpiredCodeError' } } errorClasses.NotAuthenticated_InvalidOrExpiredCodeError = NotAuthenticated_InvalidOrExpiredCodeError
148
+ export class NotAuthenticated_InvalidSessionError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_InvalidSessionError' } } errorClasses.NotAuthenticated_InvalidSessionError = NotAuthenticated_InvalidSessionError
148
149
  export class NotAuthenticated_InvalidUsernameOrPasswordError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_InvalidUsernameOrPasswordError' } } errorClasses.NotAuthenticated_InvalidUsernameOrPasswordError = NotAuthenticated_InvalidUsernameOrPasswordError
149
150
  export class NotAuthenticated_LockedOutError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_LockedOutError' } } errorClasses.NotAuthenticated_LockedOutError = NotAuthenticated_LockedOutError
150
151
  export class NotAuthenticated_LockoutRegionMismatchError extends NotAuthenticatedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthenticated_LockoutRegionMismatchError' } } errorClasses.NotAuthenticated_LockoutRegionMismatchError = NotAuthenticated_LockoutRegionMismatchError
@@ -167,6 +168,7 @@ export class NotAuthorized_FolderAdminPermissionRequiredError extends NotAuthori
167
168
  export class NotAuthorized_FullPermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_FullPermissionRequiredError' } } errorClasses.NotAuthorized_FullPermissionRequiredError = NotAuthorized_FullPermissionRequiredError
168
169
  export class NotAuthorized_HistoryPermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_HistoryPermissionRequiredError' } } errorClasses.NotAuthorized_HistoryPermissionRequiredError = NotAuthorized_HistoryPermissionRequiredError
169
170
  export class NotAuthorized_InsufficientPermissionForParamsError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_InsufficientPermissionForParamsError' } } errorClasses.NotAuthorized_InsufficientPermissionForParamsError = NotAuthorized_InsufficientPermissionForParamsError
171
+ export class NotAuthorized_InsufficientPermissionForSiteError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_InsufficientPermissionForSiteError' } } errorClasses.NotAuthorized_InsufficientPermissionForSiteError = NotAuthorized_InsufficientPermissionForSiteError
170
172
  export class NotAuthorized_MustAuthenticateWithApiKeyError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_MustAuthenticateWithApiKeyError' } } errorClasses.NotAuthorized_MustAuthenticateWithApiKeyError = NotAuthorized_MustAuthenticateWithApiKeyError
171
173
  export class NotAuthorized_NeedAdminPermissionForInboxError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_NeedAdminPermissionForInboxError' } } errorClasses.NotAuthorized_NeedAdminPermissionForInboxError = NotAuthorized_NeedAdminPermissionForInboxError
172
174
  export class NotAuthorized_NonAdminsMustQueryByFolderOrPathError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_NonAdminsMustQueryByFolderOrPathError' } } errorClasses.NotAuthorized_NonAdminsMustQueryByFolderOrPathError = NotAuthorized_NonAdminsMustQueryByFolderOrPathError
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.102'
8
+ const version = '1.2.104'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -58,6 +58,9 @@ class Action {
58
58
  // string # Username
59
59
  getUsername = () => this.attributes.username
60
60
 
61
+ // boolean # true if this change was performed by a user on a parent site.
62
+ getUserIsFromParentSite = () => this.attributes.user_is_from_parent_site
63
+
61
64
  // string # Type of action
62
65
  getAction = () => this.attributes.action
63
66
 
@@ -43,6 +43,9 @@ class ApiRequestLog {
43
43
  // string # Username
44
44
  getUsername = () => this.attributes.username
45
45
 
46
+ // boolean # true if this change was performed by a user on a parent site.
47
+ getUserIsFromParentSite = () => this.attributes.user_is_from_parent_site
48
+
46
49
  // string # API Interface
47
50
  getInterface = () => this.attributes.interface
48
51
 
@@ -58,6 +58,9 @@ class History {
58
58
  // string # Username
59
59
  getUsername = () => this.attributes.username
60
60
 
61
+ // boolean # true if this change was performed by a user on a parent site.
62
+ getUserIsFromParentSite = () => this.attributes.user_is_from_parent_site
63
+
61
64
  // string # Type of action
62
65
  getAction = () => this.attributes.action
63
66
 
@@ -64,6 +64,9 @@ class HistoryExportResult {
64
64
  // string # Username of the user that performed the action
65
65
  getUsername = () => this.attributes.username
66
66
 
67
+ // boolean # true if this change was performed by a user on a parent site.
68
+ getUserIsFromParentSite = () => this.attributes.user_is_from_parent_site
69
+
67
70
  // string # What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
68
71
  getAction = () => this.attributes.action
69
72
 
@@ -43,6 +43,9 @@ class SettingsChange {
43
43
  // boolean # true if this change was performed by Files.com support.
44
44
  getUserIsFilesSupport = () => this.attributes.user_is_files_support
45
45
 
46
+ // boolean # true if this change was performed by a user on a parent site.
47
+ getUserIsFromParentSite = () => this.attributes.user_is_from_parent_site
48
+
46
49
  // string # The username of the user responsible for this change
47
50
  getUsername = () => this.attributes.username
48
51