@daytona/toolbox-api-client 0.161.0-alpha.2
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/package.json +25 -0
- package/src/api/computer-use-api.d.ts +1013 -0
- package/src/api/computer-use-api.js +1890 -0
- package/src/api/computer-use-api.js.map +1 -0
- package/src/api/file-system-api.d.ts +519 -0
- package/src/api/file-system-api.js +969 -0
- package/src/api/file-system-api.js.map +1 -0
- package/src/api/git-api.d.ts +414 -0
- package/src/api/git-api.js +768 -0
- package/src/api/git-api.js.map +1 -0
- package/src/api/info-api.d.ts +135 -0
- package/src/api/info-api.js +229 -0
- package/src/api/info-api.js.map +1 -0
- package/src/api/interpreter-api.d.ts +173 -0
- package/src/api/interpreter-api.js +300 -0
- package/src/api/interpreter-api.js.map +1 -0
- package/src/api/lsp-api.d.ts +292 -0
- package/src/api/lsp-api.js +547 -0
- package/src/api/lsp-api.js.map +1 -0
- package/src/api/port-api.d.ts +104 -0
- package/src/api/port-api.js +180 -0
- package/src/api/port-api.js.map +1 -0
- package/src/api/process-api.d.ts +636 -0
- package/src/api/process-api.js +1166 -0
- package/src/api/process-api.js.map +1 -0
- package/src/api/server-api.d.ts +80 -0
- package/src/api/server-api.js +125 -0
- package/src/api/server-api.js.map +1 -0
- package/src/api.d.ts +20 -0
- package/src/api.js +39 -0
- package/src/api.js.map +1 -0
- package/src/base.d.ts +66 -0
- package/src/base.js +69 -0
- package/src/base.js.map +1 -0
- package/src/common.d.ts +65 -0
- package/src/common.js +146 -0
- package/src/common.js.map +1 -0
- package/src/configuration.d.ts +91 -0
- package/src/configuration.js +107 -0
- package/src/configuration.js.map +1 -0
- package/src/index.d.ts +14 -0
- package/src/index.js +33 -0
- package/src/index.js.map +1 -0
- package/src/models/command.d.ts +36 -0
- package/src/models/command.js +16 -0
- package/src/models/command.js.map +1 -0
- package/src/models/completion-context.d.ts +30 -0
- package/src/models/completion-context.js +16 -0
- package/src/models/completion-context.js.map +1 -0
- package/src/models/completion-item.d.ts +60 -0
- package/src/models/completion-item.js +16 -0
- package/src/models/completion-item.js.map +1 -0
- package/src/models/completion-list.d.ts +31 -0
- package/src/models/completion-list.js +16 -0
- package/src/models/completion-list.js.map +1 -0
- package/src/models/computer-use-start-response.d.ts +33 -0
- package/src/models/computer-use-start-response.js +16 -0
- package/src/models/computer-use-start-response.js.map +1 -0
- package/src/models/computer-use-status-response.d.ts +24 -0
- package/src/models/computer-use-status-response.js +16 -0
- package/src/models/computer-use-status-response.js.map +1 -0
- package/src/models/computer-use-stop-response.d.ts +33 -0
- package/src/models/computer-use-stop-response.js +16 -0
- package/src/models/computer-use-stop-response.js.map +1 -0
- package/src/models/create-context-request.d.ts +30 -0
- package/src/models/create-context-request.js +16 -0
- package/src/models/create-context-request.js.map +1 -0
- package/src/models/create-session-request.d.ts +24 -0
- package/src/models/create-session-request.js +16 -0
- package/src/models/create-session-request.js.map +1 -0
- package/src/models/display-info-response.d.ts +25 -0
- package/src/models/display-info-response.js +16 -0
- package/src/models/display-info-response.js.map +1 -0
- package/src/models/display-info.d.ts +54 -0
- package/src/models/display-info.js +16 -0
- package/src/models/display-info.js.map +1 -0
- package/src/models/execute-request.d.ts +36 -0
- package/src/models/execute-request.js +16 -0
- package/src/models/execute-request.js.map +1 -0
- package/src/models/execute-response.d.ts +30 -0
- package/src/models/execute-response.js +16 -0
- package/src/models/execute-response.js.map +1 -0
- package/src/models/file-info.d.ts +66 -0
- package/src/models/file-info.js +16 -0
- package/src/models/file-info.js.map +1 -0
- package/src/models/file-status.d.ts +43 -0
- package/src/models/file-status.js +16 -0
- package/src/models/file-status.js.map +1 -0
- package/src/models/files-download-request.d.ts +24 -0
- package/src/models/files-download-request.js +16 -0
- package/src/models/files-download-request.js.map +1 -0
- package/src/models/git-add-request.d.ts +30 -0
- package/src/models/git-add-request.js +16 -0
- package/src/models/git-add-request.js.map +1 -0
- package/src/models/git-branch-request.d.ts +30 -0
- package/src/models/git-branch-request.js +16 -0
- package/src/models/git-branch-request.js.map +1 -0
- package/src/models/git-checkout-request.d.ts +30 -0
- package/src/models/git-checkout-request.js +16 -0
- package/src/models/git-checkout-request.js.map +1 -0
- package/src/models/git-clone-request.d.ts +54 -0
- package/src/models/git-clone-request.js +16 -0
- package/src/models/git-clone-request.js.map +1 -0
- package/src/models/git-commit-info.d.ts +48 -0
- package/src/models/git-commit-info.js +16 -0
- package/src/models/git-commit-info.js.map +1 -0
- package/src/models/git-commit-request.d.ts +48 -0
- package/src/models/git-commit-request.js +16 -0
- package/src/models/git-commit-request.js.map +1 -0
- package/src/models/git-commit-response.d.ts +24 -0
- package/src/models/git-commit-response.js +16 -0
- package/src/models/git-commit-response.js.map +1 -0
- package/src/models/git-git-delete-branch-request.d.ts +30 -0
- package/src/models/git-git-delete-branch-request.js +16 -0
- package/src/models/git-git-delete-branch-request.js.map +1 -0
- package/src/models/git-repo-request.d.ts +36 -0
- package/src/models/git-repo-request.js +16 -0
- package/src/models/git-repo-request.js.map +1 -0
- package/src/models/git-status.d.ts +49 -0
- package/src/models/git-status.js +16 -0
- package/src/models/git-status.js.map +1 -0
- package/src/models/index.d.ts +79 -0
- package/src/models/index.js +96 -0
- package/src/models/index.js.map +1 -0
- package/src/models/initialize-request.d.ts +24 -0
- package/src/models/initialize-request.js +16 -0
- package/src/models/initialize-request.js.map +1 -0
- package/src/models/interpreter-context.d.ts +48 -0
- package/src/models/interpreter-context.js +16 -0
- package/src/models/interpreter-context.js.map +1 -0
- package/src/models/is-port-in-use-response.d.ts +24 -0
- package/src/models/is-port-in-use-response.js +16 -0
- package/src/models/is-port-in-use-response.js.map +1 -0
- package/src/models/keyboard-hotkey-request.d.ts +24 -0
- package/src/models/keyboard-hotkey-request.js +16 -0
- package/src/models/keyboard-hotkey-request.js.map +1 -0
- package/src/models/keyboard-press-request.d.ts +30 -0
- package/src/models/keyboard-press-request.js +16 -0
- package/src/models/keyboard-press-request.js.map +1 -0
- package/src/models/keyboard-type-request.d.ts +30 -0
- package/src/models/keyboard-type-request.js +16 -0
- package/src/models/keyboard-type-request.js.map +1 -0
- package/src/models/list-branch-response.d.ts +24 -0
- package/src/models/list-branch-response.js +16 -0
- package/src/models/list-branch-response.js.map +1 -0
- package/src/models/list-contexts-response.d.ts +25 -0
- package/src/models/list-contexts-response.js +16 -0
- package/src/models/list-contexts-response.js.map +1 -0
- package/src/models/list-recordings-response.d.ts +25 -0
- package/src/models/list-recordings-response.js +16 -0
- package/src/models/list-recordings-response.js.map +1 -0
- package/src/models/lsp-completion-params.d.ts +50 -0
- package/src/models/lsp-completion-params.js +16 -0
- package/src/models/lsp-completion-params.js.map +1 -0
- package/src/models/lsp-document-request.d.ts +36 -0
- package/src/models/lsp-document-request.js +16 -0
- package/src/models/lsp-document-request.js.map +1 -0
- package/src/models/lsp-location.d.ts +31 -0
- package/src/models/lsp-location.js +16 -0
- package/src/models/lsp-location.js.map +1 -0
- package/src/models/lsp-position.d.ts +30 -0
- package/src/models/lsp-position.js +16 -0
- package/src/models/lsp-position.js.map +1 -0
- package/src/models/lsp-range.d.ts +31 -0
- package/src/models/lsp-range.js +16 -0
- package/src/models/lsp-range.js.map +1 -0
- package/src/models/lsp-server-request.d.ts +30 -0
- package/src/models/lsp-server-request.js +16 -0
- package/src/models/lsp-server-request.js.map +1 -0
- package/src/models/lsp-symbol.d.ts +37 -0
- package/src/models/lsp-symbol.js +16 -0
- package/src/models/lsp-symbol.js.map +1 -0
- package/src/models/match.d.ts +36 -0
- package/src/models/match.js +16 -0
- package/src/models/match.js.map +1 -0
- package/src/models/mouse-click-request.d.ts +42 -0
- package/src/models/mouse-click-request.js +16 -0
- package/src/models/mouse-click-request.js.map +1 -0
- package/src/models/mouse-click-response.d.ts +30 -0
- package/src/models/mouse-click-response.js +16 -0
- package/src/models/mouse-click-response.js.map +1 -0
- package/src/models/mouse-drag-request.d.ts +48 -0
- package/src/models/mouse-drag-request.js +16 -0
- package/src/models/mouse-drag-request.js.map +1 -0
- package/src/models/mouse-drag-response.d.ts +30 -0
- package/src/models/mouse-drag-response.js +16 -0
- package/src/models/mouse-drag-response.js.map +1 -0
- package/src/models/mouse-move-request.d.ts +30 -0
- package/src/models/mouse-move-request.js +16 -0
- package/src/models/mouse-move-request.js.map +1 -0
- package/src/models/mouse-position-response.d.ts +30 -0
- package/src/models/mouse-position-response.js +16 -0
- package/src/models/mouse-position-response.js.map +1 -0
- package/src/models/mouse-scroll-request.d.ts +42 -0
- package/src/models/mouse-scroll-request.js +16 -0
- package/src/models/mouse-scroll-request.js.map +1 -0
- package/src/models/port-list.d.ts +24 -0
- package/src/models/port-list.js +16 -0
- package/src/models/port-list.js.map +1 -0
- package/src/models/position.d.ts +30 -0
- package/src/models/position.js +16 -0
- package/src/models/position.js.map +1 -0
- package/src/models/process-errors-response.d.ts +30 -0
- package/src/models/process-errors-response.js +16 -0
- package/src/models/process-errors-response.js.map +1 -0
- package/src/models/process-logs-response.d.ts +30 -0
- package/src/models/process-logs-response.js +16 -0
- package/src/models/process-logs-response.js.map +1 -0
- package/src/models/process-restart-response.d.ts +30 -0
- package/src/models/process-restart-response.js +16 -0
- package/src/models/process-restart-response.js.map +1 -0
- package/src/models/process-status-response.d.ts +30 -0
- package/src/models/process-status-response.js +16 -0
- package/src/models/process-status-response.js.map +1 -0
- package/src/models/process-status.d.ts +42 -0
- package/src/models/process-status.js +16 -0
- package/src/models/process-status.js.map +1 -0
- package/src/models/pty-create-request.d.ts +56 -0
- package/src/models/pty-create-request.js +16 -0
- package/src/models/pty-create-request.js.map +1 -0
- package/src/models/pty-create-response.d.ts +24 -0
- package/src/models/pty-create-response.js +16 -0
- package/src/models/pty-create-response.js.map +1 -0
- package/src/models/pty-list-response.d.ts +25 -0
- package/src/models/pty-list-response.js +16 -0
- package/src/models/pty-list-response.js.map +1 -0
- package/src/models/pty-resize-request.d.ts +30 -0
- package/src/models/pty-resize-request.js +16 -0
- package/src/models/pty-resize-request.js.map +1 -0
- package/src/models/pty-session-info.d.ts +68 -0
- package/src/models/pty-session-info.js +16 -0
- package/src/models/pty-session-info.js.map +1 -0
- package/src/models/recording.d.ts +66 -0
- package/src/models/recording.js +16 -0
- package/src/models/recording.js.map +1 -0
- package/src/models/replace-request.d.ts +36 -0
- package/src/models/replace-request.js +16 -0
- package/src/models/replace-request.js.map +1 -0
- package/src/models/replace-result.d.ts +36 -0
- package/src/models/replace-result.js +16 -0
- package/src/models/replace-result.js.map +1 -0
- package/src/models/screenshot-response.d.ts +37 -0
- package/src/models/screenshot-response.js +16 -0
- package/src/models/screenshot-response.js.map +1 -0
- package/src/models/scroll-response.d.ts +24 -0
- package/src/models/scroll-response.js +16 -0
- package/src/models/scroll-response.js.map +1 -0
- package/src/models/search-files-response.d.ts +24 -0
- package/src/models/search-files-response.js +16 -0
- package/src/models/search-files-response.js.map +1 -0
- package/src/models/session-execute-request.d.ts +42 -0
- package/src/models/session-execute-request.js +16 -0
- package/src/models/session-execute-request.js.map +1 -0
- package/src/models/session-execute-response.d.ts +48 -0
- package/src/models/session-execute-response.js +16 -0
- package/src/models/session-execute-response.js.map +1 -0
- package/src/models/session-send-input-request.d.ts +24 -0
- package/src/models/session-send-input-request.js +16 -0
- package/src/models/session-send-input-request.js.map +1 -0
- package/src/models/session.d.ts +31 -0
- package/src/models/session.js +16 -0
- package/src/models/session.js.map +1 -0
- package/src/models/start-recording-request.d.ts +24 -0
- package/src/models/start-recording-request.js +16 -0
- package/src/models/start-recording-request.js.map +1 -0
- package/src/models/status.d.ts +27 -0
- package/src/models/status.js +32 -0
- package/src/models/status.js.map +1 -0
- package/src/models/stop-recording-request.d.ts +24 -0
- package/src/models/stop-recording-request.js +16 -0
- package/src/models/stop-recording-request.js.map +1 -0
- package/src/models/user-home-dir-response.d.ts +24 -0
- package/src/models/user-home-dir-response.js +16 -0
- package/src/models/user-home-dir-response.js.map +1 -0
- package/src/models/window-info.d.ts +60 -0
- package/src/models/window-info.js +16 -0
- package/src/models/window-info.js.map +1 -0
- package/src/models/windows-response.d.ts +25 -0
- package/src/models/windows-response.js +16 -0
- package/src/models/windows-response.js.map +1 -0
- package/src/models/work-dir-response.d.ts +24 -0
- package/src/models/work-dir-response.js +16 -0
- package/src/models/work-dir-response.js.map +1 -0
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Toolbox API
|
|
6
|
+
* Daytona Toolbox API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GitApi = exports.GitApiFactory = exports.GitApiFp = exports.GitApiAxiosParamCreator = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const common_1 = require("../common");
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
/**
|
|
24
|
+
* GitApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
const GitApiAxiosParamCreator = function (configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
* Add files to the Git staging area
|
|
31
|
+
* @summary Add files to Git staging
|
|
32
|
+
* @param {GitAddRequest} request Add files request
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
addFiles: async (request, options = {}) => {
|
|
37
|
+
// verify required parameter 'request' is not null or undefined
|
|
38
|
+
(0, common_1.assertParamExists)('addFiles', 'request', request);
|
|
39
|
+
const localVarPath = `/git/add`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
baseOptions = configuration.baseOptions;
|
|
45
|
+
}
|
|
46
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
47
|
+
const localVarHeaderParameter = {};
|
|
48
|
+
const localVarQueryParameter = {};
|
|
49
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
51
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
53
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
54
|
+
return {
|
|
55
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
56
|
+
options: localVarRequestOptions,
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* Switch to a different branch or commit in the Git repository
|
|
61
|
+
* @summary Checkout branch or commit
|
|
62
|
+
* @param {GitCheckoutRequest} request Checkout request
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
checkoutBranch: async (request, options = {}) => {
|
|
67
|
+
// verify required parameter 'request' is not null or undefined
|
|
68
|
+
(0, common_1.assertParamExists)('checkoutBranch', 'request', request);
|
|
69
|
+
const localVarPath = `/git/checkout`;
|
|
70
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
72
|
+
let baseOptions;
|
|
73
|
+
if (configuration) {
|
|
74
|
+
baseOptions = configuration.baseOptions;
|
|
75
|
+
}
|
|
76
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
77
|
+
const localVarHeaderParameter = {};
|
|
78
|
+
const localVarQueryParameter = {};
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
81
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
83
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
84
|
+
return {
|
|
85
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* Clone a Git repository to the specified path
|
|
91
|
+
* @summary Clone a Git repository
|
|
92
|
+
* @param {GitCloneRequest} request Clone repository request
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
cloneRepository: async (request, options = {}) => {
|
|
97
|
+
// verify required parameter 'request' is not null or undefined
|
|
98
|
+
(0, common_1.assertParamExists)('cloneRepository', 'request', request);
|
|
99
|
+
const localVarPath = `/git/clone`;
|
|
100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
102
|
+
let baseOptions;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
}
|
|
106
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
107
|
+
const localVarHeaderParameter = {};
|
|
108
|
+
const localVarQueryParameter = {};
|
|
109
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
113
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
114
|
+
return {
|
|
115
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
116
|
+
options: localVarRequestOptions,
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
* Commit staged changes to the Git repository
|
|
121
|
+
* @summary Commit changes
|
|
122
|
+
* @param {GitCommitRequest} request Commit request
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
commitChanges: async (request, options = {}) => {
|
|
127
|
+
// verify required parameter 'request' is not null or undefined
|
|
128
|
+
(0, common_1.assertParamExists)('commitChanges', 'request', request);
|
|
129
|
+
const localVarPath = `/git/commit`;
|
|
130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
132
|
+
let baseOptions;
|
|
133
|
+
if (configuration) {
|
|
134
|
+
baseOptions = configuration.baseOptions;
|
|
135
|
+
}
|
|
136
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
137
|
+
const localVarHeaderParameter = {};
|
|
138
|
+
const localVarQueryParameter = {};
|
|
139
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
144
|
+
return {
|
|
145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* Create a new branch in the Git repository
|
|
151
|
+
* @summary Create a new branch
|
|
152
|
+
* @param {GitBranchRequest} request Create branch request
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
createBranch: async (request, options = {}) => {
|
|
157
|
+
// verify required parameter 'request' is not null or undefined
|
|
158
|
+
(0, common_1.assertParamExists)('createBranch', 'request', request);
|
|
159
|
+
const localVarPath = `/git/branches`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
170
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
173
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
174
|
+
return {
|
|
175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* Delete a branch from the Git repository
|
|
181
|
+
* @summary Delete a branch
|
|
182
|
+
* @param {GitGitDeleteBranchRequest} request Delete branch request
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
deleteBranch: async (request, options = {}) => {
|
|
187
|
+
// verify required parameter 'request' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)('deleteBranch', 'request', request);
|
|
189
|
+
const localVarPath = `/git/branches`;
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
}
|
|
196
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
197
|
+
const localVarHeaderParameter = {};
|
|
198
|
+
const localVarQueryParameter = {};
|
|
199
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
203
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
204
|
+
return {
|
|
205
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
206
|
+
options: localVarRequestOptions,
|
|
207
|
+
};
|
|
208
|
+
},
|
|
209
|
+
/**
|
|
210
|
+
* Get the commit history of the Git repository
|
|
211
|
+
* @summary Get commit history
|
|
212
|
+
* @param {string} path Repository path
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
getCommitHistory: async (path, options = {}) => {
|
|
217
|
+
// verify required parameter 'path' is not null or undefined
|
|
218
|
+
(0, common_1.assertParamExists)('getCommitHistory', 'path', path);
|
|
219
|
+
const localVarPath = `/git/history`;
|
|
220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
221
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
222
|
+
let baseOptions;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
}
|
|
226
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
227
|
+
const localVarHeaderParameter = {};
|
|
228
|
+
const localVarQueryParameter = {};
|
|
229
|
+
if (path !== undefined) {
|
|
230
|
+
localVarQueryParameter['path'] = path;
|
|
231
|
+
}
|
|
232
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
235
|
+
return {
|
|
236
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
* Get the Git status of the repository at the specified path
|
|
242
|
+
* @summary Get Git status
|
|
243
|
+
* @param {string} path Repository path
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
getStatus: async (path, options = {}) => {
|
|
248
|
+
// verify required parameter 'path' is not null or undefined
|
|
249
|
+
(0, common_1.assertParamExists)('getStatus', 'path', path);
|
|
250
|
+
const localVarPath = `/git/status`;
|
|
251
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
252
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
253
|
+
let baseOptions;
|
|
254
|
+
if (configuration) {
|
|
255
|
+
baseOptions = configuration.baseOptions;
|
|
256
|
+
}
|
|
257
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
258
|
+
const localVarHeaderParameter = {};
|
|
259
|
+
const localVarQueryParameter = {};
|
|
260
|
+
if (path !== undefined) {
|
|
261
|
+
localVarQueryParameter['path'] = path;
|
|
262
|
+
}
|
|
263
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
264
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
266
|
+
return {
|
|
267
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
268
|
+
options: localVarRequestOptions,
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* Get a list of all branches in the Git repository
|
|
273
|
+
* @summary List branches
|
|
274
|
+
* @param {string} path Repository path
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
listBranches: async (path, options = {}) => {
|
|
279
|
+
// verify required parameter 'path' is not null or undefined
|
|
280
|
+
(0, common_1.assertParamExists)('listBranches', 'path', path);
|
|
281
|
+
const localVarPath = `/git/branches`;
|
|
282
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
283
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
284
|
+
let baseOptions;
|
|
285
|
+
if (configuration) {
|
|
286
|
+
baseOptions = configuration.baseOptions;
|
|
287
|
+
}
|
|
288
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
289
|
+
const localVarHeaderParameter = {};
|
|
290
|
+
const localVarQueryParameter = {};
|
|
291
|
+
if (path !== undefined) {
|
|
292
|
+
localVarQueryParameter['path'] = path;
|
|
293
|
+
}
|
|
294
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
297
|
+
return {
|
|
298
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
299
|
+
options: localVarRequestOptions,
|
|
300
|
+
};
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
* Pull changes from the remote Git repository
|
|
304
|
+
* @summary Pull changes from remote
|
|
305
|
+
* @param {GitRepoRequest} request Pull request
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
pullChanges: async (request, options = {}) => {
|
|
310
|
+
// verify required parameter 'request' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('pullChanges', 'request', request);
|
|
312
|
+
const localVarPath = `/git/pull`;
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
320
|
+
const localVarHeaderParameter = {};
|
|
321
|
+
const localVarQueryParameter = {};
|
|
322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
323
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
326
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
327
|
+
return {
|
|
328
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
329
|
+
options: localVarRequestOptions,
|
|
330
|
+
};
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* Push local changes to the remote Git repository
|
|
334
|
+
* @summary Push changes to remote
|
|
335
|
+
* @param {GitRepoRequest} request Push request
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
pushChanges: async (request, options = {}) => {
|
|
340
|
+
// verify required parameter 'request' is not null or undefined
|
|
341
|
+
(0, common_1.assertParamExists)('pushChanges', 'request', request);
|
|
342
|
+
const localVarPath = `/git/push`;
|
|
343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
+
let baseOptions;
|
|
346
|
+
if (configuration) {
|
|
347
|
+
baseOptions = configuration.baseOptions;
|
|
348
|
+
}
|
|
349
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
350
|
+
const localVarHeaderParameter = {};
|
|
351
|
+
const localVarQueryParameter = {};
|
|
352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
353
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
356
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
357
|
+
return {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
};
|
|
361
|
+
},
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
exports.GitApiAxiosParamCreator = GitApiAxiosParamCreator;
|
|
365
|
+
/**
|
|
366
|
+
* GitApi - functional programming interface
|
|
367
|
+
* @export
|
|
368
|
+
*/
|
|
369
|
+
const GitApiFp = function (configuration) {
|
|
370
|
+
const localVarAxiosParamCreator = (0, exports.GitApiAxiosParamCreator)(configuration);
|
|
371
|
+
return {
|
|
372
|
+
/**
|
|
373
|
+
* Add files to the Git staging area
|
|
374
|
+
* @summary Add files to Git staging
|
|
375
|
+
* @param {GitAddRequest} request Add files request
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
async addFiles(request, options) {
|
|
380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFiles(request, options);
|
|
381
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
382
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.addFiles']?.[localVarOperationServerIndex]?.url;
|
|
383
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* Switch to a different branch or commit in the Git repository
|
|
387
|
+
* @summary Checkout branch or commit
|
|
388
|
+
* @param {GitCheckoutRequest} request Checkout request
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
async checkoutBranch(request, options) {
|
|
393
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkoutBranch(request, options);
|
|
394
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
395
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.checkoutBranch']?.[localVarOperationServerIndex]?.url;
|
|
396
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
397
|
+
},
|
|
398
|
+
/**
|
|
399
|
+
* Clone a Git repository to the specified path
|
|
400
|
+
* @summary Clone a Git repository
|
|
401
|
+
* @param {GitCloneRequest} request Clone repository request
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
async cloneRepository(request, options) {
|
|
406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneRepository(request, options);
|
|
407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
408
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.cloneRepository']?.[localVarOperationServerIndex]?.url;
|
|
409
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
* Commit staged changes to the Git repository
|
|
413
|
+
* @summary Commit changes
|
|
414
|
+
* @param {GitCommitRequest} request Commit request
|
|
415
|
+
* @param {*} [options] Override http request option.
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
*/
|
|
418
|
+
async commitChanges(request, options) {
|
|
419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.commitChanges(request, options);
|
|
420
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
421
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.commitChanges']?.[localVarOperationServerIndex]?.url;
|
|
422
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
423
|
+
},
|
|
424
|
+
/**
|
|
425
|
+
* Create a new branch in the Git repository
|
|
426
|
+
* @summary Create a new branch
|
|
427
|
+
* @param {GitBranchRequest} request Create branch request
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
async createBranch(request, options) {
|
|
432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBranch(request, options);
|
|
433
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
434
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.createBranch']?.[localVarOperationServerIndex]?.url;
|
|
435
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
436
|
+
},
|
|
437
|
+
/**
|
|
438
|
+
* Delete a branch from the Git repository
|
|
439
|
+
* @summary Delete a branch
|
|
440
|
+
* @param {GitGitDeleteBranchRequest} request Delete branch request
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
async deleteBranch(request, options) {
|
|
445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBranch(request, options);
|
|
446
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
447
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.deleteBranch']?.[localVarOperationServerIndex]?.url;
|
|
448
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
449
|
+
},
|
|
450
|
+
/**
|
|
451
|
+
* Get the commit history of the Git repository
|
|
452
|
+
* @summary Get commit history
|
|
453
|
+
* @param {string} path Repository path
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
async getCommitHistory(path, options) {
|
|
458
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCommitHistory(path, options);
|
|
459
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
460
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.getCommitHistory']?.[localVarOperationServerIndex]?.url;
|
|
461
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
462
|
+
},
|
|
463
|
+
/**
|
|
464
|
+
* Get the Git status of the repository at the specified path
|
|
465
|
+
* @summary Get Git status
|
|
466
|
+
* @param {string} path Repository path
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
async getStatus(path, options) {
|
|
471
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(path, options);
|
|
472
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
473
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.getStatus']?.[localVarOperationServerIndex]?.url;
|
|
474
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* Get a list of all branches in the Git repository
|
|
478
|
+
* @summary List branches
|
|
479
|
+
* @param {string} path Repository path
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
async listBranches(path, options) {
|
|
484
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBranches(path, options);
|
|
485
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
486
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.listBranches']?.[localVarOperationServerIndex]?.url;
|
|
487
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
488
|
+
},
|
|
489
|
+
/**
|
|
490
|
+
* Pull changes from the remote Git repository
|
|
491
|
+
* @summary Pull changes from remote
|
|
492
|
+
* @param {GitRepoRequest} request Pull request
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
async pullChanges(request, options) {
|
|
497
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pullChanges(request, options);
|
|
498
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
499
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.pullChanges']?.[localVarOperationServerIndex]?.url;
|
|
500
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
501
|
+
},
|
|
502
|
+
/**
|
|
503
|
+
* Push local changes to the remote Git repository
|
|
504
|
+
* @summary Push changes to remote
|
|
505
|
+
* @param {GitRepoRequest} request Push request
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
async pushChanges(request, options) {
|
|
510
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pushChanges(request, options);
|
|
511
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
512
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['GitApi.pushChanges']?.[localVarOperationServerIndex]?.url;
|
|
513
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
514
|
+
},
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
exports.GitApiFp = GitApiFp;
|
|
518
|
+
/**
|
|
519
|
+
* GitApi - factory interface
|
|
520
|
+
* @export
|
|
521
|
+
*/
|
|
522
|
+
const GitApiFactory = function (configuration, basePath, axios) {
|
|
523
|
+
const localVarFp = (0, exports.GitApiFp)(configuration);
|
|
524
|
+
return {
|
|
525
|
+
/**
|
|
526
|
+
* Add files to the Git staging area
|
|
527
|
+
* @summary Add files to Git staging
|
|
528
|
+
* @param {GitAddRequest} request Add files request
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
addFiles(request, options) {
|
|
533
|
+
return localVarFp.addFiles(request, options).then((request) => request(axios, basePath));
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
* Switch to a different branch or commit in the Git repository
|
|
537
|
+
* @summary Checkout branch or commit
|
|
538
|
+
* @param {GitCheckoutRequest} request Checkout request
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
checkoutBranch(request, options) {
|
|
543
|
+
return localVarFp.checkoutBranch(request, options).then((request) => request(axios, basePath));
|
|
544
|
+
},
|
|
545
|
+
/**
|
|
546
|
+
* Clone a Git repository to the specified path
|
|
547
|
+
* @summary Clone a Git repository
|
|
548
|
+
* @param {GitCloneRequest} request Clone repository request
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
cloneRepository(request, options) {
|
|
553
|
+
return localVarFp.cloneRepository(request, options).then((request) => request(axios, basePath));
|
|
554
|
+
},
|
|
555
|
+
/**
|
|
556
|
+
* Commit staged changes to the Git repository
|
|
557
|
+
* @summary Commit changes
|
|
558
|
+
* @param {GitCommitRequest} request Commit request
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
commitChanges(request, options) {
|
|
563
|
+
return localVarFp.commitChanges(request, options).then((request) => request(axios, basePath));
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
* Create a new branch in the Git repository
|
|
567
|
+
* @summary Create a new branch
|
|
568
|
+
* @param {GitBranchRequest} request Create branch request
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
createBranch(request, options) {
|
|
573
|
+
return localVarFp.createBranch(request, options).then((request) => request(axios, basePath));
|
|
574
|
+
},
|
|
575
|
+
/**
|
|
576
|
+
* Delete a branch from the Git repository
|
|
577
|
+
* @summary Delete a branch
|
|
578
|
+
* @param {GitGitDeleteBranchRequest} request Delete branch request
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
deleteBranch(request, options) {
|
|
583
|
+
return localVarFp.deleteBranch(request, options).then((request) => request(axios, basePath));
|
|
584
|
+
},
|
|
585
|
+
/**
|
|
586
|
+
* Get the commit history of the Git repository
|
|
587
|
+
* @summary Get commit history
|
|
588
|
+
* @param {string} path Repository path
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
getCommitHistory(path, options) {
|
|
593
|
+
return localVarFp.getCommitHistory(path, options).then((request) => request(axios, basePath));
|
|
594
|
+
},
|
|
595
|
+
/**
|
|
596
|
+
* Get the Git status of the repository at the specified path
|
|
597
|
+
* @summary Get Git status
|
|
598
|
+
* @param {string} path Repository path
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
getStatus(path, options) {
|
|
603
|
+
return localVarFp.getStatus(path, options).then((request) => request(axios, basePath));
|
|
604
|
+
},
|
|
605
|
+
/**
|
|
606
|
+
* Get a list of all branches in the Git repository
|
|
607
|
+
* @summary List branches
|
|
608
|
+
* @param {string} path Repository path
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
listBranches(path, options) {
|
|
613
|
+
return localVarFp.listBranches(path, options).then((request) => request(axios, basePath));
|
|
614
|
+
},
|
|
615
|
+
/**
|
|
616
|
+
* Pull changes from the remote Git repository
|
|
617
|
+
* @summary Pull changes from remote
|
|
618
|
+
* @param {GitRepoRequest} request Pull request
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
pullChanges(request, options) {
|
|
623
|
+
return localVarFp.pullChanges(request, options).then((request) => request(axios, basePath));
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* Push local changes to the remote Git repository
|
|
627
|
+
* @summary Push changes to remote
|
|
628
|
+
* @param {GitRepoRequest} request Push request
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
pushChanges(request, options) {
|
|
633
|
+
return localVarFp.pushChanges(request, options).then((request) => request(axios, basePath));
|
|
634
|
+
},
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
exports.GitApiFactory = GitApiFactory;
|
|
638
|
+
/**
|
|
639
|
+
* GitApi - object-oriented interface
|
|
640
|
+
* @export
|
|
641
|
+
* @class GitApi
|
|
642
|
+
* @extends {BaseAPI}
|
|
643
|
+
*/
|
|
644
|
+
class GitApi extends base_1.BaseAPI {
|
|
645
|
+
/**
|
|
646
|
+
* Add files to the Git staging area
|
|
647
|
+
* @summary Add files to Git staging
|
|
648
|
+
* @param {GitAddRequest} request Add files request
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
* @memberof GitApi
|
|
652
|
+
*/
|
|
653
|
+
addFiles(request, options) {
|
|
654
|
+
return (0, exports.GitApiFp)(this.configuration).addFiles(request, options).then((request) => request(this.axios, this.basePath));
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Switch to a different branch or commit in the Git repository
|
|
658
|
+
* @summary Checkout branch or commit
|
|
659
|
+
* @param {GitCheckoutRequest} request Checkout request
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof GitApi
|
|
663
|
+
*/
|
|
664
|
+
checkoutBranch(request, options) {
|
|
665
|
+
return (0, exports.GitApiFp)(this.configuration).checkoutBranch(request, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Clone a Git repository to the specified path
|
|
669
|
+
* @summary Clone a Git repository
|
|
670
|
+
* @param {GitCloneRequest} request Clone repository request
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
* @memberof GitApi
|
|
674
|
+
*/
|
|
675
|
+
cloneRepository(request, options) {
|
|
676
|
+
return (0, exports.GitApiFp)(this.configuration).cloneRepository(request, options).then((request) => request(this.axios, this.basePath));
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Commit staged changes to the Git repository
|
|
680
|
+
* @summary Commit changes
|
|
681
|
+
* @param {GitCommitRequest} request Commit request
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
* @memberof GitApi
|
|
685
|
+
*/
|
|
686
|
+
commitChanges(request, options) {
|
|
687
|
+
return (0, exports.GitApiFp)(this.configuration).commitChanges(request, options).then((request) => request(this.axios, this.basePath));
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Create a new branch in the Git repository
|
|
691
|
+
* @summary Create a new branch
|
|
692
|
+
* @param {GitBranchRequest} request Create branch request
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
* @memberof GitApi
|
|
696
|
+
*/
|
|
697
|
+
createBranch(request, options) {
|
|
698
|
+
return (0, exports.GitApiFp)(this.configuration).createBranch(request, options).then((request) => request(this.axios, this.basePath));
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Delete a branch from the Git repository
|
|
702
|
+
* @summary Delete a branch
|
|
703
|
+
* @param {GitGitDeleteBranchRequest} request Delete branch request
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
* @memberof GitApi
|
|
707
|
+
*/
|
|
708
|
+
deleteBranch(request, options) {
|
|
709
|
+
return (0, exports.GitApiFp)(this.configuration).deleteBranch(request, options).then((request) => request(this.axios, this.basePath));
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Get the commit history of the Git repository
|
|
713
|
+
* @summary Get commit history
|
|
714
|
+
* @param {string} path Repository path
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
* @memberof GitApi
|
|
718
|
+
*/
|
|
719
|
+
getCommitHistory(path, options) {
|
|
720
|
+
return (0, exports.GitApiFp)(this.configuration).getCommitHistory(path, options).then((request) => request(this.axios, this.basePath));
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Get the Git status of the repository at the specified path
|
|
724
|
+
* @summary Get Git status
|
|
725
|
+
* @param {string} path Repository path
|
|
726
|
+
* @param {*} [options] Override http request option.
|
|
727
|
+
* @throws {RequiredError}
|
|
728
|
+
* @memberof GitApi
|
|
729
|
+
*/
|
|
730
|
+
getStatus(path, options) {
|
|
731
|
+
return (0, exports.GitApiFp)(this.configuration).getStatus(path, options).then((request) => request(this.axios, this.basePath));
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Get a list of all branches in the Git repository
|
|
735
|
+
* @summary List branches
|
|
736
|
+
* @param {string} path Repository path
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
* @memberof GitApi
|
|
740
|
+
*/
|
|
741
|
+
listBranches(path, options) {
|
|
742
|
+
return (0, exports.GitApiFp)(this.configuration).listBranches(path, options).then((request) => request(this.axios, this.basePath));
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Pull changes from the remote Git repository
|
|
746
|
+
* @summary Pull changes from remote
|
|
747
|
+
* @param {GitRepoRequest} request Pull request
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
* @memberof GitApi
|
|
751
|
+
*/
|
|
752
|
+
pullChanges(request, options) {
|
|
753
|
+
return (0, exports.GitApiFp)(this.configuration).pullChanges(request, options).then((request) => request(this.axios, this.basePath));
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Push local changes to the remote Git repository
|
|
757
|
+
* @summary Push changes to remote
|
|
758
|
+
* @param {GitRepoRequest} request Push request
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
* @memberof GitApi
|
|
762
|
+
*/
|
|
763
|
+
pushChanges(request, options) {
|
|
764
|
+
return (0, exports.GitApiFp)(this.configuration).pushChanges(request, options).then((request) => request(this.axios, this.basePath));
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
exports.GitApi = GitApi;
|
|
768
|
+
//# sourceMappingURL=git-api.js.map
|