Skip to content

Commit

Permalink
(PC-23699)[PRO] build: regenerate api interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lixxday committed Aug 14, 2023
1 parent a666f12 commit 33308e8
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pro/src/apiClient/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type { OpenAPIConfig } from './core/OpenAPI';
export type { AdageCulturalPartnerResponseModel } from './models/AdageCulturalPartnerResponseModel';
export type { AdageCulturalPartnersResponseModel } from './models/AdageCulturalPartnersResponseModel';
export type { Address } from './models/Address';
export type { AttachImageFormModel } from './models/AttachImageFormModel';
export type { AttachImageResponseModel } from './models/AttachImageResponseModel';
export type { BannerMetaModel } from './models/BannerMetaModel';
export { BookingExportType } from './models/BookingExportType';
Expand Down Expand Up @@ -53,6 +54,7 @@ export type { Consent } from './models/Consent';
export type { CookieConsentRequest } from './models/CookieConsentRequest';
export type { CreateOffererQueryModel } from './models/CreateOffererQueryModel';
export type { CreatePriceCategoryModel } from './models/CreatePriceCategoryModel';
export type { CreateThumbnailBodyModel } from './models/CreateThumbnailBodyModel';
export type { CreateThumbnailResponseModel } from './models/CreateThumbnailResponseModel';
export type { CropParams } from './models/CropParams';
export type { CulturalPartner } from './models/CulturalPartner';
Expand Down
13 changes: 13 additions & 0 deletions pro/src/apiClient/v1/models/AttachImageFormModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type AttachImageFormModel = {
credit: string;
croppingRectHeight: number;
croppingRectWidth: number;
croppingRectX: number;
croppingRectY: number;
};

14 changes: 14 additions & 0 deletions pro/src/apiClient/v1/models/CreateThumbnailBodyModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CreateThumbnailBodyModel = {
credit?: string | null;
croppingRectHeight?: number | null;
croppingRectWidth?: number | null;
croppingRectX?: number | null;
croppingRectY?: number | null;
offerId: number;
};

17 changes: 16 additions & 1 deletion pro/src/apiClient/v1/services/DefaultService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/* eslint-disable */
import type { AdageCulturalPartnerResponseModel } from '../models/AdageCulturalPartnerResponseModel';
import type { AdageCulturalPartnersResponseModel } from '../models/AdageCulturalPartnersResponseModel';
import type { AttachImageFormModel } from '../models/AttachImageFormModel';
import type { AttachImageResponseModel } from '../models/AttachImageResponseModel';
import type { BookingExportType } from '../models/BookingExportType';
import type { BookingStatusFilter } from '../models/BookingStatusFilter';
Expand All @@ -21,6 +22,7 @@ import type { CollectiveStockEditionBodyModel } from '../models/CollectiveStockE
import type { CollectiveStockResponseModel } from '../models/CollectiveStockResponseModel';
import type { CookieConsentRequest } from '../models/CookieConsentRequest';
import type { CreateOffererQueryModel } from '../models/CreateOffererQueryModel';
import type { CreateThumbnailBodyModel } from '../models/CreateThumbnailBodyModel';
import type { CreateThumbnailResponseModel } from '../models/CreateThumbnailResponseModel';
import type { DeleteOfferRequestBody } from '../models/DeleteOfferRequestBody';
import type { EditVenueBodyModel } from '../models/EditVenueBodyModel';
Expand Down Expand Up @@ -493,18 +495,22 @@ export class DefaultService {
/**
* attach_offer_template_image <POST>
* @param offerId
* @param formData
* @returns AttachImageResponseModel OK
* @throws ApiError
*/
public attachOfferTemplateImage(
offerId: string,
formData?: AttachImageFormModel,
): CancelablePromise<AttachImageResponseModel> {
return this.httpRequest.request({
method: 'POST',
url: '/collective/offers-template/{offer_id}/image',
path: {
'offer_id': offerId,
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
403: `Forbidden`,
422: `Unprocessable Entity`,
Expand Down Expand Up @@ -748,18 +754,22 @@ export class DefaultService {
/**
* attach_offer_image <POST>
* @param offerId
* @param formData
* @returns AttachImageResponseModel OK
* @throws ApiError
*/
public attachOfferImage(
offerId: number,
formData?: AttachImageFormModel,
): CancelablePromise<AttachImageResponseModel> {
return this.httpRequest.request({
method: 'POST',
url: '/collective/offers/{offer_id}/image',
path: {
'offer_id': offerId,
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
403: `Forbidden`,
422: `Unprocessable Entity`,
Expand Down Expand Up @@ -1425,13 +1435,18 @@ export class DefaultService {

/**
* create_thumbnail <POST>
* @param formData
* @returns CreateThumbnailResponseModel Created
* @throws ApiError
*/
public createThumbnail(): CancelablePromise<CreateThumbnailResponseModel> {
public createThumbnail(
formData?: CreateThumbnailBodyModel,
): CancelablePromise<CreateThumbnailResponseModel> {
return this.httpRequest.request({
method: 'POST',
url: '/offers/thumbnails/',
formData: formData,
mediaType: 'multipart/form-data',
errors: {
403: `Forbidden`,
422: `Unprocessable Entity`,
Expand Down

0 comments on commit 33308e8

Please sign in to comment.