@devopness/sdk-js 1.93.2 → 1.96.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.
Files changed (28) hide show
  1. package/dist/DevopnessApiClient.d.ts +2 -0
  2. package/dist/DevopnessApiClient.js +2 -0
  3. package/dist/api/generated/apis/projects-api.d.ts +1 -1
  4. package/dist/api/generated/apis/projects-api.js +1 -1
  5. package/dist/api/generated/apis/resource-events-api.d.ts +28 -0
  6. package/dist/api/generated/apis/resource-events-api.js +62 -0
  7. package/dist/api/generated/apis/services-api.d.ts +8 -0
  8. package/dist/api/generated/apis/services-api.js +20 -0
  9. package/dist/api/generated/models/application-create.d.ts +3 -3
  10. package/dist/api/generated/models/application-update.d.ts +3 -3
  11. package/dist/api/generated/models/application.d.ts +4 -4
  12. package/dist/api/generated/models/deployment-create.d.ts +2 -2
  13. package/dist/api/generated/models/index.d.ts +2 -0
  14. package/dist/api/generated/models/index.js +2 -0
  15. package/dist/api/generated/models/project-relation.d.ts +7 -0
  16. package/dist/api/generated/models/project.d.ts +7 -0
  17. package/dist/api/generated/models/resource-event.d.ts +66 -0
  18. package/dist/api/generated/models/resource-event.js +14 -0
  19. package/dist/api/generated/models/service-update.d.ts +31 -0
  20. package/dist/api/generated/models/service-update.js +14 -0
  21. package/dist/api/generated/models/variable-create.d.ts +2 -2
  22. package/dist/api/generated/models/variable-target.d.ts +1 -9
  23. package/dist/api/generated/models/variable-target.js +1 -9
  24. package/dist/api/generated/models/variable-type.d.ts +0 -1
  25. package/dist/api/generated/models/variable-type.js +0 -1
  26. package/dist/services/ResourceEventService.d.ts +3 -0
  27. package/dist/services/ResourceEventService.js +7 -0
  28. package/package.json +1 -1
@@ -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();
@@ -33,7 +33,7 @@ export declare class ProjectsApiService extends ApiBaseService {
33
33
  getProject(projectId: number): Promise<ApiResponse<Project>>;
34
34
  /**
35
35
  *
36
- * @summary Returns a list of all projects belonging to current user
36
+ * @summary Returns a list of all projects the current user has access to
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
  */
@@ -63,7 +63,7 @@ class ProjectsApiService extends ApiBaseService_1.ApiBaseService {
63
63
  }
64
64
  /**
65
65
  *
66
- * @summary Returns a list of all projects belonging to current user
66
+ * @summary Returns a list of all projects the current user has access to
67
67
  * @param {number} [page] Number of the page to be retrieved
68
68
  * @param {number} [perPage] Number of items returned per page
69
69
  */
@@ -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 type of resource that\&#39;s being searched
23
+ * @param {number} resourceId Unique ID of the resource that\&#39;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 type of resource that\&#39;s being searched
36
+ * @param {number} resourceId Unique ID of the resource that\&#39;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/{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;
@@ -17,6 +17,7 @@ import { ServiceRestart } from '../../generated/models';
17
17
  import { ServiceStart } from '../../generated/models';
18
18
  import { ServiceStatusUpdate } from '../../generated/models';
19
19
  import { ServiceStop } from '../../generated/models';
20
+ import { ServiceUpdate } from '../../generated/models';
20
21
  /**
21
22
  * ServicesApiService - Auto-generated
22
23
  */
@@ -61,6 +62,13 @@ export declare class ServicesApiService extends ApiBaseService {
61
62
  * @param {ServiceStop} serviceStop A JSON object containing the environment id
62
63
  */
63
64
  stopService(serviceId: number, serviceStop: ServiceStop): Promise<ApiResponse<void>>;
65
+ /**
66
+ *
67
+ * @summary Update an existing service
68
+ * @param {number} serviceId The unique id of the service
69
+ * @param {ServiceUpdate} serviceUpdate A JSON object containing service data
70
+ */
71
+ updateService(serviceId: number, serviceUpdate: ServiceUpdate): Promise<ApiResponse<void>>;
64
72
  /**
65
73
  * Trigger a status update action for a service in all project servers asynchronously. To get the output of service status update action the endpoint [getServiceStatusLog](/#operation/getServiceStatusLog) should be invoked.
66
74
  * @summary Update status of a service
@@ -141,6 +141,26 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
141
141
  return new ApiResponse_1.ApiResponse(response);
142
142
  });
143
143
  }
144
+ /**
145
+ *
146
+ * @summary Update an existing service
147
+ * @param {number} serviceId The unique id of the service
148
+ * @param {ServiceUpdate} serviceUpdate A JSON object containing service data
149
+ */
150
+ updateService(serviceId, serviceUpdate) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ if (serviceId === null || serviceId === undefined) {
153
+ throw new Exceptions_1.ArgumentNullException('serviceId', 'updateService');
154
+ }
155
+ if (serviceUpdate === null || serviceUpdate === undefined) {
156
+ throw new Exceptions_1.ArgumentNullException('serviceUpdate', 'updateService');
157
+ }
158
+ let queryString = '';
159
+ const requestUrl = '/services/{service_id}' + (queryString ? `?${queryString}` : '');
160
+ const response = yield this.put(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))), serviceUpdate);
161
+ return new ApiResponse_1.ApiResponse(response);
162
+ });
163
+ }
144
164
  /**
145
165
  * Trigger a status update action for a service in all project servers asynchronously. To get the output of service status update action the endpoint [getServiceStatusLog](/#operation/getServiceStatusLog) should be invoked.
146
166
  * @summary Update status of a service
@@ -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 commited to the `default_branch`
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 initalizes 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 - everytime the application needs to be started.
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 previoius versions
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 commited to the `default_branch`
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 initalizes 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 - everytime the application needs to be started.
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 previoius versions
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 commited to the `default_branch`
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 initalizes 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 - everytime the application needs to be started.
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 previoius versions
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
  */
@@ -172,7 +172,7 @@ export interface Application {
172
172
  * @type {ApplicationLastDeployments}
173
173
  * @memberof Application
174
174
  */
175
- last_deployments: ApplicationLastDeployments;
175
+ last_deployments?: ApplicationLastDeployments;
176
176
  /**
177
177
  *
178
178
  * @type {SourceProvider}
@@ -23,13 +23,13 @@ export interface DeploymentCreate {
23
23
  */
24
24
  type: DeploymentType;
25
25
  /**
26
- *
26
+ * The name of the branch from which the application source code will be retrieved and deployed. This parameter is ignored when `hash` is provided.
27
27
  * @type {string}
28
28
  * @memberof DeploymentCreate
29
29
  */
30
30
  branch: string;
31
31
  /**
32
- *
32
+ * The commit hash from which the application source code will be retrieved and deployed. When provided `branch` parameter is ignored
33
33
  * @type {string}
34
34
  * @memberof DeploymentCreate
35
35
  */
@@ -104,6 +104,7 @@ export * from './provider-region';
104
104
  export * from './repository';
105
105
  export * from './repository-branch';
106
106
  export * from './resource';
107
+ export * from './resource-event';
107
108
  export * from './resource-type';
108
109
  export * from './script';
109
110
  export * from './script-create';
@@ -137,6 +138,7 @@ export * from './service-status-update';
137
138
  export * from './service-stop';
138
139
  export * from './service-type';
139
140
  export * from './service-type-supported-versions';
141
+ export * from './service-update';
140
142
  export * from './social-account';
141
143
  export * from './social-account-create';
142
144
  export * from './social-account-displayable-name';
@@ -116,6 +116,7 @@ __exportStar(require("./provider-region"), exports);
116
116
  __exportStar(require("./repository"), exports);
117
117
  __exportStar(require("./repository-branch"), exports);
118
118
  __exportStar(require("./resource"), exports);
119
+ __exportStar(require("./resource-event"), exports);
119
120
  __exportStar(require("./resource-type"), exports);
120
121
  __exportStar(require("./script"), exports);
121
122
  __exportStar(require("./script-create"), exports);
@@ -149,6 +150,7 @@ __exportStar(require("./service-status-update"), exports);
149
150
  __exportStar(require("./service-stop"), exports);
150
151
  __exportStar(require("./service-type"), exports);
151
152
  __exportStar(require("./service-type-supported-versions"), exports);
153
+ __exportStar(require("./service-update"), exports);
152
154
  __exportStar(require("./social-account"), exports);
153
155
  __exportStar(require("./social-account-create"), exports);
154
156
  __exportStar(require("./social-account-displayable-name"), exports);
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { UserRelation } from './user-relation';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -51,4 +52,10 @@ export interface ProjectRelation {
51
52
  * @memberof ProjectRelation
52
53
  */
53
54
  os_users?: Array<object>;
55
+ /**
56
+ *
57
+ * @type {UserRelation}
58
+ * @memberof ProjectRelation
59
+ */
60
+ created_by_user?: UserRelation;
54
61
  }
@@ -17,6 +17,7 @@ import { NetworkRuleRelation } from './network-rule-relation';
17
17
  import { ServerRelation } from './server-relation';
18
18
  import { ServiceRelation } from './service-relation';
19
19
  import { SshKeyRelation } from './ssh-key-relation';
20
+ import { UserRelation } from './user-relation';
20
21
  /**
21
22
  *
22
23
  * @export
@@ -71,6 +72,12 @@ export interface Project {
71
72
  * @memberof Project
72
73
  */
73
74
  applications: Array<ApplicationRelation>;
75
+ /**
76
+ *
77
+ * @type {UserRelation}
78
+ * @memberof Project
79
+ */
80
+ created_by_user?: UserRelation;
74
81
  /**
75
82
  *
76
83
  * @type {Array<CronJobRelation>}
@@ -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 });
@@ -0,0 +1,31 @@
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 { EnvironmentLinkItem } from './environment-link-item';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ServiceUpdate
17
+ */
18
+ export interface ServiceUpdate {
19
+ /**
20
+ * The unique id of the given record
21
+ * @type {number}
22
+ * @memberof ServiceUpdate
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {Array<EnvironmentLinkItem>}
28
+ * @memberof ServiceUpdate
29
+ */
30
+ environments: Array<EnvironmentLinkItem>;
31
+ }
@@ -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
- AppConfigFile = "app-config-file",
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["AppConfigFile"] = "app-config-file";
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 = {}));
@@ -15,6 +15,5 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum VariableType {
18
- Variable = "variable",
19
18
  File = "file"
20
19
  }
@@ -20,6 +20,5 @@ exports.VariableType = void 0;
20
20
  */
21
21
  var VariableType;
22
22
  (function (VariableType) {
23
- VariableType["Variable"] = "variable";
24
23
  VariableType["File"] = "file";
25
24
  })(VariableType = exports.VariableType || (exports.VariableType = {}));
@@ -0,0 +1,3 @@
1
+ import { ResourceEventsApiService } from '../api/generated/apis/resource-events-api';
2
+ export declare class ResourceEventService extends ResourceEventsApiService {
3
+ }
@@ -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.93.2",
3
+ "version": "1.96.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },