@devopness/sdk-js 2.36.0 → 2.38.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 (59) hide show
  1. package/dist/api/generated/apis/environments-applications-api.d.ts +2 -2
  2. package/dist/api/generated/apis/environments-applications-api.js +2 -2
  3. package/dist/api/generated/apis/social-accounts-api.d.ts +12 -11
  4. package/dist/api/generated/apis/social-accounts-api.js +18 -18
  5. package/dist/api/generated/models/action-retry-response.d.ts +1 -1
  6. package/dist/api/generated/models/action-trigger-type.d.ts +1 -1
  7. package/dist/api/generated/models/action-trigger-type.js +1 -1
  8. package/dist/api/generated/models/action.d.ts +1 -1
  9. package/dist/api/generated/models/application.d.ts +1 -1
  10. package/dist/api/generated/models/cron-job.d.ts +1 -1
  11. package/dist/api/generated/models/daemon.d.ts +1 -1
  12. package/dist/api/generated/models/{environment-link-item.d.ts → environment-link.d.ts} +5 -5
  13. package/dist/api/generated/models/{action-list-item-params.js → environment-link.js} +0 -0
  14. package/dist/api/generated/models/environment-relation.d.ts +2 -2
  15. package/dist/api/generated/models/environment-type.d.ts +2 -2
  16. package/dist/api/generated/models/environment-type.js +1 -1
  17. package/dist/api/generated/models/environment-update.d.ts +7 -7
  18. package/dist/api/generated/models/index.d.ts +2 -14
  19. package/dist/api/generated/models/index.js +2 -14
  20. package/dist/api/generated/models/network-rule.d.ts +1 -1
  21. package/dist/api/generated/models/related-action.d.ts +6 -0
  22. package/dist/api/generated/models/server.d.ts +1 -1
  23. package/dist/api/generated/models/service.d.ts +1 -1
  24. package/dist/api/generated/models/social-account-create.d.ts +4 -4
  25. package/dist/api/generated/models/social-account-displayable-name.d.ts +1 -2
  26. package/dist/api/generated/models/social-account-displayable-name.js +0 -1
  27. package/dist/api/generated/models/social-account-provider.d.ts +1 -2
  28. package/dist/api/generated/models/social-account-provider.js +0 -1
  29. package/dist/api/generated/models/social-account-relation.d.ts +74 -0
  30. package/dist/api/generated/models/{action-list-item.js → social-account-relation.js} +0 -0
  31. package/dist/api/generated/models/social-account-status.d.ts +7 -8
  32. package/dist/api/generated/models/social-account.d.ts +15 -9
  33. package/dist/api/generated/models/ssh-key.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/dist/api/generated/models/action-list-item-params.d.ts +0 -25
  36. package/dist/api/generated/models/action-list-item.d.ts +0 -18
  37. package/dist/api/generated/models/action-step-log.d.ts +0 -38
  38. package/dist/api/generated/models/action-step-log.js +0 -14
  39. package/dist/api/generated/models/application-deployment.d.ts +0 -49
  40. package/dist/api/generated/models/application-deployment.js +0 -14
  41. package/dist/api/generated/models/deployment-origin.d.ts +0 -20
  42. package/dist/api/generated/models/deployment-origin.js +0 -25
  43. package/dist/api/generated/models/deployment-source.d.ts +0 -49
  44. package/dist/api/generated/models/deployment-source.js +0 -14
  45. package/dist/api/generated/models/environment-id-request.d.ts +0 -24
  46. package/dist/api/generated/models/environment-id-request.js +0 -14
  47. package/dist/api/generated/models/environment-link-item.js +0 -14
  48. package/dist/api/generated/models/environment-link-server.d.ts +0 -24
  49. package/dist/api/generated/models/environment-link-server.js +0 -14
  50. package/dist/api/generated/models/environment-member-profile.d.ts +0 -49
  51. package/dist/api/generated/models/environment-member-profile.js +0 -14
  52. package/dist/api/generated/models/environment-member.d.ts +0 -36
  53. package/dist/api/generated/models/environment-member.js +0 -14
  54. package/dist/api/generated/models/environment-option-type.d.ts +0 -36
  55. package/dist/api/generated/models/environment-option-type.js +0 -14
  56. package/dist/api/generated/models/environment-team-link.d.ts +0 -24
  57. package/dist/api/generated/models/environment-team-link.js +0 -14
  58. package/dist/api/generated/models/environment-team.d.ts +0 -55
  59. package/dist/api/generated/models/environment-team.js +0 -14
