@devopness/sdk-js 1.90.1 → 1.91.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/dist/api/generated/apis/actions-api.d.ts +2 -2
- package/dist/api/generated/apis/users-api.d.ts +2 -1
- package/dist/api/generated/models/accepted-response-message.d.ts +24 -0
- package/dist/api/generated/models/accepted-response-message.js +14 -0
- package/dist/api/generated/models/action-list-item-params.d.ts +25 -0
- package/dist/api/generated/models/action-list-item-params.js +14 -0
- package/dist/api/generated/models/action-list-item.d.ts +18 -0
- package/dist/api/generated/models/action-list-item.js +14 -0
- package/dist/api/generated/models/action-relation.d.ts +7 -0
- package/dist/api/generated/models/daemon-relation.d.ts +1 -1
- package/dist/api/generated/models/daemon.d.ts +15 -1
- package/dist/api/generated/models/index.d.ts +3 -0
- package/dist/api/generated/models/index.js +3 -0
- package/dist/api/generated/models/network-rule.d.ts +14 -0
- package/dist/api/generated/models/resource.d.ts +11 -2
- package/dist/api/generated/models/server.d.ts +3 -2
- package/dist/api/generated/models/ssh-key.d.ts +14 -0
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Action } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { ActionListItem } from '../../generated/models';
|
|
16
16
|
/**
|
|
17
17
|
* ActionsApiService - Auto-generated
|
|
18
18
|
*/
|
|
@@ -29,5 +29,5 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
29
29
|
* @param {number} [page] Number of the page to be retrieved
|
|
30
30
|
* @param {number} [perPage] Number of items returned per page
|
|
31
31
|
*/
|
|
32
|
-
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<
|
|
32
|
+
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
33
33
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { AcceptedResponseMessage } from '../../generated/models';
|
|
14
15
|
import { LoginCredentials } from '../../generated/models';
|
|
15
16
|
import { User } from '../../generated/models';
|
|
16
17
|
import { UserAccountActivate } from '../../generated/models';
|
|
@@ -37,7 +38,7 @@ export declare class UsersApiService extends ApiBaseService {
|
|
|
37
38
|
* @summary Sign up/register a new user
|
|
38
39
|
* @param {UserCreate} userCreate A JSON object containing user essential data
|
|
39
40
|
*/
|
|
40
|
-
addUser(userCreate: UserCreate): Promise<ApiResponse<
|
|
41
|
+
addUser(userCreate: UserCreate): Promise<ApiResponse<AcceptedResponseMessage>>;
|
|
41
42
|
/**
|
|
42
43
|
*
|
|
43
44
|
* @summary Get details of the current user
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* @interface AcceptedResponseMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptedResponseMessage {
|
|
18
|
+
/**
|
|
19
|
+
* Message with information about the response
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptedResponseMessage
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { ServerAction } from './server-action';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ActionListItemParams
|
|
17
|
+
*/
|
|
18
|
+
export interface ActionListItemParams {
|
|
19
|
+
/**
|
|
20
|
+
* List of actions dispatched to servers
|
|
21
|
+
* @type {Array<ServerAction>}
|
|
22
|
+
* @memberof ActionListItemParams
|
|
23
|
+
*/
|
|
24
|
+
servers?: Array<ServerAction>;
|
|
25
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { ActionListItemParams } from './action-list-item-params';
|
|
13
|
+
import { ActionRelation } from './action-relation';
|
|
14
|
+
/**
|
|
15
|
+
* @type ActionListItem
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare type ActionListItem = ActionListItemParams & ActionRelation;
|
|
@@ -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 });
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ActionStatus } from './action-status';
|
|
13
13
|
import { ActionSummary } from './action-summary';
|
|
14
14
|
import { ActionType } from './action-type';
|
|
15
|
+
import { Resource } from './resource';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -42,6 +43,12 @@ export interface ActionRelation {
|
|
|
42
43
|
* @memberof ActionRelation
|
|
43
44
|
*/
|
|
44
45
|
type_human_readable: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Resource}
|
|
49
|
+
* @memberof ActionRelation
|
|
50
|
+
*/
|
|
51
|
+
resource: Resource;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {ActionSummary}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
13
|
import { ApplicationRelation } from './application-relation';
|
|
14
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
14
15
|
import { ProjectRelation } from './project-relation';
|
|
16
|
+
import { ServerRelation } from './server-relation';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -23,7 +25,7 @@ export interface Daemon {
|
|
|
23
25
|
* @type {number}
|
|
24
26
|
* @memberof Daemon
|
|
25
27
|
*/
|
|
26
|
-
id
|
|
28
|
+
id: number;
|
|
27
29
|
/**
|
|
28
30
|
* The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon
|
|
29
31
|
* @type {string}
|
|
@@ -72,6 +74,18 @@ export interface Daemon {
|
|
|
72
74
|
* @memberof Daemon
|
|
73
75
|
*/
|
|
74
76
|
application: ApplicationRelation | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<EnvironmentRelation>}
|
|
80
|
+
* @memberof Daemon
|
|
81
|
+
*/
|
|
82
|
+
environments: Array<EnvironmentRelation>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<ServerRelation>}
|
|
86
|
+
* @memberof Daemon
|
|
87
|
+
*/
|
|
88
|
+
servers: Array<ServerRelation>;
|
|
75
89
|
/**
|
|
76
90
|
*
|
|
77
91
|
* @type {ActionRelation}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './accepted-response-message';
|
|
1
2
|
export * from './action';
|
|
2
3
|
export * from './action-hook-request';
|
|
4
|
+
export * from './action-list-item';
|
|
5
|
+
export * from './action-list-item-params';
|
|
3
6
|
export * from './action-relation';
|
|
4
7
|
export * from './action-status';
|
|
5
8
|
export * from './action-step';
|
|
@@ -10,8 +10,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./accepted-response-message"), exports);
|
|
13
14
|
__exportStar(require("./action"), exports);
|
|
14
15
|
__exportStar(require("./action-hook-request"), exports);
|
|
16
|
+
__exportStar(require("./action-list-item"), exports);
|
|
17
|
+
__exportStar(require("./action-list-item-params"), exports);
|
|
15
18
|
__exportStar(require("./action-relation"), exports);
|
|
16
19
|
__exportStar(require("./action-status"), exports);
|
|
17
20
|
__exportStar(require("./action-step"), exports);
|
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
13
14
|
import { NetworkRuleProtocol } from './network-rule-protocol';
|
|
14
15
|
import { NetworkRuleType } from './network-rule-type';
|
|
16
|
+
import { ServerRelation } from './server-relation';
|
|
15
17
|
import { UserRelation } from './user-relation';
|
|
16
18
|
/**
|
|
17
19
|
*
|
|
@@ -73,6 +75,18 @@ export interface NetworkRule {
|
|
|
73
75
|
* @memberof NetworkRule
|
|
74
76
|
*/
|
|
75
77
|
created_by_user: UserRelation;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<EnvironmentRelation>}
|
|
81
|
+
* @memberof NetworkRule
|
|
82
|
+
*/
|
|
83
|
+
environments: Array<EnvironmentRelation>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<ServerRelation>}
|
|
87
|
+
* @memberof NetworkRule
|
|
88
|
+
*/
|
|
89
|
+
servers: Array<ServerRelation>;
|
|
76
90
|
/**
|
|
77
91
|
*
|
|
78
92
|
* @type {ActionRelation}
|
|
@@ -9,7 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ApplicationRelation } from './application-relation';
|
|
13
|
+
import { CronJobRelation } from './cron-job-relation';
|
|
14
|
+
import { DaemonRelation } from './daemon-relation';
|
|
15
|
+
import { DeploymentRelation } from './deployment-relation';
|
|
16
|
+
import { NetworkRuleRelation } from './network-rule-relation';
|
|
12
17
|
import { ResourceType } from './resource-type';
|
|
18
|
+
import { ServerRelation } from './server-relation';
|
|
19
|
+
import { ServiceRelation } from './service-relation';
|
|
20
|
+
import { SshKeyRelation } from './ssh-key-relation';
|
|
21
|
+
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
13
22
|
/**
|
|
14
23
|
* Object containing the data of the resource and informations about it
|
|
15
24
|
* @export
|
|
@@ -36,8 +45,8 @@ export interface Resource {
|
|
|
36
45
|
type_human_readable: string;
|
|
37
46
|
/**
|
|
38
47
|
* The resource data of type specified on `resource.type`
|
|
39
|
-
* @type {
|
|
48
|
+
* @type {ApplicationRelation | CronJobRelation | DaemonRelation | DeploymentRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
|
|
40
49
|
* @memberof Resource
|
|
41
50
|
*/
|
|
42
|
-
data?:
|
|
51
|
+
data?: ApplicationRelation | CronJobRelation | DaemonRelation | DeploymentRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | null;
|
|
43
52
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionListItem } from './action-list-item';
|
|
12
13
|
import { ActionRelation } from './action-relation';
|
|
13
14
|
import { ActionStatus } from './action-status';
|
|
14
15
|
import { EnvironmentRelation } from './environment-relation';
|
|
@@ -77,10 +78,10 @@ export interface Server {
|
|
|
77
78
|
status?: ActionStatus;
|
|
78
79
|
/**
|
|
79
80
|
* The list of related actions
|
|
80
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<ActionListItem>}
|
|
81
82
|
* @memberof Server
|
|
82
83
|
*/
|
|
83
|
-
actions: Array<
|
|
84
|
+
actions: Array<ActionListItem>;
|
|
84
85
|
/**
|
|
85
86
|
* The list of environments to which the server is linked to
|
|
86
87
|
* @type {Array<EnvironmentRelation>}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
14
|
+
import { ServerRelation } from './server-relation';
|
|
13
15
|
import { UserRelation } from './user-relation';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -53,6 +55,18 @@ export interface SshKey {
|
|
|
53
55
|
* @memberof SshKey
|
|
54
56
|
*/
|
|
55
57
|
created_by_user: UserRelation;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<EnvironmentRelation>}
|
|
61
|
+
* @memberof SshKey
|
|
62
|
+
*/
|
|
63
|
+
environments: Array<EnvironmentRelation>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<ServerRelation>}
|
|
67
|
+
* @memberof SshKey
|
|
68
|
+
*/
|
|
69
|
+
servers: Array<ServerRelation>;
|
|
56
70
|
/**
|
|
57
71
|
*
|
|
58
72
|
* @type {ActionRelation}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devopness/sdk-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.91.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"husky": "^7.0.0",
|
|
60
60
|
"jest": "^27.0.6",
|
|
61
61
|
"ts-jest": "^27.0.3",
|
|
62
|
-
"typedoc": "^0.
|
|
62
|
+
"typedoc": "^0.22.3",
|
|
63
63
|
"typescript": "^4.0.2"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|