qovery-typescript-axios 1.1.60 → 1.1.62
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/api.ts +151 -0
- package/dist/api.d.ts +70 -0
- package/dist/api.js +139 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -33798,6 +33798,54 @@ export const JobMainCallsApiAxiosParamCreator = function (configuration?: Config
|
|
|
33798
33798
|
|
|
33799
33799
|
|
|
33800
33800
|
|
|
33801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33803
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33804
|
+
|
|
33805
|
+
return {
|
|
33806
|
+
url: toPathString(localVarUrlObj),
|
|
33807
|
+
options: localVarRequestOptions,
|
|
33808
|
+
};
|
|
33809
|
+
},
|
|
33810
|
+
/**
|
|
33811
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
33812
|
+
* @summary List last job commits
|
|
33813
|
+
* @param {string} jobId Job ID
|
|
33814
|
+
* @param {string} [startId] Starting point after which to return results
|
|
33815
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
33816
|
+
* @param {*} [options] Override http request option.
|
|
33817
|
+
* @throws {RequiredError}
|
|
33818
|
+
*/
|
|
33819
|
+
listJobCommit: async (jobId: string, startId?: string, gitCommitId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33820
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
33821
|
+
assertParamExists('listJobCommit', 'jobId', jobId)
|
|
33822
|
+
const localVarPath = `/job/{jobId}/commit`
|
|
33823
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
33824
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33825
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33826
|
+
let baseOptions;
|
|
33827
|
+
if (configuration) {
|
|
33828
|
+
baseOptions = configuration.baseOptions;
|
|
33829
|
+
}
|
|
33830
|
+
|
|
33831
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33832
|
+
const localVarHeaderParameter = {} as any;
|
|
33833
|
+
const localVarQueryParameter = {} as any;
|
|
33834
|
+
|
|
33835
|
+
// authentication bearerAuth required
|
|
33836
|
+
// http bearer authentication required
|
|
33837
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33838
|
+
|
|
33839
|
+
if (startId !== undefined) {
|
|
33840
|
+
localVarQueryParameter['startId'] = startId;
|
|
33841
|
+
}
|
|
33842
|
+
|
|
33843
|
+
if (gitCommitId !== undefined) {
|
|
33844
|
+
localVarQueryParameter['gitCommitId'] = gitCommitId;
|
|
33845
|
+
}
|
|
33846
|
+
|
|
33847
|
+
|
|
33848
|
+
|
|
33801
33849
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33802
33850
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33803
33851
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -33862,6 +33910,19 @@ export const JobMainCallsApiFp = function(configuration?: Configuration) {
|
|
|
33862
33910
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getJobStatus(jobId, options);
|
|
33863
33911
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33864
33912
|
},
|
|
33913
|
+
/**
|
|
33914
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
33915
|
+
* @summary List last job commits
|
|
33916
|
+
* @param {string} jobId Job ID
|
|
33917
|
+
* @param {string} [startId] Starting point after which to return results
|
|
33918
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
33919
|
+
* @param {*} [options] Override http request option.
|
|
33920
|
+
* @throws {RequiredError}
|
|
33921
|
+
*/
|
|
33922
|
+
async listJobCommit(jobId: string, startId?: string, gitCommitId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommitResponseList>> {
|
|
33923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listJobCommit(jobId, startId, gitCommitId, options);
|
|
33924
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33925
|
+
},
|
|
33865
33926
|
}
|
|
33866
33927
|
};
|
|
33867
33928
|
|
|
@@ -33913,6 +33974,18 @@ export const JobMainCallsApiFactory = function (configuration?: Configuration, b
|
|
|
33913
33974
|
getJobStatus(jobId: string, options?: any): AxiosPromise<Status> {
|
|
33914
33975
|
return localVarFp.getJobStatus(jobId, options).then((request) => request(axios, basePath));
|
|
33915
33976
|
},
|
|
33977
|
+
/**
|
|
33978
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
33979
|
+
* @summary List last job commits
|
|
33980
|
+
* @param {string} jobId Job ID
|
|
33981
|
+
* @param {string} [startId] Starting point after which to return results
|
|
33982
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
33983
|
+
* @param {*} [options] Override http request option.
|
|
33984
|
+
* @throws {RequiredError}
|
|
33985
|
+
*/
|
|
33986
|
+
listJobCommit(jobId: string, startId?: string, gitCommitId?: string, options?: any): AxiosPromise<CommitResponseList> {
|
|
33987
|
+
return localVarFp.listJobCommit(jobId, startId, gitCommitId, options).then((request) => request(axios, basePath));
|
|
33988
|
+
},
|
|
33916
33989
|
};
|
|
33917
33990
|
};
|
|
33918
33991
|
|
|
@@ -33971,6 +34044,20 @@ export class JobMainCallsApi extends BaseAPI {
|
|
|
33971
34044
|
public getJobStatus(jobId: string, options?: AxiosRequestConfig) {
|
|
33972
34045
|
return JobMainCallsApiFp(this.configuration).getJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
33973
34046
|
}
|
|
34047
|
+
|
|
34048
|
+
/**
|
|
34049
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
34050
|
+
* @summary List last job commits
|
|
34051
|
+
* @param {string} jobId Job ID
|
|
34052
|
+
* @param {string} [startId] Starting point after which to return results
|
|
34053
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
34054
|
+
* @param {*} [options] Override http request option.
|
|
34055
|
+
* @throws {RequiredError}
|
|
34056
|
+
* @memberof JobMainCallsApi
|
|
34057
|
+
*/
|
|
34058
|
+
public listJobCommit(jobId: string, startId?: string, gitCommitId?: string, options?: AxiosRequestConfig) {
|
|
34059
|
+
return JobMainCallsApiFp(this.configuration).listJobCommit(jobId, startId, gitCommitId, options).then((request) => request(this.axios, this.basePath));
|
|
34060
|
+
}
|
|
33974
34061
|
}
|
|
33975
34062
|
|
|
33976
34063
|
|
|
@@ -34653,6 +34740,40 @@ export const JobsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
34653
34740
|
options: localVarRequestOptions,
|
|
34654
34741
|
};
|
|
34655
34742
|
},
|
|
34743
|
+
/**
|
|
34744
|
+
*
|
|
34745
|
+
* @summary List default job advanced settings
|
|
34746
|
+
* @param {*} [options] Override http request option.
|
|
34747
|
+
* @throws {RequiredError}
|
|
34748
|
+
*/
|
|
34749
|
+
getDefaultJobAdvancedSettings: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34750
|
+
const localVarPath = `/defaultJobAdvancedSettings`;
|
|
34751
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34752
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34753
|
+
let baseOptions;
|
|
34754
|
+
if (configuration) {
|
|
34755
|
+
baseOptions = configuration.baseOptions;
|
|
34756
|
+
}
|
|
34757
|
+
|
|
34758
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
34759
|
+
const localVarHeaderParameter = {} as any;
|
|
34760
|
+
const localVarQueryParameter = {} as any;
|
|
34761
|
+
|
|
34762
|
+
// authentication bearerAuth required
|
|
34763
|
+
// http bearer authentication required
|
|
34764
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34765
|
+
|
|
34766
|
+
|
|
34767
|
+
|
|
34768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34770
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34771
|
+
|
|
34772
|
+
return {
|
|
34773
|
+
url: toPathString(localVarUrlObj),
|
|
34774
|
+
options: localVarRequestOptions,
|
|
34775
|
+
};
|
|
34776
|
+
},
|
|
34656
34777
|
/**
|
|
34657
34778
|
* Returns a list of jobs with only their id and status.
|
|
34658
34779
|
* @summary List all environment job statuses
|
|
@@ -34756,6 +34877,16 @@ export const JobsApiFp = function(configuration?: Configuration) {
|
|
|
34756
34877
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createJob(environmentId, jobRequest, options);
|
|
34757
34878
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34758
34879
|
},
|
|
34880
|
+
/**
|
|
34881
|
+
*
|
|
34882
|
+
* @summary List default job advanced settings
|
|
34883
|
+
* @param {*} [options] Override http request option.
|
|
34884
|
+
* @throws {RequiredError}
|
|
34885
|
+
*/
|
|
34886
|
+
async getDefaultJobAdvancedSettings(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobAdvancedSettings>> {
|
|
34887
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultJobAdvancedSettings(options);
|
|
34888
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34889
|
+
},
|
|
34759
34890
|
/**
|
|
34760
34891
|
* Returns a list of jobs with only their id and status.
|
|
34761
34892
|
* @summary List all environment job statuses
|
|
@@ -34800,6 +34931,15 @@ export const JobsApiFactory = function (configuration?: Configuration, basePath?
|
|
|
34800
34931
|
createJob(environmentId: string, jobRequest?: JobRequest, options?: any): AxiosPromise<JobResponse> {
|
|
34801
34932
|
return localVarFp.createJob(environmentId, jobRequest, options).then((request) => request(axios, basePath));
|
|
34802
34933
|
},
|
|
34934
|
+
/**
|
|
34935
|
+
*
|
|
34936
|
+
* @summary List default job advanced settings
|
|
34937
|
+
* @param {*} [options] Override http request option.
|
|
34938
|
+
* @throws {RequiredError}
|
|
34939
|
+
*/
|
|
34940
|
+
getDefaultJobAdvancedSettings(options?: any): AxiosPromise<JobAdvancedSettings> {
|
|
34941
|
+
return localVarFp.getDefaultJobAdvancedSettings(options).then((request) => request(axios, basePath));
|
|
34942
|
+
},
|
|
34803
34943
|
/**
|
|
34804
34944
|
* Returns a list of jobs with only their id and status.
|
|
34805
34945
|
* @summary List all environment job statuses
|
|
@@ -34844,6 +34984,17 @@ export class JobsApi extends BaseAPI {
|
|
|
34844
34984
|
return JobsApiFp(this.configuration).createJob(environmentId, jobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34845
34985
|
}
|
|
34846
34986
|
|
|
34987
|
+
/**
|
|
34988
|
+
*
|
|
34989
|
+
* @summary List default job advanced settings
|
|
34990
|
+
* @param {*} [options] Override http request option.
|
|
34991
|
+
* @throws {RequiredError}
|
|
34992
|
+
* @memberof JobsApi
|
|
34993
|
+
*/
|
|
34994
|
+
public getDefaultJobAdvancedSettings(options?: AxiosRequestConfig) {
|
|
34995
|
+
return JobsApiFp(this.configuration).getDefaultJobAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
|
|
34996
|
+
}
|
|
34997
|
+
|
|
34847
34998
|
/**
|
|
34848
34999
|
* Returns a list of jobs with only their id and status.
|
|
34849
35000
|
* @summary List all environment job statuses
|
package/dist/api.d.ts
CHANGED
|
@@ -22695,6 +22695,16 @@ export declare const JobMainCallsApiAxiosParamCreator: (configuration?: Configur
|
|
|
22695
22695
|
* @throws {RequiredError}
|
|
22696
22696
|
*/
|
|
22697
22697
|
getJobStatus: (jobId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22698
|
+
/**
|
|
22699
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
22700
|
+
* @summary List last job commits
|
|
22701
|
+
* @param {string} jobId Job ID
|
|
22702
|
+
* @param {string} [startId] Starting point after which to return results
|
|
22703
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
22704
|
+
* @param {*} [options] Override http request option.
|
|
22705
|
+
* @throws {RequiredError}
|
|
22706
|
+
*/
|
|
22707
|
+
listJobCommit: (jobId: string, startId?: string, gitCommitId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22698
22708
|
};
|
|
22699
22709
|
/**
|
|
22700
22710
|
* JobMainCallsApi - functional programming interface
|
|
@@ -22734,6 +22744,16 @@ export declare const JobMainCallsApiFp: (configuration?: Configuration) => {
|
|
|
22734
22744
|
* @throws {RequiredError}
|
|
22735
22745
|
*/
|
|
22736
22746
|
getJobStatus(jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
|
|
22747
|
+
/**
|
|
22748
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
22749
|
+
* @summary List last job commits
|
|
22750
|
+
* @param {string} jobId Job ID
|
|
22751
|
+
* @param {string} [startId] Starting point after which to return results
|
|
22752
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
22753
|
+
* @param {*} [options] Override http request option.
|
|
22754
|
+
* @throws {RequiredError}
|
|
22755
|
+
*/
|
|
22756
|
+
listJobCommit(jobId: string, startId?: string, gitCommitId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommitResponseList>>;
|
|
22737
22757
|
};
|
|
22738
22758
|
/**
|
|
22739
22759
|
* JobMainCallsApi - factory interface
|
|
@@ -22773,6 +22793,16 @@ export declare const JobMainCallsApiFactory: (configuration?: Configuration, bas
|
|
|
22773
22793
|
* @throws {RequiredError}
|
|
22774
22794
|
*/
|
|
22775
22795
|
getJobStatus(jobId: string, options?: any): AxiosPromise<Status>;
|
|
22796
|
+
/**
|
|
22797
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
22798
|
+
* @summary List last job commits
|
|
22799
|
+
* @param {string} jobId Job ID
|
|
22800
|
+
* @param {string} [startId] Starting point after which to return results
|
|
22801
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
22802
|
+
* @param {*} [options] Override http request option.
|
|
22803
|
+
* @throws {RequiredError}
|
|
22804
|
+
*/
|
|
22805
|
+
listJobCommit(jobId: string, startId?: string, gitCommitId?: string, options?: any): AxiosPromise<CommitResponseList>;
|
|
22776
22806
|
};
|
|
22777
22807
|
/**
|
|
22778
22808
|
* JobMainCallsApi - object-oriented interface
|
|
@@ -22818,6 +22848,17 @@ export declare class JobMainCallsApi extends BaseAPI {
|
|
|
22818
22848
|
* @memberof JobMainCallsApi
|
|
22819
22849
|
*/
|
|
22820
22850
|
getJobStatus(jobId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Status>>;
|
|
22851
|
+
/**
|
|
22852
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
22853
|
+
* @summary List last job commits
|
|
22854
|
+
* @param {string} jobId Job ID
|
|
22855
|
+
* @param {string} [startId] Starting point after which to return results
|
|
22856
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
22857
|
+
* @param {*} [options] Override http request option.
|
|
22858
|
+
* @throws {RequiredError}
|
|
22859
|
+
* @memberof JobMainCallsApi
|
|
22860
|
+
*/
|
|
22861
|
+
listJobCommit(jobId: string, startId?: string, gitCommitId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CommitResponseList>>;
|
|
22821
22862
|
}
|
|
22822
22863
|
/**
|
|
22823
22864
|
* JobMetricsApi - axios parameter creator
|
|
@@ -23148,6 +23189,13 @@ export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
23148
23189
|
* @throws {RequiredError}
|
|
23149
23190
|
*/
|
|
23150
23191
|
createJob: (environmentId: string, jobRequest?: JobRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
23192
|
+
/**
|
|
23193
|
+
*
|
|
23194
|
+
* @summary List default job advanced settings
|
|
23195
|
+
* @param {*} [options] Override http request option.
|
|
23196
|
+
* @throws {RequiredError}
|
|
23197
|
+
*/
|
|
23198
|
+
getDefaultJobAdvancedSettings: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
23151
23199
|
/**
|
|
23152
23200
|
* Returns a list of jobs with only their id and status.
|
|
23153
23201
|
* @summary List all environment job statuses
|
|
@@ -23180,6 +23228,13 @@ export declare const JobsApiFp: (configuration?: Configuration) => {
|
|
|
23180
23228
|
* @throws {RequiredError}
|
|
23181
23229
|
*/
|
|
23182
23230
|
createJob(environmentId: string, jobRequest?: JobRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResponse>>;
|
|
23231
|
+
/**
|
|
23232
|
+
*
|
|
23233
|
+
* @summary List default job advanced settings
|
|
23234
|
+
* @param {*} [options] Override http request option.
|
|
23235
|
+
* @throws {RequiredError}
|
|
23236
|
+
*/
|
|
23237
|
+
getDefaultJobAdvancedSettings(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobAdvancedSettings>>;
|
|
23183
23238
|
/**
|
|
23184
23239
|
* Returns a list of jobs with only their id and status.
|
|
23185
23240
|
* @summary List all environment job statuses
|
|
@@ -23212,6 +23267,13 @@ export declare const JobsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
23212
23267
|
* @throws {RequiredError}
|
|
23213
23268
|
*/
|
|
23214
23269
|
createJob(environmentId: string, jobRequest?: JobRequest, options?: any): AxiosPromise<JobResponse>;
|
|
23270
|
+
/**
|
|
23271
|
+
*
|
|
23272
|
+
* @summary List default job advanced settings
|
|
23273
|
+
* @param {*} [options] Override http request option.
|
|
23274
|
+
* @throws {RequiredError}
|
|
23275
|
+
*/
|
|
23276
|
+
getDefaultJobAdvancedSettings(options?: any): AxiosPromise<JobAdvancedSettings>;
|
|
23215
23277
|
/**
|
|
23216
23278
|
* Returns a list of jobs with only their id and status.
|
|
23217
23279
|
* @summary List all environment job statuses
|
|
@@ -23247,6 +23309,14 @@ export declare class JobsApi extends BaseAPI {
|
|
|
23247
23309
|
* @memberof JobsApi
|
|
23248
23310
|
*/
|
|
23249
23311
|
createJob(environmentId: string, jobRequest?: JobRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<JobResponse>>;
|
|
23312
|
+
/**
|
|
23313
|
+
*
|
|
23314
|
+
* @summary List default job advanced settings
|
|
23315
|
+
* @param {*} [options] Override http request option.
|
|
23316
|
+
* @throws {RequiredError}
|
|
23317
|
+
* @memberof JobsApi
|
|
23318
|
+
*/
|
|
23319
|
+
getDefaultJobAdvancedSettings(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<JobAdvancedSettings>>;
|
|
23250
23320
|
/**
|
|
23251
23321
|
* Returns a list of jobs with only their id and status.
|
|
23252
23322
|
* @summary List all environment job statuses
|
package/dist/api.js
CHANGED
|
@@ -20720,6 +20720,46 @@ const JobMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
20720
20720
|
options: localVarRequestOptions,
|
|
20721
20721
|
};
|
|
20722
20722
|
}),
|
|
20723
|
+
/**
|
|
20724
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
20725
|
+
* @summary List last job commits
|
|
20726
|
+
* @param {string} jobId Job ID
|
|
20727
|
+
* @param {string} [startId] Starting point after which to return results
|
|
20728
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
20729
|
+
* @param {*} [options] Override http request option.
|
|
20730
|
+
* @throws {RequiredError}
|
|
20731
|
+
*/
|
|
20732
|
+
listJobCommit: (jobId, startId, gitCommitId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20733
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20734
|
+
(0, common_1.assertParamExists)('listJobCommit', 'jobId', jobId);
|
|
20735
|
+
const localVarPath = `/job/{jobId}/commit`
|
|
20736
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20738
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20739
|
+
let baseOptions;
|
|
20740
|
+
if (configuration) {
|
|
20741
|
+
baseOptions = configuration.baseOptions;
|
|
20742
|
+
}
|
|
20743
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
20744
|
+
const localVarHeaderParameter = {};
|
|
20745
|
+
const localVarQueryParameter = {};
|
|
20746
|
+
// authentication bearerAuth required
|
|
20747
|
+
// http bearer authentication required
|
|
20748
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20749
|
+
if (startId !== undefined) {
|
|
20750
|
+
localVarQueryParameter['startId'] = startId;
|
|
20751
|
+
}
|
|
20752
|
+
if (gitCommitId !== undefined) {
|
|
20753
|
+
localVarQueryParameter['gitCommitId'] = gitCommitId;
|
|
20754
|
+
}
|
|
20755
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20756
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20757
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20758
|
+
return {
|
|
20759
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20760
|
+
options: localVarRequestOptions,
|
|
20761
|
+
};
|
|
20762
|
+
}),
|
|
20723
20763
|
};
|
|
20724
20764
|
};
|
|
20725
20765
|
exports.JobMainCallsApiAxiosParamCreator = JobMainCallsApiAxiosParamCreator;
|
|
@@ -20783,6 +20823,21 @@ const JobMainCallsApiFp = function (configuration) {
|
|
|
20783
20823
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20784
20824
|
});
|
|
20785
20825
|
},
|
|
20826
|
+
/**
|
|
20827
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
20828
|
+
* @summary List last job commits
|
|
20829
|
+
* @param {string} jobId Job ID
|
|
20830
|
+
* @param {string} [startId] Starting point after which to return results
|
|
20831
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
20832
|
+
* @param {*} [options] Override http request option.
|
|
20833
|
+
* @throws {RequiredError}
|
|
20834
|
+
*/
|
|
20835
|
+
listJobCommit(jobId, startId, gitCommitId, options) {
|
|
20836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20837
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobCommit(jobId, startId, gitCommitId, options);
|
|
20838
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20839
|
+
});
|
|
20840
|
+
},
|
|
20786
20841
|
};
|
|
20787
20842
|
};
|
|
20788
20843
|
exports.JobMainCallsApiFp = JobMainCallsApiFp;
|
|
@@ -20834,6 +20889,18 @@ const JobMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
20834
20889
|
getJobStatus(jobId, options) {
|
|
20835
20890
|
return localVarFp.getJobStatus(jobId, options).then((request) => request(axios, basePath));
|
|
20836
20891
|
},
|
|
20892
|
+
/**
|
|
20893
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
20894
|
+
* @summary List last job commits
|
|
20895
|
+
* @param {string} jobId Job ID
|
|
20896
|
+
* @param {string} [startId] Starting point after which to return results
|
|
20897
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
20898
|
+
* @param {*} [options] Override http request option.
|
|
20899
|
+
* @throws {RequiredError}
|
|
20900
|
+
*/
|
|
20901
|
+
listJobCommit(jobId, startId, gitCommitId, options) {
|
|
20902
|
+
return localVarFp.listJobCommit(jobId, startId, gitCommitId, options).then((request) => request(axios, basePath));
|
|
20903
|
+
},
|
|
20837
20904
|
};
|
|
20838
20905
|
};
|
|
20839
20906
|
exports.JobMainCallsApiFactory = JobMainCallsApiFactory;
|
|
@@ -20889,6 +20956,19 @@ class JobMainCallsApi extends base_1.BaseAPI {
|
|
|
20889
20956
|
getJobStatus(jobId, options) {
|
|
20890
20957
|
return (0, exports.JobMainCallsApiFp)(this.configuration).getJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
20891
20958
|
}
|
|
20959
|
+
/**
|
|
20960
|
+
* Returns list of the last 100 commits made on the repository linked to the job
|
|
20961
|
+
* @summary List last job commits
|
|
20962
|
+
* @param {string} jobId Job ID
|
|
20963
|
+
* @param {string} [startId] Starting point after which to return results
|
|
20964
|
+
* @param {string} [gitCommitId] Git Commit ID
|
|
20965
|
+
* @param {*} [options] Override http request option.
|
|
20966
|
+
* @throws {RequiredError}
|
|
20967
|
+
* @memberof JobMainCallsApi
|
|
20968
|
+
*/
|
|
20969
|
+
listJobCommit(jobId, startId, gitCommitId, options) {
|
|
20970
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).listJobCommit(jobId, startId, gitCommitId, options).then((request) => request(this.axios, this.basePath));
|
|
20971
|
+
}
|
|
20892
20972
|
}
|
|
20893
20973
|
exports.JobMainCallsApi = JobMainCallsApi;
|
|
20894
20974
|
/**
|
|
@@ -21524,6 +21604,34 @@ const JobsApiAxiosParamCreator = function (configuration) {
|
|
|
21524
21604
|
options: localVarRequestOptions,
|
|
21525
21605
|
};
|
|
21526
21606
|
}),
|
|
21607
|
+
/**
|
|
21608
|
+
*
|
|
21609
|
+
* @summary List default job advanced settings
|
|
21610
|
+
* @param {*} [options] Override http request option.
|
|
21611
|
+
* @throws {RequiredError}
|
|
21612
|
+
*/
|
|
21613
|
+
getDefaultJobAdvancedSettings: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21614
|
+
const localVarPath = `/defaultJobAdvancedSettings`;
|
|
21615
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21616
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21617
|
+
let baseOptions;
|
|
21618
|
+
if (configuration) {
|
|
21619
|
+
baseOptions = configuration.baseOptions;
|
|
21620
|
+
}
|
|
21621
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21622
|
+
const localVarHeaderParameter = {};
|
|
21623
|
+
const localVarQueryParameter = {};
|
|
21624
|
+
// authentication bearerAuth required
|
|
21625
|
+
// http bearer authentication required
|
|
21626
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21627
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21630
|
+
return {
|
|
21631
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21632
|
+
options: localVarRequestOptions,
|
|
21633
|
+
};
|
|
21634
|
+
}),
|
|
21527
21635
|
/**
|
|
21528
21636
|
* Returns a list of jobs with only their id and status.
|
|
21529
21637
|
* @summary List all environment job statuses
|
|
@@ -21616,6 +21724,18 @@ const JobsApiFp = function (configuration) {
|
|
|
21616
21724
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21617
21725
|
});
|
|
21618
21726
|
},
|
|
21727
|
+
/**
|
|
21728
|
+
*
|
|
21729
|
+
* @summary List default job advanced settings
|
|
21730
|
+
* @param {*} [options] Override http request option.
|
|
21731
|
+
* @throws {RequiredError}
|
|
21732
|
+
*/
|
|
21733
|
+
getDefaultJobAdvancedSettings(options) {
|
|
21734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21735
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultJobAdvancedSettings(options);
|
|
21736
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21737
|
+
});
|
|
21738
|
+
},
|
|
21619
21739
|
/**
|
|
21620
21740
|
* Returns a list of jobs with only their id and status.
|
|
21621
21741
|
* @summary List all environment job statuses
|
|
@@ -21664,6 +21784,15 @@ const JobsApiFactory = function (configuration, basePath, axios) {
|
|
|
21664
21784
|
createJob(environmentId, jobRequest, options) {
|
|
21665
21785
|
return localVarFp.createJob(environmentId, jobRequest, options).then((request) => request(axios, basePath));
|
|
21666
21786
|
},
|
|
21787
|
+
/**
|
|
21788
|
+
*
|
|
21789
|
+
* @summary List default job advanced settings
|
|
21790
|
+
* @param {*} [options] Override http request option.
|
|
21791
|
+
* @throws {RequiredError}
|
|
21792
|
+
*/
|
|
21793
|
+
getDefaultJobAdvancedSettings(options) {
|
|
21794
|
+
return localVarFp.getDefaultJobAdvancedSettings(options).then((request) => request(axios, basePath));
|
|
21795
|
+
},
|
|
21667
21796
|
/**
|
|
21668
21797
|
* Returns a list of jobs with only their id and status.
|
|
21669
21798
|
* @summary List all environment job statuses
|
|
@@ -21707,6 +21836,16 @@ class JobsApi extends base_1.BaseAPI {
|
|
|
21707
21836
|
createJob(environmentId, jobRequest, options) {
|
|
21708
21837
|
return (0, exports.JobsApiFp)(this.configuration).createJob(environmentId, jobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21709
21838
|
}
|
|
21839
|
+
/**
|
|
21840
|
+
*
|
|
21841
|
+
* @summary List default job advanced settings
|
|
21842
|
+
* @param {*} [options] Override http request option.
|
|
21843
|
+
* @throws {RequiredError}
|
|
21844
|
+
* @memberof JobsApi
|
|
21845
|
+
*/
|
|
21846
|
+
getDefaultJobAdvancedSettings(options) {
|
|
21847
|
+
return (0, exports.JobsApiFp)(this.configuration).getDefaultJobAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
|
|
21848
|
+
}
|
|
21710
21849
|
/**
|
|
21711
21850
|
* Returns a list of jobs with only their id and status.
|
|
21712
21851
|
* @summary List all environment job statuses
|