@@ -27,8 +27,8 @@ export declare class EnvironmentsApplicationsApiService extends ApiBaseService {
27
27
  addEnvironmentApplication(environmentId: number, applicationEnvironmentCreate: ApplicationEnvironmentCreate): Promise<ApiResponse<Application>>;
28
28
  /**
29
29
  *
30
- * @summary Returns a list of all applications belonging to a environment
31
- * @param {number} environmentId Numeric ID of the environment to get applications from
30
+ * @summary Return a list of all Applications belonging to an environment
31
+ * @param {number} environmentId The ID of the environment.
32
32
  * @param {number} [page] Number of the page to be retrieved
33
33
  * @param {number} [perPage] Number of items returned per page
34
34
  */
@@ -51,8 +51,8 @@ class EnvironmentsApplicationsApiService extends ApiBaseService_1.ApiBaseService
51
51
  }
52
52
  /**
53
53
  *
54
- * @summary Returns a list of all applications belonging to a environment
55
- * @param {number} environmentId Numeric ID of the environment to get applications from
54
+ * @summary Return a list of all Applications belonging to an environment
55
+ * @param {number} environmentId The ID of the environment.
56
56
  * @param {number} [page] Number of the page to be retrieved
57
57
  * @param {number} [perPage] Number of items returned per page
58
58
  */
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
14
  import { SocialAccount } from '../../generated/models';
15
15
  import { SocialAccountCreate } from '../../generated/models';
16
+ import { SocialAccountRelation } from '../../generated/models';
16
17
  import { SocialAccountStatus } from '../../generated/models';
17
18
  /**
18
19
  * SocialAccountsApiService - Auto-generated
@@ -20,33 +21,33 @@ import { SocialAccountStatus } from '../../generated/models';
20
21
  export declare class SocialAccountsApiService extends ApiBaseService {
21
22
  /**
22
23
  *
23
- * @summary Create a new social account linked to the current user\'s profile
24
- * @param {SocialAccountCreate} socialAccountCreate A JSON object containing social provider callback data
24
+ * @summary Add a social account
25
+ * @param {SocialAccountCreate} socialAccountCreate A JSON object containing the resource data
25
26
  */
26
27
  addSocialAccount(socialAccountCreate: SocialAccountCreate): Promise<ApiResponse<SocialAccount>>;
27
28
  /**
28
29
  *
29
30
  * @summary Delete a given social account
30
- * @param {number} socialAccountId The Id of the social account to be deleted
31
+ * @param {number} socialAccountId The ID of the social account.
31
32
  */
32
33
  deleteSocialAccount(socialAccountId: number): Promise<ApiResponse<void>>;
33
34
  /**
34
35
  *
35
- * @summary Get details of a single Social authentication provider
36
- * @param {number} socialAccountId Unique ID of the provider to be retrieved
36
+ * @summary Get a social account by provider name
37
+ * @param {string} socialAccountProvider The social account provider name.
37
38
  */
38
- getSocialAccount(socialAccountId: number): Promise<ApiResponse<SocialAccount>>;
39
+ getSocialAccount(socialAccountProvider: string): Promise<ApiResponse<SocialAccount>>;
39
40
  /**
40
41
  *
41
- * @summary Get the connect status of a Social authentication provider, by its name
42
- * @param {string} socialAccountProviderName Unique name of the provider to be retrieved
42
+ * @summary Get status of a social account
43
+ * @param {string} socialAccountProvider The social account provider name.
43
44
  */
