@devopness/sdk-js 2.17.0 → 2.19.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 (53) hide show
  1. package/dist/api/generated/apis/applications-sslcertificates-api.d.ts +6 -6
  2. package/dist/api/generated/apis/applications-sslcertificates-api.js +8 -8
  3. package/dist/api/generated/apis/applications-variables-api.d.ts +7 -6
  4. package/dist/api/generated/apis/applications-variables-api.js +7 -7
  5. package/dist/api/generated/apis/daemons-api.d.ts +10 -10
  6. package/dist/api/generated/apis/daemons-api.js +10 -10
  7. package/dist/api/generated/apis/environments-daemons-api.d.ts +11 -2
  8. package/dist/api/generated/apis/environments-daemons-api.js +22 -2
  9. package/dist/api/generated/apis/environments-network-rules-api.d.ts +2 -2
  10. package/dist/api/generated/apis/environments-network-rules-api.js +2 -2
  11. package/dist/api/generated/apis/network-rules-api.d.ts +7 -7
  12. package/dist/api/generated/apis/network-rules-api.js +7 -7
  13. package/dist/api/generated/apis/pipelines-api.d.ts +9 -8
  14. package/dist/api/generated/apis/pipelines-api.js +11 -11
  15. package/dist/api/generated/apis/pipelines-steps-api.d.ts +17 -17
  16. package/dist/api/generated/apis/pipelines-steps-api.js +35 -35
  17. package/dist/api/generated/apis/projects-daemons-api.d.ts +7 -7
  18. package/dist/api/generated/apis/projects-daemons-api.js +10 -10
  19. package/dist/api/generated/apis/projects-network-rules-api.d.ts +6 -6
  20. package/dist/api/generated/apis/projects-network-rules-api.js +8 -8
  21. package/dist/api/generated/apis/sslcertificates-api.d.ts +3 -3
  22. package/dist/api/generated/apis/sslcertificates-api.js +3 -3
  23. package/dist/api/generated/apis/variables-api.d.ts +4 -4
  24. package/dist/api/generated/apis/variables-api.js +4 -4
  25. package/dist/api/generated/models/cron-job-update.d.ts +3 -4
  26. package/dist/api/generated/models/daemon-create.d.ts +13 -20
  27. package/dist/api/generated/models/daemon-project-create.d.ts +61 -0
  28. package/dist/api/generated/models/daemon-project-create.js +14 -0
  29. package/dist/api/generated/models/daemon-relation.d.ts +13 -13
  30. package/dist/api/generated/models/daemon-restart.d.ts +1 -1
  31. package/dist/api/generated/models/daemon-update.d.ts +16 -23
  32. package/dist/api/generated/models/daemon.d.ts +23 -17
  33. package/dist/api/generated/models/index.d.ts +3 -0
  34. package/dist/api/generated/models/index.js +3 -0
  35. package/dist/api/generated/models/network-rule-create.d.ts +8 -8
  36. package/dist/api/generated/models/network-rule-relation.d.ts +21 -15
  37. package/dist/api/generated/models/network-rule-update.d.ts +7 -7
  38. package/dist/api/generated/models/network-rule.d.ts +23 -17
  39. package/dist/api/generated/models/pipeline-step-create.d.ts +9 -3
  40. package/dist/api/generated/models/pipeline-step-update.d.ts +11 -5
  41. package/dist/api/generated/models/pipeline-step.d.ts +20 -14
  42. package/dist/api/generated/models/pipeline-update.d.ts +30 -0
  43. package/dist/api/generated/models/pipeline-update.js +14 -0
  44. package/dist/api/generated/models/pipeline.d.ts +19 -12
  45. package/dist/api/generated/models/ssl-certificate-create.d.ts +9 -9
  46. package/dist/api/generated/models/ssl-certificate-relation.d.ts +24 -30
  47. package/dist/api/generated/models/ssl-certificate.d.ts +41 -40
  48. package/dist/api/generated/models/variable-create.d.ts +16 -4
  49. package/dist/api/generated/models/variable-relation.d.ts +92 -0
  50. package/dist/api/generated/models/variable-relation.js +14 -0
  51. package/dist/api/generated/models/variable-update.d.ts +4 -10
  52. package/dist/api/generated/models/variable.d.ts +30 -12
  53. package/package.json +1 -1
