@devopness/sdk-js 2.164.1 → 2.164.3
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/dist/api/generated/apis/hooks-api.d.ts +7 -6
- package/dist/api/generated/apis/hooks-api.js +3 -3
- package/dist/api/generated/apis/hooks-requests-api.d.ts +3 -2
- package/dist/api/generated/apis/hooks-requests-api.js +1 -1
- package/dist/api/generated/apis/pipelines-hooks-api.d.ts +3 -2
- package/dist/api/generated/apis/pipelines-hooks-api.js +1 -1
- package/dist/api/generated/models/hook-type-param.d.ts +20 -0
- package/dist/api/generated/models/hook-type-param.js +25 -0
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/dist/api/generated/models/user-update.d.ts +1 -1
- package/package.json +11 -11
|
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Hook } from '../../generated/models';
|
|
15
15
|
import { HookTriggerResponse } from '../../generated/models';
|
|
16
|
+
import { HookTypeParam } from '../../generated/models';
|
|
16
17
|
import { HookUpdate } from '../../generated/models';
|
|
17
18
|
/**
|
|
18
19
|
* HooksApiService - Auto-generated
|
|
@@ -22,16 +23,16 @@ export declare class HooksApiService extends ApiBaseService {
|
|
|
22
23
|
*
|
|
23
24
|
* @summary Delete a given hook
|
|
24
25
|
* @param {string} hookId The ID of the hook.
|
|
25
|
-
* @param {
|
|
26
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
26
27
|
*/
|
|
27
|
-
deleteHook(hookId: string, hookType:
|
|
28
|
+
deleteHook(hookId: string, hookType: HookTypeParam): Promise<ApiResponse<void>>;
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
* @summary Get a hook by ID
|
|
31
32
|
* @param {string} hookId The ID of the hook.
|
|
32
|
-
* @param {
|
|
33
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
33
34
|
*/
|
|
34
|
-
getHook(hookId: string, hookType:
|
|
35
|
+
getHook(hookId: string, hookType: HookTypeParam): Promise<ApiResponse<Hook>>;
|
|
35
36
|
/**
|
|
36
37
|
*
|
|
37
38
|
* @summary Trigger an incoming hook associated action
|
|
@@ -42,8 +43,8 @@ export declare class HooksApiService extends ApiBaseService {
|
|
|
42
43
|
*
|
|
43
44
|
* @summary Update an existing hook
|
|
44
45
|
* @param {string} hookId The ID of the hook.
|
|
45
|
-
* @param {
|
|
46
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
46
47
|
* @param {HookUpdate} hookUpdate A JSON object containing the resource data
|
|
47
48
|
*/
|
|
48
|
-
updateHook(hookId: string, hookType:
|
|
49
|
+
updateHook(hookId: string, hookType: HookTypeParam, hookUpdate: HookUpdate): Promise<ApiResponse<void>>;
|
|
49
50
|
}
|
|
@@ -33,7 +33,7 @@ class HooksApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Delete a given hook
|
|
35
35
|
* @param {string} hookId The ID of the hook.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
37
37
|
*/
|
|
38
38
|
deleteHook(hookId, hookType) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -53,7 +53,7 @@ class HooksApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
53
53
|
*
|
|
54
54
|
* @summary Get a hook by ID
|
|
55
55
|
* @param {string} hookId The ID of the hook.
|
|
56
|
-
* @param {
|
|
56
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
57
57
|
*/
|
|
58
58
|
getHook(hookId, hookType) {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -89,7 +89,7 @@ class HooksApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
89
89
|
*
|
|
90
90
|
* @summary Update an existing hook
|
|
91
91
|
* @param {string} hookId The ID of the hook.
|
|
92
|
-
* @param {
|
|
92
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
93
93
|
* @param {HookUpdate} hookUpdate A JSON object containing the resource data
|
|
94
94
|
*/
|
|
95
95
|
updateHook(hookId, hookType, hookUpdate) {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { HookTypeParam } from '../../generated/models';
|
|
14
15
|
import { RequestRelation } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* HooksRequestsApiService - Auto-generated
|
|
@@ -20,9 +21,9 @@ export declare class HooksRequestsApiService extends ApiBaseService {
|
|
|
20
21
|
*
|
|
21
22
|
* @summary Returns a list of all hook requests belonging to a hook
|
|
22
23
|
* @param {string} hookId The ID of the hook.
|
|
23
|
-
* @param {
|
|
24
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
24
25
|
* @param {number} [page] Number of the page to be retrieved
|
|
25
26
|
* @param {number} [perPage] Number of items returned per page
|
|
26
27
|
*/
|
|
27
|
-
listHookRequestsByHookType(hookId: string, hookType:
|
|
28
|
+
listHookRequestsByHookType(hookId: string, hookType: HookTypeParam, page?: number, perPage?: number): Promise<ApiResponse<Array<RequestRelation>>>;
|
|
28
29
|
}
|
|
@@ -33,7 +33,7 @@ class HooksRequestsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Returns a list of all hook requests belonging to a hook
|
|
35
35
|
* @param {string} hookId The ID of the hook.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
37
37
|
* @param {number} [page] Number of the page to be retrieved
|
|
38
38
|
* @param {number} [perPage] Number of items returned per page
|
|
39
39
|
*/
|
|
@@ -14,6 +14,7 @@ import { ApiResponse } from "../../../common/ApiResponse";
|
|
|
14
14
|
import { Hook } from '../../generated/models';
|
|
15
15
|
import { HookPipelineCreate } from '../../generated/models';
|
|
16
16
|
import { HookRelation } from '../../generated/models';
|
|
17
|
+
import { HookTypeParam } from '../../generated/models';
|
|
17
18
|
/**
|
|
18
19
|
* PipelinesHooksApiService - Auto-generated
|
|
19
20
|
*/
|
|
@@ -21,11 +22,11 @@ export declare class PipelinesHooksApiService extends ApiBaseService {
|
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
* @summary Create a hook to a specific pipeline
|
|
24
|
-
* @param {
|
|
25
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
25
26
|
* @param {number} pipelineId The ID of the pipeline that will be executed by the created action
|
|
26
27
|
* @param {HookPipelineCreate} hookPipelineCreate A JSON object containing the resource data
|
|
27
28
|
*/
|
|
28
|
-
addPipelineHook(hookType:
|
|
29
|
+
addPipelineHook(hookType: HookTypeParam, pipelineId: number, hookPipelineCreate: HookPipelineCreate): Promise<ApiResponse<Hook>>;
|
|
29
30
|
/**
|
|
30
31
|
*
|
|
31
32
|
* @summary List all hooks in a pipeline
|
|
@@ -32,7 +32,7 @@ class PipelinesHooksApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Create a hook to a specific pipeline
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {HookTypeParam} hookType The type of the hook.
|
|
36
36
|
* @param {number} pipelineId The ID of the pipeline that will be executed by the created action
|
|
37
37
|
* @param {HookPipelineCreate} hookPipelineCreate A JSON object containing the resource data
|
|
38
38
|
*/
|
|
@@ -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
|
+
* The type of hook
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum HookTypeParam {
|
|
18
|
+
Incoming = "incoming",
|
|
19
|
+
Outgoing = "outgoing"
|
|
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.HookTypeParam = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* The type of hook
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var HookTypeParam;
|
|
22
|
+
(function (HookTypeParam) {
|
|
23
|
+
HookTypeParam["Incoming"] = "incoming";
|
|
24
|
+
HookTypeParam["Outgoing"] = "outgoing";
|
|
25
|
+
})(HookTypeParam || (exports.HookTypeParam = HookTypeParam = {}));
|
|
@@ -107,6 +107,7 @@ export * from './hook-request-relation';
|
|
|
107
107
|
export * from './hook-trigger-response';
|
|
108
108
|
export * from './hook-trigger-when';
|
|
109
109
|
export * from './hook-type';
|
|
110
|
+
export * from './hook-type-param';
|
|
110
111
|
export * from './hook-update';
|
|
111
112
|
export * from './hook-variable';
|
|
112
113
|
export * from './hook-variable-type';
|
|
@@ -123,6 +123,7 @@ __exportStar(require("./hook-request-relation"), exports);
|
|
|
123
123
|
__exportStar(require("./hook-trigger-response"), exports);
|
|
124
124
|
__exportStar(require("./hook-trigger-when"), exports);
|
|
125
125
|
__exportStar(require("./hook-type"), exports);
|
|
126
|
+
__exportStar(require("./hook-type-param"), exports);
|
|
126
127
|
__exportStar(require("./hook-update"), exports);
|
|
127
128
|
__exportStar(require("./hook-variable"), exports);
|
|
128
129
|
__exportStar(require("./hook-variable-type"), exports);
|
|
@@ -23,7 +23,7 @@ export interface UserUpdate {
|
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
25
|
/**
|
|
26
|
-
* User\'s full name. Must be at least
|
|
26
|
+
* User\'s full name. Must be at least 3 characters. Must not be greater than 255 characters.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof UserUpdate
|
|
29
29
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@devopness/sdk-js",
|
|
4
|
-
"version": "2.164.
|
|
4
|
+
"version": "2.164.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -51,26 +51,26 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/devopness/devopness#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@eslint/js": "^9.
|
|
54
|
+
"@eslint/js": "^9.29.0",
|
|
55
55
|
"@openapitools/openapi-generator-cli": "^2.20.2",
|
|
56
56
|
"@types/jest": "^29.5.12",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.34.1",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^9.
|
|
60
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
61
|
-
"eslint-plugin-import": "^2.
|
|
62
|
-
"eslint-plugin-n": "^17.
|
|
59
|
+
"eslint": "^9.29.0",
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.4.3",
|
|
61
|
+
"eslint-plugin-import": "^2.32.0",
|
|
62
|
+
"eslint-plugin-n": "^17.20.0",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
|
-
"jest": "^
|
|
66
|
-
"ts-jest": "^29.
|
|
65
|
+
"jest": "^30.0.0",
|
|
66
|
+
"ts-jest": "^29.4.0",
|
|
67
67
|
"typedoc": "^0.28.5",
|
|
68
68
|
"typescript": "^5.8.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.34.1"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
73
|
-
"axios": "^1.
|
|
73
|
+
"axios": "^1.10.0",
|
|
74
74
|
"parse-link-header": "^2.0.0"
|
|
75
75
|
}
|
|
76
76
|
}
|