erp-pos-ecommerce-shared 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +5 -1
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +13 -2
- package/dist/hooks.js +21 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/queries.d.ts +28 -1
- package/dist/queries.js +16 -0
- package/dist/queries.js.map +1 -1
- package/package.json +1 -1
package/dist/queries.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _tanstack_query_core from '@tanstack/query-core';
|
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { QueryClient, UseMutationOptions } from '@tanstack/react-query';
|
|
5
5
|
import { b as IAttributeQueryParams, c as IAttributeResponse, I as IAttribute, d as IAttributeValue, i as ICategoryResponse, g as ICategory, f as IBatchResponse, e as IBatch } from './filters.interface-BwMi9FRP.js';
|
|
6
|
-
import { aJ as UserResponse, a8 as IUser, A as AgentResponse, a9 as IUserForm, ab as IWareHouseResponse, aa as IWareHouse, l as IClientResponse, m as IClientResponseById, i as IClient, k as IClientRequest, h as IBankTerminalResponse, e as IBankTerminal, a as BankTerminalResponse, f as IBankTerminalForm, a1 as IRole, X as IProviderResponse, U as IProvider, V as IProviderForSelect, W as IProviderRequest, w as ILocationResponse, v as ILocation, x as IMaterial, Q as IPriceTypeResponse, P as IPriceType, N as IPermissionRole, ah as PermissionRole, S as IPromotionResponse, R as IPromotion, T as IPromotionType, L as IPaymentMethod, M as IPaymentMethodAmountExpected, K as IPayment, a6 as ITax, z as IModule, s as IFolio, a5 as ITag, ak as PricePerGramResponse, O as IPricePerGramHistory, aI as UpdatePriceRequest, ap as SchedulePriceRequest, ai as PriceCalculationResponse, C as CalculatePriceRequest, c as ComparisonBy, a2 as IStockByWarehouseReport, _ as IReportX, Y as IReportComparisonByTimeFrame, Z as IReportInventory, $ as IReportZ, at as TblOrderDetail, a4 as IStockMovementResponse, a3 as IStockMovement } from './warehouse.interface-CCyPQruB.js';
|
|
6
|
+
import { aJ as UserResponse, a8 as IUser, A as AgentResponse, a9 as IUserForm, ab as IWareHouseResponse, aa as IWareHouse, l as IClientResponse, m as IClientResponseById, i as IClient, k as IClientRequest, h as IBankTerminalResponse, e as IBankTerminal, a as BankTerminalResponse, f as IBankTerminalForm, a1 as IRole, X as IProviderResponse, U as IProvider, V as IProviderForSelect, W as IProviderRequest, w as ILocationResponse, v as ILocation, x as IMaterial, Q as IPriceTypeResponse, P as IPriceType, N as IPermissionRole, ah as PermissionRole, S as IPromotionResponse, R as IPromotion, T as IPromotionType, L as IPaymentMethod, M as IPaymentMethodAmountExpected, K as IPayment, a6 as ITax, z as IModule, s as IFolio, a5 as ITag, ak as PricePerGramResponse, O as IPricePerGramHistory, aI as UpdatePriceRequest, ap as SchedulePriceRequest, ai as PriceCalculationResponse, C as CalculatePriceRequest, c as ComparisonBy, a2 as IStockByWarehouseReport, _ as IReportX, Y as IReportComparisonByTimeFrame, Z as IReportInventory, $ as IReportZ, r as IContpaqSalesReport, at as TblOrderDetail, a4 as IStockMovementResponse, a3 as IStockMovement } from './warehouse.interface-CCyPQruB.js';
|
|
7
7
|
import { W as WarehouseResponse, U as UpdateBatchData, L as LocationResponse, M as MaterialResponse, b as IExchangeResponse, I as IExchange, P as PaymentType, c as IUpdatePermission, e as LoginResponse, S as StateResponse, f as PrintQRResponse, G as GetReturnsByOrderIdResponse, d as IUserSettings } from './warehouse.service-hWeYeuP7.js';
|
|
8
8
|
export { C as CloseShiftData, G as GenderResponse, H as HealthCheckResponse, P as ProductQueryParams, U as UseOrdersParams, g as genderQueryKeys, a as genders, h as health, b as healthQueryKeys, o as orderQueryKeys, c as orders, p as productQueryKeys, d as products, s as shifts } from './shift.queries-BluElDWe.js';
|
|
9
9
|
import '@tanstack/react-table';
|
|
@@ -1885,6 +1885,13 @@ declare const reportQueryKeys: {
|
|
|
1885
1885
|
warehouseIDs: number[] | null;
|
|
1886
1886
|
providerIDs: number[] | null;
|
|
1887
1887
|
}];
|
|
1888
|
+
contpaqSales: (params: {
|
|
1889
|
+
startDate: string;
|
|
1890
|
+
endDate: string;
|
|
1891
|
+
}) => readonly ["reports", "contpaqSales", {
|
|
1892
|
+
startDate: string;
|
|
1893
|
+
endDate: string;
|
|
1894
|
+
}];
|
|
1888
1895
|
pendingReportZ: () => readonly ["reports", "pendingReportZ"];
|
|
1889
1896
|
paymentMethods: () => readonly ["reports", "paymentMethods"];
|
|
1890
1897
|
};
|
|
@@ -2015,6 +2022,26 @@ declare const reports: {
|
|
|
2015
2022
|
[dataTagErrorSymbol]: Error;
|
|
2016
2023
|
};
|
|
2017
2024
|
};
|
|
2025
|
+
getContpaqSalesReport: (params: {
|
|
2026
|
+
startDate: string;
|
|
2027
|
+
endDate: string;
|
|
2028
|
+
} | null) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<IContpaqSalesReport, Error, IContpaqSalesReport, readonly ["reports", "contpaqSales", {
|
|
2029
|
+
startDate: string;
|
|
2030
|
+
endDate: string;
|
|
2031
|
+
}]>, "queryFn"> & {
|
|
2032
|
+
queryFn?: _tanstack_query_core.QueryFunction<IContpaqSalesReport, readonly ["reports", "contpaqSales", {
|
|
2033
|
+
startDate: string;
|
|
2034
|
+
endDate: string;
|
|
2035
|
+
}], never> | undefined;
|
|
2036
|
+
} & {
|
|
2037
|
+
queryKey: readonly ["reports", "contpaqSales", {
|
|
2038
|
+
startDate: string;
|
|
2039
|
+
endDate: string;
|
|
2040
|
+
}] & {
|
|
2041
|
+
[dataTagSymbol]: IContpaqSalesReport;
|
|
2042
|
+
[dataTagErrorSymbol]: Error;
|
|
2043
|
+
};
|
|
2044
|
+
};
|
|
2018
2045
|
getPendingReportZ: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<Date[], Error, Date[], readonly ["reports", "pendingReportZ"]>, "queryFn"> & {
|
|
2019
2046
|
queryFn?: _tanstack_query_core.QueryFunction<Date[], readonly ["reports", "pendingReportZ"], never> | undefined;
|
|
2020
2047
|
} & {
|
package/dist/queries.js
CHANGED
|
@@ -3370,6 +3370,15 @@ var printReportZ = async ({
|
|
|
3370
3370
|
);
|
|
3371
3371
|
return response.data;
|
|
3372
3372
|
};
|
|
3373
|
+
var getSalesReportContpaq = async ({
|
|
3374
|
+
startDate,
|
|
3375
|
+
endDate
|
|
3376
|
+
}) => {
|
|
3377
|
+
const response = await api.get(
|
|
3378
|
+
`/report/contpaq-sales?startDate=${startDate}&endDate=${endDate}`
|
|
3379
|
+
);
|
|
3380
|
+
return response.data;
|
|
3381
|
+
};
|
|
3373
3382
|
var checkPendingReportZ = async () => {
|
|
3374
3383
|
const response = await api.get("/report/pending-report-z");
|
|
3375
3384
|
return response.data;
|
|
@@ -3383,6 +3392,7 @@ var reportQueryKeys = {
|
|
|
3383
3392
|
reportZ: (params) => [...reportQueryKeys.all, "reportZ", params],
|
|
3384
3393
|
comparison: (params) => [...reportQueryKeys.all, "comparison", params],
|
|
3385
3394
|
inventory: (params) => [...reportQueryKeys.all, "inventory", params],
|
|
3395
|
+
contpaqSales: (params) => [...reportQueryKeys.all, "contpaqSales", params],
|
|
3386
3396
|
pendingReportZ: () => [...reportQueryKeys.all, "pendingReportZ"],
|
|
3387
3397
|
paymentMethods: () => [...reportQueryKeys.all, "paymentMethods"]
|
|
3388
3398
|
};
|
|
@@ -3430,6 +3440,12 @@ var reports = {
|
|
|
3430
3440
|
enabled: !!params?.startDate && !!params?.sellerID,
|
|
3431
3441
|
staleTime: 60 * 1e3
|
|
3432
3442
|
}),
|
|
3443
|
+
getContpaqSalesReport: (params) => queryOptions({
|
|
3444
|
+
queryFn: () => getSalesReportContpaq(params),
|
|
3445
|
+
queryKey: reportQueryKeys.contpaqSales(params),
|
|
3446
|
+
enabled: !!params?.startDate && !!params?.endDate,
|
|
3447
|
+
staleTime: 60 * 1e3
|
|
3448
|
+
}),
|
|
3433
3449
|
getPendingReportZ: () => queryOptions({
|
|
3434
3450
|
queryFn: checkPendingReportZ,
|
|
3435
3451
|
queryKey: reportQueryKeys.pendingReportZ(),
|