@daytonaio/api-client 0.15.0 → 0.17.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.
- package/.openapi-generator/FILES +5 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +412 -324
- package/api/docker-registry-api.ts +731 -549
- package/api/images-api.ts +596 -346
- package/api/nodes-api.ts +259 -210
- package/api/organizations-api.ts +2504 -1671
- package/api/preview-api.ts +330 -0
- package/api/toolbox-api.ts +4651 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1536 -969
- package/api.ts +10 -12
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.js +66 -63
- package/dist/api/docker-registry-api.js +123 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +161 -66
- package/dist/api/nodes-api.js +46 -47
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +560 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +269 -0
- package/dist/api/toolbox-api.js +709 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +51 -4
- package/dist/api/workspace-api.js +330 -190
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +6 -7
- package/dist/common.d.ts +3 -3
- package/dist/common.js +27 -45
- package/dist/configuration.js +2 -1
- package/dist/esm/api/api-keys-api.js +67 -64
- package/dist/esm/api/docker-registry-api.js +124 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +162 -67
- package/dist/esm/api/nodes-api.js +47 -48
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +561 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +262 -0
- package/dist/esm/api/toolbox-api.js +710 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +51 -4
- package/dist/esm/api/workspace-api.js +331 -191
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/base.js +6 -7
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +28 -46
- package/dist/esm/configuration.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/models/api-key-list.d.ts +12 -12
- package/dist/esm/models/api-key-list.js +6 -6
- package/dist/esm/models/api-key-response.d.ts +12 -12
- package/dist/esm/models/api-key-response.js +6 -6
- package/dist/esm/models/command.d.ts +3 -3
- package/dist/esm/models/completion-context.d.ts +2 -2
- package/dist/esm/models/completion-item.d.ts +7 -7
- package/dist/esm/models/completion-list.d.ts +2 -2
- package/dist/esm/models/create-api-key.d.ts +9 -9
- package/dist/esm/models/create-api-key.js +6 -6
- package/dist/esm/models/create-docker-registry.d.ts +8 -8
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-image.d.ts +9 -3
- package/dist/esm/models/create-node.d.ts +13 -13
- package/dist/esm/models/create-node.js +2 -2
- package/dist/esm/models/create-organization-invitation.d.ts +6 -6
- package/dist/esm/models/create-organization-invitation.js +1 -1
- package/dist/esm/models/create-organization-quota.d.ts +11 -11
- package/dist/esm/models/create-organization-role.d.ts +10 -10
- package/dist/esm/models/create-organization-role.js +6 -6
- package/dist/esm/models/create-organization.d.ts +1 -67
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +15 -4
- package/dist/esm/models/create-user.js +4 -1
- package/dist/esm/models/create-workspace.d.ts +14 -26
- package/dist/esm/models/create-workspace.js +2 -2
- package/dist/esm/models/docker-registry.d.ts +11 -11
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/execute-request.d.ts +3 -3
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/file-info.d.ts +8 -8
- package/dist/esm/models/file-status.d.ts +4 -4
- package/dist/esm/models/git-add-request.d.ts +2 -2
- package/dist/esm/models/git-branch-request.d.ts +2 -2
- package/dist/esm/models/git-clone-request.d.ts +6 -6
- package/dist/esm/models/git-commit-info.d.ts +5 -5
- package/dist/esm/models/git-commit-request.d.ts +4 -4
- package/dist/esm/models/git-commit-response.d.ts +1 -1
- package/dist/esm/models/git-repo-request.d.ts +3 -3
- package/dist/esm/models/git-status.d.ts +4 -4
- package/dist/esm/models/image-dto.d.ts +21 -15
- package/dist/esm/models/image-state.d.ts +1 -1
- package/dist/esm/models/image-state.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
- package/dist/esm/models/lsp-completion-params.d.ts +5 -5
- package/dist/esm/models/lsp-document-request.d.ts +3 -3
- package/dist/esm/models/lsp-location.d.ts +2 -2
- package/dist/esm/models/lsp-server-request.d.ts +2 -2
- package/dist/esm/models/lsp-symbol.d.ts +3 -3
- package/dist/esm/models/match.d.ts +3 -3
- package/dist/esm/models/organization-invitation.d.ts +21 -15
- package/dist/esm/models/organization-invitation.js +2 -2
- package/dist/esm/models/organization-role.d.ts +16 -16
- package/dist/esm/models/organization-role.js +6 -6
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +31 -7
- package/dist/esm/models/paginated-images-dto.d.ts +4 -4
- package/dist/esm/models/port-preview-url.d.ts +30 -0
- package/dist/esm/models/port-preview-url.js +14 -0
- package/dist/esm/models/position.d.ts +2 -2
- package/dist/esm/models/project-dir-response.d.ts +1 -1
- package/dist/esm/models/range.d.ts +2 -2
- package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
- package/dist/esm/models/replace-request.d.ts +3 -3
- package/dist/esm/models/replace-result.d.ts +3 -3
- package/dist/esm/models/search-files-response.d.ts +1 -1
- package/dist/esm/models/session-execute-request.d.ts +9 -2
- package/dist/esm/models/session-execute-response.d.ts +3 -3
- package/dist/esm/models/session.d.ts +2 -2
- package/dist/esm/models/set-image-general-status.d.ts +24 -0
- package/dist/esm/models/set-image-general-status.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +1 -1
- package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +5 -5
- package/dist/esm/models/update-organization-invitation.js +1 -1
- package/dist/esm/models/update-organization-member-role.d.ts +2 -2
- package/dist/esm/models/update-organization-member-role.js +1 -1
- package/dist/esm/models/update-organization-quota.d.ts +11 -11
- package/dist/esm/models/update-organization-role.d.ts +10 -10
- package/dist/esm/models/update-organization-role.js +6 -6
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +2 -2
- package/dist/esm/models/user.d.ts +4 -4
- package/dist/esm/models/workspace-info.d.ts +5 -4
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +2 -2
- package/dist/esm/models/workspace-state.js +2 -2
- package/dist/esm/models/workspace.d.ts +26 -19
- package/dist/esm/models/workspace.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/models/api-key-list.d.ts +12 -12
- package/dist/models/api-key-list.js +6 -6
- package/dist/models/api-key-response.d.ts +12 -12
- package/dist/models/api-key-response.js +6 -6
- package/dist/models/command.d.ts +3 -3
- package/dist/models/completion-context.d.ts +2 -2
- package/dist/models/completion-item.d.ts +7 -7
- package/dist/models/completion-list.d.ts +2 -2
- package/dist/models/create-api-key.d.ts +9 -9
- package/dist/models/create-api-key.js +6 -6
- package/dist/models/create-docker-registry.d.ts +8 -8
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-image.d.ts +9 -3
- package/dist/models/create-node.d.ts +13 -13
- package/dist/models/create-node.js +2 -2
- package/dist/models/create-organization-invitation.d.ts +6 -6
- package/dist/models/create-organization-invitation.js +1 -1
- package/dist/models/create-organization-quota.d.ts +11 -11
- package/dist/models/create-organization-role.d.ts +10 -10
- package/dist/models/create-organization-role.js +6 -6
- package/dist/models/create-organization.d.ts +1 -67
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +15 -4
- package/dist/models/create-user.js +5 -0
- package/dist/models/create-workspace.d.ts +14 -26
- package/dist/models/create-workspace.js +2 -2
- package/dist/models/docker-registry.d.ts +11 -11
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/execute-request.d.ts +3 -3
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/file-info.d.ts +8 -8
- package/dist/models/file-status.d.ts +4 -4
- package/dist/models/git-add-request.d.ts +2 -2
- package/dist/models/git-branch-request.d.ts +2 -2
- package/dist/models/git-clone-request.d.ts +6 -6
- package/dist/models/git-commit-info.d.ts +5 -5
- package/dist/models/git-commit-request.d.ts +4 -4
- package/dist/models/git-commit-response.d.ts +1 -1
- package/dist/models/git-repo-request.d.ts +3 -3
- package/dist/models/git-status.d.ts +4 -4
- package/dist/models/image-dto.d.ts +21 -15
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/models/list-workspaces-labels-parameter.js +15 -0
- package/dist/models/lsp-completion-params.d.ts +5 -5
- package/dist/models/lsp-document-request.d.ts +3 -3
- package/dist/models/lsp-location.d.ts +2 -2
- package/dist/models/lsp-server-request.d.ts +2 -2
- package/dist/models/lsp-symbol.d.ts +3 -3
- package/dist/models/match.d.ts +3 -3
- package/dist/models/organization-invitation.d.ts +21 -15
- package/dist/models/organization-invitation.js +2 -2
- package/dist/models/organization-role.d.ts +16 -16
- package/dist/models/organization-role.js +6 -6
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +31 -7
- package/dist/models/paginated-images-dto.d.ts +4 -4
- package/dist/models/port-preview-url.d.ts +30 -0
- package/dist/models/port-preview-url.js +15 -0
- package/dist/models/position.d.ts +2 -2
- package/dist/models/project-dir-response.d.ts +1 -1
- package/dist/models/range.d.ts +2 -2
- package/dist/models/registry-push-access-dto.d.ts +6 -6
- package/dist/models/replace-request.d.ts +3 -3
- package/dist/models/replace-result.d.ts +3 -3
- package/dist/models/search-files-response.d.ts +1 -1
- package/dist/models/session-execute-request.d.ts +9 -2
- package/dist/models/session-execute-response.d.ts +3 -3
- package/dist/models/session.d.ts +2 -2
- package/dist/models/set-image-general-status.d.ts +24 -0
- package/dist/models/set-image-general-status.js +15 -0
- package/dist/models/toggle-state.d.ts +1 -1
- package/dist/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +5 -5
- package/dist/models/update-organization-invitation.js +1 -1
- package/dist/models/update-organization-member-role.d.ts +2 -2
- package/dist/models/update-organization-member-role.js +1 -1
- package/dist/models/update-organization-quota.d.ts +11 -11
- package/dist/models/update-organization-role.d.ts +10 -10
- package/dist/models/update-organization-role.js +6 -6
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +2 -2
- package/dist/models/user.d.ts +4 -4
- package/dist/models/workspace-info.d.ts +5 -4
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +2 -2
- package/dist/models/workspace-state.js +2 -2
- package/dist/models/workspace.d.ts +26 -19
- package/dist/models/workspace.js +1 -1
- package/index.ts +4 -5
- package/models/api-key-list.ts +34 -38
- package/models/api-key-response.ts +35 -38
- package/models/command.ts +20 -23
- package/models/completion-context.ts +14 -17
- package/models/completion-item.ts +44 -47
- package/models/completion-list.ts +15 -17
- package/models/create-api-key.ts +22 -26
- package/models/create-docker-registry.ts +51 -54
- package/models/create-image.ts +20 -17
- package/models/create-node.ts +78 -82
- package/models/create-organization-invitation.ts +31 -34
- package/models/create-organization-quota.ts +68 -71
- package/models/create-organization-role.ts +29 -32
- package/models/create-organization.ts +8 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +84 -100
- package/models/docker-registry.ts +57 -60
- package/models/execute-request.ts +20 -23
- package/models/execute-response.ts +14 -17
- package/models/file-info.ts +50 -53
- package/models/file-status.ts +26 -29
- package/models/git-add-request.ts +14 -17
- package/models/git-branch-request.ts +14 -17
- package/models/git-clone-request.ts +38 -41
- package/models/git-commit-info.ts +32 -35
- package/models/git-commit-request.ts +26 -29
- package/models/git-commit-response.ts +8 -11
- package/models/git-repo-request.ts +20 -23
- package/models/git-status.ts +33 -35
- package/models/image-dto.ts +75 -73
- package/models/image-state.ts +12 -17
- package/models/index.ts +72 -68
- package/models/list-branch-response.ts +8 -11
- package/models/list-workspaces-labels-parameter.ts +27 -0
- package/models/lsp-completion-params.ts +34 -36
- package/models/lsp-document-request.ts +20 -23
- package/models/lsp-location.ts +15 -17
- package/models/lsp-server-request.ts +14 -17
- package/models/lsp-symbol.ts +21 -23
- package/models/match.ts +20 -23
- package/models/organization-invitation.ts +81 -76
- package/models/organization-role.ts +53 -56
- package/models/organization-suspension.ts +33 -0
- package/models/organization-user.ts +55 -58
- package/models/organization.ts +62 -41
- package/models/paginated-images-dto.ts +27 -29
- package/models/port-preview-url.ts +33 -0
- package/models/position.ts +14 -17
- package/models/project-dir-response.ts +8 -11
- package/models/range.ts +15 -17
- package/models/registry-push-access-dto.ts +38 -41
- package/models/replace-request.ts +20 -23
- package/models/replace-result.ts +20 -23
- package/models/search-files-response.ts +8 -11
- package/models/session-execute-request.ts +21 -17
- package/models/session-execute-response.ts +20 -23
- package/models/session.ts +15 -17
- package/models/set-image-general-status.ts +27 -0
- package/models/toggle-state.ts +8 -11
- package/models/update-assigned-organization-roles.ts +8 -11
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +25 -28
- package/models/update-organization-member-role.ts +13 -16
- package/models/update-organization-quota.ts +68 -71
- package/models/update-organization-role.ts +29 -32
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +14 -17
- package/models/user.ts +27 -29
- package/models/workspace-info.ts +21 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +126 -122
- package/package.json +2 -2
- package/project.json +49 -0
- package/tsconfig.json +3 -8
- package/README.md +0 -46
- package/git_push.sh +0 -57
package/dist/api/images-api.js
CHANGED
|
@@ -12,15 +12,6 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
16
|
exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = void 0;
|
|
26
17
|
const axios_1 = require("axios");
|
|
@@ -43,7 +34,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
43
34
|
* @param {*} [options] Override http request option.
|
|
44
35
|
* @throws {RequiredError}
|
|
45
36
|
*/
|
|
46
|
-
createImage:
|
|
37
|
+
createImage: async (createImage, xDaytonaOrganizationID, options = {}) => {
|
|
47
38
|
// verify required parameter 'createImage' is not null or undefined
|
|
48
39
|
(0, common_1.assertParamExists)('createImage', 'createImage', createImage);
|
|
49
40
|
const localVarPath = `/images`;
|
|
@@ -56,13 +47,16 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
56
47
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
57
48
|
const localVarHeaderParameter = {};
|
|
58
49
|
const localVarQueryParameter = {};
|
|
50
|
+
// authentication bearer required
|
|
51
|
+
// http bearer authentication required
|
|
52
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
59
53
|
// authentication oauth2 required
|
|
60
54
|
// oauth required
|
|
61
|
-
|
|
55
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
56
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
57
|
if (xDaytonaOrganizationID != null) {
|
|
63
58
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
64
59
|
}
|
|
65
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
66
60
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
61
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
62
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -71,7 +65,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
71
65
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
72
66
|
options: localVarRequestOptions,
|
|
73
67
|
};
|
|
74
|
-
}
|
|
68
|
+
},
|
|
75
69
|
/**
|
|
76
70
|
*
|
|
77
71
|
* @summary List all images
|
|
@@ -81,7 +75,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
81
75
|
* @param {*} [options] Override http request option.
|
|
82
76
|
* @throws {RequiredError}
|
|
83
77
|
*/
|
|
84
|
-
getAllImages:
|
|
78
|
+
getAllImages: async (xDaytonaOrganizationID, limit, page, options = {}) => {
|
|
85
79
|
const localVarPath = `/images`;
|
|
86
80
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
81
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -92,9 +86,12 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
92
86
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
93
87
|
const localVarHeaderParameter = {};
|
|
94
88
|
const localVarQueryParameter = {};
|
|
89
|
+
// authentication bearer required
|
|
90
|
+
// http bearer authentication required
|
|
91
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
95
92
|
// authentication oauth2 required
|
|
96
93
|
// oauth required
|
|
97
|
-
|
|
94
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
98
95
|
if (limit !== undefined) {
|
|
99
96
|
localVarQueryParameter['limit'] = limit;
|
|
100
97
|
}
|
|
@@ -111,7 +108,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
111
108
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
112
109
|
options: localVarRequestOptions,
|
|
113
110
|
};
|
|
114
|
-
}
|
|
111
|
+
},
|
|
115
112
|
/**
|
|
116
113
|
*
|
|
117
114
|
* @summary Delete image
|
|
@@ -120,11 +117,10 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
120
117
|
* @param {*} [options] Override http request option.
|
|
121
118
|
* @throws {RequiredError}
|
|
122
119
|
*/
|
|
123
|
-
removeImage:
|
|
120
|
+
removeImage: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
124
121
|
// verify required parameter 'id' is not null or undefined
|
|
125
122
|
(0, common_1.assertParamExists)('removeImage', 'id', id);
|
|
126
|
-
const localVarPath = `/images/{id}`
|
|
127
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
123
|
+
const localVarPath = `/images/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
128
124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
125
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
126
|
let baseOptions;
|
|
@@ -134,9 +130,12 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
134
130
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
135
131
|
const localVarHeaderParameter = {};
|
|
136
132
|
const localVarQueryParameter = {};
|
|
133
|
+
// authentication bearer required
|
|
134
|
+
// http bearer authentication required
|
|
135
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
137
136
|
// authentication oauth2 required
|
|
138
137
|
// oauth required
|
|
139
|
-
|
|
138
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
140
139
|
if (xDaytonaOrganizationID != null) {
|
|
141
140
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
142
141
|
}
|
|
@@ -147,7 +146,50 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
147
146
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
148
147
|
options: localVarRequestOptions,
|
|
149
148
|
};
|
|
150
|
-
}
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Set image general status
|
|
153
|
+
* @param {string} id Image ID
|
|
154
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
155
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
setImageGeneralStatus: async (id, setImageGeneralStatus, xDaytonaOrganizationID, options = {}) => {
|
|
160
|
+
// verify required parameter 'id' is not null or undefined
|
|
161
|
+
(0, common_1.assertParamExists)('setImageGeneralStatus', 'id', id);
|
|
162
|
+
// verify required parameter 'setImageGeneralStatus' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('setImageGeneralStatus', 'setImageGeneralStatus', setImageGeneralStatus);
|
|
164
|
+
const localVarPath = `/images/{id}/general`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
165
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
166
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
let baseOptions;
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
}
|
|
171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
172
|
+
const localVarHeaderParameter = {};
|
|
173
|
+
const localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
177
|
+
// authentication oauth2 required
|
|
178
|
+
// oauth required
|
|
179
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
+
if (xDaytonaOrganizationID != null) {
|
|
182
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
183
|
+
}
|
|
184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setImageGeneralStatus, localVarRequestOptions, configuration);
|
|
188
|
+
return {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
151
193
|
/**
|
|
152
194
|
*
|
|
153
195
|
* @summary Toggle image state
|
|
@@ -157,13 +199,12 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
157
199
|
* @param {*} [options] Override http request option.
|
|
158
200
|
* @throws {RequiredError}
|
|
159
201
|
*/
|
|
160
|
-
toggleImageState:
|
|
202
|
+
toggleImageState: async (id, toggleState, xDaytonaOrganizationID, options = {}) => {
|
|
161
203
|
// verify required parameter 'id' is not null or undefined
|
|
162
204
|
(0, common_1.assertParamExists)('toggleImageState', 'id', id);
|
|
163
205
|
// verify required parameter 'toggleState' is not null or undefined
|
|
164
206
|
(0, common_1.assertParamExists)('toggleImageState', 'toggleState', toggleState);
|
|
165
|
-
const localVarPath = `/images/{id}/toggle`
|
|
166
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
207
|
+
const localVarPath = `/images/{id}/toggle`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
167
208
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
209
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
210
|
let baseOptions;
|
|
@@ -173,13 +214,16 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
173
214
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
174
215
|
const localVarHeaderParameter = {};
|
|
175
216
|
const localVarQueryParameter = {};
|
|
217
|
+
// authentication bearer required
|
|
218
|
+
// http bearer authentication required
|
|
219
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
176
220
|
// authentication oauth2 required
|
|
177
221
|
// oauth required
|
|
178
|
-
|
|
222
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
223
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
179
224
|
if (xDaytonaOrganizationID != null) {
|
|
180
225
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
181
226
|
}
|
|
182
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
227
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
228
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
229
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -188,7 +232,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
188
232
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
233
|
options: localVarRequestOptions,
|
|
190
234
|
};
|
|
191
|
-
}
|
|
235
|
+
},
|
|
192
236
|
};
|
|
193
237
|
};
|
|
194
238
|
exports.ImagesApiAxiosParamCreator = ImagesApiAxiosParamCreator;
|
|
@@ -207,14 +251,12 @@ const ImagesApiFp = function (configuration) {
|
|
|
207
251
|
* @param {*} [options] Override http request option.
|
|
208
252
|
* @throws {RequiredError}
|
|
209
253
|
*/
|
|
210
|
-
createImage(createImage, xDaytonaOrganizationID, options) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
217
|
-
});
|
|
254
|
+
async createImage(createImage, xDaytonaOrganizationID, options) {
|
|
255
|
+
var _a, _b, _c;
|
|
256
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createImage(createImage, xDaytonaOrganizationID, options);
|
|
257
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
258
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.createImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
259
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
218
260
|
},
|
|
219
261
|
/**
|
|
220
262
|
*
|
|
@@ -225,14 +267,12 @@ const ImagesApiFp = function (configuration) {
|
|
|
225
267
|
* @param {*} [options] Override http request option.
|
|
226
268
|
* @throws {RequiredError}
|
|
227
269
|
*/
|
|
228
|
-
getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
235
|
-
});
|
|
270
|
+
async getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
271
|
+
var _a, _b, _c;
|
|
272
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImages(xDaytonaOrganizationID, limit, page, options);
|
|
273
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
274
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.getAllImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
275
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
236
276
|
},
|
|
237
277
|
/**
|
|
238
278
|
*
|
|
@@ -242,14 +282,28 @@ const ImagesApiFp = function (configuration) {
|
|
|
242
282
|
* @param {*} [options] Override http request option.
|
|
243
283
|
* @throws {RequiredError}
|
|
244
284
|
*/
|
|
245
|
-
removeImage(id, xDaytonaOrganizationID, options) {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
285
|
+
async removeImage(id, xDaytonaOrganizationID, options) {
|
|
286
|
+
var _a, _b, _c;
|
|
287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeImage(id, xDaytonaOrganizationID, options);
|
|
288
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
289
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.removeImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
290
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @summary Set image general status
|
|
295
|
+
* @param {string} id Image ID
|
|
296
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
297
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
async setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
|
|
302
|
+
var _a, _b, _c;
|
|
303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options);
|
|
304
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
305
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.setImageGeneralStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
306
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
253
307
|
},
|
|
254
308
|
/**
|
|
255
309
|
*
|
|
@@ -260,14 +314,12 @@ const ImagesApiFp = function (configuration) {
|
|
|
260
314
|
* @param {*} [options] Override http request option.
|
|
261
315
|
* @throws {RequiredError}
|
|
262
316
|
*/
|
|
263
|
-
toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
270
|
-
});
|
|
317
|
+
async toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
318
|
+
var _a, _b, _c;
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toggleImageState(id, toggleState, xDaytonaOrganizationID, options);
|
|
320
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
321
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.toggleImageState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
322
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
271
323
|
},
|
|
272
324
|
};
|
|
273
325
|
};
|
|
@@ -288,7 +340,9 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
288
340
|
* @throws {RequiredError}
|
|
289
341
|
*/
|
|
290
342
|
createImage(createImage, xDaytonaOrganizationID, options) {
|
|
291
|
-
return localVarFp
|
|
343
|
+
return localVarFp
|
|
344
|
+
.createImage(createImage, xDaytonaOrganizationID, options)
|
|
345
|
+
.then((request) => request(axios, basePath));
|
|
292
346
|
},
|
|
293
347
|
/**
|
|
294
348
|
*
|
|
@@ -300,7 +354,9 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
300
354
|
* @throws {RequiredError}
|
|
301
355
|
*/
|
|
302
356
|
getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
303
|
-
return localVarFp
|
|
357
|
+
return localVarFp
|
|
358
|
+
.getAllImages(xDaytonaOrganizationID, limit, page, options)
|
|
359
|
+
.then((request) => request(axios, basePath));
|
|
304
360
|
},
|
|
305
361
|
/**
|
|
306
362
|
*
|
|
@@ -313,6 +369,20 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
313
369
|
removeImage(id, xDaytonaOrganizationID, options) {
|
|
314
370
|
return localVarFp.removeImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
315
371
|
},
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @summary Set image general status
|
|
375
|
+
* @param {string} id Image ID
|
|
376
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
377
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
|
|
382
|
+
return localVarFp
|
|
383
|
+
.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
|
|
384
|
+
.then((request) => request(axios, basePath));
|
|
385
|
+
},
|
|
316
386
|
/**
|
|
317
387
|
*
|
|
318
388
|
* @summary Toggle image state
|
|
@@ -323,7 +393,9 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
323
393
|
* @throws {RequiredError}
|
|
324
394
|
*/
|
|
325
395
|
toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
326
|
-
return localVarFp
|
|
396
|
+
return localVarFp
|
|
397
|
+
.toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
|
|
398
|
+
.then((request) => request(axios, basePath));
|
|
327
399
|
},
|
|
328
400
|
};
|
|
329
401
|
};
|
|
@@ -345,7 +417,9 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
345
417
|
* @memberof ImagesApi
|
|
346
418
|
*/
|
|
347
419
|
createImage(createImage, xDaytonaOrganizationID, options) {
|
|
348
|
-
return (0, exports.ImagesApiFp)(this.configuration)
|
|
420
|
+
return (0, exports.ImagesApiFp)(this.configuration)
|
|
421
|
+
.createImage(createImage, xDaytonaOrganizationID, options)
|
|
422
|
+
.then((request) => request(this.axios, this.basePath));
|
|
349
423
|
}
|
|
350
424
|
/**
|
|
351
425
|
*
|
|
@@ -358,7 +432,9 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
358
432
|
* @memberof ImagesApi
|
|
359
433
|
*/
|
|
360
434
|
getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
361
|
-
return (0, exports.ImagesApiFp)(this.configuration)
|
|
435
|
+
return (0, exports.ImagesApiFp)(this.configuration)
|
|
436
|
+
.getAllImages(xDaytonaOrganizationID, limit, page, options)
|
|
437
|
+
.then((request) => request(this.axios, this.basePath));
|
|
362
438
|
}
|
|
363
439
|
/**
|
|
364
440
|
*
|
|
@@ -370,7 +446,24 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
370
446
|
* @memberof ImagesApi
|
|
371
447
|
*/
|
|
372
448
|
removeImage(id, xDaytonaOrganizationID, options) {
|
|
373
|
-
return (0, exports.ImagesApiFp)(this.configuration)
|
|
449
|
+
return (0, exports.ImagesApiFp)(this.configuration)
|
|
450
|
+
.removeImage(id, xDaytonaOrganizationID, options)
|
|
451
|
+
.then((request) => request(this.axios, this.basePath));
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @summary Set image general status
|
|
456
|
+
* @param {string} id Image ID
|
|
457
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
458
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
* @memberof ImagesApi
|
|
462
|
+
*/
|
|
463
|
+
setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
|
|
464
|
+
return (0, exports.ImagesApiFp)(this.configuration)
|
|
465
|
+
.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
|
|
466
|
+
.then((request) => request(this.axios, this.basePath));
|
|
374
467
|
}
|
|
375
468
|
/**
|
|
376
469
|
*
|
|
@@ -383,7 +476,9 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
383
476
|
* @memberof ImagesApi
|
|
384
477
|
*/
|
|
385
478
|
toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
386
|
-
return (0, exports.ImagesApiFp)(this.configuration)
|
|
479
|
+
return (0, exports.ImagesApiFp)(this.configuration)
|
|
480
|
+
.toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
|
|
481
|
+
.then((request) => request(this.axios, this.basePath));
|
|
387
482
|
}
|
|
388
483
|
}
|
|
389
484
|
exports.ImagesApi = ImagesApi;
|
package/dist/api/nodes-api.js
CHANGED
|
@@ -12,15 +12,6 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
16
|
exports.NodesApi = exports.NodesApiFactory = exports.NodesApiFp = exports.NodesApiAxiosParamCreator = void 0;
|
|
26
17
|
const axios_1 = require("axios");
|
|
@@ -42,7 +33,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
42
33
|
* @param {*} [options] Override http request option.
|
|
43
34
|
* @throws {RequiredError}
|
|
44
35
|
*/
|
|
45
|
-
createNode:
|
|
36
|
+
createNode: async (createNode, options = {}) => {
|
|
46
37
|
// verify required parameter 'createNode' is not null or undefined
|
|
47
38
|
(0, common_1.assertParamExists)('createNode', 'createNode', createNode);
|
|
48
39
|
const localVarPath = `/nodes`;
|
|
@@ -55,9 +46,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
55
46
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
56
47
|
const localVarHeaderParameter = {};
|
|
57
48
|
const localVarQueryParameter = {};
|
|
49
|
+
// authentication bearer required
|
|
50
|
+
// http bearer authentication required
|
|
51
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
58
52
|
// authentication oauth2 required
|
|
59
53
|
// oauth required
|
|
60
|
-
|
|
54
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
61
55
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
56
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -67,14 +61,14 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
67
61
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
62
|
options: localVarRequestOptions,
|
|
69
63
|
};
|
|
70
|
-
}
|
|
64
|
+
},
|
|
71
65
|
/**
|
|
72
66
|
*
|
|
73
67
|
* @summary List all nodes
|
|
74
68
|
* @param {*} [options] Override http request option.
|
|
75
69
|
* @throws {RequiredError}
|
|
76
70
|
*/
|
|
77
|
-
listNodes:
|
|
71
|
+
listNodes: async (options = {}) => {
|
|
78
72
|
const localVarPath = `/nodes`;
|
|
79
73
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
74
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -85,9 +79,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
85
79
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
86
80
|
const localVarHeaderParameter = {};
|
|
87
81
|
const localVarQueryParameter = {};
|
|
82
|
+
// authentication bearer required
|
|
83
|
+
// http bearer authentication required
|
|
84
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
88
85
|
// authentication oauth2 required
|
|
89
86
|
// oauth required
|
|
90
|
-
|
|
87
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
91
88
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
92
89
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
90
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -95,7 +92,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
95
92
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
93
|
options: localVarRequestOptions,
|
|
97
94
|
};
|
|
98
|
-
}
|
|
95
|
+
},
|
|
99
96
|
/**
|
|
100
97
|
*
|
|
101
98
|
* @summary Update node scheduling status
|
|
@@ -103,11 +100,10 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
103
100
|
* @param {*} [options] Override http request option.
|
|
104
101
|
* @throws {RequiredError}
|
|
105
102
|
*/
|
|
106
|
-
updateNodeScheduling:
|
|
103
|
+
updateNodeScheduling: async (id, options = {}) => {
|
|
107
104
|
// verify required parameter 'id' is not null or undefined
|
|
108
105
|
(0, common_1.assertParamExists)('updateNodeScheduling', 'id', id);
|
|
109
|
-
const localVarPath = `/nodes/{id}/scheduling`
|
|
110
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
106
|
+
const localVarPath = `/nodes/{id}/scheduling`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
111
107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
108
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
109
|
let baseOptions;
|
|
@@ -117,9 +113,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
117
113
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
118
114
|
const localVarHeaderParameter = {};
|
|
119
115
|
const localVarQueryParameter = {};
|
|
116
|
+
// authentication bearer required
|
|
117
|
+
// http bearer authentication required
|
|
118
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
120
119
|
// authentication oauth2 required
|
|
121
120
|
// oauth required
|
|
122
|
-
|
|
121
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
123
122
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
124
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -127,7 +126,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
127
126
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
128
127
|
options: localVarRequestOptions,
|
|
129
128
|
};
|
|
130
|
-
}
|
|
129
|
+
},
|
|
131
130
|
};
|
|
132
131
|
};
|
|
133
132
|
exports.NodesApiAxiosParamCreator = NodesApiAxiosParamCreator;
|
|
@@ -145,14 +144,12 @@ const NodesApiFp = function (configuration) {
|
|
|
145
144
|
* @param {*} [options] Override http request option.
|
|
146
145
|
* @throws {RequiredError}
|
|
147
146
|
*/
|
|
148
|
-
createNode(createNode, options) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
155
|
-
});
|
|
147
|
+
async createNode(createNode, options) {
|
|
148
|
+
var _a, _b, _c;
|
|
149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(createNode, options);
|
|
150
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
151
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.createNode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
152
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
156
153
|
},
|
|
157
154
|
/**
|
|
158
155
|
*
|
|
@@ -160,14 +157,12 @@ const NodesApiFp = function (configuration) {
|
|
|
160
157
|
* @param {*} [options] Override http request option.
|
|
161
158
|
* @throws {RequiredError}
|
|
162
159
|
*/
|
|
163
|
-
listNodes(options) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
170
|
-
});
|
|
160
|
+
async listNodes(options) {
|
|
161
|
+
var _a, _b, _c;
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNodes(options);
|
|
163
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
164
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.listNodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
165
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
171
166
|
},
|
|
172
167
|
/**
|
|
173
168
|
*
|
|
@@ -176,14 +171,12 @@ const NodesApiFp = function (configuration) {
|
|
|
176
171
|
* @param {*} [options] Override http request option.
|
|
177
172
|
* @throws {RequiredError}
|
|
178
173
|
*/
|
|
179
|
-
updateNodeScheduling(id, options) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
186
|
-
});
|
|
174
|
+
async updateNodeScheduling(id, options) {
|
|
175
|
+
var _a, _b, _c;
|
|
176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNodeScheduling(id, options);
|
|
177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
178
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.updateNodeScheduling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
179
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
187
180
|
},
|
|
188
181
|
};
|
|
189
182
|
};
|
|
@@ -243,7 +236,9 @@ class NodesApi extends base_1.BaseAPI {
|
|
|
243
236
|
* @memberof NodesApi
|
|
244
237
|
*/
|
|
245
238
|
createNode(createNode, options) {
|
|
246
|
-
return (0, exports.NodesApiFp)(this.configuration)
|
|
239
|
+
return (0, exports.NodesApiFp)(this.configuration)
|
|
240
|
+
.createNode(createNode, options)
|
|
241
|
+
.then((request) => request(this.axios, this.basePath));
|
|
247
242
|
}
|
|
248
243
|
/**
|
|
249
244
|
*
|
|
@@ -253,7 +248,9 @@ class NodesApi extends base_1.BaseAPI {
|
|
|
253
248
|
* @memberof NodesApi
|
|
254
249
|
*/
|
|
255
250
|
listNodes(options) {
|
|
256
|
-
return (0, exports.NodesApiFp)(this.configuration)
|
|
251
|
+
return (0, exports.NodesApiFp)(this.configuration)
|
|
252
|
+
.listNodes(options)
|
|
253
|
+
.then((request) => request(this.axios, this.basePath));
|
|
257
254
|
}
|
|
258
255
|
/**
|
|
259
256
|
*
|
|
@@ -264,7 +261,9 @@ class NodesApi extends base_1.BaseAPI {
|
|
|
264
261
|
* @memberof NodesApi
|
|
265
262
|
*/
|
|
266
263
|
updateNodeScheduling(id, options) {
|
|
267
|
-
return (0, exports.NodesApiFp)(this.configuration)
|
|
264
|
+
return (0, exports.NodesApiFp)(this.configuration)
|
|
265
|
+
.updateNodeScheduling(id, options)
|
|
266
|
+
.then((request) => request(this.axios, this.basePath));
|
|
268
267
|
}
|
|
269
268
|
}
|
|
270
269
|
exports.NodesApi = NodesApi;
|