@@ -20,17 +20,11 @@ import { SslCertificateValidationLevel } from './ssl-certificate-validation-leve
20
20
  */
21
21
  export interface SslCertificateRelation {
22
22
  /**
23
- * The unique id of the given record
23
+ * The unique ID of the given SSL certificate
24
24
  * @type {number}
25
25
  * @memberof SslCertificateRelation
26
26
  */
27
27
  id: number;
28
- /**
29
- * The list of domain names to which the SSL certificate refers to
30
- * @type {Array<string>}
31
- * @memberof SslCertificateRelation
32
- */
33
- domains: Array<string>;
34
28
  /**
35
29
  * The name given to SSL certificate
36
30
  * @type {string}
@@ -39,16 +33,16 @@ export interface SslCertificateRelation {
39
33
  name: string;
40
34
  /**
41
35
  *
42
- * @type {SslCertificateIssuer}
36
+ * @type {SslCertificateType}
43
37
  * @memberof SslCertificateRelation
44
38
  */
45
- issuer: SslCertificateIssuer;
39
+ type: SslCertificateType;
46
40
  /**
47
41
  *
48
- * @type {SslCertificateType}
42
+ * @type {SslCertificateIssuer}
49
43
  * @memberof SslCertificateRelation
50
44
  */
51
- type: SslCertificateType;
45
+ issuer: SslCertificateIssuer;
52
46
  /**
53
47
  *
54
48
  * @type {SslCertificateValidationLevel}
@@ -56,51 +50,51 @@ export interface SslCertificateRelation {
56
50
  */
57
51
  validation_level: SslCertificateValidationLevel;
58
52
  /**
59
- * The private key provided by the Certification Authority, when the certificate has not been automatically issued through `devopness`
60
- * @type {string}
53
+ * Tells if the certificate is active for all linked servers and applications
54
+ * @type {boolean}
55
+ * @memberof SslCertificateRelation
56
+ */
57
+ active: boolean;
58
+ /**
59
+ * The list of domain names to which the SSL certificate refers to
60
+ * @type {Array<string>}
61
61
  * @memberof SslCertificateRelation
62
62
  */
63
- custom_private_key?: string;
63
+ domains: Array<string>;
64
64
  /**
65
- * The contents of the certificate provided by the Certification Authority, when the certificate has not been automatically issued through `devopness`
66
- * @type {string}
65
+ * The application ID that contains this certificate
66
+ * @type {number}
67
67
  * @memberof SslCertificateRelation
68
68
  */
69
- custom_certificate?: string;
69
+ application_id: number;
70
70
  /**
71
- * Tells if the certificate is active for all linked servers and applications
72
- * @type {boolean}
71
+ *
72
+ * @type {ActionRelation}
73
73
  * @memberof SslCertificateRelation
74
74
  */
75
- active: boolean;
75
+ last_action: ActionRelation | null;
76
76
  /**
77
77
  * The date and time when this certificate will no longer be valid, down to minute precision
78
78
  * @type {string}
79
79
  * @memberof SslCertificateRelation
80
80
  */
81
- expires_at?: string | null;
81
+ expires_at: string | null;
82
82
  /**
83
83
  * The date and time when this certificate was renewed for the last time
84
84
  * @type {string}
85
85
  * @memberof SslCertificateRelation
86
86
  */
87
- last_renewed_at?: string | null;
88
- /**
89
- *
90
- * @type {ActionRelation}
91
- * @memberof SslCertificateRelation
92
- */
93
- last_action?: ActionRelation | null;
87
+ last_renewed_at: string | null;
94
88
  /**
95
89
  * The date and time when the record was created
96
90
  * @type {string}
97
91
  * @memberof SslCertificateRelation
98
92
  */
99
- created_at?: string;
93
+ created_at: string;
100
94
  /**
101
95
  * The date and time when the record was last updated
102
96
  * @type {string}
103
97
  * @memberof SslCertificateRelation
104
98
  */
105
- updated_at?: string;
99
+ updated_at: string;
106
100
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ActionRelation } from './action-relation';
13
+ import { ApplicationRelation } from './application-relation';
13
14
  import { ServerRelation } from './server-relation';
14
15
  import { SslCertificateIssuer } from './ssl-certificate-issuer';
15
16
  import { SslCertificateType } from './ssl-certificate-type';
@@ -22,17 +23,11 @@ import { UserRelation } from './user-relation';
22
23
  */
23
24
  export interface SslCertificate {
24
25
  /**
25
- * The unique id of the given record
26
+ * The unique ID of the given SSL certificate
26
27
  * @type {number}
27
28
  * @memberof SslCertificate
28
29
  */
29
30
  id: number;
30
- /**
31
- * The list of domain names to which the SSL certificate refers to
32
- * @type {Array<string>}
33
- * @memberof SslCertificate
34
- */
35
- domains: Array<string>;
36
31
  /**
37
32
  * The name given to SSL certificate
38
33
  * @type {string}
@@ -41,16 +36,16 @@ export interface SslCertificate {
41
36
  name: string;
42
37
  /**
43
38
  *
44
- * @type {SslCertificateIssuer}
39
+ * @type {SslCertificateType}
45
40
  * @memberof SslCertificate
46
41
  */
47
- issuer: SslCertificateIssuer;
42
+ type: SslCertificateType;
48
43
  /**
49
44
  *
50
- * @type {SslCertificateType}
45
+ * @type {SslCertificateIssuer}
51
46
  * @memberof SslCertificate
52
47
  */
53
- type: SslCertificateType;
48
+ issuer: SslCertificateIssuer;
54
49
  /**
55
50
  *
56
51
  * @type {SslCertificateValidationLevel}
@@ -58,63 +53,69 @@ export interface SslCertificate {
58
53
  */
59
54
  validation_level: SslCertificateValidationLevel;
60
55
  /**
61
- * The private key provided by the Certification Authority, when the certificate has not been automatically issued through `devopness`
62
- * @type {string}
56
+ * Tells if the certificate is active for all linked servers and applications
57
+ * @type {boolean}
63
58
  * @memberof SslCertificate
64
59
  */
65
- custom_private_key?: string;
60
+ active: boolean;
66
61
  /**
67
- * The contents of the certificate provided by the Certification Authority, when the certificate has not been automatically issued through `devopness`
68
- * @type {string}
62
+ * The list of domain names to which the SSL certificate refers to
63
+ * @type {Array<string>}
69
64
  * @memberof SslCertificate
70
65
  */
71
- custom_certificate?: string;
66
+ domains: Array<string>;
72
67
  /**
73
- * Tells if the certificate is active for all linked servers and applications
74
- * @type {boolean}
68
+ * The application ID that contains this certificate
69
+ * @type {number}
75
70
  * @memberof SslCertificate
76
71
  */
77
- active: boolean;
72
+ application_id: number;
78
73
  /**
79
- * The date and time when this certificate will no longer be valid, down to minute precision
80
- * @type {string}
74
+ *
75
+ * @type {UserRelation}
76
+ * @memberof SslCertificate
77
+ */
78
+ created_by_user: UserRelation;
79
+ /**
80
+ *
81
+ * @type {ActionRelation}
81
82
  * @memberof SslCertificate
82
83
  */
83
- expires_at?: string | null;
84
+ last_action: ActionRelation | null;
84
85
  /**
85
- * The date and time when this certificate was renewed for the last time
86
- * @type {string}
86
+ *
87
+ * @type {ApplicationRelation}
87
88
  * @memberof SslCertificate
88
89
  */
89
- last_renewed_at?: string | null;
90
+ application: ApplicationRelation | null;
90
91
  /**
91
- * The date and time when the record was created
92
- * @type {string}
92
+ *
93
+ * @type {Array<ServerRelation>}
93
94
  * @memberof SslCertificate
94
95
  */
95
- created_at?: string;
96
+ servers: Array<ServerRelation>;
96
97
  /**
97
- * The date and time when the record was last updated
98
+ * The date and time when this certificate will no longer be valid, down to minute precision
98
99
  * @type {string}
99
100
  * @memberof SslCertificate
100
101
  */
101
- updated_at?: string;
102
+ expires_at: string | null;
102
103
  /**
103
- *
104
- * @type {Array<ServerRelation>}
104
+ * The date and time when this certificate was renewed for the last time
105
+ * @type {string}
105
106
  * @memberof SslCertificate
106
107
  */
107
- servers: Array<ServerRelation>;
108
+ last_renewed_at: string | null;
108
109
  /**
109
- *
110
- * @type {UserRelation}
110
+ * The date and time when the record was created
111
+ * @type {string}
111
112
  * @memberof SslCertificate
112
113
  */
113
- created_by_user: UserRelation;
114
+ created_at: string;
114
115
  /**
115
- *
116
- * @type {ActionRelation}
116
+ * The date and time when the record was last updated
117
+ * @type {string}
117
118
  * @memberof SslCertificate
118
119
  */
119
- last_action: ActionRelation | null;
120
+ updated_at: string;
120
121
  }
@@ -18,19 +18,19 @@ 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. When variable is of type `file`, this is the relative path to the file within the application directory.
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. Must not be greater than 100 characters.
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. When variable is of type `file`, this is the file content.
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. Must not be greater than 21504 characters.
28
28
  * @type {string}
29
29
  * @memberof VariableCreate
30
30
  */
31
31
  value: string;
32
32
  /**
33
- * A text describing the variable, provided by the end user
33
+ * A text describing the variable, provided by the end user.
34
34
  * @type {string}
35
35
  * @memberof VariableCreate
36
36
  */
@@ -48,9 +48,21 @@ export interface VariableCreate {
48
48
  */
49
49
  type: VariableType;
50
50
  /**
51
- * Indicates if the variable value should be visible or not in the deployment logs
51
+ * Indicates if the variable value should be visible or not in the deployment logs.
52
52
  * @type {boolean}
53
53
  * @memberof VariableCreate
54
54
  */
55
55
  hidden: boolean;
56
+ /**
57
+ * The ID of the resource this variable is linked to.
58
+ * @type {number}
59
+ * @memberof VariableCreate
60
+ */
61
+ resource_id: number;
62
+ /**
63
+ * The type of the resource this variable is linked to. Must be one of <code>application</code>.
64
+ * @type {string}
65
+ * @memberof VariableCreate
66
+ */
67
+ resource_type: string;
56
68
  }
@@ -0,0 +1,92 @@
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 { VariableTarget } from './variable-target';
13
+ import { VariableType } from './variable-type';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface VariableRelation
18
+ */
19
+ export interface VariableRelation {
20
+ /**
21
+ * The ID of the given variable
22
+ * @type {number}
23
+ * @memberof VariableRelation
24
+ */
25
+ id: number;
26
+ /**
27
+ * The unique key used to identify the variable on the target
28
+ * @type {string}
29
+ * @memberof VariableRelation
30
+ */
31
+ key: string;
32
+ /**
33
+ *
34
+ * @type {VariableType}
35
+ * @memberof VariableRelation
36
+ */
37
+ type: VariableType;
38
+ /**
39
+ * A text describing the variable, provided by the end user
40
+ * @type {string}
41
+ * @memberof VariableRelation
42
+ */
43
+ description: string | null;
44
+ /**
45
+ * The value to be assigned to this variable when deployed to its target
46
+ * @type {string}
47
+ * @memberof VariableRelation
48
+ */
49
+ value: string;
50
+ /**
51
+ *
52
+ * @type {VariableTarget}
53
+ * @memberof VariableRelation
54
+ */
55
+ target: VariableTarget;
56
+ /**
57
+ * The target name of this variable
58
+ * @type {string}
59
+ * @memberof VariableRelation
60
+ */
61
+ target_name: string | null;
62
+ /**
63
+ * The ID of the resource this variable is linked to
64
+ * @type {number}
65
+ * @memberof VariableRelation
66
+ */
67
+ resource_id: number | null;
68
+ /**
69
+ * The name of the resource this variable is linked to
70
+ * @type {string}
71
+ * @memberof VariableRelation
72
+ */
73
+ resource_type: string;
74
+ /**
75
+ * Indicates if the variable value should be visible or not in the deployment logs
76
+ * @type {boolean}
77
+ * @memberof VariableRelation
78
+ */
79
+ hidden: boolean;
80
+ /**
81
+ * The date and time when the record was created
82
+ * @type {string}
83
+ * @memberof VariableRelation
84
+ */
85
+ created_at: string;
86
+ /**
87
+ * The date and time when the record was last updated
88
+ * @type {string}
89
+ * @memberof VariableRelation
90
+ */
91
+ updated_at: string;
92
+ }
@@ -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,25 +18,19 @@ import { VariableType } from './variable-type';
18
18
  */
