UNPKG

calcme-js

Version:

Projeto open-source para exportar as funcoes do CalcMe sistemas para comunicacao visual, e poder chama-las remotamente

49 lines (48 loc) 1.42 kB
/*! * Copyright 2025 Saturno Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Order } from '../../types/Order'; import { Pageable } from '../../types/Pageable'; import { Sort } from '../../types/Sort'; /** * Function to get budgets * Função para retornar orçamentos * * @example * ```javascript * // Get budgets first page with 10 elements * await calcme.orders.get(0, 10); * * // Get budgets second page with 10 elements * await calcme.orders.get(1, 10); * ``` * @category Order */ export declare function get(page?: number, limit?: number): Promise<{ data: { content: Order[]; empty: boolean; first: boolean; last: boolean; number: number; numberOfElements: number; pageable: Pageable; size: number; sort: Sort; totalElements: number; totalPages: number; }; errors: any; }>;