@devopness/sdk-js 2.21.0 → 2.22.1

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 (136) hide show
  1. package/README.md +2 -2
  2. package/dist/DevopnessApiClient.d.ts +16 -16
  3. package/dist/DevopnessApiClient.js +16 -16
  4. package/dist/api/generated/apis/applications-sslcertificates-api.d.ts +3 -3
  5. package/dist/api/generated/apis/applications-sslcertificates-api.js +5 -5
  6. package/dist/api/generated/apis/applications-variables-api.d.ts +3 -3
  7. package/dist/api/generated/apis/applications-variables-api.js +5 -5
  8. package/dist/api/generated/apis/environments-applications-api.d.ts +3 -3
  9. package/dist/api/generated/apis/environments-applications-api.js +5 -5
  10. package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +3 -3
  11. package/dist/api/generated/apis/environments-cron-jobs-api.js +5 -5
  12. package/dist/api/generated/apis/environments-daemons-api.d.ts +3 -3
  13. package/dist/api/generated/apis/environments-daemons-api.js +5 -5
  14. package/dist/api/generated/apis/environments-servers-api.d.ts +3 -3
  15. package/dist/api/generated/apis/environments-servers-api.js +5 -5
  16. package/dist/api/generated/apis/environments-sshkeys-api.d.ts +3 -3
  17. package/dist/api/generated/apis/environments-sshkeys-api.js +5 -5
  18. package/dist/api/generated/apis/{environments-teams-api.d.ts → environments-team-memberships-api.d.ts} +6 -6
  19. package/dist/api/generated/apis/{environments-teams-api.js → environments-team-memberships-api.js} +9 -9
  20. package/dist/api/generated/apis/pipelines-api.d.ts +9 -0
  21. package/dist/api/generated/apis/pipelines-api.js +24 -0
  22. package/dist/api/generated/apis/pipelines-resources-api.d.ts +0 -9
  23. package/dist/api/generated/apis/pipelines-resources-api.js +0 -24
  24. package/dist/api/generated/apis/pipelines-steps-api.d.ts +9 -9
  25. package/dist/api/generated/apis/pipelines-steps-api.js +19 -19
  26. package/dist/api/generated/apis/projects-applications-api.d.ts +6 -6
  27. package/dist/api/generated/apis/projects-applications-api.js +9 -9
  28. package/dist/api/generated/apis/projects-cron-jobs-api.d.ts +3 -3
  29. package/dist/api/generated/apis/projects-cron-jobs-api.js +5 -5
  30. package/dist/api/generated/apis/projects-environments-api.d.ts +7 -7
  31. package/dist/api/generated/apis/projects-environments-api.js +10 -10
  32. package/dist/api/generated/apis/projects-network-rules-api.d.ts +3 -3
  33. package/dist/api/generated/apis/projects-network-rules-api.js +5 -5
  34. package/dist/api/generated/apis/projects-roles-api.d.ts +9 -6
  35. package/dist/api/generated/apis/projects-roles-api.js +18 -9
  36. package/dist/api/generated/apis/projects-servers-api.d.ts +3 -3
  37. package/dist/api/generated/apis/projects-servers-api.js +5 -5
  38. package/dist/api/generated/apis/projects-services-api.d.ts +3 -3
  39. package/dist/api/generated/apis/projects-services-api.js +5 -5
  40. package/dist/api/generated/apis/projects-sshkeys-api.d.ts +5 -5
  41. package/dist/api/generated/apis/projects-sshkeys-api.js +8 -8
  42. package/dist/api/generated/apis/projects-teams-api.d.ts +6 -6
  43. package/dist/api/generated/apis/projects-teams-api.js +9 -9
  44. package/dist/api/generated/apis/teams-invitations-api.d.ts +3 -3
  45. package/dist/api/generated/apis/teams-invitations-api.js +5 -5
  46. package/dist/api/generated/apis/users-api.d.ts +24 -44
  47. package/dist/api/generated/apis/users-api.js +37 -81
  48. package/dist/api/generated/apis/users-passwords-api.d.ts +33 -0
  49. package/dist/api/generated/apis/users-passwords-api.js +65 -0
  50. package/dist/api/generated/models/action-retry-response.d.ts +137 -0
  51. package/dist/api/generated/models/{application-create.js → action-retry-response.js} +0 -0
  52. package/dist/api/generated/models/{application-create.d.ts → application-project-create.d.ts} +63 -70
  53. package/dist/api/generated/models/{cron-job-create.js → application-project-create.js} +0 -0
  54. package/dist/api/generated/models/{cron-job-create.d.ts → cron-job-project-create.d.ts} +9 -9
  55. package/dist/api/generated/models/{daemon-create.js → cron-job-project-create.js} +0 -0
  56. package/dist/api/generated/models/{daemon-create.d.ts → daemon-environment-create.d.ts} +8 -8
  57. package/dist/api/generated/models/{environment-create.js → daemon-environment-create.js} +0 -0
  58. package/dist/api/generated/models/{environment-create.d.ts → environment-project-create.d.ts} +9 -9
  59. package/dist/api/generated/models/{invitation-create.js → environment-project-create.js} +0 -0
  60. package/dist/api/generated/models/index.d.ts +32 -22
  61. package/dist/api/generated/models/index.js +32 -22
  62. package/dist/api/generated/models/{invitation-create.d.ts → invitation-team-create.d.ts} +3 -3
  63. package/dist/api/generated/models/{network-rule-create.js → invitation-team-create.js} +0 -0
  64. package/dist/api/generated/models/{network-rule-create.d.ts → network-rule-project-create.d.ts} +10 -10
  65. package/dist/api/generated/models/{pipeline-step-create.js → network-rule-project-create.js} +0 -0
  66. package/dist/api/generated/models/{user-account-resend-verification.d.ts → password-reset-response.d.ts} +5 -5
  67. package/dist/api/generated/models/{pipeline-step-update.js → password-reset-response.js} +0 -0
  68. package/dist/api/generated/models/{user-password-reset.d.ts → password-user-reset.d.ts} +10 -10
  69. package/dist/api/generated/models/{pipeline-step.js → password-user-reset.js} +0 -0
  70. package/dist/api/generated/models/password-user-send-reset-link.d.ts +24 -0
  71. package/dist/api/generated/models/{role-create.js → password-user-send-reset-link.js} +0 -0
  72. package/dist/api/generated/models/pipeline-relation.d.ts +73 -0
  73. package/dist/api/generated/models/{server-create.js → pipeline-relation.js} +0 -0
  74. package/dist/api/generated/models/pipeline.d.ts +3 -3
  75. package/dist/api/generated/models/project-create.d.ts +3 -3
  76. package/dist/api/generated/models/project-relation.d.ts +16 -10
  77. package/dist/api/generated/models/project-update.d.ts +4 -4
  78. package/dist/api/generated/models/project.d.ts +26 -27
  79. package/dist/api/generated/models/{role-create.d.ts → role-project-create.d.ts} +7 -7
  80. package/dist/api/generated/models/{service-create.js → role-project-create.js} +0 -0
  81. package/dist/api/generated/models/role-relation.d.ts +60 -0
  82. package/dist/api/generated/models/{ssh-key-create.js → role-relation.js} +0 -0
  83. package/dist/api/generated/models/role-update.d.ts +2 -8
  84. package/dist/api/generated/models/role.d.ts +9 -9
  85. package/dist/api/generated/models/server-environment-create.d.ts +50 -0
  86. package/dist/api/generated/models/{ssl-certificate-create.js → server-environment-create.js} +0 -0
  87. package/dist/api/generated/models/{server-create.d.ts → server-project-create.d.ts} +10 -17
  88. package/dist/api/generated/models/{team-create.js → server-project-create.js} +0 -0
  89. package/dist/api/generated/models/{service-create.d.ts → service-project-create.d.ts} +7 -7
  90. package/dist/api/generated/models/{user-account-activate.js → service-project-create.js} +0 -0
  91. package/dist/api/generated/models/{ssh-key-create.d.ts → ssh-key-environment-create.d.ts} +5 -5
  92. package/dist/api/generated/models/{user-account-resend-verification.js → ssh-key-environment-create.js} +0 -0
  93. package/dist/api/generated/models/{ssl-certificate-create.d.ts → ssl-certificate-application-create.d.ts} +8 -8
  94. package/dist/api/generated/models/{user-account-verify.js → ssl-certificate-application-create.js} +0 -0
  95. package/dist/api/generated/models/{pipeline-step-create.d.ts → step-pipeline-create.d.ts} +7 -7
  96. package/dist/api/generated/models/{user-password-reset.js → step-pipeline-create.js} +0 -0
  97. package/dist/api/generated/models/{pipeline-step-update.d.ts → step-pipeline-update.d.ts} +9 -9
  98. package/dist/api/generated/models/{user-password-send-reset-link.js → step-pipeline-update.js} +0 -0
  99. package/dist/api/generated/models/{pipeline-step.d.ts → step.d.ts} +15 -15
  100. package/dist/api/generated/models/{user-refresh-token-create.js → step.js} +0 -0
  101. package/dist/api/generated/models/team-environment-create.d.ts +24 -0
  102. package/dist/api/generated/models/{variable-create.js → team-environment-create.js} +0 -0
  103. package/dist/api/generated/models/team-membership-relation.d.ts +55 -0
  104. package/dist/api/generated/models/team-membership-relation.js +14 -0
  105. package/dist/api/generated/models/{team-create.d.ts → team-project-create.d.ts} +6 -6
  106. package/dist/api/generated/models/team-project-create.js +14 -0
  107. package/dist/api/generated/models/team-relation.d.ts +3 -3
  108. package/dist/api/generated/models/team-update.d.ts +2 -8
  109. package/dist/api/generated/models/team.d.ts +3 -3
  110. package/dist/api/generated/models/user-create.d.ts +1 -1
  111. package/dist/api/generated/models/user-current.d.ts +74 -0
  112. package/dist/api/generated/models/user-current.js +14 -0
  113. package/dist/api/generated/models/user-login-response.d.ts +42 -0
  114. package/dist/api/generated/models/user-login-response.js +14 -0
  115. package/dist/api/generated/models/user-login.d.ts +30 -0
  116. package/dist/api/generated/models/user-login.js +14 -0
  117. package/dist/api/generated/models/user-refresh-token-response.d.ts +42 -0
  118. package/dist/api/generated/models/user-refresh-token-response.js +14 -0
  119. package/dist/api/generated/models/{user-refresh-token-create.d.ts → user-refresh-token.d.ts} +4 -4
  120. package/dist/api/generated/models/user-refresh-token.js +14 -0
  121. package/dist/api/generated/models/{user-password-send-reset-link.d.ts → user-resend-verification.d.ts} +4 -4
  122. package/dist/api/generated/models/user-resend-verification.js +14 -0
  123. package/dist/api/generated/models/user-update.d.ts +8 -9
  124. package/dist/api/generated/models/{user-account-activate.d.ts → user-verify.d.ts} +10 -10
  125. package/dist/api/generated/models/user-verify.js +14 -0
  126. package/dist/api/generated/models/user.d.ts +16 -10
  127. package/dist/api/generated/models/{variable-create.d.ts → variable-application-create.d.ts} +10 -10
  128. package/dist/api/generated/models/variable-application-create.js +14 -0
  129. package/dist/services/EnvironmentService.d.ts +2 -4
  130. package/dist/services/EnvironmentService.js +2 -4
  131. package/dist/services/UserService.d.ts +2 -0
  132. package/dist/services/UserService.js +2 -0
  133. package/package.json +1 -1
  134. package/dist/api/generated/apis/environments-members-api.d.ts +0 -37
  135. package/dist/api/generated/apis/environments-members-api.js +0 -87
  136. package/dist/api/generated/models/user-account-verify.d.ts +0 -30