19
19
  export interface VariableUpdate {
20
20
  /**
21
- * Variable\'s unique id
22
- * @type {number}
23
- * @memberof VariableUpdate
24
- */
25
- id: number;
26
- /**
27
- * 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. Must not be greater than 100 characters.
28
22
  * @type {string}
29
23
  * @memberof VariableUpdate
30
24
  */
31
25
  key: string;
32
26
  /**
33
- * 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. Must not be greater than 21504 characters.
34
28
  * @type {string}
35
29
  * @memberof VariableUpdate
36
30
  */
37
31
  value: string;
38
32
  /**
39
- * A text describing the variable, provided by the end user
33
+ * A text describing the variable, provided by the end user.
40
34
  * @type {string}
41
35
  * @memberof VariableUpdate
42
36
  */
@@ -54,7 +48,7 @@ export interface VariableUpdate {
54
48
  */
55
49
  type: VariableType;
56
50
  /**
57
- * Indicates if the variable value should be visible or not in the deployment logs
51
+ * Indicates if the variable value should be visible or not in the deployment logs.
58
52
  * @type {boolean}
59
53
  * @memberof VariableUpdate
60
54
  */
@@ -18,11 +18,11 @@ import { VariableType } from './variable-type';
18
18
  */
19
19
  export interface Variable {
20
20
  /**
21
- * The unique id of the given record
21
+ * The ID of the given variable
22
22
  * @type {number}
23
23
  * @memberof Variable
24
24
  */
25
- id?: number;
25
+ id: number;
26
26
  /**
27
27
  * The unique key used to identify the variable on the target
28
28
  * @type {string}
@@ -30,17 +30,23 @@ export interface Variable {
30
30
  */
31
31
  key: string;
32
32
  /**
33
- * The value to be assigned to this variable when deployed to its target
34
- * @type {string}
33
+ *
34
+ * @type {VariableType}
35
35
  * @memberof Variable
36
36
  */
37
- value: string;
37
+ type: VariableType;
38
38
  /**
39
39
  * A text describing the variable, provided by the end user
40
40
  * @type {string}
41
41
  * @memberof Variable
42
42
  */
43
- description?: string;
43
+ description: string | null;
44
+ /**
45
+ * The value to be assigned to this variable when deployed to its target
46
+ * @type {string}
47
+ * @memberof Variable
48
+ */
49
+ value: string;
44
50
  /**
45
51
  *
46
52
  * @type {VariableTarget}
@@ -48,27 +54,39 @@ export interface Variable {
48
54
  */
49
55
  target: VariableTarget;
50
56
  /**
51
- *
52
- * @type {VariableType}
57
+ * The target name of this variable
58
+ * @type {string}
53
59
  * @memberof Variable
54
60
  */
55
- type: VariableType;
61
+ target_name: string | null;
62
+ /**
63
+ * The ID of the resource this variable is linked to
64
+ * @type {number}
65
+ * @memberof Variable
66
+ */
67
+ resource_id: number | null;
68
+ /**
69
+ * The name of the resource this variable is linked to
70
+ * @type {string}
71
+ * @memberof Variable
72
+ */
73
+ resource_type: string;
56
74
  /**
57
75
  * Indicates if the variable value should be visible or not in the deployment logs
58
76
  * @type {boolean}
59
77
  * @memberof Variable
60
78
  */
61
- hidden?: boolean;
79
+ hidden: boolean;
62
80
  /**
63
81
  * The date and time when the record was created
64
82
  * @type {string}
65
83
  * @memberof Variable
66
84
  */
67
- created_at?: string;
85
+ created_at: string;
68
86
  /**
69
87
  * The date and time when the record was last updated
70
88
  * @type {string}
71
89
  * @memberof Variable
72
90
  */
73
- updated_at?: string;
91
+ updated_at: string;
74
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.17.0",
3
+ "version": "2.19.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },