@devopness/sdk-js 2.22.1 → 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 (126) 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/pipelines-api.d.ts +10 -0
  22. package/dist/api/generated/apis/pipelines-api.js +29 -0
  23. package/dist/api/generated/apis/projects-api.d.ts +8 -8
  24. package/dist/api/generated/apis/projects-api.js +8 -8
  25. package/dist/api/generated/apis/roles-api.d.ts +6 -6
  26. package/dist/api/generated/apis/roles-api.js +6 -6
  27. package/dist/api/generated/apis/servers-api.d.ts +6 -6
  28. package/dist/api/generated/apis/servers-api.js +4 -4
  29. package/dist/api/generated/apis/services-variables-api.d.ts +36 -0
  30. package/dist/api/generated/apis/{pipelines-resources-api.js → services-variables-api.js} +31 -15
  31. package/dist/api/generated/apis/teams-api.d.ts +4 -20
  32. package/dist/api/generated/apis/teams-api.js +4 -48
  33. package/dist/api/generated/apis/teams-members-api.d.ts +8 -8
  34. package/dist/api/generated/apis/teams-members-api.js +16 -16
  35. package/dist/api/generated/apis/users-api.d.ts +1 -1
  36. package/dist/api/generated/apis/users-api.js +2 -2
  37. package/dist/api/generated/models/action-relation.d.ts +31 -4
  38. package/dist/api/generated/models/action-retry-response.d.ts +7 -1
  39. package/dist/api/generated/models/action-step-log.d.ts +1 -1
  40. package/dist/api/generated/models/action.d.ts +28 -22
  41. package/dist/api/generated/models/application-environment-create.d.ts +4 -3
  42. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  43. package/dist/api/generated/models/application-project-create.d.ts +4 -3
  44. package/dist/api/generated/models/application-relation.d.ts +40 -41
  45. package/dist/api/generated/models/application-update.d.ts +50 -45
  46. package/dist/api/generated/models/application.d.ts +53 -48
  47. package/dist/api/generated/models/cron-job.d.ts +1 -1
  48. package/dist/api/generated/models/daemon.d.ts +1 -1
  49. package/dist/api/generated/models/environment.d.ts +3 -3
  50. package/dist/api/generated/models/hook-create.d.ts +84 -0
  51. package/dist/api/generated/models/{application-last-deployment.js → hook-create.js} +0 -0
  52. package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts} +3 -3
  53. package/dist/api/generated/models/{hook-incoming-create.js → hook-incoming-settings.js} +0 -0
  54. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +1 -1
  55. package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +1 -1
  56. package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts} +4 -4
  57. package/dist/api/generated/models/{hook-incoming-params.js → hook-outgoing-settings.js} +0 -0
  58. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +1 -1
  59. package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +1 -1
  60. package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +1 -1
  61. package/dist/api/generated/models/hook-relation.d.ts +42 -35
  62. package/dist/api/generated/models/hook-request.d.ts +10 -10
  63. package/dist/api/generated/models/hook-update.d.ts +84 -0
  64. package/dist/api/generated/models/{hook-incoming-setting.js → hook-update.js} +0 -0
  65. package/dist/api/generated/models/hook-variable.d.ts +3 -3
  66. package/dist/api/generated/models/hook.d.ts +68 -22
  67. package/dist/api/generated/models/index.d.ts +9 -12
  68. package/dist/api/generated/models/index.js +9 -12
  69. package/dist/api/generated/models/invitation-relation.d.ts +2 -2
  70. package/dist/api/generated/models/invitation.d.ts +1 -1
  71. package/dist/api/generated/models/member-relation.d.ts +5 -11
  72. package/dist/api/generated/models/member.d.ts +13 -7
  73. package/dist/api/generated/models/request-relation.d.ts +60 -0
  74. package/dist/api/generated/models/{hook-incoming-update.js → request-relation.js} +0 -0
  75. package/dist/api/generated/models/{hook-incoming.d.ts → server-command.d.ts} +10 -4
  76. package/dist/api/generated/models/{hook-incoming.js → server-command.js} +0 -0
  77. package/dist/api/generated/models/server.d.ts +1 -1
  78. package/dist/api/generated/models/service.d.ts +1 -1
  79. package/dist/api/generated/models/subscription-plan.d.ts +30 -0
  80. package/dist/api/generated/models/{hook-outgoing-create.js → subscription-plan.js} +0 -0
  81. package/dist/api/generated/models/team-invitation-relation.d.ts +2 -2
  82. package/dist/api/generated/models/team-invitation.d.ts +2 -2
  83. package/dist/api/generated/models/team-membership-relation.d.ts +1 -1
  84. package/dist/api/generated/models/team.d.ts +1 -1
  85. package/dist/api/generated/models/{user-current.d.ts → user-me.d.ts} +18 -11
  86. package/dist/api/generated/models/{hook-outgoing-params.js → user-me.js} +0 -0
  87. package/dist/api/generated/models/user-update.d.ts +6 -0
  88. package/dist/api/generated/models/user.d.ts +7 -0
  89. package/dist/api/generated/models/variable-application-create.d.ts +0 -12
  90. package/dist/api/generated/models/variable-relation.d.ts +0 -6
  91. package/dist/api/generated/models/variable-service-create.d.ts +56 -0
  92. package/dist/api/generated/models/{hook-outgoing-setting.js → variable-service-create.js} +0 -0
  93. package/dist/api/generated/models/variable.d.ts +0 -6
  94. package/dist/services/EnvironmentService.d.ts +2 -0
  95. package/dist/services/EnvironmentService.js +2 -0
  96. package/dist/services/HookRequestService.d.ts +2 -2
  97. package/dist/services/HookRequestService.js +2 -2
  98. package/dist/services/HookService.d.ts +5 -0
  99. package/dist/services/HookService.js +12 -0
  100. package/dist/services/PipelineService.d.ts +0 -2
  101. package/dist/services/PipelineService.js +0 -2
  102. package/dist/services/ServiceService.d.ts +2 -0
  103. package/dist/services/ServiceService.js +5 -0
  104. package/dist/services/index.d.ts +1 -2
  105. package/dist/services/index.js +1 -2
  106. package/package.json +3 -3
  107. package/dist/api/generated/apis/hooks-incoming-api.d.ts +0 -53
  108. package/dist/api/generated/apis/hooks-incoming-api.js +0 -118
  109. package/dist/api/generated/apis/hooks-outgoing-api.d.ts +0 -46
  110. package/dist/api/generated/apis/hooks-outgoing-api.js +0 -101
  111. package/dist/api/generated/apis/pipelines-resources-api.d.ts +0 -28
  112. package/dist/api/generated/models/application-last-deployment.d.ts +0 -130
  113. package/dist/api/generated/models/hook-incoming-create.d.ts +0 -82
  114. package/dist/api/generated/models/hook-incoming-params.d.ts +0 -38
  115. package/dist/api/generated/models/hook-incoming-update.d.ts +0 -68
  116. package/dist/api/generated/models/hook-outgoing-create.d.ts +0 -70
  117. package/dist/api/generated/models/hook-outgoing-params.d.ts +0 -38
  118. package/dist/api/generated/models/hook-outgoing-update.d.ts +0 -76
  119. package/dist/api/generated/models/hook-outgoing-update.js +0 -14
  120. package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
  121. package/dist/api/generated/models/hook-outgoing.js +0 -14
  122. package/dist/api/generated/models/user-current.js +0 -14
  123. package/dist/services/HookIncomingService.d.ts +0 -3
  124. package/dist/services/HookIncomingService.js +0 -7
  125. package/dist/services/HookOutgoingService.d.ts +0 -3
  126. package/dist/services/HookOutgoingService.js +0 -7
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { EnvironmentTeamLink } from '../../generated/models';
15
14
  import { Team } from '../../generated/models';
16
15
  import { TeamUpdate } from '../../generated/models';
17
16
  /**
@@ -21,35 +20,20 @@ export declare class TeamsApiService extends ApiBaseService {
21
20
  /**
22
21
  *
23
22
  * @summary Delete a given team
24
- * @param {number} teamId Numeric ID of the team to be deleted
23
+ * @param {number} teamId The ID of the team.
25
24
  */
26
25
  deleteTeam(teamId: number): Promise<ApiResponse<void>>;
27
26
  /**
28
27
  *
29
28
  * @summary Get a team by ID
30
- * @param {number} teamId Numeric ID of the team to be retrieved
29
+ * @param {number} teamId The ID of the team.
31
30
  */
32
31
  getTeam(teamId: number): Promise<ApiResponse<Team>>;
33
- /**
34
- *
35
- * @summary Link team to a given environment
36
- * @param {number} environmentId Numeric ID of the environment to link
37
- * @param {number} teamId Numeric ID of the team to be linked
38
- * @param {EnvironmentTeamLink} environmentTeamLink A JSON object containing the role ID
39
- */
40
- linkTeamToEnvironment(environmentId: number, teamId: number, environmentTeamLink: EnvironmentTeamLink): Promise<ApiResponse<void>>;
41
- /**
42
- *
43
- * @summary Unlink team from the environment
44
- * @param {number} environmentId Numeric ID of the environment to unlink
45
- * @param {number} teamId Numeric ID of the team to be unlinked
46
- */
47
- unlinkTeamFromEnvironment(environmentId: number, teamId: number): Promise<ApiResponse<void>>;
48
32
  /**
49
33
  *
50
34
  * @summary Update an existing team
51
- * @param {number} teamId Numeric ID of the team to be updated
52
- * @param {TeamUpdate} teamUpdate A JSON object containing team data
35
+ * @param {number} teamId The ID of the team.
36
+ * @param {TeamUpdate} teamUpdate A JSON object containing the resource data
53
37
  */
54
38
  updateTeam(teamId: number, teamUpdate: TeamUpdate): Promise<ApiResponse<void>>;
55
39
  }
@@ -32,7 +32,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
34
  * @summary Delete a given team
35
- * @param {number} teamId Numeric ID of the team to be deleted
35
+ * @param {number} teamId The ID of the team.
36
36
  */
37
37
  deleteTeam(teamId) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,7 +48,7 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
48
48
  /**
49
49
  *
50
50
  * @summary Get a team by ID
51
- * @param {number} teamId Numeric ID of the team to be retrieved
51
+ * @param {number} teamId The ID of the team.
52
52
  */
53
53
  getTeam(teamId) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -61,55 +61,11 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
61
61
  return new ApiResponse_1.ApiResponse(response);
62
62
  });
63
63
  }
64
- /**
65
- *
66
- * @summary Link team to a given environment
67
- * @param {number} environmentId Numeric ID of the environment to link
68
- * @param {number} teamId Numeric ID of the team to be linked
69
- * @param {EnvironmentTeamLink} environmentTeamLink A JSON object containing the role ID
70
- */
71
- linkTeamToEnvironment(environmentId, teamId, environmentTeamLink) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- if (environmentId === null || environmentId === undefined) {
74
- throw new Exceptions_1.ArgumentNullException('environmentId', 'linkTeamToEnvironment');
75
- }
76
- if (teamId === null || teamId === undefined) {
77
- throw new Exceptions_1.ArgumentNullException('teamId', 'linkTeamToEnvironment');
78
- }
79
- if (environmentTeamLink === null || environmentTeamLink === undefined) {
80
- throw new Exceptions_1.ArgumentNullException('environmentTeamLink', 'linkTeamToEnvironment');
81
- }
82
- let queryString = '';
83
- const requestUrl = '/environments/{environment_id}/teams/{team_id}' + (queryString ? `?${queryString}` : '');
84
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), environmentTeamLink);
85
- return new ApiResponse_1.ApiResponse(response);
86
- });
87
- }
88
- /**
89
- *
90
- * @summary Unlink team from the environment
91
- * @param {number} environmentId Numeric ID of the environment to unlink
92
- * @param {number} teamId Numeric ID of the team to be unlinked
93
- */
94
- unlinkTeamFromEnvironment(environmentId, teamId) {
95
- return __awaiter(this, void 0, void 0, function* () {
96
- if (environmentId === null || environmentId === undefined) {
97
- throw new Exceptions_1.ArgumentNullException('environmentId', 'unlinkTeamFromEnvironment');
98
- }
99
- if (teamId === null || teamId === undefined) {
100
- throw new Exceptions_1.ArgumentNullException('teamId', 'unlinkTeamFromEnvironment');
101
- }
102
- let queryString = '';
103
- const requestUrl = '/environments/{environment_id}/teams/{team_id}' + (queryString ? `?${queryString}` : '');
104
- const response = yield this.delete(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
105
- return new ApiResponse_1.ApiResponse(response);
106
- });
107
- }
108
64
  /**
109
65
  *
110
66
  * @summary Update an existing team
111
- * @param {number} teamId Numeric ID of the team to be updated
112
- * @param {TeamUpdate} teamUpdate A JSON object containing team data
67
+ * @param {number} teamId The ID of the team.
68
+ * @param {TeamUpdate} teamUpdate A JSON object containing the resource data
113
69
  */
114
70
  updateTeam(teamId, teamUpdate) {
115
71
  return __awaiter(this, void 0, void 0, function* () {
@@ -20,21 +20,21 @@ export declare class TeamsMembersApiService extends ApiBaseService {
20
20
  /**
21
21
  *
22
22
  * @summary Delete a given team member
23
- * @param {number} teamId Numeric ID of the team
24
- * @param {number} memberId Numeric ID of the member to be deleted
23
+ * @param {number} teamId The ID of the team.
24
+ * @param {number} userId The ID of the user.
25
25
  */
26
- deleteTeamMember(teamId: number, memberId: number): Promise<ApiResponse<void>>;
26
+ deleteTeamMember(teamId: number, userId: number): Promise<ApiResponse<void>>;
27
27
  /**
28
28
  *
29
29
  * @summary Get a member of team by ID
30
- * @param {number} teamId Numeric ID of the team
31
- * @param {number} memberId Numeric ID of the member to be retrieved
30
+ * @param {number} teamId The ID of the team.
31
+ * @param {number} userId The ID of the user.
32
32
  */
33
- getTeamMember(teamId: number, memberId: number): Promise<ApiResponse<Member>>;
33
+ getTeamMember(teamId: number, userId: number): Promise<ApiResponse<Member>>;
34
34
  /**
35
35
  *
36
- * @summary Returns a list of all members belonging to a team
37
- * @param {number} teamId Numeric ID of the team to get members from
36
+ * @summary Return a list of all members belonging to a team
37
+ * @param {number} teamId The ID of the team.
38
38
  * @param {number} [page] Number of the page to be retrieved
39
39
  * @param {number} [perPage] Number of items returned per page
40
40
  */
@@ -32,47 +32,47 @@ class TeamsMembersApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
34
  * @summary Delete a given team member
35
- * @param {number} teamId Numeric ID of the team
36
- * @param {number} memberId Numeric ID of the member to be deleted
35
+ * @param {number} teamId The ID of the team.
36
+ * @param {number} userId The ID of the user.
37
37
  */
38
- deleteTeamMember(teamId, memberId) {
38
+ deleteTeamMember(teamId, userId) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  if (teamId === null || teamId === undefined) {
41
41
  throw new Exceptions_1.ArgumentNullException('teamId', 'deleteTeamMember');
42
42
  }
43
- if (memberId === null || memberId === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('memberId', 'deleteTeamMember');
43
+ if (userId === null || userId === undefined) {
44
+ throw new Exceptions_1.ArgumentNullException('userId', 'deleteTeamMember');
45
45
  }
46
46
  let queryString = '';
47
- const requestUrl = '/teams/{team_id}/members/{member_id}' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.delete(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))).replace(`{${"member_id"}}`, encodeURIComponent(String(memberId))));
47
+ const requestUrl = '/teams/{team_id}/members/{user_id}' + (queryString ? `?${queryString}` : '');
48
+ const response = yield this.delete(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))).replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
49
49
  return new ApiResponse_1.ApiResponse(response);
50
50
  });
51
51
  }
52
52
  /**
53
53
  *
54
54
  * @summary Get a member of team by ID
55
- * @param {number} teamId Numeric ID of the team
56
- * @param {number} memberId Numeric ID of the member to be retrieved
55
+ * @param {number} teamId The ID of the team.
56
+ * @param {number} userId The ID of the user.
57
57
  */
58
- getTeamMember(teamId, memberId) {
58
+ getTeamMember(teamId, userId) {
59
59
  return __awaiter(this, void 0, void 0, function* () {
60
60
  if (teamId === null || teamId === undefined) {
61
61
  throw new Exceptions_1.ArgumentNullException('teamId', 'getTeamMember');
62
62
  }
63
- if (memberId === null || memberId === undefined) {
64
- throw new Exceptions_1.ArgumentNullException('memberId', 'getTeamMember');
63
+ if (userId === null || userId === undefined) {
64
+ throw new Exceptions_1.ArgumentNullException('userId', 'getTeamMember');
65
65
  }
66
66
  let queryString = '';
67
- const requestUrl = '/teams/{team_id}/members/{member_id}' + (queryString ? `?${queryString}` : '');
68
- const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))).replace(`{${"member_id"}}`, encodeURIComponent(String(memberId))));
67
+ const requestUrl = '/teams/{team_id}/members/{user_id}' + (queryString ? `?${queryString}` : '');
68
+ const response = yield this.get(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))).replace(`{${"user_id"}}`, encodeURIComponent(String(userId))));
69
69
  return new ApiResponse_1.ApiResponse(response);
70
70
  });
71
71
  }
72
72
  /**
73
73
  *
74
- * @summary Returns a list of all members belonging to a team
75
- * @param {number} teamId Numeric ID of the team to get members from
74
+ * @summary Return a list of all members belonging to a team
75
+ * @param {number} teamId The ID of the team.
76
76
  * @param {number} [page] Number of the page to be retrieved
77
77
  * @param {number} [perPage] Number of items returned per page
78
78
  */
@@ -40,7 +40,7 @@ export declare class UsersApiService extends ApiBaseService {
40
40
  *
41
41
  * @summary Get details of the current user
42
42
  */
43
- getUserCurrent(): Promise<ApiResponse<User>>;
43
+ getUserMe(): Promise<ApiResponse<User>>;
44
44
  /**
45
45
  *
46
46
  * @summary Login/create a new token for the given credentials
@@ -65,10 +65,10 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
65
65
  *
66
66
  * @summary Get details of the current user
67
67
  */
68
- getUserCurrent() {
68
+ getUserMe() {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  let queryString = '';
71
- const requestUrl = '/users/current' + (queryString ? `?${queryString}` : '');
71
+ const requestUrl = '/users/me' + (queryString ? `?${queryString}` : '');
72
72
  const response = yield this.get(requestUrl);
73
73
  return new ApiResponse_1.ApiResponse(response);
74
74
  });
@@ -9,10 +9,13 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ActionData } from './action-data';
12
13
  import { ActionStatus } from './action-status';
13
14
  import { ActionSummary } from './action-summary';
15
+ import { ActionTriggeredFrom } from './action-triggered-from';
14
16
  import { ActionType } from './action-type';
15
17
  import { Resource } from './resource';
18
+ import { ServerAction } from './server-action';
16
19
  /**
17
20
  *
18
21
  * @export
@@ -43,6 +46,24 @@ export interface ActionRelation {
43
46
  * @memberof ActionRelation
44
47
  */
45
48
  type_human_readable: string;
49
+ /**
50
+ * The permalink URL to the action details on Devopness web app
51
+ * @type {string}
52
+ * @memberof ActionRelation
53
+ */
54
+ url_web_permalink: string;
55
+ /**
56
+ *
57
+ * @type {ActionData}
58
+ * @memberof ActionRelation
59
+ */
60
+ action_data: ActionData | null;
61
+ /**
62
+ *
63
+ * @type {ActionTriggeredFrom}
64
+ * @memberof ActionRelation
65
+ */
66
+ triggered_from: ActionTriggeredFrom;
46
67
  /**
47
68
  *
48
69
  * @type {Resource}
@@ -55,28 +76,34 @@ export interface ActionRelation {
55
76
  * @memberof ActionRelation
56
77
  */