@@ -0,0 +1,137 @@
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
+ import { ActionData } from './action-data';
13
+ import { ActionHookRequest } from './action-hook-request';
14
+ import { ActionStatus } from './action-status';
15
+ import { ActionSummary } from './action-summary';
16
+ import { ActionTriggeredFrom } from './action-triggered-from';
17
+ import { ActionType } from './action-type';
18
+ import { EnvironmentRelation } from './environment-relation';
19
+ import { ProjectRelation } from './project-relation';
20
+ import { Resource } from './resource';
21
+ import { ServerAction } from './server-action';
22
+ import { UserRelation } from './user-relation';
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ActionRetryResponse
27
+ */
28
+ export interface ActionRetryResponse {
29
+ /**
30
+ * The Id of the given action
31
+ * @type {number}
32
+ * @memberof ActionRetryResponse
33
+ */
34
+ id: number;
35
+ /**
36
+ *
37
+ * @type {ActionStatus}
38
+ * @memberof ActionRetryResponse
39
+ */
40
+ status: ActionStatus;
41
+ /**
42
+ *
43
+ * @type {ActionType}
44
+ * @memberof ActionRetryResponse
45
+ */
46
+ type: ActionType;
47
+ /**
48
+ * Human readable version of the action type
49
+ * @type {string}
50
+ * @memberof ActionRetryResponse
51
+ */
52
+ type_human_readable: string;
53
+ /**
54
+ * The permalink URL to the action details on Devopness web app
55
+ * @type {string}
56
+ * @memberof ActionRetryResponse
57
+ */
58
+ url_web_permalink: string;
59
+ /**
60
+ *
61
+ * @type {ActionData}
62
+ * @memberof ActionRetryResponse
63
+ */
64
+ action_data: ActionData | null;
65
+ /**
66
+ *
67
+ * @type {ActionTriggeredFrom}
68
+ * @memberof ActionRetryResponse
69
+ */
70
+ triggered_from: ActionTriggeredFrom;
71
+ /**
72
+ *
73
+ * @type {UserRelation}
74
+ * @memberof ActionRetryResponse
75
+ */
76
+ triggered_by_user?: UserRelation;
77
+ /**
78
+ *
79
+ * @type {Resource}
80
+ * @memberof ActionRetryResponse
81
+ */
82
+ resource: Resource;
83
+ /**
84
+ *
85
+ * @type {ActionSummary}
86
+ * @memberof ActionRetryResponse
87
+ */
88
+ summary: ActionSummary;
89
+ /**
90
+ *
91
+ * @type {EnvironmentRelation}
92
+ * @memberof ActionRetryResponse
93
+ */
94
+ environment?: EnvironmentRelation;
95
+ /**
96
+ *
97
+ * @type {ProjectRelation}
98
+ * @memberof ActionRetryResponse
99
+ */
100
+ project?: ProjectRelation;
101
+ /**
102
+ * List of actions dispatched to servers
103
+ * @type {Array<ServerAction>}
104
+ * @memberof ActionRetryResponse
105
+ */
106
+ servers?: Array<ServerAction>;
107
+ /**
108
+ *
109
+ * @type {ActionHookRequest}
110
+ * @memberof ActionRetryResponse
111
+ */
112
+ hook_requests?: ActionHookRequest;
113
+ /**
114
+ * The date and time when the action started execution (i.e., left the `pending/queued` status)
115
+ * @type {string}
116
+ * @memberof ActionRetryResponse
117
+ */
118
+ started_at: string | null;
119
+ /**
120
+ * The date and time when the action has finished execution
121
+ * @type {string}
122
+ * @memberof ActionRetryResponse
123
+ */
124
+ completed_at: string | null;
125
+ /**
126
+ * The date and time when the record was created
127
+ * @type {string}
128
+ * @memberof ActionRetryResponse
129
+ */
130
+ created_at: string;
131
+ /**
132
+ * The date and time when the record was last updated
133
+ * @type {string}
134
+ * @memberof ActionRetryResponse
135
+ */
136
+ updated_at: string;
137
+ }
@@ -9,138 +9,131 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ApplicationType } from './application-type';
13
12
  import { EnvironmentLinkItem } from './environment-link-item';
