@devopness/sdk-js 3.5.1 → 3.5.2

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.
@@ -18,13 +18,13 @@ import { VariableType } from './variable-type';
18
18
  */
19
19
  export interface VariableApplicationCreate {
20
20
  /**
21
- * The unique key used to identify the variable on the target. When variable is of type `file`, this is the relative path to the file within the application directory. Must not be greater than 100 characters.
21
+ * The unique key used to identify the variable on the target. For `resource-config-file`, use a relative path such as `.env` or `storage/oauth-public.key`. For `resource-symlink`, `key` is the link path and `value` is the destination path, for example `node_modules` -> `${APP_SHARED_DIR}/node_modules`. Must not be greater than 100 characters.
22
22
  * @type {string}
23
23
  * @memberof VariableApplicationCreate
24
24
  */
25
25
  key: string;
26
26
  /**
27
- * The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. Must not be greater than 21504 characters.
27
+ * The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. When variable is of type `symlink`, this is the destination path, for example `${APP_SHARED_DIR}/node_modules`. Must not be greater than 21504 characters.
28
28
  * @type {string}
29
29
  * @memberof VariableApplicationCreate
30
30
  */
@@ -18,13 +18,13 @@ import { VariableType } from './variable-type';
18
18
  */
19
19
  export interface VariableCreate {
20
20
  /**
21
- * The unique key used to identify the variable on the target. Must not be greater than 100 characters.
21
+ * The unique key used to identify the variable on the target. For `resource-config-file`, use a relative path such as `.env` or `storage/oauth-public.key`. For `resource-symlink`, `key` is the link path and `value` is the destination path, for example `node_modules` -> `${APP_SHARED_DIR}/node_modules`. Must not be greater than 100 characters.
22
22
  * @type {string}
23
23
  * @memberof VariableCreate
24
24
  */
25
25
  key: string;
26
26
  /**
27
- * The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. Must not be greater than 21504 characters.
27
+ * The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. When variable is of type `symlink`, this is the destination path, for example `${APP_SHARED_DIR}/node_modules`. Must not be greater than 21504 characters.
28
28
  * @type {string}
29
29
  * @memberof VariableCreate
30
30
  */
@@ -25,7 +25,7 @@ export interface VariableRelation {
25
25
  */
26
26
  id: number;
27
27
  /**
28
- * The unique key used to identify the variable on the target
28
+ * The unique key used to identify the variable on the target, or the filesystem path for configuration files and symlinks
29
29
  * @type {string}
30
30
  * @memberof VariableRelation
31
31
  */
@@ -43,7 +43,7 @@ export interface VariableRelation {
43
43
  */
44
44
  description: string | null;
45
45
  /**
46
- * The value to be assigned to this variable when deployed to its target
46
+ * The value to be assigned to this variable when deployed to its target. For configuration files this is the file content; for symlinks this is the symlink target path
47
47
  * @type {string}
48
48
  * @memberof VariableRelation
49
49
  */
@@ -27,6 +27,7 @@ export declare enum VariableTarget {
27
27
  PhpFpmPoolDWwwConf = "php-fpm_pool-d-www-conf",
28
28
  RedisConf = "redis-conf",
29
29
  ResourceConfigFile = "resource-config-file",
30
+ ResourceSymlink = "resource-symlink",
30
31
  SupervisordConf = "supervisord-conf",
31
32
  SysctlConf = "sysctl-conf"
32
33
  }
@@ -32,6 +32,7 @@ var VariableTarget;
32
32
  VariableTarget["PhpFpmPoolDWwwConf"] = "php-fpm_pool-d-www-conf";
33
33
  VariableTarget["RedisConf"] = "redis-conf";
34
34
  VariableTarget["ResourceConfigFile"] = "resource-config-file";
35
+ VariableTarget["ResourceSymlink"] = "resource-symlink";
35
36
  VariableTarget["SupervisordConf"] = "supervisord-conf";
36
37
  VariableTarget["SysctlConf"] = "sysctl-conf";
37
38
  })(VariableTarget || (exports.VariableTarget = VariableTarget = {}));
@@ -16,5 +16,6 @@
16
16
  */
17
17
  export declare enum VariableType {
18
18
  File = "file",
19
+ Symlink = "symlink",
19
20
  Variable = "variable"
20
21
  }
@@ -21,5 +21,6 @@ exports.VariableType = void 0;
21
21
  var VariableType;
22
22
  (function (VariableType) {
23
23
  VariableType["File"] = "file";
24
+ VariableType["Symlink"] = "symlink";
24
25
  VariableType["Variable"] = "variable";
25
26
  })(VariableType || (exports.VariableType = VariableType = {}));
@@ -24,13 +24,13 @@ export interface VariableUpdate {
24
24
  */
25
25
  id: number;
26
26
  /**
27
- * The unique key used to identify the variable on the target. When variable is of type `file`, this is the relative path to the file within the application directory. Must not be greater than 100 characters.
27
+ * The unique key used to identify the variable on the target. For `resource-config-file`, use a relative path such as `.env` or `storage/oauth-public.key`. For `resource-symlink`, `key` is the link path and `value` is the destination path, for example `node_modules` -> `${APP_SHARED_DIR}/node_modules`. Must not be greater than 100 characters.
28
28
  * @type {string}
29
29
  * @memberof VariableUpdate
30
30
  */
31
31
  key: string;
32
32
  /**
33
- * The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. Must not be greater than 21504 characters.
33
+ * The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. When variable is of type `symlink`, this is the destination path, for example `${APP_SHARED_DIR}/node_modules`. Must not be greater than 21504 characters.
34
34
  * @type {string}
35
35
  * @memberof VariableUpdate
36
36
  */
@@ -25,7 +25,7 @@ export interface Variable {
25
25
  */
26
26
  id: number;
27
27
  /**
28
- * The unique key used to identify the variable on the target
28
+ * The unique key used to identify the variable on the target, or the filesystem path for configuration files and symlinks
29
29
  * @type {string}
30
30
  * @memberof Variable
31
31
  */
@@ -43,7 +43,7 @@ export interface Variable {
43
43
  */
44
44
  description: string | null;
45
45
  /**
46
- * The value to be assigned to this variable when deployed to its target
46
+ * The value to be assigned to this variable when deployed to its target. For configuration files this is the file content; for symlinks this is the symlink target path
47
47
  * @type {string}
48
48
  * @memberof Variable
49
49
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@devopness/sdk-js",
4
- "version": "3.5.1",
4
+ "version": "3.5.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },