@devopness/sdk-js 1.97.0 → 1.98.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.
- package/README.md +21 -0
- package/dist/api/generated/models/deployment-origin.d.ts +20 -0
- package/dist/api/generated/models/deployment-origin.js +25 -0
- package/dist/api/generated/models/deployment-source.d.ts +34 -6
- package/dist/api/generated/models/deployment-source.js +0 -12
- package/dist/api/generated/models/hook-incoming-create.d.ts +7 -0
- package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +19 -0
- package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +24 -0
- package/dist/api/generated/models/hook-incoming-trigger-when-condition.d.ts +43 -0
- package/dist/api/generated/models/hook-incoming-trigger-when-condition.js +14 -0
- package/dist/api/generated/models/hook-outgoing-create.d.ts +4 -3
- package/dist/api/generated/models/hook-outgoing-trigger-when-action-status.d.ts +21 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-action-status.js +26 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +19 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +24 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +32 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition.js +14 -0
- package/dist/api/generated/models/hook-outgoing-update.d.ts +4 -3
- package/dist/api/generated/models/hook-relation.d.ts +5 -3
- package/dist/api/generated/models/hook-variable.d.ts +6 -0
- package/dist/api/generated/models/hook.d.ts +5 -3
- package/dist/api/generated/models/index.d.ts +6 -0
- package/dist/api/generated/models/index.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,3 +84,24 @@ This package includes TypeScript declarations for every method.
|
|
|
84
84
|
TypeScript versions `>= 3.8` are supported.
|
|
85
85
|
|
|
86
86
|
Some methods in `Devopness SDK JavaScript` accept and return objects from the Devopness API. The type declarations for these objects will always track the latest version of the API. Therefore, if you'e using the latest version of this package you can rely on the Devopness API documentation for checking the input and return types of each API endpoint.
|
|
87
|
+
|
|
88
|
+
## Building and testing
|
|
89
|
+
To build and test the SDK locally, follow these steps:
|
|
90
|
+
1. Clone de repository
|
|
91
|
+
```
|
|
92
|
+
git clone https://github.com/devopness/devopness-sdk-js.git
|
|
93
|
+
```
|
|
94
|
+
2. Install missing dependencies
|
|
95
|
+
|
|
96
|
+
This command will install all modules listed as dependencies in [package.json](package.json). A working Java Runtime Environment is also required. Please, check out the installation instructions for your operating system.
|
|
97
|
+
```
|
|
98
|
+
npm install
|
|
99
|
+
```
|
|
100
|
+
3. Build
|
|
101
|
+
```
|
|
102
|
+
npm run build-api-models
|
|
103
|
+
```
|
|
104
|
+
4. Run tests
|
|
105
|
+
```
|
|
106
|
+
npm run test
|
|
107
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Source/channel from which the deployment has been triggered
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum DeploymentOrigin {
|
|
18
|
+
Hook = "hook",
|
|
19
|
+
Manual = "manual"
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 });
|
|
15
|
+
exports.DeploymentOrigin = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* Source/channel from which the deployment has been triggered
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var DeploymentOrigin;
|
|
22
|
+
(function (DeploymentOrigin) {
|
|
23
|
+
DeploymentOrigin["Hook"] = "hook";
|
|
24
|
+
DeploymentOrigin["Manual"] = "manual";
|
|
25
|
+
})(DeploymentOrigin = exports.DeploymentOrigin || (exports.DeploymentOrigin = {}));
|
|
@@ -9,13 +9,41 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { DeploymentOrigin } from './deployment-origin';
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Deployment source information
|
|
14
15
|
* @export
|
|
15
|
-
* @
|
|
16
|
+
* @interface DeploymentSource
|
|
16
17
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export interface DeploymentSource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {DeploymentOrigin}
|
|
22
|
+
* @memberof DeploymentSource
|
|
23
|
+
*/
|
|
24
|
+
origin: DeploymentOrigin;
|
|
25
|
+
/**
|
|
26
|
+
* The IP address from the deployment has been triggered
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DeploymentSource
|
|
29
|
+
*/
|
|
30
|
+
ip_address: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The hook that has been triggered the deployment
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof DeploymentSource
|
|
35
|
+
*/
|
|
36
|
+
hook_id: number | null;
|
|
37
|
+
/**
|
|
38
|
+
* The hook request\'s ID that have triggered the deployment
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof DeploymentSource
|
|
41
|
+
*/
|
|
42
|
+
hook_request_id: number | null;
|
|
43
|
+
/**
|
|
44
|
+
* The pull request that have triggered the deployment
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof DeploymentSource
|
|
47
|
+
*/
|
|
48
|
+
pull_request_id: number | null;
|
|
21
49
|
}
|
|
@@ -12,15 +12,3 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.DeploymentSource = void 0;
|
|
16
|
-
/**
|
|
17
|
-
* Source/channel from which the deployment has been triggered
|
|
18
|
-
* @export
|
|
19
|
-
* @enum {string}
|
|
20
|
-
*/
|
|
21
|
-
var DeploymentSource;
|
|
22
|
-
(function (DeploymentSource) {
|
|
23
|
-
DeploymentSource["Manual"] = "manual";
|
|
24
|
-
DeploymentSource["GitPush"] = "git-push";
|
|
25
|
-
DeploymentSource["Scheduled"] = "scheduled";
|
|
26
|
-
})(DeploymentSource = exports.DeploymentSource || (exports.DeploymentSource = {}));
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
13
14
|
import { HookSetting } from './hook-setting';
|
|
14
15
|
import { ResourceType } from './resource-type';
|
|
15
16
|
/**
|
|
@@ -66,6 +67,12 @@ export interface HookIncomingCreate {
|
|
|
66
67
|
* @memberof HookIncomingCreate
|
|
67
68
|
*/
|
|
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>;
|
|
69
76
|
/**
|
|
70
77
|
*
|
|
71
78
|
* @type {HookSetting}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Type of the incoming hook condition. * `request_body` - Validate request body for incoming hooks.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum HookIncomingTriggerWhenConditionType {
|
|
18
|
+
RequestBody = "request_body"
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 });
|
|
15
|
+
exports.HookIncomingTriggerWhenConditionType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* Type of the incoming hook condition. * `request_body` - Validate request body for incoming hooks.
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var HookIncomingTriggerWhenConditionType;
|
|
22
|
+
(function (HookIncomingTriggerWhenConditionType) {
|
|
23
|
+
HookIncomingTriggerWhenConditionType["RequestBody"] = "request_body";
|
|
24
|
+
})(HookIncomingTriggerWhenConditionType = exports.HookIncomingTriggerWhenConditionType || (exports.HookIncomingTriggerWhenConditionType = {}));
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { HookIncomingTriggerWhenConditionType } from './hook-incoming-trigger-when-condition-type';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HookIncomingTriggerWhenCondition
|
|
17
|
+
*/
|
|
18
|
+
export interface HookIncomingTriggerWhenCondition {
|
|
19
|
+
/**
|
|
20
|
+
* Name of the condition
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof HookIncomingTriggerWhenCondition
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {HookIncomingTriggerWhenConditionType}
|
|
28
|
+
* @memberof HookIncomingTriggerWhenCondition
|
|
29
|
+
*/
|
|
30
|
+
type: HookIncomingTriggerWhenConditionType;
|
|
31
|
+
/**
|
|
32
|
+
* A dot-notation path of the request body where the value will be checked.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof HookIncomingTriggerWhenCondition
|
|
35
|
+
*/
|
|
36
|
+
path: string;
|
|
37
|
+
/**
|
|
38
|
+
* An list of accepted values to checked field.
|
|
39
|
+
* @type {Array<boolean | number | string>}
|
|
40
|
+
* @memberof HookIncomingTriggerWhenCondition
|
|
41
|
+
*/
|
|
42
|
+
accepted_values: Array<boolean | number | string>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
13
14
|
import { ResourceType } from './resource-type';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -54,9 +55,9 @@ export interface HookOutgoingCreate {
|
|
|
54
55
|
*/
|
|
55
56
|
target_url: string;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Array<
|
|
58
|
+
* Conditions that must be met to trigger the hook.
|
|
59
|
+
* @type {Array<HookOutgoingTriggerWhenCondition>}
|
|
59
60
|
* @memberof HookOutgoingCreate
|
|
60
61
|
*/
|
|
61
|
-
trigger_when: Array<
|
|
62
|
+
trigger_when: Array<HookOutgoingTriggerWhenCondition>;
|
|
62
63
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum HookOutgoingTriggerWhenActionStatus {
|
|
18
|
+
InProgress = "in-progress",
|
|
19
|
+
Completed = "completed",
|
|
20
|
+
Failed = "failed"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 });
|
|
15
|
+
exports.HookOutgoingTriggerWhenActionStatus = void 0;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var HookOutgoingTriggerWhenActionStatus;
|
|
22
|
+
(function (HookOutgoingTriggerWhenActionStatus) {
|
|
23
|
+
HookOutgoingTriggerWhenActionStatus["InProgress"] = "in-progress";
|
|
24
|
+
HookOutgoingTriggerWhenActionStatus["Completed"] = "completed";
|
|
25
|
+
HookOutgoingTriggerWhenActionStatus["Failed"] = "failed";
|
|
26
|
+
})(HookOutgoingTriggerWhenActionStatus = exports.HookOutgoingTriggerWhenActionStatus || (exports.HookOutgoingTriggerWhenActionStatus = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Type of the outgoing hook condition. * `action_status` - Validate action status for outgoing hooks.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum HookOutgoingTriggerWhenConditionType {
|
|
18
|
+
ActionStatus = "action_status"
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 });
|
|
15
|
+
exports.HookOutgoingTriggerWhenConditionType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* Type of the outgoing hook condition. * `action_status` - Validate action status for outgoing hooks.
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var HookOutgoingTriggerWhenConditionType;
|
|
22
|
+
(function (HookOutgoingTriggerWhenConditionType) {
|
|
23
|
+
HookOutgoingTriggerWhenConditionType["ActionStatus"] = "action_status";
|
|
24
|
+
})(HookOutgoingTriggerWhenConditionType = exports.HookOutgoingTriggerWhenConditionType || (exports.HookOutgoingTriggerWhenConditionType = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { HookOutgoingTriggerWhenActionStatus } from './hook-outgoing-trigger-when-action-status';
|
|
13
|
+
import { HookOutgoingTriggerWhenConditionType } from './hook-outgoing-trigger-when-condition-type';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HookOutgoingTriggerWhenCondition
|
|
18
|
+
*/
|
|
19
|
+
export interface HookOutgoingTriggerWhenCondition {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {HookOutgoingTriggerWhenConditionType}
|
|
23
|
+
* @memberof HookOutgoingTriggerWhenCondition
|
|
24
|
+
*/
|
|
25
|
+
type: HookOutgoingTriggerWhenConditionType;
|
|
26
|
+
/**
|
|
27
|
+
* An list of accepted values to checked field.
|
|
28
|
+
* @type {Array<HookOutgoingTriggerWhenActionStatus>}
|
|
29
|
+
* @memberof HookOutgoingTriggerWhenCondition
|
|
30
|
+
*/
|
|
31
|
+
accepted_values: Array<HookOutgoingTriggerWhenActionStatus>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
13
14
|
import { ResourceType } from './resource-type';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -60,9 +61,9 @@ export interface HookOutgoingUpdate {
|
|
|
60
61
|
*/
|
|
61
62
|
target_url: string;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Array<
|
|
64
|
+
* Conditions that must be met to trigger the hook.
|
|
65
|
+
* @type {Array<HookOutgoingTriggerWhenCondition>}
|
|
65
66
|
* @memberof HookOutgoingUpdate
|
|
66
67
|
*/
|
|
67
|
-
trigger_when: Array<
|
|
68
|
+
trigger_when: Array<HookOutgoingTriggerWhenCondition>;
|
|
68
69
|
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
14
|
+
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
13
15
|
import { HookSetting } from './hook-setting';
|
|
14
16
|
import { HookType } from './hook-type';
|
|
15
17
|
/**
|
|
@@ -79,11 +81,11 @@ export interface HookRelation {
|
|
|
79
81
|
*/
|
|
80
82
|
verify_ssl: boolean;
|
|
81
83
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Array<
|
|
84
|
+
* Conditions that must be met to trigger the hook.
|
|
85
|
+
* @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
|
|
84
86
|
* @memberof HookRelation
|
|
85
87
|
*/
|
|
86
|
-
trigger_when?: Array<
|
|
88
|
+
trigger_when?: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
|
|
87
89
|
/**
|
|
88
90
|
* Indicates if the record was auto_generated by `devopness` itself
|
|
89
91
|
* @type {boolean}
|
|
@@ -22,6 +22,12 @@ export interface HookVariable {
|
|
|
22
22
|
* @memberof HookVariable
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* A `dot-notation` path used to retrieve the variable\'s value. If not defined the `name` will be used instead.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof HookVariable
|
|
29
|
+
*/
|
|
30
|
+
path?: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {HookVariableType}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
14
|
+
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
13
15
|
import { HookSetting } from './hook-setting';
|
|
14
16
|
import { HookType } from './hook-type';
|
|
15
17
|
import { Resource } from './resource';
|
|
@@ -81,11 +83,11 @@ export interface Hook {
|
|
|
81
83
|
*/
|
|
82
84
|
verify_ssl: boolean;
|
|
83
85
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {Array<
|
|
86
|
+
* Conditions that must be met to trigger the hook.
|
|
87
|
+
* @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
|
|
86
88
|
* @memberof Hook
|
|
87
89
|
*/
|
|
88
|
-
trigger_when?: Array<
|
|
90
|
+
trigger_when?: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
|
|
89
91
|
/**
|
|
90
92
|
* Indicates if the record was auto_generated by `devopness` itself
|
|
91
93
|
* @type {boolean}
|
|
@@ -55,6 +55,7 @@ export * from './deployment-create';
|
|
|
55
55
|
export * from './deployment-create-application';
|
|
56
56
|
export * from './deployment-create-server';
|
|
57
57
|
export * from './deployment-default-step';
|
|
58
|
+
export * from './deployment-origin';
|
|
58
59
|
export * from './deployment-relation';
|
|
59
60
|
export * from './deployment-source';
|
|
60
61
|
export * from './deployment-step';
|
|
@@ -71,8 +72,13 @@ export * from './environment-type';
|
|
|
71
72
|
export * from './environment-update';
|
|
72
73
|
export * from './hook';
|
|
73
74
|
export * from './hook-incoming-create';
|
|
75
|
+
export * from './hook-incoming-trigger-when-condition';
|
|
76
|
+
export * from './hook-incoming-trigger-when-condition-type';
|
|
74
77
|
export * from './hook-incoming-update';
|
|
75
78
|
export * from './hook-outgoing-create';
|
|
79
|
+
export * from './hook-outgoing-trigger-when-action-status';
|
|
80
|
+
export * from './hook-outgoing-trigger-when-condition';
|
|
81
|
+
export * from './hook-outgoing-trigger-when-condition-type';
|
|
76
82
|
export * from './hook-outgoing-update';
|
|
77
83
|
export * from './hook-relation';
|
|
78
84
|
export * from './hook-request';
|
|
@@ -71,6 +71,7 @@ __exportStar(require("./deployment-create"), exports);
|
|
|
71
71
|
__exportStar(require("./deployment-create-application"), exports);
|
|
72
72
|
__exportStar(require("./deployment-create-server"), exports);
|
|
73
73
|
__exportStar(require("./deployment-default-step"), exports);
|
|
74
|
+
__exportStar(require("./deployment-origin"), exports);
|
|
74
75
|
__exportStar(require("./deployment-relation"), exports);
|
|
75
76
|
__exportStar(require("./deployment-source"), exports);
|
|
76
77
|
__exportStar(require("./deployment-step"), exports);
|
|
@@ -87,8 +88,13 @@ __exportStar(require("./environment-type"), exports);
|
|
|
87
88
|
__exportStar(require("./environment-update"), exports);
|
|
88
89
|
__exportStar(require("./hook"), exports);
|
|
89
90
|
__exportStar(require("./hook-incoming-create"), exports);
|
|
91
|
+
__exportStar(require("./hook-incoming-trigger-when-condition"), exports);
|
|
92
|
+
__exportStar(require("./hook-incoming-trigger-when-condition-type"), exports);
|
|
90
93
|
__exportStar(require("./hook-incoming-update"), exports);
|
|
91
94
|
__exportStar(require("./hook-outgoing-create"), exports);
|
|
95
|
+
__exportStar(require("./hook-outgoing-trigger-when-action-status"), exports);
|
|
96
|
+
__exportStar(require("./hook-outgoing-trigger-when-condition"), exports);
|
|
97
|
+
__exportStar(require("./hook-outgoing-trigger-when-condition-type"), exports);
|
|
92
98
|
__exportStar(require("./hook-outgoing-update"), exports);
|
|
93
99
|
__exportStar(require("./hook-relation"), exports);
|
|
94
100
|
__exportStar(require("./hook-request"), exports);
|