@devopness/sdk-js 3.5.2 → 3.5.4

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 (37) hide show
  1. package/dist/DevopnessApiClient.d.ts +31 -31
  2. package/dist/api/generated/models/action-relation.d.ts +21 -0
  3. package/dist/api/generated/models/application-environment-create.d.ts +14 -0
  4. package/dist/api/generated/models/application-options.d.ts +7 -0
  5. package/dist/api/generated/models/application.d.ts +14 -0
  6. package/dist/api/generated/models/index.d.ts +1 -0
  7. package/dist/api/generated/models/index.js +1 -0
  8. package/dist/api/generated/models/template.d.ts +54 -0
  9. package/dist/api/generated/models/template.js +14 -0
  10. package/dist/common/ApiResponse.d.ts +1 -1
  11. package/dist/common/ApiResponse.js +2 -2
  12. package/dist/common/Exceptions.d.ts +1 -1
  13. package/dist/common/Exceptions.js +3 -2
  14. package/dist/common/MergeSiblingClasses.js +3 -3
  15. package/dist/index.d.ts +5 -5
  16. package/dist/services/ApiBaseService.js +9 -8
  17. package/dist/services/ApplicationService.d.ts +4 -4
  18. package/dist/services/EnvironmentService.d.ts +2 -2
  19. package/dist/services/HookRequestService.d.ts +1 -1
  20. package/dist/services/HookService.d.ts +2 -2
  21. package/dist/services/NetworkRuleService.d.ts +1 -1
  22. package/dist/services/ProjectService.d.ts +4 -4
  23. package/dist/services/ResourceEventService.d.ts +1 -1
  24. package/dist/services/ResourceLinkService.d.ts +1 -1
  25. package/dist/services/RoleService.d.ts +1 -1
  26. package/dist/services/ServerService.d.ts +1 -1
  27. package/dist/services/ServerService.js +4 -4
  28. package/dist/services/ServiceService.d.ts +2 -2
  29. package/dist/services/SshKeyService.d.ts +1 -1
  30. package/dist/services/SslCertificateService.d.ts +1 -1
  31. package/dist/services/TeamInvitationService.d.ts +1 -1
  32. package/dist/services/TeamService.d.ts +3 -3
  33. package/dist/services/UserService.d.ts +5 -5
  34. package/dist/services/VariableService.d.ts +1 -1
  35. package/dist/services/VirtualHostService.d.ts +1 -1
  36. package/dist/services/index.d.ts +30 -30
  37. package/package.json +10 -20
@@ -1,34 +1,34 @@
1
- import { ActionService } from './services/ActionService';
2
- import { ConfigurationOptions } from './services/ApiBaseService';
3
- import { ApiTokenService } from './services/ApiTokenService';
4
- import { ApplicationService } from './services/ApplicationService';
5
- import { CredentialService } from './services/CredentialService';
6
- import { CronJobService } from './services/CronJobService';
7
- import { DaemonService } from './services/DaemonService';
8
- import { EnvironmentService } from './services/EnvironmentService';
9
- import { HookRequestService } from './services/HookRequestService';
10
- import { HookService } from './services/HookService';
11
- import { LogService } from './services/LogService';
12
- import { NetworkRuleService } from './services/NetworkRuleService';
13
- import { NetworkService } from './services/NetworkService';
14
- import { OrganizationService } from './services/OrganizationService';
15
- import { PipelineService } from './services/PipelineService';
16
- import { ProjectService } from './services/ProjectService';
17
- import { ResourceEventService } from './services/ResourceEventService';
18
- import { ResourceLinkService } from './services/ResourceLinkService';
19
- import { RoleService } from './services/RoleService';
20
- import { ServerService } from './services/ServerService';
21
- import { ServiceService } from './services/ServiceService';
22
- import { SocialAccountService } from './services/SocialAccountService';
23
- import { SshKeyService } from './services/SshKeyService';
24
- import { SslCertificateService } from './services/SslCertificateService';
25
- import { StaticService } from './services/StaticService';
26
- import { SubnetService } from './services/SubnetService';
27
- import { TeamInvitationService } from './services/TeamInvitationService';
28
- import { TeamService } from './services/TeamService';
29
- import { UserService } from './services/UserService';
30
- import { VariableService } from './services/VariableService';
31
- import { VirtualHostService } from './services/VirtualHostService';
1
+ import { ActionService } from "./services/ActionService";
2
+ import { ConfigurationOptions } from "./services/ApiBaseService";
3
+ import { ApiTokenService } from "./services/ApiTokenService";
4
+ import { ApplicationService } from "./services/ApplicationService";
5
+ import { CredentialService } from "./services/CredentialService";
6
+ import { CronJobService } from "./services/CronJobService";
7
+ import { DaemonService } from "./services/DaemonService";
8
+ import { EnvironmentService } from "./services/EnvironmentService";
9
+ import { HookRequestService } from "./services/HookRequestService";
10
+ import { HookService } from "./services/HookService";
11
+ import { LogService } from "./services/LogService";
12
+ import { NetworkRuleService } from "./services/NetworkRuleService";
13
+ import { NetworkService } from "./services/NetworkService";
14
+ import { OrganizationService } from "./services/OrganizationService";
15
+ import { PipelineService } from "./services/PipelineService";
16
+ import { ProjectService } from "./services/ProjectService";
17
+ import { ResourceEventService } from "./services/ResourceEventService";
18
+ import { ResourceLinkService } from "./services/ResourceLinkService";
19
+ import { RoleService } from "./services/RoleService";
20
+ import { ServerService } from "./services/ServerService";
21
+ import { ServiceService } from "./services/ServiceService";
22
+ import { SocialAccountService } from "./services/SocialAccountService";
23
+ import { SshKeyService } from "./services/SshKeyService";
24
+ import { SslCertificateService } from "./services/SslCertificateService";
25
+ import { StaticService } from "./services/StaticService";
26
+ import { SubnetService } from "./services/SubnetService";
27
+ import { TeamInvitationService } from "./services/TeamInvitationService";
28
+ import { TeamService } from "./services/TeamService";
29
+ import { UserService } from "./services/UserService";
30
+ import { VariableService } from "./services/VariableService";
31
+ import { VirtualHostService } from "./services/VirtualHostService";
32
32
  export declare class DevopnessApiClient {
33
33
  actions: ActionService;
34
34
  apiTokens: ApiTokenService;
@@ -17,6 +17,9 @@ import { ActionSummary } from './action-summary';
17
17
  import { ActionTarget } from './action-target';
18
18
  import { ActionTriggeredFrom } from './action-triggered-from';
19
19
  import { ActionType } from './action-type';
20
+ import { EnvironmentRelation } from './environment-relation';
21
+ import { OrganizationRelation } from './organization-relation';
22
+ import { ProjectRelation } from './project-relation';
20
23
  /**
21
24
  *
22
25
  * @export
@@ -95,6 +98,24 @@ export interface ActionRelation {
95
98
  * @memberof ActionRelation
96
99
  */
97
100
  resource: ActionResource;
101
+ /**
102
+ *
103
+ * @type {OrganizationRelation}
104
+ * @memberof ActionRelation
105
+ */
106
+ organization: OrganizationRelation | null;
107
+ /**
108
+ *
109
+ * @type {ProjectRelation}
110
+ * @memberof ActionRelation
111
+ */
112
+ project: ProjectRelation | null;
113
+ /**
114
+ *
115
+ * @type {EnvironmentRelation}
116
+ * @memberof ActionRelation
117
+ */
118
+ environment: EnvironmentRelation | null;
98
119
  /**
99
120
  *
100
121
  * @type {ActionSummary}
@@ -88,4 +88,18 @@ export interface ApplicationEnvironmentCreate {
88
88
  * @memberof ApplicationEnvironmentCreate
89
89
  */
90
90
  install_dependencies_command?: string;
91
+ /**
92
+ * Optional template to use when creating the application. Leave empty to create the application directly without using a template.
93
+ * @type {string}
94
+ * @memberof ApplicationEnvironmentCreate
95
+ */
96
+ template?: string;
97
+ /**
98
+ * Key/value pairs used to fill template placeholders before an application is created. Each template decides which inputs it accepts.
99
+ * @type {{ [key: string]: object; }}
100
+ * @memberof ApplicationEnvironmentCreate
101
+ */
102
+ template_inputs?: {
103
+ [key: string]: object;
104
+ };
91
105
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { LanguageRuntime } from './language-runtime';
13
13
  import { ScriptRunner } from './script-runner';
14
+ import { Template } from './template';
14
15
  import { VariableTargets } from './variable-targets';
15
16
  /**
16
17
  *
@@ -36,4 +37,10 @@ export interface ApplicationOptions {
36
37
  * @memberof ApplicationOptions
37
38
  */
38
39
  script_runners: Array<ScriptRunner>;
40
+ /**
41
+ * The list of templates users can choose from.
42
+ * @type {Array<Template>}
43
+ * @memberof ApplicationOptions
44
+ */
45
+ templates: Array<Template>;
39
46
  }
@@ -11,9 +11,11 @@
11
11
  */
12
12
  import { ApplicationLastDeployments } from './application-last-deployments';
13
13
  import { CredentialRelation } from './credential-relation';
14
+ import { CronJobRelation } from './cron-job-relation';
14
15
  import { DaemonRelation } from './daemon-relation';
15
16
  import { EnvironmentRelation } from './environment-relation';
16
17
  import { ServerRelation } from './server-relation';
18
+ import { ServiceRelation } from './service-relation';
17
19
  import { UserRelation } from './user-relation';
18
20
  import { VirtualHostRelation } from './virtual-host-relation';
19
21
  /**
@@ -160,6 +162,18 @@ export interface Application {
160
162
  * @memberof Application
161
163
  */
162
164
  credential: CredentialRelation | null;
165
+ /**
166
+ *
167
+ * @type {Array<ServiceRelation>}
168
+ * @memberof Application
169
+ */
170
+ services: Array<ServiceRelation>;
171
+ /**
172
+ *
173
+ * @type {Array<CronJobRelation>}
174
+ * @memberof Application
175
+ */
176
+ cronjobs: Array<CronJobRelation>;
163
177
  /**
164
178
  *
165
179
  * @type {Array<VirtualHostRelation>}
@@ -303,6 +303,7 @@ export * from './team-organization-link';
303
303
  export * from './team-project-link';
304
304
  export * from './team-relation';
305
305
  export * from './team-update';
306
+ export * from './template';
306
307
  export * from './trigger-event';
307
308
  export * from './trigger-when-condition';
308
309
  export * from './trigger-when-condition-type';
@@ -319,6 +319,7 @@ __exportStar(require("./team-organization-link"), exports);
319
319
  __exportStar(require("./team-project-link"), exports);
320
320
  __exportStar(require("./team-relation"), exports);
321
321
  __exportStar(require("./team-update"), exports);
322
+ __exportStar(require("./template"), exports);
322
323
  __exportStar(require("./trigger-event"), exports);
323
324
  __exportStar(require("./trigger-when-condition"), exports);
324
325
  __exportStar(require("./trigger-when-condition-type"), exports);
@@ -0,0 +1,54 @@
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
+ * One template shown to users when creating an application.
14
+ * @export
15
+ * @interface Template
16
+ */
17
+ export interface Template {
18
+ /**
19
+ * The unique template ID.
20
+ * @type {string}
21
+ * @memberof Template
22
+ */
23
+ id: string;
24
+ /**
25
+ * The internal template name used inside Devopness.
26
+ * @type {string}
27
+ * @memberof Template
28
+ */
29
+ name: string;
30
+ /**
31
+ * The display name users see in the UI.
32
+ * @type {string}
33
+ * @memberof Template
34
+ */
35
+ title: string;
36
+ /**
37
+ * A short summary explaining what the template does.
38
+ * @type {string}
39
+ * @memberof Template
40
+ */
41
+ description?: string | null;
42
+ /**
43
+ * The template version string.
44
+ * @type {string}
45
+ * @memberof Template
46
+ */
47
+ version: string;
48
+ /**
49
+ * The raw template file content used to build the application request.
50
+ * @type {object}
51
+ * @memberof Template
52
+ */
53
+ manifest?: object | null;
54
+ }
@@ -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 });
@@ -1,4 +1,4 @@
1
- import { AxiosResponse } from 'axios';
1
+ import { AxiosResponse } from "axios";
2
2
  export declare class ApiResponse<T> {
3
3
  actionId?: number;
4
4
  data: T;
@@ -14,9 +14,9 @@ class ApiResponse {
14
14
  if (axiosResp.headers) {
15
15
  const linkHeader = (0, parse_link_header_1.default)(axiosResp.headers.link);
16
16
  this.pageCount = Number((_a = linkHeader === null || linkHeader === void 0 ? void 0 : linkHeader.last) === null || _a === void 0 ? void 0 : _a.page) || 1;
17
- if (axiosResp.headers['x-devopness-action-id']) {
17
+ if (axiosResp.headers["x-devopness-action-id"]) {
18
18
  // axios headers are intentionally lower cased, as per https://github.com/axios/axios/issues/413
19
- this.actionId = Number(axiosResp.headers['x-devopness-action-id']);
19
+ this.actionId = Number(axiosResp.headers["x-devopness-action-id"]);
20
20
  }
21
21
  }
22
22
  }
@@ -1,4 +1,4 @@
1
- import { AxiosError, AxiosResponse } from 'axios';
1
+ import { AxiosError, AxiosResponse } from "axios";
2
2
  export declare class SdkError extends Error {
3
3
  }
4
4
  export declare class ArgumentNullException extends SdkError {
@@ -6,7 +6,8 @@ class SdkError extends Error {
6
6
  exports.SdkError = SdkError;
7
7
  class ArgumentNullException extends SdkError {
8
8
  constructor(param, method, msg) {
9
- super(msg || `Devopness SDK Error - Value cannot be null. Missing required parameter: "${param}" when calling "${method}"`);
9
+ super(msg ||
10
+ `Devopness SDK Error - Value cannot be null. Missing required parameter: "${param}" when calling "${method}"`);
10
11
  this.param = param;
11
12
  }
12
13
  }
@@ -23,7 +24,7 @@ class ApiError extends SdkError {
23
24
  if (!error.response) {
24
25
  throw error;
25
26
  }
26
- super('Devopness API response error');
27
+ super("Devopness API response error");
27
28
  this.setMessage(error.message);
28
29
  this.status = error.response.status;
29
30
  if (error.response.data) {
@@ -10,14 +10,14 @@ Modified from the `applyMixins` method described in https://www.typescriptlang.o
10
10
  function mergeSiblingClasses(target, siblings) {
11
11
  // check if siblings and target share same superclass
12
12
  const targetSuper = Object.getPrototypeOf(target);
13
- siblings.forEach(sibling => {
13
+ siblings.forEach((sibling) => {
14
14
  if (targetSuper !== Object.getPrototypeOf(sibling)) {
15
15
  throw `can't merge siblings: '${target.name}' and '${sibling.name}' must have the same superclass`;
16
16
  }
17
17
  });
18
18
  // patch target
19
- siblings.forEach(sibling => {
20
- Object.getOwnPropertyNames(sibling.prototype).forEach(name => {
19
+ siblings.forEach((sibling) => {
20
+ Object.getOwnPropertyNames(sibling.prototype).forEach((name) => {
21
21
  const descriptor = Object.getOwnPropertyDescriptor(sibling.prototype, name);
22
22
  if (descriptor) {
23
23
  Object.defineProperty(target.prototype, name, descriptor);
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './DevopnessApiClient';
2
- export * from './common/ApiResponse';
3
- export * as SdkExceptions from './common/Exceptions';
4
- export * as SdkModels from './api/generated/models';
5
- export * as SdkServices from './services';
1
+ export * from "./DevopnessApiClient";
2
+ export * from "./common/ApiResponse";
3
+ export * as SdkExceptions from "./common/Exceptions";
4
+ export * as SdkModels from "./api/generated/models";
5
+ export * as SdkServices from "./services";
@@ -27,15 +27,15 @@ class ApiBaseService {
27
27
  constructor() {
28
28
  this.defaultAxiosSettings = {
29
29
  timeout: 30000,
30
- responseType: 'json',
30
+ responseType: "json",
31
31
  headers: {
32
32
  Accept: "application/json",
33
- 'Content-Type': "application/json"
33
+ "Content-Type": "application/json",
34
34
  },
35
- withCredentials: false
35
+ withCredentials: false,
36
36
  };
37
37
  if (ApiBaseService.configuration == undefined) {
38
- throw new Exceptions_1.ArgumentNullException('configuration');
38
+ throw new Exceptions_1.ArgumentNullException("configuration");
39
39
  }
40
40
  const settings = this.defaultAxiosSettings;
41
41
  settings.baseURL = ApiBaseService.configuration.baseURL;
@@ -56,11 +56,12 @@ class ApiBaseService {
56
56
  // i.e: node.js cli, node.js server side, web workers, ...
57
57
  // if a window object is defined then we're very likely on a browser
58
58
  // so we don't set a custom User-Agent header
59
- const runningOnBrowserForeground = typeof window !== 'undefined';
59
+ const runningOnBrowserForeground = typeof window !== "undefined";
60
60
  if (!runningOnBrowserForeground) {
61
61
  // Setting the `User-Agent` with SDK version so we can track SDK adoption
62
62
  // through requests sent through it hitting our API servers
63
- this.api.defaults.headers.common['User-Agent'] = `devopness-sdk-js/${ApiBaseService.SDK_VERSION}`;
63
+ this.api.defaults.headers.common["User-Agent"] =
64
+ `devopness-sdk-js/${ApiBaseService.SDK_VERSION}`;
64
65
  }
65
66
  }
66
67
  setupAxiosRequestInterceptors() {
@@ -131,7 +132,7 @@ class ApiBaseService {
131
132
  catch (_a) {
132
133
  return false;
133
134
  }
134
- return (response === null || response === void 0 ? void 0 : response.status) === 401 && decodedToken.exp < (new Date().getTime() / 1000);
135
+ return (response === null || response === void 0 ? void 0 : response.status) === 401 && decodedToken.exp < new Date().getTime() / 1000;
135
136
  }
136
137
  /**
137
138
  * Decode the JWT payload so we can inspect the `exp` claim in both browser and Node runtimes.
@@ -180,4 +181,4 @@ class ApiBaseService {
180
181
  }
181
182
  }
182
183
  exports.ApiBaseService = ApiBaseService;
183
- ApiBaseService.SDK_VERSION = '0.0.0-development';
184
+ ApiBaseService.SDK_VERSION = "0.0.0-development";
@@ -1,7 +1,7 @@
1
- import { ApiBaseService } from './ApiBaseService';
2
- import { ApplicationsApiService } from '../api/generated/apis/applications-api';
3
- import { ApplicationsVariablesApiService } from '../api/generated/apis/applications-variables-api';
4
- import { ApplicationsHooksApiService } from '../api/generated/apis/applications-hooks-api';
1
+ import { ApiBaseService } from "./ApiBaseService";
2
+ import { ApplicationsApiService } from "../api/generated/apis/applications-api";
3
+ import { ApplicationsVariablesApiService } from "../api/generated/apis/applications-variables-api";
4
+ import { ApplicationsHooksApiService } from "../api/generated/apis/applications-hooks-api";
5
5
  export declare class ApplicationService extends ApiBaseService {
6
6
  }
7
7
  export interface ApplicationService extends ApplicationsApiService, ApplicationsVariablesApiService, ApplicationsHooksApiService {
@@ -1,5 +1,5 @@
1
- import { EnvironmentsActionsApiService } from '../api/generated/apis/environments-actions-api';
2
- import { EnvironmentsApiService } from '../api/generated/apis/environments-api';
1
+ import { EnvironmentsActionsApiService } from "../api/generated/apis/environments-actions-api";
2
+ import { EnvironmentsApiService } from "../api/generated/apis/environments-api";
3
3
  export declare class EnvironmentService extends EnvironmentsApiService {
4
4
  actions: EnvironmentsActionsApiService;
5
5
  }
@@ -1,3 +1,3 @@
1
- import { HookRequestsApiService } from '../api/generated/apis/hook-requests-api';
1
+ import { HookRequestsApiService } from "../api/generated/apis/hook-requests-api";
2
2
  export declare class HookRequestService extends HookRequestsApiService {
3
3
  }
@@ -1,5 +1,5 @@
1
- import { HooksApiService } from '../api/generated/apis/hooks-api';
2
- import { HooksRequestsApiService } from '../api/generated/apis/hooks-requests-api';
1
+ import { HooksApiService } from "../api/generated/apis/hooks-api";
2
+ import { HooksRequestsApiService } from "../api/generated/apis/hooks-requests-api";
3
3
  export declare class HookService extends HooksApiService {
4
4
  requests: HooksRequestsApiService;
5
5
  }
@@ -1,3 +1,3 @@
1
- import { NetworkRulesApiService } from '../api/generated/apis/network-rules-api';
1
+ import { NetworkRulesApiService } from "../api/generated/apis/network-rules-api";
2
2
  export declare class NetworkRuleService extends NetworkRulesApiService {
3
3
  }
@@ -1,7 +1,7 @@
1
- import { ProjectsApiService } from '../api/generated/apis/projects-api';
2
- import { ProjectsActionsApiService } from '../api/generated/apis/projects-actions-api';
3
- import { ProjectsEnvironmentsApiService } from '../api/generated/apis/projects-environments-api';
4
- import { ProjectsArchivedEnvironmentsApiService } from '../api/generated/apis/projects-archived-environments-api';
1
+ import { ProjectsApiService } from "../api/generated/apis/projects-api";
2
+ import { ProjectsActionsApiService } from "../api/generated/apis/projects-actions-api";
3
+ import { ProjectsEnvironmentsApiService } from "../api/generated/apis/projects-environments-api";
4
+ import { ProjectsArchivedEnvironmentsApiService } from "../api/generated/apis/projects-archived-environments-api";
5
5
  export declare class ProjectService extends ProjectsApiService {
6
6
  actions: ProjectsActionsApiService;
7
7
  archivedEnvironments: ProjectsArchivedEnvironmentsApiService;
@@ -1,3 +1,3 @@
1
- import { ResourceEventsApiService } from '../api/generated/apis/resource-events-api';
1
+ import { ResourceEventsApiService } from "../api/generated/apis/resource-events-api";
2
2
  export declare class ResourceEventService extends ResourceEventsApiService {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { ResourceLinksApiService } from '../api/generated/apis/resource-links-api';
1
+ import { ResourceLinksApiService } from "../api/generated/apis/resource-links-api";
2
2
  export declare class ResourceLinkService extends ResourceLinksApiService {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { RolesApiService } from '../api/generated/apis/roles-api';
1
+ import { RolesApiService } from "../api/generated/apis/roles-api";
2
2
  export declare class RoleService extends RolesApiService {
3
3
  }
@@ -1,4 +1,4 @@
1
- import { ServersApiService } from '../api/generated/apis/servers-api';
1
+ import { ServersApiService } from "../api/generated/apis/servers-api";
2
2
  export declare class ServerService extends ServersApiService {
3
3
  /**
4
4
  * Converts a string to a valid server's hostname format
@@ -11,10 +11,10 @@ class ServerService extends servers_api_1.ServersApiService {
11
11
  convertToHostname(name) {
12
12
  return name
13
13
  .toLowerCase()
14
- .normalize('NFD')
15
- .replace(/[\u0020-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]+/g, '-')
16
- .replace(/[^a-z0-9-]+|^[-\s]+|[-\s]+$/g, '')
17
- .replace(/-{2,}/g, '-');
14
+ .normalize("NFD")
15
+ .replace(/[\u0020-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]+/g, "-")
16
+ .replace(/[^a-z0-9-]+|^[-\s]+|[-\s]+$/g, "")
17
+ .replace(/-{2,}/g, "-");
18
18
  }
19
19
  }
20
20
  exports.ServerService = ServerService;
@@ -1,5 +1,5 @@
1
- import { ServicesApiService } from '../api/generated/apis/services-api';
2
- import { ServicesVariablesApiService } from '../api/generated/apis/services-variables-api';
1
+ import { ServicesApiService } from "../api/generated/apis/services-api";
2
+ import { ServicesVariablesApiService } from "../api/generated/apis/services-variables-api";
3
3
  export declare class ServiceService extends ServicesApiService {
4
4
  variables: ServicesVariablesApiService;
5
5
  }
@@ -1,3 +1,3 @@
1
- import { SSHKeysApiService } from '../api/generated/apis/sshkeys-api';
1
+ import { SSHKeysApiService } from "../api/generated/apis/sshkeys-api";
2
2
  export declare class SshKeyService extends SSHKeysApiService {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { SSLCertificatesApiService } from '../api/generated/apis/sslcertificates-api';
1
+ import { SSLCertificatesApiService } from "../api/generated/apis/sslcertificates-api";
2
2
  export declare class SslCertificateService extends SSLCertificatesApiService {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { TeamInvitationsApiService } from '../api/generated/apis/team-invitations-api';
1
+ import { TeamInvitationsApiService } from "../api/generated/apis/team-invitations-api";
2
2
  export declare class TeamInvitationService extends TeamInvitationsApiService {
3
3
  }
@@ -1,6 +1,6 @@
1
- import { TeamsApiService } from '../api/generated/apis/teams-api';
2
- import { TeamsInvitationsApiService } from '../api/generated/apis/teams-invitations-api';
3
- import { TeamsMembersApiService } from '../api/generated/apis/teams-members-api';
1
+ import { TeamsApiService } from "../api/generated/apis/teams-api";
2
+ import { TeamsInvitationsApiService } from "../api/generated/apis/teams-invitations-api";
3
+ import { TeamsMembersApiService } from "../api/generated/apis/teams-members-api";
4
4
  export declare class TeamService extends TeamsApiService {
5
5
  invitations: TeamsInvitationsApiService;
6
6
  members: TeamsMembersApiService;
@@ -1,8 +1,8 @@
1
- import { UsersApiService } from '../api/generated/apis/users-api';
2
- import { UsersTeamInvitationsApiService } from '../api/generated/apis/users-team-invitations-api';
3
- import { UsersPasswordsApiService } from '../api/generated/apis/users-passwords-api';
4
- import { UsersEnvironmentsApiService } from '../api/generated/apis/users-environments-api';
5
- import { UsersProjectsApiService } from '../api/generated/apis/users-projects-api';
1
+ import { UsersApiService } from "../api/generated/apis/users-api";
2
+ import { UsersTeamInvitationsApiService } from "../api/generated/apis/users-team-invitations-api";
3
+ import { UsersPasswordsApiService } from "../api/generated/apis/users-passwords-api";
4
+ import { UsersEnvironmentsApiService } from "../api/generated/apis/users-environments-api";
5
+ import { UsersProjectsApiService } from "../api/generated/apis/users-projects-api";
6
6
  export declare class UserService extends UsersApiService {
7
7
  environments: UsersEnvironmentsApiService;
8
8
  passwords: UsersPasswordsApiService;
@@ -1,3 +1,3 @@
1
- import { VariablesApiService } from '../api/generated/apis/variables-api';
1
+ import { VariablesApiService } from "../api/generated/apis/variables-api";
2
2
  export declare class VariableService extends VariablesApiService {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { VirtualHostsApiService } from '../api/generated/apis/virtual-hosts-api';
1
+ import { VirtualHostsApiService } from "../api/generated/apis/virtual-hosts-api";
2
2
  export declare class VirtualHostService extends VirtualHostsApiService {
3
3
  }
@@ -1,30 +1,30 @@
1
- export * from './ActionService';
2
- export * from './ApiBaseService';
3
- export * from './ApplicationService';
4
- export * from './CredentialService';
5
- export * from './CronJobService';
6
- export * from './DaemonService';
7
- export * from './EnvironmentService';
8
- export * from './HookRequestService';
9
- export * from './HookService';
10
- export * from './LogService';
11
- export * from './NetworkRuleService';
12
- export * from './NetworkService';
13
- export * from './OrganizationService';
14
- export * from './PipelineService';
15
- export * from './ProjectService';
16
- export * from './ResourceEventService';
17
- export * from './ResourceLinkService';
18
- export * from './RoleService';
19
- export * from './ServerService';
20
- export * from './ServiceService';
21
- export * from './SocialAccountService';
22
- export * from './SshKeyService';
23
- export * from './SslCertificateService';
24
- export * from './StaticService';
25
- export * from './SubnetService';
26
- export * from './TeamInvitationService';
27
- export * from './TeamService';
28
- export * from './UserService';
29
- export * from './VariableService';
30
- export * from './VirtualHostService';
1
+ export * from "./ActionService";
2
+ export * from "./ApiBaseService";
3
+ export * from "./ApplicationService";
4
+ export * from "./CredentialService";
5
+ export * from "./CronJobService";
6
+ export * from "./DaemonService";
7
+ export * from "./EnvironmentService";
8
+ export * from "./HookRequestService";
9
+ export * from "./HookService";
10
+ export * from "./LogService";
11
+ export * from "./NetworkRuleService";
12
+ export * from "./NetworkService";
13
+ export * from "./OrganizationService";
14
+ export * from "./PipelineService";
15
+ export * from "./ProjectService";
16
+ export * from "./ResourceEventService";
17
+ export * from "./ResourceLinkService";
18
+ export * from "./RoleService";
19
+ export * from "./ServerService";
20
+ export * from "./ServiceService";
21
+ export * from "./SocialAccountService";
22
+ export * from "./SshKeyService";
23
+ export * from "./SslCertificateService";
24
+ export * from "./StaticService";
25
+ export * from "./SubnetService";
26
+ export * from "./TeamInvitationService";
27
+ export * from "./TeamService";
28
+ export * from "./UserService";
29
+ export * from "./VariableService";
30
+ export * from "./VirtualHostService";
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": "3.5.2",
4
+ "version": "3.5.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -24,10 +24,10 @@
24
24
  "docs-export-service-index": "find src/services/ ! -name 'index.ts' -name '*.ts' -type f | sort -k3 -t'/' | xargs -I'{}' bash -c 'echo \"export * from $(echo -e \"\\x27\")./$(basename $0 .ts)$(echo -e \"\\x27\")\" >> src/services/index.ts' {} \\;",
25
25
  "docs-update-service-index": "npm run docs-remove-service-index && npm run docs-export-service-index",
26
26
  "docs": "npm run docs-update-service-index && typedoc",
27
- "lint": "eslint .",
28
- "lint:fix": "eslint . --fix",
27
+ "lint": "vp check",
28
+ "lint:fix": "vp check --fix",
29
29
  "prepublishOnly": "npm run lint && npm test && npm run build",
30
- "test": "jest"
30
+ "test": "vp test"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "Server Management"
48
48
  ],
49
49
  "author": "Devopness (https://www.devopness.com)",
50
- "license": "MIT",
50
+ "license": "Apache-2.0",
51
51
  "release": {
52
52
  "branches": [
53
53
  "main"
@@ -58,25 +58,15 @@
58
58
  },
59
59
  "homepage": "https://github.com/devopness/devopness#readme",
60
60
  "engines": {
61
- "node": ">=16"
61
+ "node": "^20.19.0 || ^22.13.0 || >=24"
62
62
  },
63
63
  "devDependencies": {
64
- "@eslint/js": "^10.0.1",
65
- "@openapitools/openapi-generator-cli": "^2.39.1",
66
- "@types/jest": "^30.0.0",
67
- "@typescript-eslint/parser": "^8.62.1",
64
+ "@openapitools/openapi-generator-cli": "^2.40.0",
68
65
  "axios-mock-adapter": "^2.1.0",
69
- "eslint": "^10.6.0",
70
- "eslint-import-resolver-typescript": "^4.4.5",
71
- "eslint-plugin-import": "^2.32.0",
72
- "eslint-plugin-n": "^18.2.1",
73
- "eslint-plugin-promise": "^7.3.0",
74
66
  "husky": "9.1.7",
75
- "jest": "^30.4.2",
76
- "ts-jest": "^29.4.11",
77
- "typedoc": "^0.28.19",
78
- "typescript": "^6.0.3",
79
- "typescript-eslint": "^8.62.1"
67
+ "vite-plus": "0.2.5",
68
+ "typescript": "^7.0.2",
69
+ "typedoc": "^0.28.20"
80
70
  },
81
71
  "dependencies": {
82
72
  "@types/parse-link-header": "^2.0.3",