44
- getSocialAccountStatusByName(socialAccountProviderName: string): Promise<ApiResponse<SocialAccountStatus>>;
45
+ getSocialAccountStatus(socialAccountProvider: string): Promise<ApiResponse<SocialAccountStatus>>;
45
46
  /**
46
47
  *
47
- * @summary Return a list of all social accounts belonging to current user
48
+ * @summary Return a list of all social accounts of the current user
48
49
  * @param {number} [page] Number of the page to be retrieved
49
50
  * @param {number} [perPage] Number of items returned per page
50
51
  */
51
- listSocialAccounts(page?: number, perPage?: number): Promise<ApiResponse<Array<SocialAccount>>>;
52
+ listSocialAccounts(page?: number, perPage?: number): Promise<ApiResponse<Array<SocialAccountRelation>>>;
52
53
  }
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class SocialAccountsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Create a new social account linked to the current user\'s profile
35
- * @param {SocialAccountCreate} socialAccountCreate A JSON object containing social provider callback data
34
+ * @summary Add a social account
35
+ * @param {SocialAccountCreate} socialAccountCreate A JSON object containing the resource data
36
36
  */
37
37
  addSocialAccount(socialAccountCreate) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,7 +48,7 @@ class SocialAccountsApiService extends ApiBaseService_1.ApiBaseService {
48
48
  /**
49
49
  *
50
50
  * @summary Delete a given social account
51
- * @param {number} socialAccountId The Id of the social account to be deleted
51
+ * @param {number} socialAccountId The ID of the social account.
52
52
  */
53
53
  deleteSocialAccount(socialAccountId) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -63,39 +63,39 @@ class SocialAccountsApiService extends ApiBaseService_1.ApiBaseService {
63
63
  }
64
64
  /**
65
65
  *
66
- * @summary Get details of a single Social authentication provider
67
- * @param {number} socialAccountId Unique ID of the provider to be retrieved
66
+ * @summary Get a social account by provider name
67
+ * @param {string} socialAccountProvider The social account provider name.
68
68
  */
69
- getSocialAccount(socialAccountId) {
69
+ getSocialAccount(socialAccountProvider) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
- if (socialAccountId === null || socialAccountId === undefined) {
72
- throw new Exceptions_1.ArgumentNullException('socialAccountId', 'getSocialAccount');
71
+ if (socialAccountProvider === null || socialAccountProvider === undefined) {
72
+ throw new Exceptions_1.ArgumentNullException('socialAccountProvider', 'getSocialAccount');
73
73
  }
74
74
  let queryString = '';
75
- const requestUrl = '/social-accounts/{social_account_id}' + (queryString ? `?${queryString}` : '');
76
- const response = yield this.get(requestUrl.replace(`{${"social_account_id"}}`, encodeURIComponent(String(socialAccountId))));
75
+ const requestUrl = '/social-accounts/{social_account_provider}' + (queryString ? `?${queryString}` : '');
76
+ const response = yield this.get(requestUrl.replace(`{${"social_account_provider"}}`, encodeURIComponent(String(socialAccountProvider))));
77
77
  return new ApiResponse_1.ApiResponse(response);
78
78
  });
79
79
  }
80
80
  /**
81
81
  *
82
- * @summary Get the connect status of a Social authentication provider, by its name
83
- * @param {string} socialAccountProviderName Unique name of the provider to be retrieved
82
+ * @summary Get status of a social account
83
+ * @param {string} socialAccountProvider The social account provider name.
84
84
  */
85
- getSocialAccountStatusByName(socialAccountProviderName) {
85
+ getSocialAccountStatus(socialAccountProvider) {
86
86
  return __awaiter(this, void 0, void 0, function* () {
87
- if (socialAccountProviderName === null || socialAccountProviderName === undefined) {
88
- throw new Exceptions_1.ArgumentNullException('socialAccountProviderName', 'getSocialAccountStatusByName');
87
+ if (socialAccountProvider === null || socialAccountProvider === undefined) {
88
+ throw new Exceptions_1.ArgumentNullException('socialAccountProvider', 'getSocialAccountStatus');
89
89
  }
90
90
  let queryString = '';
91
- const requestUrl = '/social-accounts/{social_account_provider_name}/status' + (queryString ? `?${queryString}` : '');
92
- const response = yield this.get(requestUrl.replace(`{${"social_account_provider_name"}}`, encodeURIComponent(String(socialAccountProviderName))));
91
+ const requestUrl = '/social-accounts/{social_account_provider}/status' + (queryString ? `?${queryString}` : '');
92
+ const response = yield this.get(requestUrl.replace(`{${"social_account_provider"}}`, encodeURIComponent(String(socialAccountProvider))));
93
93
  return new ApiResponse_1.ApiResponse(response);
94
94
  });
95
95
  }
96
96
  /**
97
97
  *
98
- * @summary Return a list of all social accounts belonging to current user
98
+ * @summary Return a list of all social accounts of the current user
99
99
  * @param {number} [page] Number of the page to be retrieved
100
100
  * @param {number} [perPage] Number of items returned per page
101
101
  */
@@ -110,7 +110,7 @@ export interface ActionRetryResponse {
110
110
  * @type {EnvironmentRelation}
111
111
  * @memberof ActionRetryResponse
112
112
  */
113
- environment?: EnvironmentRelation;
113
+ environment?: EnvironmentRelation | null;
114
114
  /**
115
115
  *
116
116
  * @type {ProjectRelation}
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * * `hook`: the action have been triggered by an `incoming hook`. * `manual`: the action have been manually triggered.
13
+ * * `hook`: the action have been triggered by an `incoming hook`. * `manual`: the action have been manually triggered.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ActionTriggerType = void 0;
16
16
  /**
17
- * * `hook`: the action have been triggered by an `incoming hook`. * `manual`: the action have been manually triggered.
17
+ * * `hook`: the action have been triggered by an `incoming hook`. * `manual`: the action have been manually triggered.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -110,7 +110,7 @@ export interface Action {
110
110
  * @type {EnvironmentRelation}
111
111
  * @memberof Action
112
112
  */
113
- environment?: EnvironmentRelation;
113
+ environment?: EnvironmentRelation | null;
114
114
  /**
115
115
  *
116
116
  * @type {ProjectRelation}
@@ -184,7 +184,7 @@ export interface Application {
184
184
  * @type {EnvironmentRelation}
185
185
  * @memberof Application
186
186
  */
187
- environment: EnvironmentRelation;
187
+ environment: EnvironmentRelation | null;
188
188
  /**
189
189
  *
190
190
  * @type {Array<ServerRelation>}
@@ -93,7 +93,7 @@ export interface CronJob {
93
93
  * @type {EnvironmentRelation}
94
94
  * @memberof CronJob
95
95
  */
96
- environment: EnvironmentRelation;
96
+ environment: EnvironmentRelation | null;
97
97
  /**
98
98
  *
99
99
  * @type {Array<ServerRelation>}
@@ -85,7 +85,7 @@ export interface Daemon {
85
85
  * @type {EnvironmentRelation}
86
86
  * @memberof Daemon
87
87
  */
88
- environment: EnvironmentRelation;
88
+ environment: EnvironmentRelation | null;
89
89
  /**
90
90
  *
91
91
  * @type {Array<ServerRelation>}
@@ -12,25 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface EnvironmentLinkItem
15
+ * @interface EnvironmentLink
16
16
  */
17
- export interface EnvironmentLinkItem {
17
+ export interface EnvironmentLink {
18
18
  /**
19
19
  * Environment\'s unique id
20
20
  * @type {number}
21
- * @memberof EnvironmentLinkItem
21
+ * @memberof EnvironmentLink
22
22
  */
23
23
  id: number;
24
24
  /**
25
25
  * Environment\'s name
26
26
  * @type {string}
27
- * @memberof EnvironmentLinkItem
27
+ * @memberof EnvironmentLink
28
28
  */
29
29
  name?: string | null;
30
30
  /**
31
31
  * A list of server IDs to which the item link/unlink operations must be performed
32
32
  * @type {Array<number>}
33
- * @memberof EnvironmentLinkItem
33
+ * @memberof EnvironmentLink
34
34
  */
35
35
  servers: Array<number>;
36
36
  }
@@ -45,11 +45,11 @@ export interface EnvironmentRelation {
45
45
  * @type {string}
46
46
  * @memberof EnvironmentRelation
47
47
  */
48
- created_at?: string;
48
+ created_at: string;
49
49
  /**
50
50
  * The date and time when the record was last updated
51
51
  * @type {string}
52
52
  * @memberof EnvironmentRelation
53
53
  */
54
- updated_at?: string;
54
+ updated_at: string;
55
55
  }
@@ -16,6 +16,6 @@
16
16
  */
17
17
  export declare enum EnvironmentType {
18
18
  Development = "development",
19
- Staging = "staging",
20
- Production = "production"
19
+ Production = "production",
20
+ Staging = "staging"
21
21
  }
@@ -21,6 +21,6 @@ exports.EnvironmentType = void 0;
21
21
  var EnvironmentType;
22
22
  (function (EnvironmentType) {
23
23
  EnvironmentType["Development"] = "development";
24
- EnvironmentType["Staging"] = "staging";
25
24
  EnvironmentType["Production"] = "production";
25
+ EnvironmentType["Staging"] = "staging";
26
26
  })(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {}));
@@ -17,21 +17,21 @@ import { EnvironmentType } from './environment-type';
17
17
  */
18
18
  export interface EnvironmentUpdate {
19
19
  /**
20
- * Environment\'s unique id
20
+ * Environment\'s unique ID.
21
21
  * @type {number}
22
22
  * @memberof EnvironmentUpdate
23
23
  */
24
24
  id: number;
25
- /**
26
- * The environment\'s name
27
- * @type {string}
28
- * @memberof EnvironmentUpdate
29
- */
30
- name: string;
31
25
  /**
32
26
  *
33
27
  * @type {EnvironmentType}
34
28
  * @memberof EnvironmentUpdate
35
29
  */
36
30
  type: EnvironmentType;
31
+ /**
32
+ * The environment\'s name. Must not be greater than 60 characters.
33
+ * @type {string}
34
+ * @memberof EnvironmentUpdate
35
+ */
36
+ name: string;
37
37
  }
@@ -5,13 +5,10 @@ export * from './action-deployment-commit';
5
5
  export * from './action-deployment-content';
6
6
  export * from './action-deployment-data';
7
7
  export * from './action-hook-request';
8
- export * from './action-list-item';
9
- export * from './action-list-item-params';
10
8
  export * from './action-relation';
11
9
  export * from './action-retry-response';
12
10
  export * from './action-status';
13
11
  export * from './action-step';
14
- export * from './action-step-log';
15
12
  export * from './action-summary';
16
13
  export * from './action-summary-server';
17
14
  export * from './action-trigger-type';
@@ -21,7 +18,6 @@ export * from './api-error';
21
18
  export * from './api-error-errors';
22
19
  export * from './api-error-errors-field-name';
23
20
  export * from './application';
24
- export * from './application-deployment';
25
21
  export * from './application-environment-create';
26
22
  export * from './application-last-deployments';
27
23
  export * from './application-options';
@@ -65,21 +61,12 @@ export * from './daemon-restart';
65
61
  export * from './daemon-update';
66
62
  export * from './deployment-application-create';
67
63
  export * from './deployment-default-step';
68
- export * from './deployment-origin';
69
- export * from './deployment-source';
70
64
  export * from './deployment-type';
71
65
  export * from './environment';
72
- export * from './environment-id-request';
73
- export * from './environment-link-item';
74
- export * from './environment-link-server';
75
- export * from './environment-member';
76
- export * from './environment-member-profile';
77
- export * from './environment-option-type';
66
+ export * from './environment-link';
78
67
  export * from './environment-options';
79
68
  export * from './environment-project-create';
80
69
  export * from './environment-relation';
81
- export * from './environment-team';
82
- export * from './environment-team-link';
83
70
  export * from './environment-type';
84
71
  export * from './environment-update';
85
72
  export * from './hook';
@@ -175,6 +162,7 @@ export * from './social-account';
175
162
  export * from './social-account-create';
176
163
  export * from './social-account-displayable-name';
177
164
  export * from './social-account-provider';
165
+ export * from './social-account-relation';
178
166
  export * from './social-account-status';
179
167
  export * from './source-provider';
180
168
  export * from './source-provider-create';
@@ -21,13 +21,10 @@ __exportStar(require("./action-deployment-commit"), exports);
21
21
  __exportStar(require("./action-deployment-content"), exports);
22
22
  __exportStar(require("./action-deployment-data"), exports);
23
23
  __exportStar(require("./action-hook-request"), exports);
24
- __exportStar(require("./action-list-item"), exports);
25
- __exportStar(require("./action-list-item-params"), exports);
26
24
  __exportStar(require("./action-relation"), exports);
27
25
  __exportStar(require("./action-retry-response"), exports);
28
26
  __exportStar(require("./action-status"), exports);
29
27
  __exportStar(require("./action-step"), exports);
30
- __exportStar(require("./action-step-log"), exports);
31
28
  __exportStar(require("./action-summary"), exports);
32
29
  __exportStar(require("./action-summary-server"), exports);
33
30
  __exportStar(require("./action-trigger-type"), exports);
@@ -37,7 +34,6 @@ __exportStar(require("./api-error"), exports);
37
34
  __exportStar(require("./api-error-errors"), exports);
38
35
  __exportStar(require("./api-error-errors-field-name"), exports);
39
36
  __exportStar(require("./application"), exports);
40
- __exportStar(require("./application-deployment"), exports);
41
37
  __exportStar(require("./application-environment-create"), exports);
42
38
  __exportStar(require("./application-last-deployments"), exports);
43
39
  __exportStar(require("./application-options"), exports);
@@ -81,21 +77,12 @@ __exportStar(require("./daemon-restart"), exports);
81
77
  __exportStar(require("./daemon-update"), exports);
82
78
  __exportStar(require("./deployment-application-create"), exports);
83
79
  __exportStar(require("./deployment-default-step"), exports);
84
- __exportStar(require("./deployment-origin"), exports);
85
- __exportStar(require("./deployment-source"), exports);
86
80
  __exportStar(require("./deployment-type"), exports);
87
81
  __exportStar(require("./environment"), exports);
88
- __exportStar(require("./environment-id-request"), exports);
89
- __exportStar(require("./environment-link-item"), exports);
90
- __exportStar(require("./environment-link-server"), exports);
91
- __exportStar(require("./environment-member"), exports);
92
- __exportStar(require("./environment-member-profile"), exports);
93
- __exportStar(require("./environment-option-type"), exports);
82
+ __exportStar(require("./environment-link"), exports);
94
83
  __exportStar(require("./environment-options"), exports);
95
84
  __exportStar(require("./environment-project-create"), exports);
96
85
  __exportStar(require("./environment-relation"), exports);
97
- __exportStar(require("./environment-team"), exports);
98
- __exportStar(require("./environment-team-link"), exports);
99
86
  __exportStar(require("./environment-type"), exports);
100
87
  __exportStar(require("./environment-update"), exports);
101
88
  __exportStar(require("./hook"), exports);
@@ -191,6 +178,7 @@ __exportStar(require("./social-account"), exports);
191
178
  __exportStar(require("./social-account-create"), exports);
192
179
  __exportStar(require("./social-account-displayable-name"), exports);
193
180
  __exportStar(require("./social-account-provider"), exports);
181
+ __exportStar(require("./social-account-relation"), exports);
194
182
  __exportStar(require("./social-account-status"), exports);
195
183
  __exportStar(require("./source-provider"), exports);
196
184
  __exportStar(require("./source-provider-create"), exports);
@@ -92,7 +92,7 @@ export interface NetworkRule {
92
92
  * @type {EnvironmentRelation}
93
93
  * @memberof NetworkRule
94
94
  */
95
- environment: EnvironmentRelation;
95
+ environment: EnvironmentRelation | null;
96
96
  /**
97
97
  *
98
98
  * @type {Array<ServerRelation>}
@@ -42,6 +42,12 @@ export interface RelatedAction {
42
42
  * @memberof RelatedAction
43
43
  */
44
44
  type_human_readable: string;
45
+ /**
46
+ * The name of the resource
47
+ * @type {string}
48
+ * @memberof RelatedAction
49
+ */
50
+ resource_name?: string;
45
51
  /**
46
52
  *
47
53
  * @type {ResourceType}
@@ -110,7 +110,7 @@ export interface Server {
110
110
  * @type {EnvironmentRelation}
111
111
  * @memberof Server
112
112
  */
113
- environment: EnvironmentRelation;
113
+ environment: EnvironmentRelation | null;
114
114
  /**
115
115
  * The date and time when the record was created
116
116
  * @type {string}
@@ -80,7 +80,7 @@ export interface Service {
80
80
  * @type {EnvironmentRelation}
81
81
  * @memberof Service
82
82
  */
83
- environment: EnvironmentRelation;
83
+ environment: EnvironmentRelation | null;
84
84
  /**
85
85
  *
86
86
  * @type {UserRelation}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { SocialAccountProvider } from './social-account-provider';
12
+ import { SourceProviderName } from './source-provider-name';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,12 +18,12 @@ import { SocialAccountProvider } from './social-account-provider';
18
18
  export interface SocialAccountCreate {
19
19
  /**
20
20
  *
21
- * @type {SocialAccountProvider}
21
+ * @type {SourceProviderName}
22
22
  * @memberof SocialAccountCreate
23
23
  */
24
- provider: SocialAccountProvider;
24
+ provider: SourceProviderName;
25
25
  /**
26
- * The temporary code forwarded by the OAuth provider as a parameter to our callback URL
26
+ * The temporary code forwarded by the OAuth provider as a parameter to our callback URL. Must be at least 8 characters.
27
27
  * @type {string}
28
28
  * @memberof SocialAccountCreate
29
29
  */
@@ -19,6 +19,5 @@ export declare enum SocialAccountDisplayableName {
19
19
  Facebook = "Facebook",
20
20
  GitHub = "GitHub",
21
21
  GitLab = "GitLab",
22
- Google = "Google",
23
- LinkedIn = "LinkedIn"
22
+ Google = "Google"
24
23
  }
@@ -25,5 +25,4 @@ var SocialAccountDisplayableName;
25
25
  SocialAccountDisplayableName["GitHub"] = "GitHub";
26
26
  SocialAccountDisplayableName["GitLab"] = "GitLab";
27
27
  SocialAccountDisplayableName["Google"] = "Google";
28
- SocialAccountDisplayableName["LinkedIn"] = "LinkedIn";
29
28
  })(SocialAccountDisplayableName = exports.SocialAccountDisplayableName || (exports.SocialAccountDisplayableName = {}));
@@ -19,6 +19,5 @@ export declare enum SocialAccountProvider {
19
19
  Facebook = "facebook",
20
20
  Github = "github",
21
21
  Gitlab = "gitlab",
22
- Google = "google",
23
- Linkedin = "linkedin"
22
+ Google = "google"
24
23
  }
@@ -25,5 +25,4 @@ var SocialAccountProvider;
25
25
  SocialAccountProvider["Github"] = "github";
26
26
  SocialAccountProvider["Gitlab"] = "gitlab";
27
27
  SocialAccountProvider["Google"] = "google";
28
- SocialAccountProvider["Linkedin"] = "linkedin";
29
28
  })(SocialAccountProvider = exports.SocialAccountProvider || (exports.SocialAccountProvider = {}));
@@ -0,0 +1,74 @@
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 { SocialAccountDisplayableName } from './social-account-displayable-name';
13
+ import { SocialAccountProvider } from './social-account-provider';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SocialAccountRelation
18
+ */
19
+ export interface SocialAccountRelation {
20
+ /**
21
+ * The ID of the given social account
22
+ * @type {number}
23
+ * @memberof SocialAccountRelation
24
+ */
25
+ id: number;
26
+ /**
27
+ * The current user\'s ID
28
+ * @type {number}
29
+ * @memberof SocialAccountRelation
30
+ */
31
+ user_id: number;
32
+ /**
33
+ *
34
+ * @type {SocialAccountProvider}
35
+ * @memberof SocialAccountRelation
36
+ */
37
+ provider: SocialAccountProvider;
38
+ /**
39
+ *
40
+ * @type {SocialAccountDisplayableName}
41
+ * @memberof SocialAccountRelation
42
+ */
43
+ provider_human_readable: SocialAccountDisplayableName;
44
+ /**
45
+ * The nickname of the user on the Source Authentication provider
46
+ * @type {string}
47
+ * @memberof SocialAccountRelation
48
+ */
49
+ provider_user_nickname: string;
50
+ /**
51
+ * Tells if the social account provider is a Source Code Provider/Version Control System. e.g. false for Facebook, true for Github
52
+ * @type {boolean}
53
+ * @memberof SocialAccountRelation
54
+ */
55
+ is_vcs: boolean;
56
+ /**
57
+ * The date and time indicating when the authentication token will expire at
58
+ * @type {string}
59
+ * @memberof SocialAccountRelation
60
+ */
61
+ token_expires_at: string | null;
62
+ /**
63
+ * The date and time when the record was created
64
+ * @type {string}
65
+ * @memberof SocialAccountRelation
66
+ */
67
+ created_at: string;
68
+ /**
69
+ * The date and time when the record was last updated
70
+ * @type {string}
71
+ * @memberof SocialAccountRelation
72
+ */
73
+ updated_at: string;
74
+ }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { SocialAccountProvider } from './social-account-provider';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -17,21 +16,21 @@ import { SocialAccountProvider } from './social-account-provider';
17
16
  */
18
17
  export interface SocialAccountStatus {
19
18
  /**
20
- *
21
- * @type {SocialAccountProvider}
19
+ * Name of the provider
20
+ * @type {string}
22
21
  * @memberof SocialAccountStatus
23
22
  */
24
- provider?: SocialAccountProvider;
23
+ provider: string;
25
24
  /**
26
- * Tells if the provider is already connected to the current user\'s account
25
+ * If the account is currently connected
27
26
  * @type {boolean}
28
27
  * @memberof SocialAccountStatus
29
28
  */
30
- connected?: boolean;
29
+ connected: boolean;
31
30
  /**
32
- * A URL path to the provider\'s OAuth page
31
+ * URL of the connection
33
32
  * @type {string}
34
33
  * @memberof SocialAccountStatus
35
34
  */
36
- connect_url?: string;
35
+ connect_url: string;
37
36
  }