@devopness/sdk-js 2.14.1 → 2.15.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 (47) hide show
  1. package/dist/api/generated/apis/environments-applications-api.d.ts +9 -0
  2. package/dist/api/generated/apis/environments-applications-api.js +20 -0
  3. package/dist/api/generated/apis/environments-servers-api.d.ts +9 -9
  4. package/dist/api/generated/apis/environments-servers-api.js +20 -25
  5. package/dist/api/generated/apis/environments-services-api.d.ts +2 -2
  6. package/dist/api/generated/apis/environments-services-api.js +2 -2
  7. package/dist/api/generated/apis/environments-sshkeys-api.d.ts +11 -2
  8. package/dist/api/generated/apis/environments-sshkeys-api.js +22 -2
  9. package/dist/api/generated/apis/projects-servers-api.d.ts +4 -4
  10. package/dist/api/generated/apis/projects-servers-api.js +6 -6
  11. package/dist/api/generated/apis/projects-services-api.d.ts +5 -5
  12. package/dist/api/generated/apis/projects-services-api.js +7 -7
  13. package/dist/api/generated/apis/projects-sshkeys-api.d.ts +1 -1
  14. package/dist/api/generated/apis/projects-sshkeys-api.js +1 -1
  15. package/dist/api/generated/apis/servers-api.d.ts +3 -4
  16. package/dist/api/generated/apis/servers-api.js +7 -7
  17. package/dist/api/generated/apis/services-api.d.ts +17 -17
  18. package/dist/api/generated/apis/services-api.js +20 -20
  19. package/dist/api/generated/models/application-environment-create.d.ts +138 -0
  20. package/dist/api/generated/models/{service-status-update.js → application-environment-create.js} +0 -0
  21. package/dist/api/generated/models/index.d.ts +3 -2
  22. package/dist/api/generated/models/index.js +3 -2
  23. package/dist/api/generated/models/server-relation.d.ts +22 -22
  24. package/dist/api/generated/models/server.d.ts +34 -28
  25. package/dist/api/generated/models/service-create.d.ts +11 -11
  26. package/dist/api/generated/models/service-relation.d.ts +14 -8
  27. package/dist/api/generated/models/service-reload.d.ts +1 -1
  28. package/dist/api/generated/models/service-restart.d.ts +1 -1
  29. package/dist/api/generated/models/service-start.d.ts +1 -1
  30. package/dist/api/generated/models/service-stop.d.ts +1 -1
  31. package/dist/api/generated/models/{service-status-update.d.ts → service-update-status.d.ts} +4 -4
  32. package/dist/api/generated/models/service-update-status.js +14 -0
  33. package/dist/api/generated/models/service-update.d.ts +2 -2
  34. package/dist/api/generated/models/service.d.ts +4 -4
  35. package/dist/api/generated/models/ssh-key-create.d.ts +5 -12
  36. package/dist/api/generated/models/ssh-key-project-create.d.ts +37 -0
  37. package/dist/api/generated/models/ssh-key-project-create.js +14 -0
  38. package/dist/api/generated/models/ssh-key-relation.d.ts +13 -7
  39. package/dist/api/generated/models/ssh-key-update.d.ts +2 -2
  40. package/dist/api/generated/models/ssh-key.d.ts +13 -7
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +2 -1
  43. package/dist/services/index.d.ts +27 -0
  44. package/dist/services/index.js +43 -0
  45. package/package.json +14 -7
  46. package/dist/api/generated/models/service-action.d.ts +0 -27
  47. package/dist/api/generated/models/service-action.js +0 -32
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EnvironmentLinkItem } from './environment-link-item';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -17,27 +16,21 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
16
  */
18
17
  export interface SshKeyCreate {
19
18
  /**
20
- * The Id of the given SSH public key
21
- * @type {number}
22
- * @memberof SshKeyCreate
23
- */
24
- id?: number;
25
- /**
26
- * The name entered by the user to uniquely identify the public SSH key
19
+ * The ssh key\'s name. Must not be greater than 60 characters.
27
20
  * @type {string}
28
21
  * @memberof SshKeyCreate
29
22
  */
30
23
  name: string;
31
24
  /**
32
- * The public SSH key to add to your `devopness` account and associate it to the given project
25
+ * The public key of the ssh key.
33
26
  * @type {string}
34
27
  * @memberof SshKeyCreate
35
28
  */
36
29
  public_key: string;
37
30
  /**
38
- *
39
- * @type {Array<EnvironmentLinkItem>}
31
+ * List of valid resource IDs
32
+ * @type {Array<number>}
40
33
  * @memberof SshKeyCreate
41
34
  */
42
- environments?: Array<EnvironmentLinkItem>;
35
+ servers?: Array<number>;
43
36
  }
@@ -0,0 +1,37 @@
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 SshKeyProjectCreate
17
+ */
18
+ export interface SshKeyProjectCreate {
19
+ /**
20
+ * The ssh key\'s name. Must not be greater than 60 characters.
21
+ * @type {string}
22
+ * @memberof SshKeyProjectCreate
23
+ */
24
+ name: string;
25
+ /**
26
+ * The public key of the ssh key.
27
+ * @type {string}
28
+ * @memberof SshKeyProjectCreate
29
+ */
30
+ public_key: string;
31
+ /**
32
+ *
33
+ * @type {Array<EnvironmentLinkItem>}
34
+ * @memberof SshKeyProjectCreate
35
+ */
36
+ environments?: Array<EnvironmentLinkItem>;
37
+ }
@@ -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 });
@@ -23,23 +23,29 @@ export interface SshKeyRelation {
23
23
  */
24
24
  id: number;
25
25
  /**
26
- * The project id that the SSH public key belongs to
26
+ * The Id of the user to which the SSH key belongs to
27
27
  * @type {number}
28
28
  * @memberof SshKeyRelation
29
29
  */
30
- project_id?: number;
30
+ created_by?: number;
31
31
  /**
32
- * The name entered by the user to uniquely identify the public SSH key
33
- * @type {string}
32
+ * The project id to which the SSH public key belongs to
33
+ * @type {number}
34
34
  * @memberof SshKeyRelation
35
35
  */
36
- name: string;
36
+ project_id?: number;
37
37
  /**
38
- * The Id of the user to which the SSH key belongs to
38
+ * The environment id to which the SSH public key belongs to
39
39
  * @type {number}
40
40
  * @memberof SshKeyRelation
41
41
  */
42
- created_by?: number;
42
+ environment_id: number;
43
+ /**
44
+ * The name entered by the user to uniquely identify the public SSH key
45
+ * @type {string}
46
+ * @memberof SshKeyRelation
47
+ */
48
+ name: string;
43
49
  /**
44
50
  * The hashed fingerprint of the public key
45
51
  * @type {string}
@@ -17,13 +17,13 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
17
  */
18
18
  export interface SshKeyUpdate {
19
19
  /**
20
- * The Id of the SSH key
20
+ * The ssh key\'s ID.
21
21
  * @type {number}
22
22
  * @memberof SshKeyUpdate
23
23
  */
24
24
  id: number;
25
25
  /**
26
- * The name entered by the user to uniquely identify the public SSH key
26
+ * The ssh key\'s name. Must not be greater than 60 characters.
27
27
  * @type {string}
28
28
  * @memberof SshKeyUpdate
29
29
  */
@@ -26,23 +26,29 @@ export interface SshKey {
26
26
  */
27
27
  id: number;
28
28
  /**
29
- * The project id that the SSH public key belongs to
29
+ * The id of the user to which the SSH key belongs to
30
30
  * @type {number}
31
31
  * @memberof SshKey
32
32
  */
33
- project_id?: number;
33
+ created_by?: number;
34
34
  /**
35
- * The name entered by the user to uniquely identify the public SSH key
36
- * @type {string}
35
+ * The project id to which the SSH public key belongs to
36
+ * @type {number}
37
37
  * @memberof SshKey
38
38
  */
39
- name: string;
39
+ project_id?: number;
40
40
  /**
41
- * The Id of the user to which the SSH key belongs to
41
+ * The environment id to which the SSH public key belongs to
42
42
  * @type {number}
43
43
  * @memberof SshKey
44
44
  */
45
- created_by?: number;
45
+ environment_id: number;
46
+ /**
47
+ * The name entered by the user to uniquely identify the public SSH key
48
+ * @type {string}
49
+ * @memberof SshKey
50
+ */
51
+ name: string;
46
52
  /**
47
53
  * The hashed fingerprint of the public key
48
54
  * @type {string}
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './DevopnessApiClient';
2
2
  export * from './common/ApiResponse';
3
3
  export * as SdkExceptions from './common/Exceptions';
4
4
  export * as SdkModels from './api/generated/models';
5
+ export * as SdkServices from './services';
package/dist/index.js CHANGED
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SdkModels = exports.SdkExceptions = void 0;
29
+ exports.SdkServices = exports.SdkModels = exports.SdkExceptions = void 0;
30
30
  __exportStar(require("./DevopnessApiClient"), exports);
31
31
  __exportStar(require("./common/ApiResponse"), exports);
32
32
  exports.SdkExceptions = __importStar(require("./common/Exceptions"));
33
33
  exports.SdkModels = __importStar(require("./api/generated/models"));
34
+ exports.SdkServices = __importStar(require("./services"));
@@ -0,0 +1,27 @@
1
+ export * from './ActionService';
2
+ export * from './ApiBaseService';
3
+ export * from './ApplicationService';
4
+ export * from './CloudProviderCredentialService';
5
+ export * from './CronJobService';
6
+ export * from './DaemonService';
7
+ export * from './EnvironmentService';
8
+ export * from './HookIncomingService';
9
+ export * from './HookOutgoingService';
10
+ export * from './HookRequestService';
11
+ export * from './LogService';
12
+ export * from './NetworkRuleService';
13
+ export * from './PipelineService';
14
+ export * from './ProjectService';
15
+ export * from './ResourceEventService';
16
+ export * from './RoleService';
17
+ export * from './ServerService';
18
+ export * from './ServiceService';
19
+ export * from './SocialAccountService';
20
+ export * from './SourceProviderService';
21
+ export * from './SshKeyService';
22
+ export * from './SslCertificateService';
23
+ export * from './StaticService';
24
+ export * from './TeamInvitationService';
25
+ export * from './TeamService';
26
+ export * from './UserService';
27
+ export * from './VariableService';
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
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);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ActionService"), exports);
18
+ __exportStar(require("./ApiBaseService"), exports);
19
+ __exportStar(require("./ApplicationService"), exports);
20
+ __exportStar(require("./CloudProviderCredentialService"), exports);
21
+ __exportStar(require("./CronJobService"), exports);
22
+ __exportStar(require("./DaemonService"), exports);
23
+ __exportStar(require("./EnvironmentService"), exports);
24
+ __exportStar(require("./HookIncomingService"), exports);
25
+ __exportStar(require("./HookOutgoingService"), exports);
26
+ __exportStar(require("./HookRequestService"), exports);
27
+ __exportStar(require("./LogService"), exports);
28
+ __exportStar(require("./NetworkRuleService"), exports);
29
+ __exportStar(require("./PipelineService"), exports);
30
+ __exportStar(require("./ProjectService"), exports);
31
+ __exportStar(require("./ResourceEventService"), exports);
32
+ __exportStar(require("./RoleService"), exports);
33
+ __exportStar(require("./ServerService"), exports);
34
+ __exportStar(require("./ServiceService"), exports);
35
+ __exportStar(require("./SocialAccountService"), exports);
36
+ __exportStar(require("./SourceProviderService"), exports);
37
+ __exportStar(require("./SshKeyService"), exports);
38
+ __exportStar(require("./SslCertificateService"), exports);
39
+ __exportStar(require("./StaticService"), exports);
40
+ __exportStar(require("./TeamInvitationService"), exports);
41
+ __exportStar(require("./TeamService"), exports);
42
+ __exportStar(require("./UserService"), exports);
43
+ __exportStar(require("./VariableService"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.14.1",
3
+ "version": "2.15.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,7 +13,10 @@
13
13
  "scripts": {
14
14
  "build": "rm -Rf ./dist && npm run lint && tsc",
15
15
  "build-api-models": "rm -Rf ./src/api/generated && JAVA_OPTS=\"${JAVA_OPTS} -Dlog.level=warn\" openapi-generator-cli generate && npm run build",
16
- "docs": "typedoc",
16
+ "docs-remove-service-index": "rm -f src/services/index.ts",
17
+ "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' {} \\;",
18
+ "docs-update-service-index": "npm run docs-remove-service-index && npm run docs-export-service-index",
19
+ "docs": "npm run docs-update-service-index && typedoc",
17
20
  "lint": "eslint . --ext .ts",
18
21
  "prepublishOnly": "npm test",
19
22
  "prepare": "npm run build",
@@ -22,16 +25,20 @@
22
25
  },
23
26
  "repository": {
24
27
  "type": "git",
25
- "url": "git+https://github.com/devopness/devopness-sdk-js.git"
28
+ "url": "git+https://github.com/devopness/devopness.git"
26
29
  },
27
30
  "keywords": [
31
+ "Cloud Engineering",
32
+ "Cloud Infrastructure Management",
33
+ "Cloud Platform Engineering",
34
+ "Configuration Management",
28
35
  "DevOps",
29
36
  "Devopness",
30
37
  "Deploy",
31
38
  "Deployment",
39
+ "Platform Engineering",
32
40
  "Zero Downtime Deploy",
33
- "Server Management",
34
- "Configuration Management"
41
+ "Server Management"
35
42
  ],
36
43
  "author": "Devopness (https://www.devopness.com)",
37
44
  "license": "MIT",
@@ -41,9 +48,9 @@
41
48
  ]
42
49
  },
43
50
  "bugs": {
44
- "url": "https://github.com/devopness/devopness-sdk-js/issues"
51
+ "url": "https://github.com/devopness/devopness/issues"
45
52
  },
46
- "homepage": "https://github.com/devopness/devopness-sdk-js#readme",
53
+ "homepage": "https://github.com/devopness/devopness#readme",
47
54
  "devDependencies": {
48
55
  "@openapitools/openapi-generator-cli": "^2.0.2",
49
56
  "@types/jest": "^27.0.1",
@@ -1,27 +0,0 @@
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
- * The action to be executed for the given service
14
- * @export
15
- * @enum {string}
16
- */
17
- export declare enum ServiceAction {
18
- Status = "status",
19
- Start = "start",
20
- Stop = "stop",
21
- Reload = "reload",
22
- Restart = "restart",
23
- Enable = "enable",
24
- Disable = "disable",
25
- Install = "install",
26
- Uninstall = "uninstall"
27
- }
@@ -1,32 +0,0 @@
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 });
15
- exports.ServiceAction = void 0;
16
- /**
17
- * The action to be executed for the given service
18
- * @export
19
- * @enum {string}
20
- */
21
- var ServiceAction;
22
- (function (ServiceAction) {
23
- ServiceAction["Status"] = "status";
24
- ServiceAction["Start"] = "start";
25
- ServiceAction["Stop"] = "stop";
26
- ServiceAction["Reload"] = "reload";
27
- ServiceAction["Restart"] = "restart";
28
- ServiceAction["Enable"] = "enable";
29
- ServiceAction["Disable"] = "disable";
30
- ServiceAction["Install"] = "install";
31
- ServiceAction["Uninstall"] = "uninstall";
32
- })(ServiceAction = exports.ServiceAction || (exports.ServiceAction = {}));