57
78
  summary?: ActionSummary;
79
+ /**
80
+ * List of actions dispatched to servers
81
+ * @type {Array<ServerAction>}
82
+ * @memberof ActionRelation
83
+ */
84
+ servers?: Array<ServerAction>;
58
85
  /**
59
86
  * The date and time when the action started execution (i.e., left the `pending/queued` status)
60
87
  * @type {string}
61
88
  * @memberof ActionRelation
62
89
  */
63
- started_at?: string | null;
90
+ started_at: string | null;
64
91
  /**
65
92
  * The date and time when the action has finished execution
66
93
  * @type {string}
67
94
  * @memberof ActionRelation
68
95
  */
69
- completed_at?: string | null;
96
+ completed_at: string | null;
70
97
  /**
71
98
  * The date and time when the record was created
72
99
  * @type {string}
73
100
  * @memberof ActionRelation
74
101
  */
75
- created_at?: string;
102
+ created_at: string;
76
103
  /**
77
104
  * The date and time when the record was last updated
78
105
  * @type {string}
79
106
  * @memberof ActionRelation
80
107
  */
81
- updated_at?: string;
108
+ updated_at: string;
82
109
  }
@@ -32,6 +32,12 @@ export interface ActionRetryResponse {
32
32
  * @memberof ActionRetryResponse
33
33
  */
34
34
  id: number;
35
+ /**
36
+ * The Id of the parent action that this action is a retry of
37
+ * @type {number}
38
+ * @memberof ActionRetryResponse
39
+ */
40
+ retry_of: number | null;
35
41
  /**
36
42
  *
37
43
  * @type {ActionStatus}
@@ -97,7 +103,7 @@ export interface ActionRetryResponse {
97
103
  * @type {ProjectRelation}
98
104
  * @memberof ActionRetryResponse
99
105
  */
100
- project?: ProjectRelation;
106
+ project?: ProjectRelation | null;
101
107
  /**
102
108
  * List of actions dispatched to servers
103
109
  * @type {Array<ServerAction>}
@@ -28,7 +28,7 @@ export interface ActionStepLog {
28
28
  * @type {ServerRelation}
29
29
  * @memberof ActionStepLog
30
30
  */
31
- server?: ServerRelation;
31
+ server?: ServerRelation | null;
32
32
  /**
33
33
  *
34
34
  * @type {ServerActionLogStep}
@@ -32,6 +32,12 @@ export interface Action {
32
32
  * @memberof Action
33
33
  */
34
34
  id: number;
35
+ /**
36
+ * The Id of the parent action that this action is a retry of
37
+ * @type {number}
38
+ * @memberof Action
39
+ */
40
+ retry_of: number | null;
35
41
  /**
36
42
  *
37
43
  * @type {ActionStatus}
@@ -50,12 +56,6 @@ export interface Action {
50
56
  * @memberof Action
51
57
  */
52
58
  type_human_readable: string;
53
- /**
54
- *
55
- * @type {ActionSummary}
56
- * @memberof Action
57
- */
58
- summary: ActionSummary;
59
59
  /**
60
60
  * The permalink URL to the action details on Devopness web app
61
61
  * @type {string}
@@ -69,41 +69,47 @@ export interface Action {
69
69
  */
70
70
  action_data: ActionData | null;
71
71
  /**
72
- * List of actions dispatched to servers
73
- * @type {Array<ServerAction>}
72
+ *
73
+ * @type {ActionTriggeredFrom}
74
74
  * @memberof Action
75
75
  */
76
- servers?: Array<ServerAction>;
76
+ triggered_from: ActionTriggeredFrom;
77
77
  /**
78
78
  *
79
- * @type {Resource}
79
+ * @type {UserRelation}
80
80
  * @memberof Action
81
81
  */
82
- resource: Resource;
82
+ triggered_by_user?: UserRelation;
83
83
  /**
84
84
  *
85
- * @type {EnvironmentRelation}
85
+ * @type {Resource}
86
86
  * @memberof Action
87
87
  */
88
- environment?: EnvironmentRelation;
88
+ resource: Resource;
89
89
  /**
90
90
  *
91
- * @type {ActionTriggeredFrom}
91
+ * @type {ActionSummary}
92
92
  * @memberof Action
93
93
  */
94
- triggered_from: ActionTriggeredFrom;
94
+ summary: ActionSummary;
95
95
  /**
96
96
  *
97
- * @type {UserRelation}
97
+ * @type {EnvironmentRelation}
98
98
  * @memberof Action
99
99
  */
100
- triggered_by_user?: UserRelation;
100
+ environment?: EnvironmentRelation;
101
101
  /**
102
102
  *
103
103
  * @type {ProjectRelation}
104
104
  * @memberof Action
105
105
  */
106
- project?: ProjectRelation;
106
+ project?: ProjectRelation | null;
107
+ /**
108
+ * List of actions dispatched to servers
109
+ * @type {Array<ServerAction>}
110
+ * @memberof Action
111
+ */
112
+ servers?: Array<ServerAction>;
107
113
  /**
108
114
  *
109
115
  * @type {ActionHookRequest}
@@ -115,23 +121,23 @@ export interface Action {
115
121
  * @type {string}
116
122
  * @memberof Action
117
123
  */
118
- started_at?: string | null;
124
+ started_at: string | null;
119
125
  /**
120
126
  * The date and time when the action has finished execution
121
127
  * @type {string}
122
128
  * @memberof Action
123
129
  */
124
- completed_at?: string | null;
130
+ completed_at: string | null;
125
131
  /**
126
132
  * The date and time when the record was created
127
133
  * @type {string}
128
134
  * @memberof Action
129
135
  */
130
- created_at?: string;
136
+ created_at: string;
131
137
  /**
132
138
  * The date and time when the record was last updated
133
139
  * @type {string}
134
140
  * @memberof Action
135
141
  */
136
- updated_at?: string;
142
+ updated_at: string;
137
143
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ApplicationType } from './application-type';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -22,11 +23,11 @@ export interface ApplicationEnvironmentCreate {
22
23
  */
23
24
  name: string;
24
25
  /**
25
- * Must be one of <code>web</code> or <code>non-web</code>.
26
- * @type {string}
26
+ *
27
+ * @type {ApplicationType}
27
28
  * @memberof ApplicationEnvironmentCreate
28
29
  */
29
- type: string;
30
+ type: ApplicationType;
30
31
  /**
31
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.
32
33
  * @type {string}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ApplicationLastDeployment } from './application-last-deployment';
12
+ import { ActionRelation } from './action-relation';
13
13
  /**
14
14
  * Latest deployment created to application and the more recent completed deployment
15
15
  * @export
@@ -18,14 +18,14 @@ import { ApplicationLastDeployment } from './application-last-deployment';
18
18
  export interface ApplicationLastDeployments {
19
19
  /**
20
20
  *
21
- * @type {ApplicationLastDeployment}
21
+ * @type {ActionRelation}
22
22
  * @memberof ApplicationLastDeployments
23
23
  */
24
- latest?: ApplicationLastDeployment | null;
24
+ latest?: ActionRelation | null;
25
25
  /**
26
26
  *
27
- * @type {ApplicationLastDeployment}
27
+ * @type {ActionRelation}
28
28
  * @memberof ApplicationLastDeployments
29
29
  */
30
- live?: ApplicationLastDeployment | null;
30
+ live?: ActionRelation | null;
31
31
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ApplicationType } from './application-type';
12
13
  import { EnvironmentLinkItem } from './environment-link-item';
13
14
  /**
14
15
  *
@@ -23,11 +24,11 @@ export interface ApplicationProjectCreate {
23
24
  */
24
25
  name: string;
25
26
  /**
26
- * Must be one of <code>web</code> or <code>non-web</code>.
27
- * @type {string}
27
+ *
28
+ * @type {ApplicationType}
28
29
  * @memberof ApplicationProjectCreate
29
30
  */
30
- type: string;
31
+ type: ApplicationType;
31
32
  /**
32
33
  * 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.
33
34
  * @type {string}