@devopness/sdk-js 2.164.3 → 2.164.5

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.
@@ -46,8 +46,10 @@ export declare class VariablesApiService extends ApiBaseService {
46
46
  * @param {string} resourceType The resource type to get variables from.
47
47
  * @param {number} [page] Number of the page to be retrieved
48
48
  * @param {number} [perPage] Number of items returned per page
49
+ * @param {boolean} [includeVirtualVariables] If true, include all `virtual variables` in the list. Defaults to true.
50
+ * @param {string} [variableTarget] Filter by variable\'s target.
49
51
  */
50
- listVariablesByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<VariableRelation>>>;
52
+ listVariablesByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number, includeVirtualVariables?: boolean, variableTarget?: string): Promise<ApiResponse<Array<VariableRelation>>>;
51
53
  /**
52
54
  *
53
55
  * @summary Update an existing variable
@@ -92,8 +92,10 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
92
92
  * @param {string} resourceType The resource type to get variables from.
93
93
  * @param {number} [page] Number of the page to be retrieved
94
94
  * @param {number} [perPage] Number of items returned per page
95
+ * @param {boolean} [includeVirtualVariables] If true, include all &#x60;virtual variables&#x60; in the list. Defaults to true.
96
+ * @param {string} [variableTarget] Filter by variable\&#39;s target.
95
97
  */
96
- listVariablesByResourceType(resourceId, resourceType, page, perPage) {
98
+ listVariablesByResourceType(resourceId, resourceType, page, perPage, includeVirtualVariables, variableTarget) {
97
99
  return __awaiter(this, void 0, void 0, function* () {
98
100
  if (resourceId === null || resourceId === undefined) {
99
101
  throw new Exceptions_1.ArgumentNullException('resourceId', 'listVariablesByResourceType');
@@ -102,7 +104,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
102
104
  throw new Exceptions_1.ArgumentNullException('resourceType', 'listVariablesByResourceType');
103
105
  }
104
106
  let queryString = '';
105
- const queryParams = { page: page, per_page: perPage, };
107
+ const queryParams = { page: page, per_page: perPage, include_virtual_variables: includeVirtualVariables, variable_target: variableTarget, };
106
108
  for (const key in queryParams) {
107
109
  if (queryParams[key] === undefined || queryParams[key] === null) {
108
110
  continue;
@@ -135,13 +135,13 @@ export interface ActionRetryResponse {
135
135
  * @type {EnvironmentRelation}
136
136
  * @memberof ActionRetryResponse
137
137
  */
138
- environment?: EnvironmentRelation | null;
138
+ environment: EnvironmentRelation | null;
139
139
  /**
140
140
  *
141
141
  * @type {ProjectRelation}
142
142
  * @memberof ActionRetryResponse
143
143
  */
144
- project?: ProjectRelation | null;
144
+ project: ProjectRelation | null;
145
145
  /**
146
146
  * List of actions dispatched to cloud resource targets
147
147
  * @type {Array<ActionTarget>}
@@ -24,13 +24,13 @@ export interface ActionTarget {
24
24
  * @type {number}
25
25
  * @memberof ActionTarget
26
26
  */
27
- id?: number;
27
+ id: number;
28
28
  /**
29
29
  * The type of the cloud resource on which the action must be performed
30
30
  * @type {string}
31
31
  * @memberof ActionTarget
32
32
  */
33
- resource_type?: string;
33
+ resource_type: string;
34
34
  /**
35
35
  * Human readable version of the resource type
36
36
  * @type {string}
@@ -42,13 +42,13 @@ export interface ActionTarget {
42
42
  * @type {number}
43
43
  * @memberof ActionTarget
44
44
  */
45
- resource_id?: number;
45
+ resource_id: number;
46
46
  /**
47
47
  *
48
48
  * @type {ActionStatus}
49
49
  * @memberof ActionTarget
50
50
  */
51
- status?: ActionStatus;
51
+ status: ActionStatus;
52
52
  /**
53
53
  * Human readable version of the action status
54
54
  * @type {string}
@@ -60,7 +60,7 @@ export interface ActionTarget {
60
60
  * @type {ActionStatusReasonCode}
61
61
  * @memberof ActionTarget
62
62
  */
63
- status_reason_code?: ActionStatusReasonCode;
63
+ status_reason_code: ActionStatusReasonCode;
64
64
  /**
65
65
  * Human readable version of the status reason code
66
66
  * @type {string}
@@ -72,13 +72,13 @@ export interface ActionTarget {
72
72
  * @type {number}
73
73
  * @memberof ActionTarget
74
74
  */
75
- total_steps?: number | null;
75
+ total_steps: number | null;
76
76
  /**
77
77
  *
78
78
  * @type {ActionStep}
79
79
  * @memberof ActionTarget
80
80
  */
81
- current_step?: ActionStep | null;
81
+ current_step: ActionStep | null;
82
82
  /**
83
83
  * The list of action steps
84
84
  * @type {Array<ActionStep>}
@@ -90,7 +90,7 @@ export interface ActionTarget {
90
90
  * @type {ActionTargetData}
91
91
  * @memberof ActionTarget
92
92
  */
93
- resource_data?: ActionTargetData | null;
93
+ resource_data: ActionTargetData | null;
94
94
  /**
95
95
  * The date and time when the action started execution (i.e., left the `pending/queued` status)
96
96
  * @type {string}
@@ -108,11 +108,11 @@ export interface ActionTarget {
108
108
  * @type {string}
109
109
  * @memberof ActionTarget
110
110
  */
111
- created_at?: string;
111
+ created_at: string;
112
112
  /**
113
113
  * The date and time when the record was last updated
114
114
  * @type {string}
115
115
  * @memberof ActionTarget
116
116
  */
117
- updated_at?: string;
117
+ updated_at: string;
118
118
  }
@@ -135,13 +135,13 @@ export interface Action {
135
135
  * @type {EnvironmentRelation}
136
136
  * @memberof Action
137
137
  */
138
- environment?: EnvironmentRelation | null;
138
+ environment: EnvironmentRelation | null;
139
139
  /**
140
140
  *
141
141
  * @type {ProjectRelation}
142
142
  * @memberof Action
143
143
  */
144
- project?: ProjectRelation | null;
144
+ project: ProjectRelation | null;
145
145
  /**
146
146
  * List of actions dispatched to cloud resource targets
147
147
  * @type {Array<ActionTarget>}
@@ -83,7 +83,7 @@ export interface VariableRelation {
83
83
  * @type {UserRelation}
84
84
  * @memberof VariableRelation
85
85
  */
86
- created_by_user: UserRelation;
86
+ created_by_user?: UserRelation;
87
87
  /**
88
88
  * The date and time when the record was created
89
89
  * @type {string}
@@ -83,7 +83,7 @@ export interface Variable {
83
83
  * @type {UserRelation}
84
84
  * @memberof Variable
85
85
  */
86
- created_by_user: UserRelation;
86
+ created_by_user?: UserRelation;
87
87
  /**
88
88
  * The date and time when the record was created
89
89
  * @type {string}
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.3",
4
+ "version": "2.164.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -51,22 +51,22 @@
51
51
  },
52
52
  "homepage": "https://github.com/devopness/devopness#readme",
53
53
  "devDependencies": {
54
- "@eslint/js": "^9.29.0",
55
- "@openapitools/openapi-generator-cli": "^2.20.2",
56
- "@types/jest": "^29.5.12",
57
- "@typescript-eslint/parser": "^8.34.1",
54
+ "@eslint/js": "^9.30.0",
55
+ "@openapitools/openapi-generator-cli": "^2.21.0",
56
+ "@types/jest": "^30.0.0",
57
+ "@typescript-eslint/parser": "^8.36.0",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^9.29.0",
60
- "eslint-import-resolver-typescript": "^4.4.3",
59
+ "eslint": "^9.30.1",
60
+ "eslint-import-resolver-typescript": "^4.4.4",
61
61
  "eslint-plugin-import": "^2.32.0",
62
- "eslint-plugin-n": "^17.20.0",
62
+ "eslint-plugin-n": "^17.21.0",
63
63
  "eslint-plugin-promise": "^7.2.1",
64
64
  "husky": "9.1.7",
65
- "jest": "^30.0.0",
65
+ "jest": "^30.0.4",
66
66
  "ts-jest": "^29.4.0",
67
- "typedoc": "^0.28.5",
67
+ "typedoc": "^0.28.7",
68
68
  "typescript": "^5.8.3",
69
- "typescript-eslint": "^8.34.1"
69
+ "typescript-eslint": "^8.36.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",