14
13
  /**
15
14
  *
16
15
  * @export
17
- * @interface ApplicationCreate
16
+ * @interface ApplicationProjectCreate
18
17
  */
19
- export interface ApplicationCreate {
18
+ export interface ApplicationProjectCreate {
20
19
  /**
21
- * Numeric ID of the source provider account where the repository is hosted. Required when the `repository` field is informed.
22
- * @type {number}
23
- * @memberof ApplicationCreate
24
- */
25
- source_provider_id: number;
26
- /**
27
- *
28
- * @type {ApplicationType}
29
- * @memberof ApplicationCreate
20
+ * The application\'s unique name. Must not be greater than 60 characters.
21
+ * @type {string}
22
+ * @memberof ApplicationProjectCreate
30
23
  */
31
- type: ApplicationType;
24
+ name: string;
32
25
  /**
33
- * The application\'s unique name
26
+ * Must be one of <code>web</code> or <code>non-web</code>.
34
27
  * @type {string}
35
- * @memberof ApplicationCreate
28
+ * @memberof ApplicationProjectCreate
36
29
  */
37
- name: string;
30
+ type: string;
38
31
  /**
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`
32
+ * 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.
40
33
  * @type {string}
41
- * @memberof ApplicationCreate
34
+ * @memberof ApplicationProjectCreate
42
35
  */
43
36
  domain_name?: string;
44
37
  /**
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.
38
+ * 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.
46
39
  * @type {string}
47
- * @memberof ApplicationCreate
40
+ * @memberof ApplicationProjectCreate
48
41
  */
49
- repository: string;
42
+ build_command?: string;
50
43
  /**
51
- * The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed.
44
+ * 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.
52
45
  * @type {string}
53
- * @memberof ApplicationCreate
46
+ * @memberof ApplicationProjectCreate
54
47
  */
55
- default_branch: string;
48
+ engine_version?: string;
56
49
  /**
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}
59
- * @memberof ApplicationCreate
50
+ * 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.
51
+ * @type {string}
52
+ * @memberof ApplicationProjectCreate
60
53
  */
61
- push_to_deploy?: boolean;
54
+ framework: string;
62
55
  /**
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`.
56
+ * 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.
64
57
  * @type {string}
65
- * @memberof ApplicationCreate
58
+ * @memberof ApplicationProjectCreate
66
59
  */
67
60
  programming_language: string;
68
61
  /**
69
- * The language runtime engine version to be used to execute this application on the deployed servers
62
+ * 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.
70
63
  * @type {string}
71
- * @memberof ApplicationCreate
64
+ * @memberof ApplicationProjectCreate
72
65
  */
73
- engine_version?: string;
66
+ listening_address?: string;
74
67
  /**
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
68
+ * 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.
76
69
  * @type {string}
77
- * @memberof ApplicationCreate
70
+ * @memberof ApplicationProjectCreate
78
71
  */
79
- framework: string;
72
+ repository: string;
80
73
  /**
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.
74
+ * Numeric ID of the source provider account where the repository is hosted. Required when the `repository` field is informed.
75
+ * @type {number}
76
+ * @memberof ApplicationProjectCreate
77
+ */
78
+ source_provider_id: number;
79
+ /**
80
+ * 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>.
82
81
  * @type {string}
83
- * @memberof ApplicationCreate
82
+ * @memberof ApplicationProjectCreate
84
83
  */
85
84
  root_directory?: string;
86
85
  /**
87
- * The relative web directory where publicly accessible assets are located and the web content should be served from
86
+ * 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>.
88
87
  * @type {string}
89
- * @memberof ApplicationCreate
88
+ * @memberof ApplicationProjectCreate
90
89
  */
91
90
  public_directory: string;
92
91
  /**
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.
92
+ * 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.
94
93
  * @type {string}
95
- * @memberof ApplicationCreate
94
+ * @memberof ApplicationProjectCreate
96
95
  */
97
- entrypoint: string;
96
+ default_branch: string;
98
97
  /**
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.
100
- * @type {string}
101
- * @memberof ApplicationCreate
98
+ * 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.
99
+ * @type {number}
100
+ * @memberof ApplicationProjectCreate
102
101
  */
103
- listening_address?: string;
102
+ deployments_keep?: number;
104
103
  /**
105
- * The optional command that should be executed once during deployment to build the source code and get the application in a ready state.
104
+ * 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.
106
105
  * @type {string}
107
- * @memberof ApplicationCreate
106
+ * @memberof ApplicationProjectCreate
108
107
  */
109
- build_command?: string;
108
+ entrypoint: string;
110
109
  /**
111
- * 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
112
- * @type {number}
113
- * @memberof ApplicationCreate
110
+ * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode.
111
+ * @type {boolean}
112
+ * @memberof ApplicationProjectCreate
114
113
  */
115
- deployments_keep?: number;
114
+ install_dependencies_dev: boolean;
116
115
  /**
117
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode
116
+ * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode.
118
117
  * @type {boolean}
119
- * @memberof ApplicationCreate
118
+ * @memberof ApplicationProjectCreate
120
119
  */
121
- install_dependencies_dev?: boolean;
120
+ install_dependencies_prod: boolean;
122
121
  /**
123
- * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode
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`.
124
123
  * @type {boolean}
125
- * @memberof ApplicationCreate
124
+ * @memberof ApplicationProjectCreate
126
125
  */
127
- install_dependencies_prod?: boolean;
126
+ push_to_deploy?: boolean;
128
127
  /**
129
- * Indicates if the application requires a daemon to keep it alive
128
+ * Indicates if the application requires a daemon to keep it alive.
130
129
  * @type {boolean}
131
- * @memberof ApplicationCreate
130
+ * @memberof ApplicationProjectCreate
132
131
  */
133
132
  requires_daemon: boolean;
134
- /**
135
- * Numeric ID of the project to which the application belongs to
136
- * @type {number}
137
- * @memberof ApplicationCreate
138
- */
139
- project_id?: number;
140
133
  /**
141
134
  *
142
135
  * @type {Array<EnvironmentLinkItem>}
143
- * @memberof ApplicationCreate
136
+ * @memberof ApplicationProjectCreate
144
137
  */
145
- environments?: Array<EnvironmentLinkItem>;
138
+ environments: Array<EnvironmentLinkItem>;
146
139
  }
@@ -13,49 +13,49 @@ import { EnvironmentLinkItem } from './environment-link-item';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface CronJobCreate
16
+ * @interface CronJobProjectCreate
17
17
  */
18
- export interface CronJobCreate {
18
+ export interface CronJobProjectCreate {
19
19
  /**
20
20
  * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions.
21
21
  * @type {string}
22
- * @memberof CronJobCreate
22
+ * @memberof CronJobProjectCreate
23
23
  */
24
24
  pattern: string;
25
25
  /**
26
26
  * The name of the cron job. Must not be greater than 60 characters.
27
27
  * @type {string}
28
- * @memberof CronJobCreate
28
+ * @memberof CronJobProjectCreate
29
29
  */
30
30
  name: string;
31
31
  /**
32
32
  * The command line to be executed when running the cron job. Must be at least 5 characters. Must not be greater than 255 characters.
33
33
  * @type {string}
34
- * @memberof CronJobCreate
34
+ * @memberof CronJobProjectCreate
35
35
  */
36
36
  command: string;
37
37
  /**
38
38
  * The name of the system user on behalf of which the cron job will be executed. Must not be greater than 60 characters.
39
39
  * @type {string}
40
- * @memberof CronJobCreate
40
+ * @memberof CronJobProjectCreate
41
41
  */
42
42
  run_as_user: string;
43
43
  /**
44
44
  * Numeric ID of the application to which the cron job belongs to.
45
45
  * @type {number}
46
- * @memberof CronJobCreate
46
+ * @memberof CronJobProjectCreate
47
47
  */
48
48
  application_id?: number;
49
49
  /**
50
50
  * Numeric ID of the project to which the cron job belongs to.
51
51
  * @type {number}
52
- * @memberof CronJobCreate
52
+ * @memberof CronJobProjectCreate
53
53
  */
54
54
  project_id: number;
55
55
  /**
56
56
  *
57
57
  * @type {Array<EnvironmentLinkItem>}
58
- * @memberof CronJobCreate
58
+ * @memberof CronJobProjectCreate
59
59
  */
60
60
  environments?: Array<EnvironmentLinkItem>;
61
61
  }
@@ -12,43 +12,43 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface DaemonCreate
15
+ * @interface DaemonEnvironmentCreate
16
16
  */
17
- export interface DaemonCreate {
17
+ export interface DaemonEnvironmentCreate {
18
18
  /**
19
19
  * The command line to be executed to start the daemon. Must not be greater than 255 characters.
20
20
  * @type {string}
21
- * @memberof DaemonCreate
21
+ * @memberof DaemonEnvironmentCreate
22
22
  */
23
23
  command: string;
24
24
  /**
25
25
  * The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99.
26
26
  * @type {number}
27
- * @memberof DaemonCreate
27
+ * @memberof DaemonEnvironmentCreate
28
28
  */
29
29
  process_count: number;
30
30
  /**
31
31
  * The working directory where the daemon will be relative to when performing disk i/o. Must start with one of <code>/</code>.
32
32
  * @type {string}
33
- * @memberof DaemonCreate
33
+ * @memberof DaemonEnvironmentCreate
34
34
  */
35
35
  working_directory: string;
36
36
  /**
37
37
  * The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters.
38
38
  * @type {string}
39
- * @memberof DaemonCreate
39
+ * @memberof DaemonEnvironmentCreate
40
40
  */
41
41
  run_as_user: string;
42
42
  /**
43
43
  * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon. Must contain only letters, numbers, dashes and underscores. Must not be greater than 60 characters.
44
44
  * @type {string}
45
- * @memberof DaemonCreate
45
+ * @memberof DaemonEnvironmentCreate
46
46
  */
47
47
  name: string;
48
48
  /**
49
49
  * List of valid resource IDs
50
50
  * @type {Array<number>}
51
- * @memberof DaemonCreate
51
+ * @memberof DaemonEnvironmentCreate
52
52
  */
53
53
  servers?: Array<number>;
54
54
  }
@@ -13,19 +13,19 @@ import { EnvironmentType } from './environment-type';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface EnvironmentCreate
16
+ * @interface EnvironmentProjectCreate
17
17
  */
18
- export interface EnvironmentCreate {
19
- /**
20
- * The environment\'s name
21
- * @type {string}
22
- * @memberof EnvironmentCreate
23
- */
24
- name: string;
18
+ export interface EnvironmentProjectCreate {
25
19
  /**
26
20
  *
27
21
  * @type {EnvironmentType}
28
- * @memberof EnvironmentCreate
22
+ * @memberof EnvironmentProjectCreate
29
23
  */
30
24
  type: EnvironmentType;
25
+ /**
26
+ * The environment\'s name. Must not be greater than 60 characters.
27
+ * @type {string}
28
+ * @memberof EnvironmentProjectCreate
29
+ */
30
+ name: string;
31
31
  }