@devopness/sdk-js 2.121.0 → 2.123.0

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.
@@ -107,17 +107,11 @@ export interface ApplicationEnvironmentCreate {
107
107
  */
108
108
  entrypoint: string;
109
109
  /**
110
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode.
111
- * @type {boolean}
112
- * @memberof ApplicationEnvironmentCreate
113
- */
114
- install_dependencies_dev: boolean;
115
- /**
116
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode.
117
- * @type {boolean}
110
+ * Indicates command that Devopness must execute to install application dependencies.
111
+ * @type {string}
118
112
  * @memberof ApplicationEnvironmentCreate
119
113
  */
120
- install_dependencies_prod: boolean;
114
+ install_dependencies_command?: string;
121
115
  /**
122
116
  * Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`.
123
117
  * @type {boolean}
@@ -139,17 +139,11 @@ export interface ApplicationRelation {
139
139
  */
140
140
  deployments_keep: number;
141
141
  /**
142
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode
143
- * @type {boolean}
144
- * @memberof ApplicationRelation
145
- */
146
- install_dependencies_dev: boolean;
147
- /**
148
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode
149
- * @type {boolean}
142
+ * Indicates command that Devopness must execute to install application dependencies
143
+ * @type {string}
150
144
  * @memberof ApplicationRelation
151
145
  */
152
- install_dependencies_prod: boolean;
146
+ install_dependencies_command?: string;
153
147
  /**
154
148
  * Indicates if the application requires a daemon to keep it alive
155
149
  * @type {boolean}
@@ -113,17 +113,11 @@ export interface ApplicationUpdate {
113
113
  */
114
114
  entrypoint: string;
115
115
  /**
116
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode.
117
- * @type {boolean}
118
- * @memberof ApplicationUpdate
119
- */
120
- install_dependencies_dev: boolean;
121
- /**
122
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode.
123
- * @type {boolean}
116
+ * Indicates command that Devopness must execute to install application dependencies.
117
+ * @type {string}
124
118
  * @memberof ApplicationUpdate
125
119
  */
126
- install_dependencies_prod: boolean;
120
+ install_dependencies_command?: string;
127
121
  /**
128
122
  * Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`.
129
123
  * @type {boolean}
@@ -143,17 +143,11 @@ export interface Application {
143
143
  */
144
144
  deployments_keep: number;
145
145
  /**
146
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode
147
- * @type {boolean}
148
- * @memberof Application
149
- */
150
- install_dependencies_dev: boolean;
151
- /**
152
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode
153
- * @type {boolean}
146
+ * Indicates command that Devopness must execute to install application dependencies
147
+ * @type {string}
154
148
  * @memberof Application
155
149
  */
156
- install_dependencies_prod: boolean;
150
+ install_dependencies_command?: string;
157
151
  /**
158
152
  * Indicates if the application requires a daemon to keep it alive
159
153
  * @type {boolean}
@@ -109,6 +109,7 @@ export * from './language';
109
109
  export * from './language-runtime';
110
110
  export * from './language-runtime-engine-versions';
111
111
  export * from './language-runtime-framework';
112
+ export * from './language-runtime-framework-commands';
112
113
  export * from './language-runtime-framework-defaults';
113
114
  export * from './linked-resource-data';
114
115
  export * from './log';
@@ -125,6 +125,7 @@ __exportStar(require("./language"), exports);
125
125
  __exportStar(require("./language-runtime"), exports);
126
126
  __exportStar(require("./language-runtime-engine-versions"), exports);
127
127
  __exportStar(require("./language-runtime-framework"), exports);
128
+ __exportStar(require("./language-runtime-framework-commands"), exports);
128
129
  __exportStar(require("./language-runtime-framework-defaults"), exports);
129
130
  __exportStar(require("./linked-resource-data"), exports);
130
131
  __exportStar(require("./log"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * devopness API
3
+ * Devopness API - Painless essential DevOps to everyone
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * List of available commands to be chosen by user to be executed when building and deploying an application of a given stack
14
+ * @export
15
+ * @interface LanguageRuntimeFrameworkCommands
16
+ */
17
+ export interface LanguageRuntimeFrameworkCommands {
18
+ /**
19
+ * Available build command options for the stack
20
+ * @type {Array<string>}
21
+ * @memberof LanguageRuntimeFrameworkCommands
22
+ */
23
+ build?: Array<string>;
24
+ /**
25
+ * Available dependencies installation command options for the stack
26
+ * @type {Array<string>}
27
+ * @memberof LanguageRuntimeFrameworkCommands
28
+ */
29
+ dependencies?: Array<string>;
30
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { LanguageRuntimeFrameworkCommands } from './language-runtime-framework-commands';
12
13
  /**
13
14
  * Default values that apply to apps created in devopness using this framework
14
15
  * @export
@@ -69,12 +70,6 @@ export interface LanguageRuntimeFrameworkDefaults {
69
70
  * @memberof LanguageRuntimeFrameworkDefaults
70
71
  */
71
72
  listening_address?: string;
72
- /**
73
- * The optional command that should be executed once during deployment to build the source code and get the application in a ready state.
74
- * @type {string}
75
- * @memberof LanguageRuntimeFrameworkDefaults
76
- */
77
- build_command?: string;
78
73
  /**
79
74
  * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers
80
75
  * @type {number}
@@ -82,15 +77,15 @@ export interface LanguageRuntimeFrameworkDefaults {
82
77
  */
83
78
  deployments_keep?: number;
84
79
  /**
85
- * Indicates if at deployment time we should execute package manager command to install dependencies used in development mode
86
- * @type {boolean}
80
+ *
81
+ * @type {LanguageRuntimeFrameworkCommands}
87
82
  * @memberof LanguageRuntimeFrameworkDefaults
88
83
  */
89
- install_dependencies_dev?: boolean;
84
+ commands?: LanguageRuntimeFrameworkCommands;
90
85
  /**
91
- * Indicates if at deployment time we should execute package manager command to install dependencies used in production mode
92
- * @type {boolean}
86
+ * Indicates command that Devopness must execute to install application dependencies
87
+ * @type {string}
93
88
  * @memberof LanguageRuntimeFrameworkDefaults
94
89
  */
95
- install_dependencies_prod?: boolean;
90
+ install_dependencies_command?: string | null;
96
91
  }
@@ -16,6 +16,7 @@
16
16
  */
17
17
  export declare enum TriggerEvent {
18
18
  ActivateNewRelease = "activate-new-release",
19
+ BuildApplication = "build-application",
19
20
  CheckAppEnvironment = "check-app-environment",
20
21
  GetNewRelease = "get-new-release",
21
22
  InstallDependencies = "install-dependencies",
@@ -21,6 +21,7 @@ exports.TriggerEvent = void 0;
21
21
  var TriggerEvent;
22
22
  (function (TriggerEvent) {
23
23
  TriggerEvent["ActivateNewRelease"] = "activate-new-release";
24
+ TriggerEvent["BuildApplication"] = "build-application";
24
25
  TriggerEvent["CheckAppEnvironment"] = "check-app-environment";
25
26
  TriggerEvent["GetNewRelease"] = "get-new-release";
26
27
  TriggerEvent["InstallDependencies"] = "install-dependencies";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.121.0",
3
+ "version": "2.123.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },