@devopness/sdk-js 2.23.0 → 2.24.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.
Files changed (121) hide show
  1. package/dist/DevopnessApiClient.d.ts +2 -4
  2. package/dist/DevopnessApiClient.js +2 -4
  3. package/dist/api/generated/apis/actions-api.d.ts +16 -5
  4. package/dist/api/generated/apis/actions-api.js +35 -2
  5. package/dist/api/generated/apis/actions-resources-api.d.ts +0 -11
  6. package/dist/api/generated/apis/actions-resources-api.js +0 -33
  7. package/dist/api/generated/apis/applications-api.d.ts +4 -4
  8. package/dist/api/generated/apis/applications-api.js +4 -4
  9. package/dist/api/generated/apis/applications-hooks-api.d.ts +5 -3
  10. package/dist/api/generated/apis/applications-hooks-api.js +12 -3
  11. package/dist/api/generated/apis/environments-api.d.ts +4 -4
  12. package/dist/api/generated/apis/environments-api.js +4 -4
  13. package/dist/api/generated/apis/environments-teams-api.d.ts +34 -0
  14. package/dist/api/generated/apis/environments-teams-api.js +77 -0
  15. package/dist/api/generated/apis/hook-requests-api.d.ts +25 -0
  16. package/dist/api/generated/apis/hook-requests-api.js +49 -0
  17. package/dist/api/generated/apis/hooks-api.d.ts +56 -0
  18. package/dist/api/generated/apis/hooks-api.js +133 -0
  19. package/dist/api/generated/apis/hooks-requests-api.d.ts +7 -17
  20. package/dist/api/generated/apis/hooks-requests-api.js +18 -37
  21. package/dist/api/generated/apis/projects-api.d.ts +8 -8
  22. package/dist/api/generated/apis/projects-api.js +8 -8
  23. package/dist/api/generated/apis/roles-api.d.ts +6 -6
  24. package/dist/api/generated/apis/roles-api.js +6 -6
  25. package/dist/api/generated/apis/servers-api.d.ts +6 -6
  26. package/dist/api/generated/apis/servers-api.js +4 -4
  27. package/dist/api/generated/apis/services-variables-api.d.ts +36 -0
  28. package/dist/api/generated/apis/services-variables-api.js +78 -0
  29. package/dist/api/generated/apis/teams-api.d.ts +4 -20
  30. package/dist/api/generated/apis/teams-api.js +4 -48
  31. package/dist/api/generated/apis/teams-members-api.d.ts +8 -8
  32. package/dist/api/generated/apis/teams-members-api.js +16 -16
  33. package/dist/api/generated/apis/users-api.d.ts +1 -1
  34. package/dist/api/generated/apis/users-api.js +2 -2
  35. package/dist/api/generated/models/action-relation.d.ts +31 -4
  36. package/dist/api/generated/models/action-retry-response.d.ts +7 -1
  37. package/dist/api/generated/models/action-step-log.d.ts +1 -1
  38. package/dist/api/generated/models/action.d.ts +28 -22
  39. package/dist/api/generated/models/application-environment-create.d.ts +4 -3
  40. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  41. package/dist/api/generated/models/application-project-create.d.ts +4 -3
  42. package/dist/api/generated/models/application-relation.d.ts +40 -41
  43. package/dist/api/generated/models/application-update.d.ts +50 -45
  44. package/dist/api/generated/models/application.d.ts +53 -48
  45. package/dist/api/generated/models/cron-job.d.ts +1 -1
  46. package/dist/api/generated/models/daemon.d.ts +1 -1
  47. package/dist/api/generated/models/environment.d.ts +3 -3
  48. package/dist/api/generated/models/hook-create.d.ts +84 -0
  49. package/dist/api/generated/models/{application-last-deployment.js → hook-create.js} +0 -0
  50. package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts} +3 -3
  51. package/dist/api/generated/models/{hook-incoming-create.js → hook-incoming-settings.js} +0 -0
  52. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +1 -1
  53. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +1 -1
  54. package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts} +4 -4
  55. package/dist/api/generated/models/{hook-incoming-params.js → hook-outgoing-settings.js} +0 -0
  56. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +1 -1
  57. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +1 -1
  58. package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +1 -1
  59. package/dist/api/generated/models/hook-relation.d.ts +42 -35
  60. package/dist/api/generated/models/hook-request.d.ts +10 -10
  61. package/dist/api/generated/models/hook-update.d.ts +84 -0
  62. package/dist/api/generated/models/{hook-incoming-setting.js → hook-update.js} +0 -0
  63. package/dist/api/generated/models/hook-variable.d.ts +3 -3
  64. package/dist/api/generated/models/hook.d.ts +68 -22
  65. package/dist/api/generated/models/index.d.ts +9 -12
  66. package/dist/api/generated/models/index.js +9 -12
  67. package/dist/api/generated/models/invitation-relation.d.ts +2 -2
  68. package/dist/api/generated/models/invitation.d.ts +1 -1
  69. package/dist/api/generated/models/member-relation.d.ts +5 -11
  70. package/dist/api/generated/models/member.d.ts +13 -7
  71. package/dist/api/generated/models/request-relation.d.ts +60 -0
  72. package/dist/api/generated/models/{hook-incoming-update.js → request-relation.js} +0 -0
  73. package/dist/api/generated/models/{hook-incoming.d.ts → server-command.d.ts} +10 -4
  74. package/dist/api/generated/models/{hook-incoming.js → server-command.js} +0 -0
  75. package/dist/api/generated/models/server.d.ts +1 -1
  76. package/dist/api/generated/models/service.d.ts +1 -1
  77. package/dist/api/generated/models/subscription-plan.d.ts +30 -0
  78. package/dist/api/generated/models/{hook-outgoing-create.js → subscription-plan.js} +0 -0
  79. package/dist/api/generated/models/team-invitation-relation.d.ts +2 -2
  80. package/dist/api/generated/models/team-invitation.d.ts +2 -2
  81. package/dist/api/generated/models/team-membership-relation.d.ts +1 -1
  82. package/dist/api/generated/models/team.d.ts +1 -1
  83. package/dist/api/generated/models/{user-current.d.ts → user-me.d.ts} +18 -11
  84. package/dist/api/generated/models/{hook-outgoing-params.js → user-me.js} +0 -0
  85. package/dist/api/generated/models/user-update.d.ts +6 -0
  86. package/dist/api/generated/models/user.d.ts +7 -0
  87. package/dist/api/generated/models/variable-application-create.d.ts +0 -12
  88. package/dist/api/generated/models/variable-relation.d.ts +0 -6
  89. package/dist/api/generated/models/variable-service-create.d.ts +56 -0
  90. package/dist/api/generated/models/{hook-outgoing-setting.js → variable-service-create.js} +0 -0
  91. package/dist/api/generated/models/variable.d.ts +0 -6
  92. package/dist/services/EnvironmentService.d.ts +2 -0
  93. package/dist/services/EnvironmentService.js +2 -0
  94. package/dist/services/HookRequestService.d.ts +2 -2
  95. package/dist/services/HookRequestService.js +2 -2
  96. package/dist/services/HookService.d.ts +5 -0
  97. package/dist/services/HookService.js +12 -0
  98. package/dist/services/ServiceService.d.ts +2 -0
  99. package/dist/services/ServiceService.js +5 -0
  100. package/dist/services/index.d.ts +1 -2
  101. package/dist/services/index.js +1 -2
  102. package/package.json +3 -3
  103. package/dist/api/generated/apis/hooks-incoming-api.d.ts +0 -53
  104. package/dist/api/generated/apis/hooks-incoming-api.js +0 -118
  105. package/dist/api/generated/apis/hooks-outgoing-api.d.ts +0 -46
  106. package/dist/api/generated/apis/hooks-outgoing-api.js +0 -101
  107. package/dist/api/generated/models/application-last-deployment.d.ts +0 -130
  108. package/dist/api/generated/models/hook-incoming-create.d.ts +0 -82
  109. package/dist/api/generated/models/hook-incoming-params.d.ts +0 -38
  110. package/dist/api/generated/models/hook-incoming-update.d.ts +0 -68
  111. package/dist/api/generated/models/hook-outgoing-create.d.ts +0 -70
  112. package/dist/api/generated/models/hook-outgoing-params.d.ts +0 -38
  113. package/dist/api/generated/models/hook-outgoing-update.d.ts +0 -76
  114. package/dist/api/generated/models/hook-outgoing-update.js +0 -14
  115. package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
  116. package/dist/api/generated/models/hook-outgoing.js +0 -14
  117. package/dist/api/generated/models/user-current.js +0 -14
  118. package/dist/services/HookIncomingService.d.ts +0 -3
  119. package/dist/services/HookIncomingService.js +0 -7
  120. package/dist/services/HookOutgoingService.d.ts +0 -3
  121. package/dist/services/HookOutgoingService.js +0 -7
@@ -9,8 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ActionRelation } from './action-relation';
13
- import { ApplicationPipeline } from './application-pipeline';
12
+ import { ApplicationLastDeployments } from './application-last-deployments';
14
13
  import { ApplicationType } from './application-type';
15
14
  /**
16
15
  *
@@ -19,53 +18,65 @@ import { ApplicationType } from './application-type';
19
18
  */
20
19
  export interface ApplicationRelation {
21
20
  /**
22
- * The unique id of the given record
21
+ * Unique ID of the application
23
22
  * @type {number}
24
23
  * @memberof ApplicationRelation
25
24
  */
26
25
  id: number;
27
26
  /**
28
- * The id of the user who created the server and to whom the server belongs
27
+ * Numeric ID of the project to which the application belongs to
29
28
  * @type {number}
30
29
  * @memberof ApplicationRelation
31
30
  */
32
- created_by: number;
31
+ project_id: number;
33
32
  /**
34
- *
35
- * @type {ApplicationType}
33
+ * Numeric ID of the environment to which the application belongs to
34
+ * @type {number}
36
35
  * @memberof ApplicationRelation
37
36
  */
38
- type: ApplicationType;
37
+ environment_id: number;
38
+ /**
39
+ * The id of the user who created the application and to whom the application belongs
40
+ * @type {number}
41
+ * @memberof ApplicationRelation
42
+ */
43
+ created_by: number;
39
44
  /**
40
45
  * The application\'s unique name
41
46
  * @type {string}
42
47
  * @memberof ApplicationRelation
43
48
  */
44
49
  name: string;
50
+ /**
51
+ *
52
+ * @type {ApplicationType}
53
+ * @memberof ApplicationRelation
54
+ */
55
+ type: ApplicationType;
45
56
  /**
46
57
  * The domain or sub-domain through which the application deployed with these settings will be accessible. It can be a naked domain or any subdomain. If app has domain names `testing.my-app.com`, `staging.my-app.com` and `www.my-app.com` a possible good candidate for the application name would be the \"naked\" domain `my-app.com`
47
58
  * @type {string}
48
59
  * @memberof ApplicationRelation
49
60
  */
50
- domain_name?: string;
61
+ domain_name: string;
51
62
  /**
52
63
  * The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed.
53
64
  * @type {string}
54
65
  * @memberof ApplicationRelation
55
66
  */
56
- repository?: string | null;
67
+ repository: string;
57
68
  /**
58
69
  * The name part of a repository full name (`repository_owner/repository_name`)
59
70
  * @type {string}
60
71
  * @memberof ApplicationRelation
61
72
  */
62
- repository_name?: string | null;
73
+ repository_name: string;
63
74
  /**
64
75
  * The owner part of a repository full name (`repository_owner/repository_name`)
65
76
  * @type {string}
66
77
  * @memberof ApplicationRelation
67
78
  */
68
- repository_owner?: string | null;
79
+ repository_owner: string;
69
80
  /**
70
81
  * The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed.
71
82
  * @type {string}
@@ -73,11 +84,11 @@ export interface ApplicationRelation {
73
84
  */
74
85
  default_branch: string;
75
86
  /**
76
- * Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are commited to the `default_branch`
87
+ * 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`
77
88
  * @type {boolean}
78
89
  * @memberof ApplicationRelation
79
90
  */
80
- push_to_deploy?: boolean;
91
+ push_to_deploy: boolean;
81
92
  /**
82
93
  * The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be `html`.
83
94
  * @type {string}
@@ -89,7 +100,7 @@ export interface ApplicationRelation {
89
100
  * @type {string}
90
101
  * @memberof ApplicationRelation
91
102
  */
92
- engine_version?: string | null;
103
+ engine_version: string;
93
104
  /**
94
105
  * The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment
95
106
  * @type {string}
@@ -101,7 +112,7 @@ export interface ApplicationRelation {
101
112
  * @type {string}
102
113
  * @memberof ApplicationRelation
103
114
  */
104
- root_directory?: string;
115
+ root_directory: string;
105
116
  /**
106
117
  * The relative web directory where publicly accessible assets are located and the web content should be served from
107
118
  * @type {string}
@@ -109,69 +120,57 @@ export interface ApplicationRelation {
109
120
  */
110
121
  public_directory: string;
111
122
  /**
112
- * The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initalizes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - everytime the application needs to be started.
123
+ * The application\'s entrypoint
113
124
  * @type {string}
114
125
  * @memberof ApplicationRelation
115
126
  */
116
- entrypoint?: string;
127
+ entrypoint: string;
117
128
  /**
118
- * Required for CGI|FastCGI|SCGI|WSGI based applications or `docker` containerized applications. It tells `devopness` the private address at which the application listens to external calls. The address has `http` or `https` protocol, an domain name or IP address, optional port and optional path. Or you can specify a UNIX-socket using `unix:` prefix after protocol.
129
+ * Application\'s listening address
119
130
  * @type {string}
120
131
  * @memberof ApplicationRelation
121
132
  */
122
- listening_address?: string | null;
133
+ listening_address: string;
123
134
  /**
124
- * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previoius versions
135
+ * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions
125
136
  * @type {number}
126
137
  * @memberof ApplicationRelation
127
138
  */
128
- deployments_keep?: number;
139
+ deployments_keep: number;
129
140
  /**
130
141
  * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode
131
142
  * @type {boolean}
132
143
  * @memberof ApplicationRelation
133
144
  */
134
- install_dependencies_dev?: boolean;
145
+ install_dependencies_dev: boolean;
135
146
  /**
136
147
  * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode
137
148
  * @type {boolean}
138
149
  * @memberof ApplicationRelation
139
150
  */
140
- install_dependencies_prod?: boolean;
151
+ install_dependencies_prod: boolean;
141
152
  /**
142
153
  * Indicates if the application requires a daemon to keep it alive
143
154
  * @type {boolean}
144
155
  * @memberof ApplicationRelation
145
156
  */
146
- requires_daemon?: boolean;
147
- /**
148
- * Numeric ID of the project to which the application belongs to
149
- * @type {number}
150
- * @memberof ApplicationRelation
151
- */
152
- project_id: number;
153
- /**
154
- *
155
- * @type {ActionRelation}
156
- * @memberof ApplicationRelation
157
- */
158
- last_action?: ActionRelation | null;
157
+ requires_daemon: boolean;
159
158
  /**
160
159
  *
161
- * @type {ApplicationPipeline}
160
+ * @type {ApplicationLastDeployments}
162
161
  * @memberof ApplicationRelation
163
162
  */
164
- default_pipeline?: ApplicationPipeline | null;
163
+ last_deployments?: ApplicationLastDeployments;
165
164
  /**
166
165
  * The date and time when the record was created
167
166
  * @type {string}
168
167
  * @memberof ApplicationRelation
169
168
  */
170
- created_at?: string;
169
+ created_at: string;
171
170
  /**
172
171
  * The date and time when the record was last updated
173
172
  * @type {string}
174
173
  * @memberof ApplicationRelation
175
174
  */
176
- updated_at?: string;
175
+ updated_at: string;
177
176
  }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ApplicationType } from './application-type';
13
- import { EnvironmentLinkItem } from './environment-link-item';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -18,11 +17,17 @@ import { EnvironmentLinkItem } from './environment-link-item';
18
17
  */
19
18
  export interface ApplicationUpdate {
20
19
  /**
21
- * The unique id of the given record
20
+ * The unique id of the given application.
22
21
  * @type {number}
23
22
  * @memberof ApplicationUpdate
24
23
  */
25
24
  id: number;
25
+ /**
26
+ * The application\'s unique name. Must not be greater than 60 characters.
27
+ * @type {string}
28
+ * @memberof ApplicationUpdate
29
+ */
30
+ name: string;
26
31
  /**
27
32
  *
28
33
  * @type {ApplicationType}
@@ -30,117 +35,117 @@ export interface ApplicationUpdate {
30
35
  */
31
36
  type: ApplicationType;
32
37
  /**
33
- * The application\'s unique name
38
+ * The domain or sub-domain through which the application deployed with these settings will be accessible. It can be a naked domain or any subdomain. If app has domain names `testing.my-app.com`, `staging.my-app.com` and `www.my-app.com` a possible good candidate for the application name would be the \"naked\" domain `my-app.com`. Must not be greater than 60 characters.
34
39
  * @type {string}
35
40
  * @memberof ApplicationUpdate
36
41
  */
37
- name: string;
42
+ domain_name?: string;
38
43
  /**
39
- * The domain or sub-domain through which the application deployed with these settings will be accessible. It can be a naked domain or any subdomain. If app has domain names `testing.my-app.com`, `staging.my-app.com` and `www.my-app.com` a possible good candidate for the application name would be the \"naked\" domain `my-app.com`
44
+ * The optional command that should be executed once during deployment to build the source code and get the application in a ready state. Must be at least 10 characters. Must not be greater than 300 characters.
40
45
  * @type {string}
41
46
  * @memberof ApplicationUpdate
42
47
  */
43
- domain_name?: string;
48
+ build_command?: string;
44
49
  /**
45
- * The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed.
50
+ * The language runtime engine version to be used to execute this application on the deployed servers. This field is required unless <code>programming_language</code> is in <code>html</code>. Must be one of <code></code> Must be at least 1 characters. Must not be greater than 10 characters.
46
51
  * @type {string}
47
52
  * @memberof ApplicationUpdate
48
53
  */
49
- repository?: string;
54
+ engine_version?: string;
50
55
  /**
51
- * The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed.
56
+ * The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment. Must not be greater than 30 characters.
52
57
  * @type {string}
53
58
  * @memberof ApplicationUpdate
54
59
  */
55
- default_branch: string;
60
+ framework: string;
56
61
  /**
57
- * 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`
58
- * @type {boolean}
62
+ * The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be `html`. Must be one of <code>docker</code>, <code>dotnetcore</code>, <code>html</code>, <code>nodejs</code>, <code>php</code>, or <code>python</code> Must not be greater than 30 characters.
63
+ * @type {string}
59
64
  * @memberof ApplicationUpdate
60
65
  */
61
- push_to_deploy?: boolean;
66
+ programming_language: string;
62
67
  /**
63
- * The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be `html`.
68
+ * Required for CGI|FastCGI|SCGI|WSGI based applications or `docker` containerized applications. It tells `devopness` the private address at which the application listens to external calls.The address has `http` or `https` protocol, an domain name or IP address, optional port and optional path. Or you can specify a UNIX-socket using `unix:` prefix after protocol.
64
69
  * @type {string}
65
70
  * @memberof ApplicationUpdate
66
71
  */
67
- programming_language: string;
72
+ listening_address?: string;
68
73
  /**
69
- * The language runtime engine version to be used to execute this application on the deployed servers
74
+ * The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed. Must not be greater than 60 characters.
70
75
  * @type {string}
71
76
  * @memberof ApplicationUpdate
72
77
  */
73
- engine_version?: string;
78
+ repository: string;
74
79
  /**
75
- * The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment
80
+ * Numeric ID of the pipeline used as default on deploy the application.
76
81
  * @type {string}
77
82
  * @memberof ApplicationUpdate
78
83
  */
79
- framework: string;
84
+ default_pipeline_id?: string;
80
85
  /**
81
- * The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository.
82
- * @type {string}
86
+ * Numeric ID of the source provider account where the repository is hosted. Required when the `repository` field is informed.
87
+ * @type {number}
83
88
  * @memberof ApplicationUpdate
84
89
  */
85
- root_directory?: string;
90
+ source_provider_id: number;
86
91
  /**
87
- * The relative web directory where publicly accessible assets are located and the web content should be served from
92
+ * The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code>.
88
93
  * @type {string}
89
94
  * @memberof ApplicationUpdate
90
95
  */
91
- public_directory: string;
96
+ root_directory?: string;
92
97
  /**
93
- * The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path, a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started.
98
+ * The relative web directory where publicly accessible assets are located and the web content should be served from. Must start with one of <code>/</code>.
94
99
  * @type {string}
95
100
  * @memberof ApplicationUpdate
96
101
  */
97
- entrypoint?: string;
102
+ public_directory: string;
98
103
  /**
99
- * Required for CGI|FastCGI|SCGI|WSGI based applications or `docker` containerized applications. It tells `devopness` the private address at which the application listens to external calls. The address has `http` or `https` protocol, an domain name or IP address, optional port and optional path. Or you can specify a UNIX-socket using `unix:` prefix after protocol.
104
+ * The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed. Must not be greater than 100 characters.
100
105
  * @type {string}
101
106
  * @memberof ApplicationUpdate
102
107
  */
103
- listening_address?: string;
108
+ default_branch: string;
104
109
  /**
105
- * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions
110
+ * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions. Must be at least 1. Must not be greater than 10.
106
111
  * @type {number}
107
112
  * @memberof ApplicationUpdate
108
113
  */
109
114
  deployments_keep?: number;
110
115
  /**
111
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode
112
- * @type {boolean}
116
+ * The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started. Must not be greater than 120 characters.
117
+ * @type {string}
113
118
  * @memberof ApplicationUpdate
114
119
  */
115
- install_dependencies_dev?: boolean;
120
+ entrypoint: string;
116
121
  /**
117
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode
122
+ * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode.
118
123
  * @type {boolean}
119
124
  * @memberof ApplicationUpdate
120
125
  */
121
- install_dependencies_prod?: boolean;
126
+ install_dependencies_dev: boolean;
122
127
  /**
123
- * Indicates if the application requires a daemon to keep it alive
128
+ * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode.
124
129
  * @type {boolean}
125
130
  * @memberof ApplicationUpdate
126
131
  */
127
- requires_daemon: boolean;
132
+ install_dependencies_prod: boolean;
128
133
  /**
129
- * Numeric ID of the project to which the application belongs to
130
- * @type {number}
134
+ * 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`.
135
+ * @type {boolean}
131
136
  * @memberof ApplicationUpdate
132
137
  */
133
- project_id: number;
138
+ push_to_deploy?: boolean;
134
139
  /**
135
- * Numeric ID of the source provider account where the repository is hosted. Required when the `repository` field is informed.
136
- * @type {number}
140
+ * Indicates if the application requires a daemon to keep it alive.
141
+ * @type {boolean}
137
142
  * @memberof ApplicationUpdate
138
143
  */
139
- source_provider_id?: number;
144
+ requires_daemon: boolean;
140
145
  /**
141
- *
142
- * @type {Array<EnvironmentLinkItem>}
146
+ * List of valid resource IDs
147
+ * @type {Array<number>}
143
148
  * @memberof ApplicationUpdate
144
149
  */
145
- environments?: Array<EnvironmentLinkItem>;
150
+ servers: Array<number>;
146
151
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ActionRelation } from './action-relation';
13
12
  import { ApplicationLastDeployments } from './application-last-deployments';
14
13
  import { ApplicationPipeline } from './application-pipeline';
15
14
  import { ApplicationType } from './application-type';
@@ -25,53 +24,65 @@ import { UserRelation } from './user-relation';
25
24
  */
26
25
  export interface Application {
27
26
  /**
28
- * The unique id of the given record
27
+ * Unique ID of the application
29
28
  * @type {number}
30
29
  * @memberof Application
31
30
  */
32
31
  id: number;
33
32
  /**
34
- * The id of the user who created the application and to whom the application belongs
33
+ * Numeric ID of the project to which the application belongs to
35
34
  * @type {number}
36
35
  * @memberof Application
37
36
  */
38
- created_by: number;
37
+ project_id: number;
39
38
  /**
40
- *
41
- * @type {ApplicationType}
39
+ * Numeric ID of the environment to which the application belongs to
40
+ * @type {number}
42
41
  * @memberof Application
43
42
  */
44
- type: ApplicationType;
43
+ environment_id: number;
44
+ /**
45
+ * The id of the user who created the application and to whom the application belongs
46
+ * @type {number}
47
+ * @memberof Application
48
+ */
49
+ created_by: number;
45
50
  /**
46
51
  * The application\'s unique name
47
52
  * @type {string}
48
53
  * @memberof Application
49
54
  */
50
55
  name: string;
56
+ /**
57
+ *
58
+ * @type {ApplicationType}
59
+ * @memberof Application
60
+ */
61
+ type: ApplicationType;
51
62
  /**
52
63
  * The domain or sub-domain through which the application deployed with these settings will be accessible. It can be a naked domain or any subdomain. If app has domain names `testing.my-app.com`, `staging.my-app.com` and `www.my-app.com` a possible good candidate for the application name would be the \"naked\" domain `my-app.com`
53
64
  * @type {string}
54
65
  * @memberof Application
55
66
  */
56
- domain_name?: string;
67
+ domain_name: string;
57
68
  /**
58
69
  * The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed.
59
70
  * @type {string}
60
71
  * @memberof Application
61
72
  */
62
- repository?: string | null;
73
+ repository: string;
63
74
  /**
64
75
  * The name part of a repository full name (`repository_owner/repository_name`)
65
76
  * @type {string}
66
77
  * @memberof Application
67
78
  */
68
- repository_name?: string | null;
79
+ repository_name: string;
69
80
  /**
70
81
  * The owner part of a repository full name (`repository_owner/repository_name`)
71
82
  * @type {string}
72
83
  * @memberof Application
73
84
  */
74
- repository_owner?: string | null;
85
+ repository_owner: string;
75
86
  /**
76
87
  * The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed.
77
88
  * @type {string}
@@ -83,7 +94,7 @@ export interface Application {
83
94
  * @type {boolean}
84
95
  * @memberof Application
85
96
  */
86
- push_to_deploy?: boolean;
97
+ push_to_deploy: boolean;
87
98
  /**
88
99
  * The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be `html`.
89
100
  * @type {string}
@@ -95,7 +106,7 @@ export interface Application {
95
106
  * @type {string}
96
107
  * @memberof Application
97
108
  */
98
- engine_version?: string | null;
109
+ engine_version: string;
99
110
  /**
100
111
  * The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment
101
112
  * @type {string}
@@ -107,7 +118,7 @@ export interface Application {
107
118
  * @type {string}
108
119
  * @memberof Application
109
120
  */
110
- root_directory?: string;
121
+ root_directory: string;
111
122
  /**
112
123
  * The relative web directory where publicly accessible assets are located and the web content should be served from
113
124
  * @type {string}
@@ -115,105 +126,99 @@ export interface Application {
115
126
  */
116
127
  public_directory: string;
117
128
  /**
118
- * The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started.
129
+ * The application\'s entrypoint
119
130
  * @type {string}
120
131
  * @memberof Application
121
132
  */
122
- entrypoint?: string;
133
+ entrypoint: string;
123
134
  /**
124
- * Required for CGI|FastCGI|SCGI|WSGI based applications or `docker` containerized applications. It tells `devopness` the private address at which the application listens to external calls. The address has `http` or `https` protocol, an domain name or IP address, optional port and optional path. Or you can specify a UNIX-socket using `unix:` prefix after protocol.
135
+ * Application\'s listening address
125
136
  * @type {string}
126
137
  * @memberof Application
127
138
  */
128
- listening_address?: string | null;
139
+ listening_address: string;
129
140
  /**
130
141
  * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions
131
142
  * @type {number}
132
143
  * @memberof Application
133
144
  */
134
- deployments_keep?: number;
145
+ deployments_keep: number;
135
146
  /**
136
147
  * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode
137
148
  * @type {boolean}
138
149
  * @memberof Application
139
150
  */
140
- install_dependencies_dev?: boolean;
151
+ install_dependencies_dev: boolean;
141
152
  /**
142
153
  * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode
143
154
  * @type {boolean}
144
155
  * @memberof Application
145
156
  */
146
- install_dependencies_prod?: boolean;
157
+ install_dependencies_prod: boolean;
147
158
  /**
148
159
  * Indicates if the application requires a daemon to keep it alive
149
160
  * @type {boolean}
150
161
  * @memberof Application
151
162
  */
152
- requires_daemon?: boolean;
163
+ requires_daemon: boolean;
153
164
  /**
154
- * Numeric ID of the project to which the application belongs to
155
- * @type {number}
165
+ *
166
+ * @type {ApplicationPipeline}
156
167
  * @memberof Application
157
168
  */
158
- project_id: number;
169
+ default_pipeline: ApplicationPipeline | null;
159
170
  /**
160
- * The list of environments to which the application is linked to
161
- * @type {Array<EnvironmentRelation>}
171
+ *
172
+ * @type {UserRelation}
162
173
  * @memberof Application
163
174
  */
164
- environments: Array<EnvironmentRelation>;
175
+ created_by_user: UserRelation;
165
176
  /**
166
177
  *
167
- * @type {Array<ServerRelation>}
178
+ * @type {ApplicationLastDeployments}
168
179
  * @memberof Application
169
180
  */
170
- servers: Array<ServerRelation>;
181
+ last_deployments: ApplicationLastDeployments;
171
182
  /**
172
183
  *
173
- * @type {ApplicationLastDeployments}
184
+ * @type {EnvironmentRelation}
174
185
  * @memberof Application
175
186
  */
176
- last_deployments?: ApplicationLastDeployments;
187
+ environment: EnvironmentRelation;
177
188
  /**
178
189
  *
179
- * @type {SourceProvider}
190
+ * @type {Array<EnvironmentRelation>}
180
191
  * @memberof Application
181
192
  */
182
- source_provider: SourceProvider | null;
193
+ environments: Array<EnvironmentRelation>;
183
194
  /**
184
195
  *
185
- * @type {Array<SslCertificateRelation>}
196
+ * @type {Array<ServerRelation>}
186
197
  * @memberof Application
187
198
  */
188
- ssl_certificates: Array<SslCertificateRelation>;
199
+ servers: Array<ServerRelation>;
189
200
  /**
190
201
  *
191
- * @type {UserRelation}
202
+ * @type {SourceProvider}
192
203
  * @memberof Application
193
204
  */
194
- created_by_user: UserRelation;
205
+ source_provider: SourceProvider | null;
195
206
  /**
196
207
  *
197
- * @type {ActionRelation}
208
+ * @type {Array<SslCertificateRelation>}
198
209
  * @memberof Application
199
210
  */
200
- last_action?: ActionRelation | null;
211
+ ssl_certificates: Array<SslCertificateRelation>;
201
212
  /**
202
213
  * The date and time when the record was created
203
214
  * @type {string}
204
215
  * @memberof Application
205
216
  */
206
- created_at?: string;
217
+ created_at: string;
207
218
  /**
208
219
  * The date and time when the record was last updated
209
220
  * @type {string}
210
221
  * @memberof Application
211
222
  */
212
- updated_at?: string;
213
- /**
214
- *
215
- * @type {ApplicationPipeline}
216
- * @memberof Application
217
- */
218
- default_pipeline?: ApplicationPipeline | null;
223
+ updated_at: string;
219
224
  }
@@ -87,7 +87,7 @@ export interface CronJob {
87
87
  * @type {ProjectRelation}
88
88
  * @memberof CronJob
89
89
  */
90
- project: ProjectRelation;
90
+ project: ProjectRelation | null;
91
91
  /**
92
92
  *
93
93
  * @type {Array<EnvironmentRelation>}