@devopness/sdk-js 2.164.1 → 2.164.2

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.
@@ -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 {string} hookType The hook type.
26
+ * @param {HookTypeParam} hookType The type of the hook.
26
27
  */
27
- deleteHook(hookId: string, hookType: string): Promise<ApiResponse<void>>;
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 {string} hookType The hook type.
33
+ * @param {HookTypeParam} hookType The type of the hook.
33
34
  */
34
- getHook(hookId: string, hookType: string): Promise<ApiResponse<Hook>>;
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 {string} hookType The hook type.
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: string, hookUpdate: HookUpdate): Promise<ApiResponse<void>>;
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 {string} hookType The hook type.
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 {string} hookType The hook type.
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 {string} hookType The hook type.
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 {string} hookType The hook type.
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: string, page?: number, perPage?: number): Promise<ApiResponse<Array<RequestRelation>>>;
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 {string} hookType The hook type.
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 {string} hookType The hook type.
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: string, pipelineId: number, hookPipelineCreate: HookPipelineCreate): Promise<ApiResponse<Hook>>;
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 {string} hookType The hook type.
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);
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.1",
4
+ "version": "2.164.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -54,19 +54,19 @@
54
54
  "@eslint/js": "^9.26.0",
55
55
  "@openapitools/openapi-generator-cli": "^2.20.2",
56
56
  "@types/jest": "^29.5.12",
57
- "@typescript-eslint/parser": "^8.33.0",
57
+ "@typescript-eslint/parser": "^8.33.1",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^9.27.0",
60
- "eslint-import-resolver-typescript": "^4.4.1",
59
+ "eslint": "^9.28.0",
60
+ "eslint-import-resolver-typescript": "^4.4.2",
61
61
  "eslint-plugin-import": "^2.31.0",
62
- "eslint-plugin-n": "^17.18.0",
62
+ "eslint-plugin-n": "^17.19.0",
63
63
  "eslint-plugin-promise": "^7.2.1",
64
64
  "husky": "9.1.7",
65
65
  "jest": "^29.7.0",
66
66
  "ts-jest": "^29.3.4",
67
67
  "typedoc": "^0.28.5",
68
68
  "typescript": "^5.8.3",
69
- "typescript-eslint": "^8.33.0"
69
+ "typescript-eslint": "^8.33.1"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",