fix: cards fetch optimization
This commit is contained in:
@@ -252,6 +252,7 @@ export type { GetBoardsResponse } from './models/GetBoardsResponse';
|
||||
export type { GetCardBillById } from './models/GetCardBillById';
|
||||
export type { GetCardProductsBarcodesPdfRequest } from './models/GetCardProductsBarcodesPdfRequest';
|
||||
export type { GetCardProductsBarcodesPdfResponse } from './models/GetCardProductsBarcodesPdfResponse';
|
||||
export type { GetCardSummariesRequest } from './models/GetCardSummariesRequest';
|
||||
export type { GetChatRequest } from './models/GetChatRequest';
|
||||
export type { GetChatResponse } from './models/GetChatResponse';
|
||||
export type { GetClientMarketplacesRequest } from './models/GetClientMarketplacesRequest';
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CardSummary } from './CardSummary';
|
||||
import type { PaginationInfoSchema } from './PaginationInfoSchema';
|
||||
export type CardSummaryResponse = {
|
||||
summaries: Array<CardSummary>;
|
||||
paginationInfo: PaginationInfoSchema;
|
||||
};
|
||||
|
||||
|
||||
16
src/client/models/GetCardSummariesRequest.ts
Normal file
16
src/client/models/GetCardSummariesRequest.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type GetCardSummariesRequest = {
|
||||
full: boolean;
|
||||
cardId?: (number | string | null);
|
||||
cardName?: (string | null);
|
||||
marketplaceKey?: (string | null);
|
||||
shippingWarehouseId?: (number | null);
|
||||
clientId?: (number | null);
|
||||
projectId?: (number | null);
|
||||
boardId?: (number | null);
|
||||
statusId?: (number | null);
|
||||
};
|
||||
|
||||
@@ -56,6 +56,7 @@ import type { CreateCardsFromExcelResponse } from '../models/CreateCardsFromExce
|
||||
import type { GetAvailableEmployeesToAssignResponse } from '../models/GetAvailableEmployeesToAssignResponse';
|
||||
import type { GetCardProductsBarcodesPdfRequest } from '../models/GetCardProductsBarcodesPdfRequest';
|
||||
import type { GetCardProductsBarcodesPdfResponse } from '../models/GetCardProductsBarcodesPdfResponse';
|
||||
import type { GetCardSummariesRequest } from '../models/GetCardSummariesRequest';
|
||||
import type { ManageEmployeeRequest } from '../models/ManageEmployeeRequest';
|
||||
import type { ManageEmployeeResponse } from '../models/ManageEmployeeResponse';
|
||||
import type { ParseCardsExcelResponse } from '../models/ParseCardsExcelResponse';
|
||||
@@ -155,16 +156,23 @@ export class CardService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getCardSummaries({
|
||||
full,
|
||||
requestBody,
|
||||
page,
|
||||
itemsPerPage,
|
||||
}: {
|
||||
full: (boolean | null),
|
||||
requestBody: GetCardSummariesRequest,
|
||||
page?: (number | null),
|
||||
itemsPerPage?: (number | null),
|
||||
}): CancelablePromise<CardSummaryResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
method: 'POST',
|
||||
url: '/card/summaries',
|
||||
query: {
|
||||
'full': full,
|
||||
'page': page,
|
||||
'items_per_page': itemsPerPage,
|
||||
},
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user