Skip to content

Commit

Permalink
v1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zeplin-dev committed Jan 26, 2022
1 parent 7548558 commit 8c5ebb0
Showing 1 changed file with 168 additions and 0 deletions.
168 changes: 168 additions & 0 deletions src/apis/screens-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,110 @@ export const ScreensApiAxiosParamCreator = function (configuration?: Configurati
options: localVarRequestOptions,
};
},
/**
* Delete a comment on the screen note
* @summary Delete comment
* @param {string} projectId Project id
* @param {string} screenId Screen id
* @param {string} noteId Screen note id
* @param {string} commentId Screen comment id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteScreenComment: async (projectId: string, screenId: string, noteId: string, commentId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists('deleteScreenComment', 'projectId', projectId)
// verify required parameter 'screenId' is not null or undefined
assertParamExists('deleteScreenComment', 'screenId', screenId)
// verify required parameter 'noteId' is not null or undefined
assertParamExists('deleteScreenComment', 'noteId', noteId)
// verify required parameter 'commentId' is not null or undefined
assertParamExists('deleteScreenComment', 'commentId', commentId)
const localVarPath = `/v1/projects/{project_id}/screens/{screen_id}/notes/{note_id}/comments/{comment_id}`
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
.replace(`{${"screen_id"}}`, encodeURIComponent(String(screenId)))
.replace(`{${"note_id"}}`, encodeURIComponent(String(noteId)))
.replace(`{${"comment_id"}}`, encodeURIComponent(String(commentId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication OAuth2 required
// oauth required
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)

// authentication PersonalAccessToken required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Delete a note on the screen
* @summary Delete a note
* @param {string} projectId Project id
* @param {string} screenId Screen id
* @param {string} noteId Screen note id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteScreenNote: async (projectId: string, screenId: string, noteId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists('deleteScreenNote', 'projectId', projectId)
// verify required parameter 'screenId' is not null or undefined
assertParamExists('deleteScreenNote', 'screenId', screenId)
// verify required parameter 'noteId' is not null or undefined
assertParamExists('deleteScreenNote', 'noteId', noteId)
const localVarPath = `/v1/projects/{project_id}/screens/{screen_id}/notes/{note_id}`
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
.replace(`{${"screen_id"}}`, encodeURIComponent(String(screenId)))
.replace(`{${"note_id"}}`, encodeURIComponent(String(noteId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication OAuth2 required
// oauth required
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)

// authentication PersonalAccessToken required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Get details of the latest version
* @summary Get the latest screen version
Expand Down Expand Up @@ -1246,6 +1350,33 @@ export const ScreensApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createScreenVersion(projectId, screenId, image, commitMessage, commitColor, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Delete a comment on the screen note
* @summary Delete comment
* @param {string} projectId Project id
* @param {string} screenId Screen id
* @param {string} noteId Screen note id
* @param {string} commentId Screen comment id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deleteScreenComment(projectId: string, screenId: string, noteId: string, commentId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScreenComment(projectId, screenId, noteId, commentId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Delete a note on the screen
* @summary Delete a note
* @param {string} projectId Project id
* @param {string} screenId Screen id
* @param {string} noteId Screen note id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deleteScreenNote(projectId: string, screenId: string, noteId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScreenNote(projectId, screenId, noteId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Get details of the latest version
* @summary Get the latest screen version
Expand Down Expand Up @@ -1544,6 +1675,8 @@ export interface ScreensApiCreateScreenVersionBody {
}




/**
* Search parameters for getProjectScreens operation in ScreensApi.
* @export
Expand Down Expand Up @@ -1802,6 +1935,41 @@ export class ScreensApi extends BaseAPI {
};
}

/**
* Delete a comment on the screen note
* @summary Delete comment
* @param {string} projectId Project id
* @param {string} screenId Screen id
* @param {string} noteId Screen note id
* @param {string} commentId Screen comment id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ScreensApi
*/
public async deleteScreenComment(projectId: string, screenId: string, noteId: string, commentId: string, options?: any) : Promise<AxiosResponse<void>> {
const screensApiFp = ScreensApiFp(this.configuration);
const request = await screensApiFp.deleteScreenComment(projectId, screenId, noteId, commentId, options);
const response = await request(this.axios, this.basePath);
return response;
}

/**
* Delete a note on the screen
* @summary Delete a note
* @param {string} projectId Project id
* @param {string} screenId Screen id
* @param {string} noteId Screen note id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ScreensApi
*/
public async deleteScreenNote(projectId: string, screenId: string, noteId: string, options?: any) : Promise<AxiosResponse<void>> {
const screensApiFp = ScreensApiFp(this.configuration);
const request = await screensApiFp.deleteScreenNote(projectId, screenId, noteId, options);
const response = await request(this.axios, this.basePath);
return response;
}

/**
* Get details of the latest version
* @summary Get the latest screen version
Expand Down

0 comments on commit 8c5ebb0

Please sign in to comment.