Skip to content

Commit

Permalink
fix: openapi mes adresses ban id
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Jun 24, 2024
1 parent e367f52 commit 6a2e46f
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 18 deletions.
1 change: 0 additions & 1 deletion lib/openapi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export { PopulateVoie } from './models/PopulateVoie';
export { Position } from './models/Position';
export type { RecoverBaseLocaleDTO } from './models/RecoverBaseLocaleDTO';
export type { RestoreVoieDTO } from './models/RestoreVoieDTO';
export type { SendPinCodeResponseDTO } from './models/SendPinCodeResponseDTO';
export { Strategy } from './models/Strategy';
export { Sync } from './models/Sync';
export type { Toponyme } from './models/Toponyme';
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/BaseLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Sync } from './Sync';

export type BaseLocale = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/ExtendedBaseLocaleDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Sync } from './Sync';

export type ExtendedBaseLocaleDTO = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/ExtendedVoieDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { LineString } from './LineString';

export type ExtendedVoieDTO = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/ExtentedToponymeDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Position } from './Position';

export type ExtentedToponymeDTO = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/Numero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Position } from './Position';

export type Numero = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/NumeroPopulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { Voie } from './Voie';

export type NumeroPopulate = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/PopulateVoie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { Numero } from './Numero';

export type PopulateVoie = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
10 changes: 0 additions & 10 deletions lib/openapi/models/SendPinCodeResponseDTO.ts

This file was deleted.

1 change: 1 addition & 0 deletions lib/openapi/models/Toponyme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Position } from './Position';

export type Toponyme = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
1 change: 1 addition & 0 deletions lib/openapi/models/Voie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { LineString } from './LineString';

export type Voie = {
_id: string;
banId: string;
_created: string;
_updated: string;
_deleted: string;
Expand Down
12 changes: 12 additions & 0 deletions lib/openapi/services/AdminService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ export class AdminService {
});
}

/**
* download email.csv
* @returns any
* @throws ApiError
*/
public static downloadEmailCsv(): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/v2/admin/emails.csv',
});
}

}
8 changes: 4 additions & 4 deletions lib/openapi/services/BasesLocalesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ export class BasesLocalesService {
/**
* Update isPaused sync BAL to true
* @param baseLocaleId
* @returns BaseLocale
* @returns boolean
* @throws ApiError
*/
public static pauseBaseLocale(
baseLocaleId: string,
): CancelablePromise<BaseLocale> {
): CancelablePromise<boolean> {
return __request(OpenAPI, {
method: 'POST',
url: '/v2/bases-locales/{baseLocaleId}/sync/pause',
Expand All @@ -335,12 +335,12 @@ export class BasesLocalesService {
/**
* Update isPaused sync BAL to false
* @param baseLocaleId
* @returns BaseLocale
* @returns boolean
* @throws ApiError
*/
public static resumeBaseLocale(
baseLocaleId: string,
): CancelablePromise<BaseLocale> {
): CancelablePromise<boolean> {
return __request(OpenAPI, {
method: 'POST',
url: '/v2/bases-locales/{baseLocaleId}/sync/resume',
Expand Down
5 changes: 2 additions & 3 deletions lib/openapi/services/HabilitationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
import type { HabilitationDTO } from '../models/HabilitationDTO';
import type { SendPinCodeResponseDTO } from '../models/SendPinCodeResponseDTO';
import type { ValidatePinCodeDTO } from '../models/ValidatePinCodeDTO';
import type { ValidatePinCodeResponseDTO } from '../models/ValidatePinCodeResponseDTO';

Expand Down Expand Up @@ -70,12 +69,12 @@ export class HabilitationService {
/**
* Send pin code of habilitation
* @param baseLocaleId
* @returns SendPinCodeResponseDTO
* @returns any
* @throws ApiError
*/
public static sendPinCodeHabilitation(
baseLocaleId: string,
): CancelablePromise<SendPinCodeResponseDTO> {
): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'POST',
url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/send-pin-code',
Expand Down

0 comments on commit 6a2e46f

Please sign in to comment.