@devopness/sdk-js 2.163.3 → 2.163.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.
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ApplicationRelation } from './application-relation';
13
+ import { CredentialRelation } from './credential-relation';
13
14
  import { CronJobRelation } from './cron-job-relation';
14
15
  import { DaemonRelation } from './daemon-relation';
15
16
  import { NetworkRelation } from './network-relation';
@@ -47,8 +48,8 @@ export interface ActionResource {
47
48
  type_human_readable: string;
48
49
  /**
49
50
  * The resource data of type specified on `resource.type`
50
- * @type {ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | SubnetRelation | VirtualHostRelation}
51
+ * @type {ApplicationRelation | CredentialRelation | CronJobRelation | DaemonRelation | NetworkRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | SubnetRelation | VirtualHostRelation}
51
52
  * @memberof ActionResource
52
53
  */
53
- data?: ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | SubnetRelation | VirtualHostRelation | null;
54
+ data?: ApplicationRelation | CredentialRelation | CronJobRelation | DaemonRelation | NetworkRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | SubnetRelation | VirtualHostRelation | null;
54
55
  }
@@ -0,0 +1,56 @@
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 { CloudProviderCode } from './cloud-provider-code';
13
+ import { ProviderType } from './provider-type';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ActionTargetCredentialData
18
+ */
19
+ export interface ActionTargetCredentialData {
20
+ /**
21
+ * The unique id of the credential
22
+ * @type {number}
23
+ * @memberof ActionTargetCredentialData
24
+ */
25
+ id: number;
26
+ /**
27
+ * The name of the credential
28
+ * @type {string}
29
+ * @memberof ActionTargetCredentialData
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {ProviderType}
35
+ * @memberof ActionTargetCredentialData
36
+ */
37
+ provider_type: ProviderType;
38
+ /**
39
+ *
40
+ * @type {CloudProviderCode}
41
+ * @memberof ActionTargetCredentialData
42
+ */
43
+ provider_code: CloudProviderCode;
44
+ /**
45
+ * The name of the cloud provider of the credential
46
+ * @type {string}
47
+ * @memberof ActionTargetCredentialData
48
+ */
49
+ provider_name: string;
50
+ /**
51
+ * The human readable version of the provider name
52
+ * @type {string}
53
+ * @memberof ActionTargetCredentialData
54
+ */
55
+ provider_name_human_readable: string;
56
+ }
@@ -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 });
@@ -9,10 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ActionTargetCredentialData } from './action-target-credential-data';
12
13
  import { ActionTargetNetworkData } from './action-target-network-data';
13
14
  import { ActionTargetServerData } from './action-target-server-data';
14
15
  /**
15
16
  * @type ActionTargetData
16
17
  * @export
17
18
  */
18
- export type ActionTargetData = ActionTargetNetworkData | ActionTargetServerData;
19
+ export type ActionTargetData = ActionTargetCredentialData | ActionTargetNetworkData | ActionTargetServerData;
@@ -33,13 +33,13 @@ export interface ActionTargetNetworkData {
33
33
  * @type {string}
34
34
  * @memberof ActionTargetNetworkData
35
35
  */
36
- provider_name: string;
36
+ provider_name?: string;
37
37
  /**
38
38
  * The human readable version of the cloud provider\'s name
39
39
  * @type {string}
40
40
  * @memberof ActionTargetNetworkData
41
41
  */
42
- provider_name_human_readable: string;
42
+ provider_name_human_readable?: string;
43
43
  /**
44
44
  *
45
45
  * @type {NetworkProvisionInput}
@@ -46,7 +46,7 @@ export interface ActionTargetServerData {
46
46
  * @type {string}
47
47
  * @memberof ActionTargetServerData
48
48
  */
49
- ip_address: string;
49
+ ip_address: string | null;
50
50
  /**
51
51
  * The network port to which the SSH daemon is listening to SSH connections on the server
52
52
  * @type {number}
@@ -54,14 +54,14 @@ export interface ActionTriggeredFrom {
54
54
  user_id: number | null;
55
55
  /**
56
56
  * The hook\'s ID if the action have been triggered by a hook.
57
- * @type {number}
57
+ * @type {string}
58
58
  * @memberof ActionTriggeredFrom
59
59
  */
60
- hook_id: number | null;
60
+ hook_id: string | null;
61
61
  /**
62
62
  * The hook request\'s ID if the action have been triggered by a hook.
63
- * @type {number}
63
+ * @type {string}
64
64
  * @memberof ActionTriggeredFrom
65
65
  */
66
- hook_request_id: number | null;
66
+ hook_request_id: string | null;
67
67
  }
@@ -15,13 +15,14 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum ActionType {
18
- Configure = "configure",
19
18
  CheckProvisioned = "check_provisioned",
19
+ Configure = "configure",
20
20
  Delete = "delete",
21
21
  Deploy = "deploy",
22
22
  GetStatus = "get_status",
23
23
  Provision = "provision",
24
24
  Reload = "reload",
25
+ Remove = "remove",
25
26
  Restart = "restart",
26
27
  Start = "start",
27
28
  Stop = "stop"
@@ -20,13 +20,14 @@ exports.ActionType = void 0;
20
20
  */
21
21
  var ActionType;
22
22
  (function (ActionType) {
23
- ActionType["Configure"] = "configure";
24
23
  ActionType["CheckProvisioned"] = "check_provisioned";
24
+ ActionType["Configure"] = "configure";
25
25
  ActionType["Delete"] = "delete";
26
26
  ActionType["Deploy"] = "deploy";
27
27
  ActionType["GetStatus"] = "get_status";
28
28
  ActionType["Provision"] = "provision";
29
29
  ActionType["Reload"] = "reload";
30
+ ActionType["Remove"] = "remove";
30
31
  ActionType["Restart"] = "restart";
31
32
  ActionType["Start"] = "start";
32
33
  ActionType["Stop"] = "stop";
@@ -106,7 +106,7 @@ export interface ApplicationRelation {
106
106
  * @type {string}
107
107
  * @memberof ApplicationRelation
108
108
  */
109
- root_directory: string;
109
+ root_directory: string | null;
110
110
  /**
111
111
  * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions
112
112
  * @type {number}
@@ -142,11 +142,11 @@ export interface ApplicationRelation {
142
142
  * @type {string}
143
143
  * @memberof ApplicationRelation
144
144
  */
145
- created_at: string;
145
+ created_at?: string;
146
146
  /**
147
147
  * The date and time when the record was last updated
148
148
  * @type {string}
149
149
  * @memberof ApplicationRelation
150
150
  */
151
- updated_at: string;
151
+ updated_at?: string;
152
152
  }
@@ -65,11 +65,11 @@ export interface CredentialRelation {
65
65
  * @type {string}
66
66
  * @memberof CredentialRelation
67
67
  */
68
- created_at: string;
68
+ created_at?: string;
69
69
  /**
70
70
  * The date and time when the record was last updated
71
71
  * @type {string}
72
72
  * @memberof CredentialRelation
73
73
  */
74
- updated_at: string;
74
+ updated_at?: string;
75
75
  }
@@ -66,29 +66,29 @@ export interface CronJobRelation {
66
66
  * @type {ActionRelationShallow}
67
67
  * @memberof CronJobRelation
68
68
  */
69
- last_action: ActionRelationShallow | null;
69
+ last_action?: ActionRelationShallow | null;
70
70
  /**
71
71
  *
72
72
  * @type {UserRelation}
73
73
  * @memberof CronJobRelation
74
74
  */
75
- created_by_user: UserRelation;
75
+ created_by_user?: UserRelation;
76
76
  /**
77
77
  *
78
78
  * @type {ApplicationRelation}
79
79
  * @memberof CronJobRelation
80
80
  */
81
- application: ApplicationRelation | null;
81
+ application?: ApplicationRelation | null;
82
82
  /**
83
83
  * The date and time when the record was created
84
84
  * @type {string}
85
85
  * @memberof CronJobRelation
86
86
  */
87
- created_at: string;
87
+ created_at?: string;
88
88
  /**
89
89
  * The date and time when the record was last updated
90
90
  * @type {string}
91
91
  * @memberof CronJobRelation
92
92
  */
93
- updated_at: string;
93
+ updated_at?: string;
94
94
  }
@@ -65,7 +65,7 @@ export interface DaemonRelation {
65
65
  * @type {ActionRelationShallow}
66
66
  * @memberof DaemonRelation
67
67
  */
68
- last_action: ActionRelationShallow | null;
68
+ last_action?: ActionRelationShallow | null;
69
69
  /**
70
70
  *
71
71
  * @type {ApplicationRelation}
@@ -77,17 +77,17 @@ export interface DaemonRelation {
77
77
  * @type {UserRelation}
78
78
  * @memberof DaemonRelation
79
79
  */
80
- created_by_user: UserRelation;
80
+ created_by_user?: UserRelation;
81
81
  /**
82
82
  * The date and time when the record was created
83
83
  * @type {string}
84
84
  * @memberof DaemonRelation
85
85
  */
86
- created_at: string;
86
+ created_at?: string;
87
87
  /**
88
88
  * The date and time when the record was last updated
89
89
  * @type {string}
90
90
  * @memberof DaemonRelation
91
91
  */
92
- updated_at: string;
92
+ updated_at?: string;
93
93
  }
@@ -15,6 +15,7 @@ export * from './action-step';
15
15
  export * from './action-summary';
16
16
  export * from './action-summary-target';
17
17
  export * from './action-target';
18
+ export * from './action-target-credential-data';
18
19
  export * from './action-target-data';
19
20
  export * from './action-target-log-step';
20
21
  export * from './action-target-network-data';
@@ -31,6 +31,7 @@ __exportStar(require("./action-step"), exports);
31
31
  __exportStar(require("./action-summary"), exports);
32
32
  __exportStar(require("./action-summary-target"), exports);
33
33
  __exportStar(require("./action-target"), exports);
34
+ __exportStar(require("./action-target-credential-data"), exports);
34
35
  __exportStar(require("./action-target-data"), exports);
35
36
  __exportStar(require("./action-target-log-step"), exports);
36
37
  __exportStar(require("./action-target-network-data"), exports);
@@ -65,7 +65,7 @@ export interface NetworkRelation {
65
65
  * @type {Credential}
66
66
  * @memberof NetworkRelation
67
67
  */
68
- credential: Credential;
68
+ credential?: Credential;
69
69
  /**
70
70
  * The networks\'s name
71
71
  * @type {string}
@@ -83,17 +83,17 @@ export interface NetworkRelation {
83
83
  * @type {ActionRelationShallow}
84
84
  * @memberof NetworkRelation
85
85
  */
86
- last_action: ActionRelationShallow | null;
86
+ last_action?: ActionRelationShallow | null;
87
87
  /**
88
88
  * The date and time when the record was created
89
89
  * @type {string}
90
90
  * @memberof NetworkRelation
91
91
  */
92
- created_at: string;
92
+ created_at?: string;
93
93
  /**
94
94
  * The date and time when the record was last updated
95
95
  * @type {string}
96
96
  * @memberof NetworkRelation
97
97
  */
98
- updated_at: string;
98
+ updated_at?: string;
99
99
  }
@@ -65,7 +65,7 @@ export interface NetworkRuleRelation {
65
65
  * @type {ActionRelationShallow}
66
66
  * @memberof NetworkRuleRelation
67
67
  */
68
- last_action: ActionRelationShallow | null;
68
+ last_action?: ActionRelationShallow | null;
69
69
  /**
70
70
  * The date and time when the record was created
71
71
  * @type {string}
@@ -59,7 +59,7 @@ export interface ServerRelation {
59
59
  * @type {CredentialRelation}
60
60
  * @memberof ServerRelation
61
61
  */
62
- credential: CredentialRelation | null;
62
+ credential?: CredentialRelation | null;
63
63
  /**
64
64
  * The region in which the server is located
65
65
  * @type {string}
@@ -101,17 +101,17 @@ export interface ServerRelation {
101
101
  * @type {ActionRelationShallow}
102
102
  * @memberof ServerRelation
103
103
  */
104
- last_action: ActionRelationShallow | null;
104
+ last_action?: ActionRelationShallow | null;
105
105
  /**
106
106
  * The date and time when the record was created
107
107
  * @type {string}
108
108
  * @memberof ServerRelation
109
109
  */
110
- created_at: string;
110
+ created_at?: string;
111
111
  /**
112
112
  * The date and time when the record was last updated
113
113
  * @type {string}
114
114
  * @memberof ServerRelation
115
115
  */
116
- updated_at: string;
116
+ updated_at?: string;
117
117
  }
@@ -76,17 +76,17 @@ export interface ServiceRelation {
76
76
  * @type {ActionRelationShallow}
77
77
  * @memberof ServiceRelation
78
78
  */
79
- last_action: ActionRelationShallow | null;
79
+ last_action?: ActionRelationShallow | null;
80
80
  /**
81
81
  * The date and time when the record was created
82
82
  * @type {string}
83
83
  * @memberof ServiceRelation
84
84
  */
85
- created_at: string;
85
+ created_at?: string;
86
86
  /**
87
87
  * The date and time when the record was last updated
88
88
  * @type {string}
89
89
  * @memberof ServiceRelation
90
90
  */
91
- updated_at: string;
91
+ updated_at?: string;
92
92
  }
@@ -60,7 +60,7 @@ export interface SslCertificateRelation {
60
60
  * @type {ActionRelationShallow}
61
61
  * @memberof SslCertificateRelation
62
62
  */
63
- last_action: ActionRelationShallow | null;
63
+ last_action?: ActionRelationShallow | null;
64
64
  /**
65
65
  * The date and time when this certificate will no longer be valid, down to minute precision
66
66
  * @type {string}
@@ -78,11 +78,11 @@ export interface SslCertificateRelation {
78
78
  * @type {string}
79
79
  * @memberof SslCertificateRelation
80
80
  */
81
- created_at: string;
81
+ created_at?: string;
82
82
  /**
83
83
  * The date and time when the record was last updated
84
84
  * @type {string}
85
85
  * @memberof SslCertificateRelation
86
86
  */
87
- updated_at: string;
87
+ updated_at?: string;
88
88
  }
@@ -37,7 +37,7 @@ export interface VirtualHostRelation {
37
37
  * @type {string}
38
38
  * @memberof VirtualHostRelation
39
39
  */
40
- type_human_readable: string;
40
+ type_human_readable?: string;
41
41
  /**
42
42
  * The name of the Virtual Host
43
43
  * @type {string}
@@ -73,23 +73,23 @@ export interface VirtualHostRelation {
73
73
  * @type {ActionRelationShallow}
74
74
  * @memberof VirtualHostRelation
75
75
  */
76
- last_action: ActionRelationShallow | null;
76
+ last_action?: ActionRelationShallow | null;
77
77
  /**
78
78
  *
79
79
  * @type {UserRelation}
80
80
  * @memberof VirtualHostRelation
81
81
  */
82
- created_by_user: UserRelation;
82
+ created_by_user?: UserRelation;
83
83
  /**
84
84
  * The date and time when the record was created
85
85
  * @type {string}
86
86
  * @memberof VirtualHostRelation
87
87
  */
88
- created_at: string;
88
+ created_at?: string;
89
89
  /**
90
90
  * The date and time when the record was updated
91
91
  * @type {string}
92
92
  * @memberof VirtualHostRelation
93
93
  */
94
- updated_at: string;
94
+ updated_at?: string;
95
95
  }
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.163.3",
4
+ "version": "2.163.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "homepage": "https://github.com/devopness/devopness#readme",
53
53
  "devDependencies": {
54
- "@eslint/js": "^9.25.0",
54
+ "@eslint/js": "^9.26.0",
55
55
  "@openapitools/openapi-generator-cli": "^2.20.0",
56
56
  "@types/jest": "^29.5.12",
57
57
  "@typescript-eslint/parser": "^8.31.1",