Skip to content

Commit

Permalink
chore: update to latest openapi specs
Browse files Browse the repository at this point in the history
Note: at this point, the services changes are only local
  I'm preparing a PR to publish it on their side
  • Loading branch information
alfetopito committed Aug 3, 2023
1 parent ad0c108 commit 92c15de
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
4 changes: 3 additions & 1 deletion src/order-book/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export type { OrderParameters } from './models/OrderParameters';
export { OrderPostError } from './models/OrderPostError';
export type { OrderQuoteRequest } from './models/OrderQuoteRequest';
export type { OrderQuoteResponse } from './models/OrderQuoteResponse';
export { OrderQuoteSide } from './models/OrderQuoteSide';
export type { OrderQuoteSide } from './models/OrderQuoteSide';
export { OrderQuoteSideKindBuy } from './models/OrderQuoteSideKindBuy';
export { OrderQuoteSideKindSell } from './models/OrderQuoteSideKindSell';
export type { OrderQuoteValidity } from './models/OrderQuoteValidity';
export { OrderStatus } from './models/OrderStatus';
export type { PreSignature } from './models/PreSignature';
Expand Down
17 changes: 5 additions & 12 deletions src/order-book/generated/models/OrderQuoteSide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,32 @@
/* tslint:disable */
/* eslint-disable */

import type { OrderQuoteSideKindBuy } from './OrderQuoteSideKindBuy';
import type { OrderQuoteSideKindSell } from './OrderQuoteSideKindSell';
import type { TokenAmount } from './TokenAmount';

/**
* The buy or sell side when quoting an order.
*/
export type OrderQuoteSide = ({
kind: OrderQuoteSide.kind;
kind: OrderQuoteSideKindSell;
/**
* The total amount that is available for the order. From this value, the fee
* is deducted and the buy amount is calculated.
*
*/
sellAmountBeforeFee: TokenAmount;
} | {
kind: OrderQuoteSide.kind;
kind: OrderQuoteSideKindSell;
/**
* The `sellAmount` for the order.
*/
sellAmountAfterFee: TokenAmount;
} | {
kind: OrderQuoteSide.kind;
kind: OrderQuoteSideKindBuy;
/**
* The `buyAmount` for the order.
*/
buyAmountAfterFee: TokenAmount;
});

export namespace OrderQuoteSide {

export enum kind {
SELL = 'sell',
}


}

7 changes: 7 additions & 0 deletions src/order-book/generated/models/OrderQuoteSideKindBuy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export enum OrderQuoteSideKindBuy {
BUY = 'buy',
}
7 changes: 7 additions & 0 deletions src/order-book/generated/models/OrderQuoteSideKindSell.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export enum OrderQuoteSideKindSell {
SELL = 'sell',
}

0 comments on commit 92c15de

Please sign in to comment.