@devopness/sdk-js 1.95.0 → 1.97.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/DevopnessApiClient.d.ts +2 -0
- package/dist/DevopnessApiClient.js +2 -0
- package/dist/api/generated/apis/resource-events-api.d.ts +28 -0
- package/dist/api/generated/apis/resource-events-api.js +62 -0
- package/dist/api/generated/models/application-create.d.ts +3 -3
- package/dist/api/generated/models/application-update.d.ts +3 -3
- package/dist/api/generated/models/application.d.ts +3 -3
- package/dist/api/generated/models/cloud-provider-property-type.d.ts +1 -0
- package/dist/api/generated/models/cloud-provider-property-type.js +1 -0
- package/dist/api/generated/models/cloud-provider-settings.d.ts +25 -0
- package/dist/api/generated/models/cloud-provider-settings.js +14 -0
- package/dist/api/generated/models/credential-aws.d.ts +30 -0
- package/dist/api/generated/models/credential-aws.js +14 -0
- package/dist/api/generated/models/credential-create.d.ts +5 -10
- package/dist/api/generated/models/credential-digital-ocean.d.ts +24 -0
- package/dist/api/generated/models/credential-digital-ocean.js +14 -0
- package/dist/api/generated/models/credential-google-cloud.d.ts +24 -0
- package/dist/api/generated/models/credential-google-cloud.js +14 -0
- package/dist/api/generated/models/credential-setting.d.ts +27 -0
- package/dist/api/generated/models/credential-setting.js +14 -0
- package/dist/api/generated/models/index.d.ts +6 -0
- package/dist/api/generated/models/index.js +11 -1
- package/dist/api/generated/models/provider.d.ts +4 -4
- package/dist/api/generated/models/resource-event.d.ts +66 -0
- package/dist/api/generated/models/resource-event.js +14 -0
- package/dist/api/generated/models/service-name.d.ts +1 -0
- package/dist/api/generated/models/service-name.js +1 -0
- package/dist/api/generated/models/variable-create.d.ts +2 -2
- package/dist/api/generated/models/variable-target.d.ts +1 -9
- package/dist/api/generated/models/variable-target.js +1 -9
- package/dist/api/generated/models/variable-type.d.ts +0 -1
- package/dist/api/generated/models/variable-type.js +0 -1
- package/dist/api/generated/models/variable-update.d.ts +0 -6
- package/dist/index.js +5 -1
- package/dist/services/ResourceEventService.d.ts +3 -0
- package/dist/services/ResourceEventService.js +7 -0
- package/package.json +4 -4
|
@@ -24,6 +24,7 @@ import { HookRequestService } from './services/HookRequestService';
|
|
|
24
24
|
import { CloudProviderService } from './services/CloudProviderService';
|
|
25
25
|
import { InvitationService } from './services/InvitationService';
|
|
26
26
|
import { TeamService } from './services/TeamService';
|
|
27
|
+
import { ResourceEventService } from './services/ResourceEventService';
|
|
27
28
|
export declare class DevopnessApiClient {
|
|
28
29
|
actions: ActionsApiService;
|
|
29
30
|
applications: ApplicationService;
|
|
@@ -39,6 +40,7 @@ export declare class DevopnessApiClient {
|
|
|
39
40
|
networkRules: NetworkRuleService;
|
|
40
41
|
outgoingHooks: HookOutgoingService;
|
|
41
42
|
projects: ProjectService;
|
|
43
|
+
resourceEvents: ResourceEventService;
|
|
42
44
|
scripts: ScriptService;
|
|
43
45
|
servers: ServerService;
|
|
44
46
|
services: ServiceService;
|
|
@@ -27,6 +27,7 @@ const HookRequestService_1 = require("./services/HookRequestService");
|
|
|
27
27
|
const CloudProviderService_1 = require("./services/CloudProviderService");
|
|
28
28
|
const InvitationService_1 = require("./services/InvitationService");
|
|
29
29
|
const TeamService_1 = require("./services/TeamService");
|
|
30
|
+
const ResourceEventService_1 = require("./services/ResourceEventService");
|
|
30
31
|
class DevopnessApiClient {
|
|
31
32
|
constructor(options) {
|
|
32
33
|
ApiBaseService_1.ApiBaseService.configuration = new ApiBaseService_1.Configuration(options || {});
|
|
@@ -47,6 +48,7 @@ class DevopnessApiClient {
|
|
|
47
48
|
this.networkRules = new NetworkRuleService_1.NetworkRuleService();
|
|
48
49
|
this.outgoingHooks = new HookOutgoingService_1.HookOutgoingService();
|
|
49
50
|
this.projects = new ProjectService_1.ProjectService();
|
|
51
|
+
this.resourceEvents = new ResourceEventService_1.ResourceEventService();
|
|
50
52
|
this.scripts = new ScriptService_1.ScriptService();
|
|
51
53
|
this.servers = new ServerService_1.ServerService();
|
|
52
54
|
this.services = new ServiceService_1.ServiceService();
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
+
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { ResourceEvent } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* ResourceEventsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class ResourceEventsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Return a list of all events belonging to a resource
|
|
22
|
+
* @param {string} resourceType The resource type to get related events
|
|
23
|
+
* @param {number} resourceId Unique ID of the resource that\'s being searched
|
|
24
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
25
|
+
* @param {number} [perPage] Number of items returned per page
|
|
26
|
+
*/
|
|
27
|
+
listResourceEvents(resourceType: string, resourceId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceEvent>>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ResourceEventsApiService = void 0;
|
|
25
|
+
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
+
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
/**
|
|
29
|
+
* ResourceEventsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class ResourceEventsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Return a list of all events belonging to a resource
|
|
35
|
+
* @param {string} resourceType The resource type to get related events
|
|
36
|
+
* @param {number} resourceId Unique ID of the resource that\'s being searched
|
|
37
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
38
|
+
* @param {number} [perPage] Number of items returned per page
|
|
39
|
+
*/
|
|
40
|
+
listResourceEvents(resourceType, resourceId, page, perPage) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
if (resourceType === null || resourceType === undefined) {
|
|
43
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceEvents');
|
|
44
|
+
}
|
|
45
|
+
if (resourceId === null || resourceId === undefined) {
|
|
46
|
+
throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceEvents');
|
|
47
|
+
}
|
|
48
|
+
let queryString = '';
|
|
49
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
50
|
+
for (const key in queryParams) {
|
|
51
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
55
|
+
}
|
|
56
|
+
const requestUrl = '/events/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
57
|
+
const response = yield this.get(requestUrl.replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))));
|
|
58
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.ResourceEventsApiService = ResourceEventsApiService;
|
|
@@ -54,7 +54,7 @@ export interface ApplicationCreate {
|
|
|
54
54
|
*/
|
|
55
55
|
default_branch: string;
|
|
56
56
|
/**
|
|
57
|
-
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are
|
|
57
|
+
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`
|
|
58
58
|
* @type {boolean}
|
|
59
59
|
* @memberof ApplicationCreate
|
|
60
60
|
*/
|
|
@@ -90,7 +90,7 @@ export interface ApplicationCreate {
|
|
|
90
90
|
*/
|
|
91
91
|
public_directory: string;
|
|
92
92
|
/**
|
|
93
|
-
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that
|
|
93
|
+
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started.
|
|
94
94
|
* @type {string}
|
|
95
95
|
* @memberof ApplicationCreate
|
|
96
96
|
*/
|
|
@@ -108,7 +108,7 @@ export interface ApplicationCreate {
|
|
|
108
108
|
*/
|
|
109
109
|
build_command?: string;
|
|
110
110
|
/**
|
|
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
|
|
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}
|
|
113
113
|
* @memberof ApplicationCreate
|
|
114
114
|
*/
|
|
@@ -54,7 +54,7 @@ export interface ApplicationUpdate {
|
|
|
54
54
|
*/
|
|
55
55
|
default_branch: string;
|
|
56
56
|
/**
|
|
57
|
-
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are
|
|
57
|
+
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`
|
|
58
58
|
* @type {boolean}
|
|
59
59
|
* @memberof ApplicationUpdate
|
|
60
60
|
*/
|
|
@@ -90,7 +90,7 @@ export interface ApplicationUpdate {
|
|
|
90
90
|
*/
|
|
91
91
|
public_directory: string;
|
|
92
92
|
/**
|
|
93
|
-
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that
|
|
93
|
+
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path, a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started.
|
|
94
94
|
* @type {string}
|
|
95
95
|
* @memberof ApplicationUpdate
|
|
96
96
|
*/
|
|
@@ -102,7 +102,7 @@ export interface ApplicationUpdate {
|
|
|
102
102
|
*/
|
|
103
103
|
listening_address?: string;
|
|
104
104
|
/**
|
|
105
|
-
* 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
|
|
105
|
+
* 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
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof ApplicationUpdate
|
|
108
108
|
*/
|
|
@@ -78,7 +78,7 @@ export interface Application {
|
|
|
78
78
|
*/
|
|
79
79
|
default_branch: string;
|
|
80
80
|
/**
|
|
81
|
-
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are
|
|
81
|
+
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`
|
|
82
82
|
* @type {boolean}
|
|
83
83
|
* @memberof Application
|
|
84
84
|
*/
|
|
@@ -114,7 +114,7 @@ export interface Application {
|
|
|
114
114
|
*/
|
|
115
115
|
public_directory: string;
|
|
116
116
|
/**
|
|
117
|
-
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that
|
|
117
|
+
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started.
|
|
118
118
|
* @type {string}
|
|
119
119
|
* @memberof Application
|
|
120
120
|
*/
|
|
@@ -126,7 +126,7 @@ export interface Application {
|
|
|
126
126
|
*/
|
|
127
127
|
listening_address?: string | null;
|
|
128
128
|
/**
|
|
129
|
-
* 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
|
|
129
|
+
* 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
|
|
130
130
|
* @type {number}
|
|
131
131
|
* @memberof Application
|
|
132
132
|
*/
|
|
@@ -21,6 +21,7 @@ exports.CloudProviderPropertyType = void 0;
|
|
|
21
21
|
var CloudProviderPropertyType;
|
|
22
22
|
(function (CloudProviderPropertyType) {
|
|
23
23
|
CloudProviderPropertyType["String"] = "string";
|
|
24
|
+
CloudProviderPropertyType["Text"] = "text";
|
|
24
25
|
CloudProviderPropertyType["Integer"] = "integer";
|
|
25
26
|
CloudProviderPropertyType["Boolean"] = "boolean";
|
|
26
27
|
})(CloudProviderPropertyType = exports.CloudProviderPropertyType || (exports.CloudProviderPropertyType = {}));
|
|
@@ -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 { CloudProviderProperty } from './cloud-provider-property';
|
|
13
|
+
/**
|
|
14
|
+
* Settings of the cloud provider
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CloudProviderSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface CloudProviderSettings {
|
|
19
|
+
/**
|
|
20
|
+
* Settings of the cloud provider credential
|
|
21
|
+
* @type {Array<CloudProviderProperty>}
|
|
22
|
+
* @memberof CloudProviderSettings
|
|
23
|
+
*/
|
|
24
|
+
credential?: Array<CloudProviderProperty>;
|
|
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,30 @@
|
|
|
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 CredentialAws
|
|
16
|
+
*/
|
|
17
|
+
export interface CredentialAws {
|
|
18
|
+
/**
|
|
19
|
+
* The key used to authenticate on AWS cloud provider
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CredentialAws
|
|
22
|
+
*/
|
|
23
|
+
access_key: string;
|
|
24
|
+
/**
|
|
25
|
+
* The secret used to authenticate on AWS cloud provider
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CredentialAws
|
|
28
|
+
*/
|
|
29
|
+
secret: string;
|
|
30
|
+
}
|
|
@@ -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,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CredentialSetting } from './credential-setting';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,7 +21,7 @@ export interface CredentialCreate {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof CredentialCreate
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
provider_code: string;
|
|
24
25
|
/**
|
|
25
26
|
* A name to uniquely identify this cloud provider credential
|
|
26
27
|
* @type {string}
|
|
@@ -28,15 +29,9 @@ export interface CredentialCreate {
|
|
|
28
29
|
*/
|
|
29
30
|
name: string;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
33
|
-
* @memberof CredentialCreate
|
|
34
|
-
*/
|
|
35
|
-
access_key: string;
|
|
36
|
-
/**
|
|
37
|
-
* The secret used to authenticate on this cloud provider
|
|
38
|
-
* @type {string}
|
|
32
|
+
*
|
|
33
|
+
* @type {CredentialSetting}
|
|
39
34
|
* @memberof CredentialCreate
|
|
40
35
|
*/
|
|
41
|
-
|
|
36
|
+
settings: CredentialSetting;
|
|
42
37
|
}
|
|
@@ -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 CredentialDigitalOcean
|
|
16
|
+
*/
|
|
17
|
+
export interface CredentialDigitalOcean {
|
|
18
|
+
/**
|
|
19
|
+
* The API token used to authenticate to DigitalOcean
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CredentialDigitalOcean
|
|
22
|
+
*/
|
|
23
|
+
api_token: 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,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 CredentialGoogleCloud
|
|
16
|
+
*/
|
|
17
|
+
export interface CredentialGoogleCloud {
|
|
18
|
+
/**
|
|
19
|
+
* The JSON key to service account of Google Cloud provider.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CredentialGoogleCloud
|
|
22
|
+
*/
|
|
23
|
+
service_account_key: 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,27 @@
|
|
|
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 { CredentialAws } from './credential-aws';
|
|
13
|
+
import { CredentialDigitalOcean } from './credential-digital-ocean';
|
|
14
|
+
import { CredentialGoogleCloud } from './credential-google-cloud';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CredentialSetting
|
|
19
|
+
*/
|
|
20
|
+
export interface CredentialSetting {
|
|
21
|
+
/**
|
|
22
|
+
* Cloud provider credential
|
|
23
|
+
* @type {CredentialAws | CredentialDigitalOcean | CredentialGoogleCloud}
|
|
24
|
+
* @memberof CredentialSetting
|
|
25
|
+
*/
|
|
26
|
+
credential: CredentialAws | CredentialDigitalOcean | CredentialGoogleCloud;
|
|
27
|
+
}
|
|
@@ -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 });
|
|
@@ -29,10 +29,15 @@ export * from './cloud-provider';
|
|
|
29
29
|
export * from './cloud-provider-property';
|
|
30
30
|
export * from './cloud-provider-property-type';
|
|
31
31
|
export * from './cloud-provider-property-validation';
|
|
32
|
+
export * from './cloud-provider-settings';
|
|
32
33
|
export * from './cloud-service';
|
|
33
34
|
export * from './commit';
|
|
34
35
|
export * from './credential';
|
|
36
|
+
export * from './credential-aws';
|
|
35
37
|
export * from './credential-create';
|
|
38
|
+
export * from './credential-digital-ocean';
|
|
39
|
+
export * from './credential-google-cloud';
|
|
40
|
+
export * from './credential-setting';
|
|
36
41
|
export * from './cron-job';
|
|
37
42
|
export * from './cron-job-create';
|
|
38
43
|
export * from './cron-job-frequency';
|
|
@@ -104,6 +109,7 @@ export * from './provider-region';
|
|
|
104
109
|
export * from './repository';
|
|
105
110
|
export * from './repository-branch';
|
|
106
111
|
export * from './resource';
|
|
112
|
+
export * from './resource-event';
|
|
107
113
|
export * from './resource-type';
|
|
108
114
|
export * from './script';
|
|
109
115
|
export * from './script-create';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -41,10 +45,15 @@ __exportStar(require("./cloud-provider"), exports);
|
|
|
41
45
|
__exportStar(require("./cloud-provider-property"), exports);
|
|
42
46
|
__exportStar(require("./cloud-provider-property-type"), exports);
|
|
43
47
|
__exportStar(require("./cloud-provider-property-validation"), exports);
|
|
48
|
+
__exportStar(require("./cloud-provider-settings"), exports);
|
|
44
49
|
__exportStar(require("./cloud-service"), exports);
|
|
45
50
|
__exportStar(require("./commit"), exports);
|
|
46
51
|
__exportStar(require("./credential"), exports);
|
|
52
|
+
__exportStar(require("./credential-aws"), exports);
|
|
47
53
|
__exportStar(require("./credential-create"), exports);
|
|
54
|
+
__exportStar(require("./credential-digital-ocean"), exports);
|
|
55
|
+
__exportStar(require("./credential-google-cloud"), exports);
|
|
56
|
+
__exportStar(require("./credential-setting"), exports);
|
|
48
57
|
__exportStar(require("./cron-job"), exports);
|
|
49
58
|
__exportStar(require("./cron-job-create"), exports);
|
|
50
59
|
__exportStar(require("./cron-job-frequency"), exports);
|
|
@@ -116,6 +125,7 @@ __exportStar(require("./provider-region"), exports);
|
|
|
116
125
|
__exportStar(require("./repository"), exports);
|
|
117
126
|
__exportStar(require("./repository-branch"), exports);
|
|
118
127
|
__exportStar(require("./resource"), exports);
|
|
128
|
+
__exportStar(require("./resource-event"), exports);
|
|
119
129
|
__exportStar(require("./resource-type"), exports);
|
|
120
130
|
__exportStar(require("./script"), exports);
|
|
121
131
|
__exportStar(require("./script-create"), exports);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { CloudProviderSettings } from './cloud-provider-settings';
|
|
13
13
|
import { CloudService } from './cloud-service';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -48,9 +48,9 @@ export interface Provider {
|
|
|
48
48
|
*/
|
|
49
49
|
cloud_services: Array<CloudService>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {
|
|
51
|
+
*
|
|
52
|
+
* @type {CloudProviderSettings}
|
|
53
53
|
* @memberof Provider
|
|
54
54
|
*/
|
|
55
|
-
settings:
|
|
55
|
+
settings: CloudProviderSettings;
|
|
56
56
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ResourceEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface ResourceEvent {
|
|
18
|
+
/**
|
|
19
|
+
* The unique id of the event
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ResourceEvent
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* The event type
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResourceEvent
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* The type of the resource that triggered the event
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResourceEvent
|
|
34
|
+
*/
|
|
35
|
+
resource_type: string;
|
|
36
|
+
/**
|
|
37
|
+
* The id of the resource that triggered the event
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ResourceEvent
|
|
40
|
+
*/
|
|
41
|
+
resource_id: number;
|
|
42
|
+
/**
|
|
43
|
+
* Text describing the event\'s origin and output
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ResourceEvent
|
|
46
|
+
*/
|
|
47
|
+
message?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* ID of the user who triggered the event
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ResourceEvent
|
|
52
|
+
*/
|
|
53
|
+
triggered_by?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* The date and time when the record was created
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ResourceEvent
|
|
58
|
+
*/
|
|
59
|
+
created_at: string;
|
|
60
|
+
/**
|
|
61
|
+
* The date and time when the record was last updated
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ResourceEvent
|
|
64
|
+
*/
|
|
65
|
+
updated_at: string;
|
|
66
|
+
}
|
|
@@ -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 });
|
|
@@ -18,13 +18,13 @@ import { VariableType } from './variable-type';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface VariableCreate {
|
|
20
20
|
/**
|
|
21
|
-
* The unique key used to identify the variable on the target
|
|
21
|
+
* The unique key used to identify the variable on the target. When variable is of type `file`, this is the relative path to the file within the application directory.
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof VariableCreate
|
|
24
24
|
*/
|
|
25
25
|
key: string;
|
|
26
26
|
/**
|
|
27
|
-
* The value to be assigned to this variable when deployed to its target
|
|
27
|
+
* The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof VariableCreate
|
|
30
30
|
*/
|
|
@@ -15,13 +15,5 @@
|
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum VariableTarget {
|
|
18
|
-
|
|
19
|
-
DeploymentScript = "deployment-script",
|
|
20
|
-
SharedScript = "shared-script",
|
|
21
|
-
NginxBlockHttpBefore = "nginx-block-http-before",
|
|
22
|
-
NginxBlockHttpAfter = "nginx-block-http-after",
|
|
23
|
-
NginxBlockServer = "nginx-block-server",
|
|
24
|
-
OsEnvVar = "os-env-var",
|
|
25
|
-
PhpCli = "php-cli",
|
|
26
|
-
PhpWeb = "php-web"
|
|
18
|
+
ResourceConfigFile = "resource-config-file"
|
|
27
19
|
}
|
|
@@ -20,13 +20,5 @@ exports.VariableTarget = void 0;
|
|
|
20
20
|
*/
|
|
21
21
|
var VariableTarget;
|
|
22
22
|
(function (VariableTarget) {
|
|
23
|
-
VariableTarget["
|
|
24
|
-
VariableTarget["DeploymentScript"] = "deployment-script";
|
|
25
|
-
VariableTarget["SharedScript"] = "shared-script";
|
|
26
|
-
VariableTarget["NginxBlockHttpBefore"] = "nginx-block-http-before";
|
|
27
|
-
VariableTarget["NginxBlockHttpAfter"] = "nginx-block-http-after";
|
|
28
|
-
VariableTarget["NginxBlockServer"] = "nginx-block-server";
|
|
29
|
-
VariableTarget["OsEnvVar"] = "os-env-var";
|
|
30
|
-
VariableTarget["PhpCli"] = "php-cli";
|
|
31
|
-
VariableTarget["PhpWeb"] = "php-web";
|
|
23
|
+
VariableTarget["ResourceConfigFile"] = "resource-config-file";
|
|
32
24
|
})(VariableTarget = exports.VariableTarget || (exports.VariableTarget = {}));
|
|
@@ -23,12 +23,6 @@ export interface VariableUpdate {
|
|
|
23
23
|
* @memberof VariableUpdate
|
|
24
24
|
*/
|
|
25
25
|
id: number;
|
|
26
|
-
/**
|
|
27
|
-
* The id of the application to be linked
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof VariableUpdate
|
|
30
|
-
*/
|
|
31
|
-
application_id: number;
|
|
32
26
|
/**
|
|
33
27
|
* The unique key used to identify the variable on the target
|
|
34
28
|
* @type {string}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceEventService = void 0;
|
|
4
|
+
const resource_events_api_1 = require("../api/generated/apis/resource-events-api");
|
|
5
|
+
class ResourceEventService extends resource_events_api_1.ResourceEventsApiService {
|
|
6
|
+
}
|
|
7
|
+
exports.ResourceEventService = ResourceEventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devopness/sdk-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"eslint-plugin-node": "^11.1.0",
|
|
57
57
|
"eslint-plugin-promise": "^5.1.0",
|
|
58
58
|
"eslint-plugin-standard": "^5.0.0",
|
|
59
|
-
"husky": "^
|
|
59
|
+
"husky": "^8.0.1",
|
|
60
60
|
"jest": "^27.0.6",
|
|
61
61
|
"ts-jest": "^27.0.3",
|
|
62
62
|
"typedoc": "^0.22.3",
|
|
63
63
|
"typescript": "^4.4.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@types/parse-link-header": "^
|
|
66
|
+
"@types/parse-link-header": "^2.0.0",
|
|
67
67
|
"axios": "^0.21.4",
|
|
68
|
-
"parse-link-header": "^
|
|
68
|
+
"parse-link-header": "^2.0.0"
|
|
69
69
|
}
|
|
70
70
|
}
|