@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
@@ -1,101 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /**
4
- * devopness API
5
- * Devopness API - Painless essential DevOps to everyone
6
- *
7
- * The version of the OpenAPI document: latest
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.HooksOutgoingApiService = void 0;
25
- const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
- const ApiResponse_1 = require("../../../common/ApiResponse");
27
- const Exceptions_1 = require("../../../common/Exceptions");
28
- /**
29
- * HooksOutgoingApiService - Auto-generated
30
- */
31
- class HooksOutgoingApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- * The fields `target_url`, `settings.request_body` and `settings.request_headers` accept variables that will be expanded when the hook is triggered. The syntax to use variables are using dot-notation inside `{{` and `}}` tags, for example: ```json { \"settings\": { \"request_headers\": [ { \"name\": \"Authorization\", \"value\": \"Bearer {{ application.source_provider.access_token }}\" } ] } } ``` Where `{{ application.source_provider.access_token }}` will be expanded to access token of the application related to outgoing hook by `resource_type` and `resource_id` fields. The valid resources that can be accesed by variables are: * `action` - The action that have triggered the hook. The fields are the same returned by the [GET /actions/{id}](#operation/getAction) endpoint, e.g.: `{{ action.status }}` * `hook` - The outgoing hook itself. The fields are the same returned by the [GET /hooks/outgoing/{id}](#operation/getOutgoingHook) endpoint, e.g.: `{{ hook.secret }}` * `user` - The user that triggered the hook. The fields are the same returned by the [GET /users/{id}](#operation/getUser) endpoint, e.g.: `{{ user.name }}` And the resource related to outgoing hook is also accessible by variables using it\'s resource name. For instance an outgoing hook related to a daemon can get the daemon\'s command using: `{{ daemon.command }}` If the resource is an application, the deployment resource is also accessible by variables. For instance `{{ deployment.source.pull_request_id }}` to get the pull request source information of the deployment. **Note**: usually sub-resources relations of a resource are not accessible on outgoing hooks variables. For instance the `{{ daemon.project.name }}` is **not** a valid variable. An exception to this rule is the `application` resource that has the `source_provider` sub-resource that exposes the additional `access_token` field, which is not public by default.
34
- * @summary Create an outgoing hook to a specific resource
35
- * @param {HookOutgoingCreate} hookOutgoingCreate A JSON object containing outgoing hook data
36
- */
37
- addOutgoinHook(hookOutgoingCreate) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- if (hookOutgoingCreate === null || hookOutgoingCreate === undefined) {
40
- throw new Exceptions_1.ArgumentNullException('hookOutgoingCreate', 'addOutgoinHook');
41
- }
42
- let queryString = '';
43
- const requestUrl = '/hooks/outgoing' + (queryString ? `?${queryString}` : '');
44
- const response = yield this.post(requestUrl, hookOutgoingCreate);
45
- return new ApiResponse_1.ApiResponse(response);
46
- });
47
- }
48
- /**
49
- *
50
- * @summary Delete a given outgoing hook
51
- * @param {string} hookOutgoingId Unique ID of the outgoing hook to be deleted
52
- */
53
- deleteOutgoingHook(hookOutgoingId) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- if (hookOutgoingId === null || hookOutgoingId === undefined) {
56
- throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'deleteOutgoingHook');
57
- }
58
- let queryString = '';
59
- const requestUrl = '/hooks/outgoing/{hook_outgoing_id}' + (queryString ? `?${queryString}` : '');
60
- const response = yield this.delete(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))));
61
- return new ApiResponse_1.ApiResponse(response);
62
- });
63
- }
64
- /**
65
- *
66
- * @summary Get an outgoing hook by Id
67
- * @param {string} hookOutgoingId Unique ID of the outgoing hook to be retrieved
68
- */
69
- getOutgoingHook(hookOutgoingId) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- if (hookOutgoingId === null || hookOutgoingId === undefined) {
72
- throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'getOutgoingHook');
73
- }
74
- let queryString = '';
75
- const requestUrl = '/hooks/outgoing/{hook_outgoing_id}' + (queryString ? `?${queryString}` : '');
76
- const response = yield this.get(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))));
77
- return new ApiResponse_1.ApiResponse(response);
78
- });
79
- }
80
- /**
81
- *
82
- * @summary Update an existing outgoing hook
83
- * @param {string} hookOutgoingId Unique ID of the outgoing hook to be updated
84
- * @param {HookOutgoingUpdate} hookOutgoingUpdate A JSON object containing outgoing hook data
85
- */
86
- updateOutgoingHook(hookOutgoingId, hookOutgoingUpdate) {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- if (hookOutgoingId === null || hookOutgoingId === undefined) {
89
- throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'updateOutgoingHook');
90
- }
91
- if (hookOutgoingUpdate === null || hookOutgoingUpdate === undefined) {
92
- throw new Exceptions_1.ArgumentNullException('hookOutgoingUpdate', 'updateOutgoingHook');
93
- }
94
- let queryString = '';
95
- const requestUrl = '/hooks/outgoing/{hook_outgoing_id}' + (queryString ? `?${queryString}` : '');
96
- const response = yield this.put(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))), hookOutgoingUpdate);
97
- return new ApiResponse_1.ApiResponse(response);
98
- });
99
- }
100
- }
101
- exports.HooksOutgoingApiService = HooksOutgoingApiService;
@@ -1,130 +0,0 @@
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 { ServerAction } from './server-action';
21
- import { UserRelation } from './user-relation';
22
- /**
23
- *
24
- * @export
25
- * @interface ApplicationLastDeployment
26
- */
27
- export interface ApplicationLastDeployment {
28
- /**
29
- * The Id of the given action
30
- * @type {number}
31
- * @memberof ApplicationLastDeployment
32
- */
33
- id: number;
34
- /**
35
- *
36
- * @type {ActionStatus}
37
- * @memberof ApplicationLastDeployment
38
- */
39
- status: ActionStatus;
40
- /**
41
- *
42
- * @type {ActionType}
43
- * @memberof ApplicationLastDeployment
44
- */
45
- type: ActionType;
46
- /**
47
- * Human readable version of the action type
48
- * @type {string}
49
- * @memberof ApplicationLastDeployment
50
- */
51
- type_human_readable: string;
52
- /**
53
- *
54
- * @type {ActionSummary}
55
- * @memberof ApplicationLastDeployment
56
- */
57
- summary?: ActionSummary;
58
- /**
59
- * The permalink URL to the action details on Devopness web app
60
- * @type {string}
61
- * @memberof ApplicationLastDeployment
62
- */
63
- url_web_permalink: string;
64
- /**
65
- *
66
- * @type {ActionData}
67
- * @memberof ApplicationLastDeployment
68
- */
69
- action_data: ActionData | null;
70
- /**
71
- * List of actions dispatched to servers
72
- * @type {Array<ServerAction>}
73
- * @memberof ApplicationLastDeployment
74
- */
75
- servers?: Array<ServerAction>;
76
- /**
77
- *
78
- * @type {EnvironmentRelation}
79
- * @memberof ApplicationLastDeployment
80
- */
81
- environment?: EnvironmentRelation;
82
- /**
83
- *
84
- * @type {ActionTriggeredFrom}
85
- * @memberof ApplicationLastDeployment
86
- */
87
- triggered_from: ActionTriggeredFrom;
88
- /**
89
- *
90
- * @type {UserRelation}
91
- * @memberof ApplicationLastDeployment
92
- */
93
- triggered_by_user?: UserRelation;
94
- /**
95
- *
96
- * @type {ProjectRelation}
97
- * @memberof ApplicationLastDeployment
98
- */
99
- project?: ProjectRelation;
100
- /**
101
- *
102
- * @type {ActionHookRequest}
103
- * @memberof ApplicationLastDeployment
104
- */
105
- hook_requests?: ActionHookRequest;
106
- /**
107
- * The date and time when the action started execution (i.e., left the `pending/queued` status)
108
- * @type {string}
109
- * @memberof ApplicationLastDeployment
110
- */
111
- started_at?: string | null;
112
- /**
113
- * The date and time when the action has finished execution
114
- * @type {string}
115
- * @memberof ApplicationLastDeployment
116
- */
117
- completed_at?: string | null;
118
- /**
119
- * The date and time when the record was created
120
- * @type {string}
121
- * @memberof ApplicationLastDeployment
122
- */
123
- created_at?: string;
124
- /**
125
- * The date and time when the record was last updated
126
- * @type {string}
127
- * @memberof ApplicationLastDeployment
128
- */
129
- updated_at?: string;
130
- }
@@ -1,82 +0,0 @@
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 { ActionType } from './action-type';
13
- import { HookIncomingSetting } from './hook-incoming-setting';
14
- import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
15
- import { ResourceType } from './resource-type';
16
- /**
17
- *
18
- * @export
19
- * @interface HookIncomingCreate
20
- */
21
- export interface HookIncomingCreate {
22
- /**
23
- * The name entered by the user (or auto-generated by `Devopness`) to uniquely identify the hook
24
- * @type {string}
25
- * @memberof HookIncomingCreate
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {ResourceType}
31
- * @memberof HookIncomingCreate
32
- */
33
- resource_type: ResourceType;
34
- /**
35
- * The id of the resource that the outgoing hook belongs to
36
- * @type {number}
37
- * @memberof HookIncomingCreate
38
- */
39
- resource_id: number;
40
- /**
41
- *
42
- * @type {ActionType}
43
- * @memberof HookIncomingCreate
44
- */
45
- action_type: ActionType;
46
- /**
47
- * Determines if the hook is current active
48
- * @type {boolean}
49
- * @memberof HookIncomingCreate
50
- */
51
- active?: boolean;
52
- /**
53
- * Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code ([HMAC](https://en.wikipedia.org/wiki/HMAC)) generated based on the secret provided by Devopness and shared by user with external sources
54
- * @type {boolean}
55
- * @memberof HookIncomingCreate
56
- */
57
- requires_secret: boolean;
58
- /**
59
- * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation
60
- * @type {string}
61
- * @memberof HookIncomingCreate
62
- */
63
- secret_algorithm?: string;
64
- /**
65
- * The name of the HTTP request header from which the request digital signature should be extracted
66
- * @type {string}
67
- * @memberof HookIncomingCreate
68
- */
69
- secret_header_name?: string;
70
- /**
71
- * Conditions that must be met to trigger the hook.
72
- * @type {Array<HookIncomingTriggerWhenCondition>}
73
- * @memberof HookIncomingCreate
74
- */
75
- trigger_when?: Array<HookIncomingTriggerWhenCondition>;
76
- /**
77
- *
78
- * @type {HookIncomingSetting}
79
- * @memberof HookIncomingCreate
80
- */
81
- settings?: HookIncomingSetting;
82
- }
@@ -1,38 +0,0 @@
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 { HookIncomingSetting } from './hook-incoming-setting';
13
- import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
14
- /**
15
- *
16
- * @export
17
- * @interface HookIncomingParams
18
- */
19
- export interface HookIncomingParams {
20
- /**
21
- * The URL where the incoming hook must be triggered with a POST request
22
- * @type {string}
23
- * @memberof HookIncomingParams
24
- */
25
- url: string | null;
26
- /**
27
- * Conditions that must be met to trigger the hook.
28
- * @type {Array<HookIncomingTriggerWhenCondition>}
29
- * @memberof HookIncomingParams
30
- */
31
- trigger_when: Array<HookIncomingTriggerWhenCondition>;
32
- /**
33
- *
34
- * @type {HookIncomingSetting}
35
- * @memberof HookIncomingParams
36
- */
37
- settings: HookIncomingSetting;
38
- }
@@ -1,68 +0,0 @@
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 { HookIncomingSetting } from './hook-incoming-setting';
13
- import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
14
- /**
15
- *
16
- * @export
17
- * @interface HookIncomingUpdate
18
- */
19
- export interface HookIncomingUpdate {
20
- /**
21
- * Unique ID of the hook to be updated
22
- * @type {string}
23
- * @memberof HookIncomingUpdate
24
- */
25
- id: string;
26
- /**
27
- * The name given to incoming hook
28
- * @type {string}
29
- * @memberof HookIncomingUpdate
30
- */
31
- name: string;
32
- /**
33
- * Determines if the hook requires a secret to be triggered
34
- * @type {boolean}
35
- * @memberof HookIncomingUpdate
36
- */
37
- requires_secret: boolean;
38
- /**
39
- * The hash algorithm used to check payload integrity of the request
40
- * @type {string}
41
- * @memberof HookIncomingUpdate
42
- */
43
- secret_algorithm?: string;
44
- /**
45
- * The request header used to give the secret to Devopness
46
- * @type {string}
47
- * @memberof HookIncomingUpdate
48
- */
49
- secret_header_name?: string;
50
- /**
51
- * Determines if the hook is current active
52
- * @type {boolean}
53
- * @memberof HookIncomingUpdate
54
- */
55
- active?: boolean;
56
- /**
57
- * Conditions that must be met to trigger the hook.
58
- * @type {Array<HookIncomingTriggerWhenCondition>}
59
- * @memberof HookIncomingUpdate
60
- */
61
- trigger_when?: Array<HookIncomingTriggerWhenCondition>;
62
- /**
63
- *
64
- * @type {HookIncomingSetting}
65
- * @memberof HookIncomingUpdate
66
- */
67
- settings?: HookIncomingSetting;
68
- }
@@ -1,70 +0,0 @@
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 { ActionType } from './action-type';
13
- import { HookOutgoingSetting } from './hook-outgoing-setting';
14
- import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
15
- import { ResourceType } from './resource-type';
16
- /**
17
- *
18
- * @export
19
- * @interface HookOutgoingCreate
20
- */
21
- export interface HookOutgoingCreate {
22
- /**
23
- * The name to uniquely identify the outgoing hook
24
- * @type {string}
25
- * @memberof HookOutgoingCreate
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {ActionType}
31
- * @memberof HookOutgoingCreate
32
- */
33
- action_type: ActionType;
34
- /**
35
- * Determines if the hook is current active
36
- * @type {boolean}
37
- * @memberof HookOutgoingCreate
38
- */
39
- active?: boolean;
40
- /**
41
- *
42
- * @type {ResourceType}
43
- * @memberof HookOutgoingCreate
44
- */
45
- resource_type: ResourceType;
46
- /**
47
- * The id of the resource that the outgoing hook belongs to
48
- * @type {number}
49
- * @memberof HookOutgoingCreate
50
- */
51
- resource_id: number;
52
- /**
53
- * The URL that Devopness should send a request when the outgoing hook is triggered
54
- * @type {string}
55
- * @memberof HookOutgoingCreate
56
- */
57
- target_url: string;
58
- /**
59
- * Conditions that must be met to trigger the hook.
60
- * @type {Array<HookOutgoingTriggerWhenCondition>}
61
- * @memberof HookOutgoingCreate
62
- */
63
- trigger_when: Array<HookOutgoingTriggerWhenCondition>;
64
- /**
65
- *
66
- * @type {HookOutgoingSetting}
67
- * @memberof HookOutgoingCreate
68
- */
69
- settings?: HookOutgoingSetting;
70
- }
@@ -1,38 +0,0 @@
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 { HookOutgoingSetting } from './hook-outgoing-setting';
13
- import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
14
- /**
15
- *
16
- * @export
17
- * @interface HookOutgoingParams
18
- */
19
- export interface HookOutgoingParams {
20
- /**
21
- * The target URL on outgoing hooks where Devopness should trigger a request
22
- * @type {string}
23
- * @memberof HookOutgoingParams
24
- */
25
- target_url: string | null;
26
- /**
27
- * Conditions that must be met to trigger the hook.
28
- * @type {Array<HookOutgoingTriggerWhenCondition>}
29
- * @memberof HookOutgoingParams
30
- */
31
- trigger_when: Array<HookOutgoingTriggerWhenCondition>;
32
- /**
33
- *
34
- * @type {HookOutgoingSetting}
35
- * @memberof HookOutgoingParams
36
- */
37
- settings: HookOutgoingSetting;
38
- }
@@ -1,76 +0,0 @@
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 { ActionType } from './action-type';
13
- import { HookOutgoingSetting } from './hook-outgoing-setting';
14
- import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
15
- import { ResourceType } from './resource-type';
16
- /**
17
- *
18
- * @export
19
- * @interface HookOutgoingUpdate
20
- */
21
- export interface HookOutgoingUpdate {
22
- /**
23
- * Unique ID of the outgoing hook to be updated
24
- * @type {string}
25
- * @memberof HookOutgoingUpdate
26
- */
27
- id: string;
28
- /**
29
- * The name to uniquely identify the outgoing hook
30
- * @type {string}
31
- * @memberof HookOutgoingUpdate
32
- */
33
- name: string;
34
- /**
35
- *
36
- * @type {ActionType}
37
- * @memberof HookOutgoingUpdate
38
- */
39
- action_type: ActionType;
40
- /**
41
- * Determines if the hook is current active
42
- * @type {boolean}
43
- * @memberof HookOutgoingUpdate
44
- */
45
- active?: boolean;
46
- /**
47
- *
48
- * @type {ResourceType}
49
- * @memberof HookOutgoingUpdate
50
- */
51
- resource_type: ResourceType;
52
- /**
53
- * The id of the resource that the outgoing hook belongs to
54
- * @type {number}
55
- * @memberof HookOutgoingUpdate
56
- */
57
- resource_id: number;
58
- /**
59
- * The URL that Devopness should send a request when the outgoing hook is triggered
60
- * @type {string}
61
- * @memberof HookOutgoingUpdate
62
- */
63
- target_url: string;
64
- /**
65
- * Conditions that must be met to trigger the hook.
66
- * @type {Array<HookOutgoingTriggerWhenCondition>}
67
- * @memberof HookOutgoingUpdate
68
- */
69
- trigger_when: Array<HookOutgoingTriggerWhenCondition>;
70
- /**
71
- *
72
- * @type {HookOutgoingSetting}
73
- * @memberof HookOutgoingUpdate
74
- */
75
- settings?: HookOutgoingSetting;
76
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /**
4
- * devopness API
5
- * Devopness API - Painless essential DevOps to everyone
6
- *
7
- * The version of the OpenAPI document: latest
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
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 { Hook } from './hook';
13
- import { HookOutgoingParams } from './hook-outgoing-params';
14
- /**
15
- * @type HookOutgoing
16
- * @export
17
- */
18
- export declare type HookOutgoing = Hook & HookOutgoingParams;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /**
4
- * devopness API
5
- * Devopness API - Painless essential DevOps to everyone
6
- *
7
- * The version of the OpenAPI document: latest
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /**
4
- * devopness API
5
- * Devopness API - Painless essential DevOps to everyone
6
- *
7
- * The version of the OpenAPI document: latest
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { HooksIncomingApiService } from '../api/generated/apis/hooks-incoming-api';
2
- export declare class HookIncomingService extends HooksIncomingApiService {
3
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HookIncomingService = void 0;
4
- const hooks_incoming_api_1 = require("../api/generated/apis/hooks-incoming-api");
5
- class HookIncomingService extends hooks_incoming_api_1.HooksIncomingApiService {
6
- }
7
- exports.HookIncomingService = HookIncomingService;