erp-pos-ecommerce-shared 0.2.22 → 0.2.23
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/hooks.d.ts +4 -4
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/queries.d.ts +6 -7
- package/dist/queries.js.map +1 -1
- package/dist/services.d.ts +9 -3
- package/dist/services.js +16 -1
- package/dist/services.js.map +1 -1
- package/dist/{shift.queries-MPSeGMrR.d.ts → shift.queries-BluElDWe.d.ts} +3 -17
- package/dist/{warehouse.interface-S5seQY-_.d.ts → warehouse.interface-CCyPQruB.d.ts} +72 -1
- package/dist/{warehouse.service-D5fHR5E3.d.ts → warehouse.service-hWeYeuP7.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import * as _tanstack_query_core from '@tanstack/query-core';
|
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { QueryClient, UseMutationOptions } from '@tanstack/react-query';
|
|
4
4
|
import { k as IFilterType, n as IProductDetailsResponse, o as IProductResponse, l as IProduct, m as IProductDetails } from './filters.interface-BwMi9FRP.js';
|
|
5
|
-
import {
|
|
6
|
-
import { a as ChangeProductResponse, C as ChangeProductRequest, R as Response } from './warehouse.service-
|
|
5
|
+
import { J as IOrderResponse, H as IOrder, av as TblOrderStatus, u as IGender } from './warehouse.interface-CCyPQruB.js';
|
|
6
|
+
import { a as ChangeProductResponse, C as ChangeProductRequest, R as Response } from './warehouse.service-hWeYeuP7.js';
|
|
7
7
|
|
|
8
8
|
interface ProductQueryParams {
|
|
9
9
|
skip?: number;
|
|
@@ -238,20 +238,6 @@ declare const genders: {
|
|
|
238
238
|
mutations: {};
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
interface FolioResponse {
|
|
242
|
-
folioID: number;
|
|
243
|
-
folioType: string;
|
|
244
|
-
lastFolioUsed: number;
|
|
245
|
-
nextFolioToUse: number;
|
|
246
|
-
nextBatchWithFolioToUse: string;
|
|
247
|
-
syncStatusID: number;
|
|
248
|
-
masterCodeID: null;
|
|
249
|
-
savedBy: null;
|
|
250
|
-
savedDate: null;
|
|
251
|
-
deletedBy: null;
|
|
252
|
-
deletedDate: null;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
241
|
interface HealthCheckResponse {
|
|
256
242
|
status: string;
|
|
257
243
|
timestamp: string;
|
|
@@ -319,4 +305,4 @@ declare const shifts: {
|
|
|
319
305
|
};
|
|
320
306
|
};
|
|
321
307
|
|
|
322
|
-
export { type CloseShiftData as C, type
|
|
308
|
+
export { type CloseShiftData as C, type GenderResponse as G, type HealthCheckResponse as H, type ProductQueryParams as P, type UseOrdersParams as U, genders as a, healthQueryKeys as b, orders as c, products as d, genderQueryKeys as g, health as h, orderQueryKeys as o, productQueryKeys as p, shifts as s };
|
|
@@ -99,6 +99,37 @@ interface IClientRequest {
|
|
|
99
99
|
priceTypeID: number;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
interface FolioResponse {
|
|
103
|
+
total: number;
|
|
104
|
+
data: IFolio[];
|
|
105
|
+
skip: number;
|
|
106
|
+
limit: number;
|
|
107
|
+
}
|
|
108
|
+
interface Folio {
|
|
109
|
+
id: number;
|
|
110
|
+
title: string;
|
|
111
|
+
description: string;
|
|
112
|
+
}
|
|
113
|
+
interface IFolioResponse {
|
|
114
|
+
total: number;
|
|
115
|
+
data: IFolio[];
|
|
116
|
+
skip: number;
|
|
117
|
+
limit: number;
|
|
118
|
+
}
|
|
119
|
+
interface IFolio {
|
|
120
|
+
folioID: number;
|
|
121
|
+
folioType: string;
|
|
122
|
+
lastFolioUsed: number;
|
|
123
|
+
nextFolioToUse: number;
|
|
124
|
+
nextBatchWithFolioToUse: string;
|
|
125
|
+
syncStatusID: number;
|
|
126
|
+
masterCodeID: null;
|
|
127
|
+
savedBy: null;
|
|
128
|
+
savedDate: null;
|
|
129
|
+
deletedBy: null;
|
|
130
|
+
deletedDate: null;
|
|
131
|
+
}
|
|
132
|
+
|
|
102
133
|
interface IGender {
|
|
103
134
|
genderID: number;
|
|
104
135
|
gender: string;
|
|
@@ -774,6 +805,46 @@ interface DateRange {
|
|
|
774
805
|
start: Date;
|
|
775
806
|
end: Date;
|
|
776
807
|
}
|
|
808
|
+
interface IContpaqOrderItem {
|
|
809
|
+
productName: string;
|
|
810
|
+
quantity: number;
|
|
811
|
+
amount: number;
|
|
812
|
+
weight?: number | null;
|
|
813
|
+
isWeightBased?: boolean;
|
|
814
|
+
}
|
|
815
|
+
interface IContpaqOrderPayment {
|
|
816
|
+
paymentMethod: string;
|
|
817
|
+
transactionTypeID: number;
|
|
818
|
+
amount: number;
|
|
819
|
+
}
|
|
820
|
+
interface IContpaqOrder {
|
|
821
|
+
orderID: number;
|
|
822
|
+
folio: number;
|
|
823
|
+
orderDate: string | null;
|
|
824
|
+
clientName: string;
|
|
825
|
+
savedBy: string;
|
|
826
|
+
orderStatus: string;
|
|
827
|
+
items: IContpaqOrderItem[];
|
|
828
|
+
orderTotal: number;
|
|
829
|
+
payments: IContpaqOrderPayment[];
|
|
830
|
+
totalPaid: number;
|
|
831
|
+
pendingBalance: number;
|
|
832
|
+
}
|
|
833
|
+
interface IContpaqPaymentMethodTotal {
|
|
834
|
+
paymentMethod: string;
|
|
835
|
+
transactionTypeID: number;
|
|
836
|
+
amount: number;
|
|
837
|
+
}
|
|
838
|
+
interface IContpaqSalesReport {
|
|
839
|
+
orders: IContpaqOrder[];
|
|
840
|
+
paymentMethodTotals: IContpaqPaymentMethodTotal[];
|
|
841
|
+
totalGeneral: number;
|
|
842
|
+
totalSales: number;
|
|
843
|
+
dateRange: {
|
|
844
|
+
startDate: string;
|
|
845
|
+
endDate: string;
|
|
846
|
+
};
|
|
847
|
+
}
|
|
777
848
|
interface IReportInventory {
|
|
778
849
|
productName: string;
|
|
779
850
|
productVariant: string;
|
|
@@ -958,4 +1029,4 @@ interface IWareHouse {
|
|
|
958
1029
|
country: string;
|
|
959
1030
|
}
|
|
960
1031
|
|
|
961
|
-
export { type
|
|
1032
|
+
export { type IReportZ as $, type AgentResponse as A, type BankTerminalQuery as B, type CalculatePriceRequest as C, type DateRange as D, type IMovement as E, type Folio as F, type IMovementResponse as G, type IOrder as H, type IAgent as I, type IOrderResponse as J, type IPayment as K, type IPaymentMethod as L, type IPaymentMethodAmountExpected as M, type IPermissionRole as N, type IPricePerGramHistory as O, type IPriceType as P, type IPriceTypeResponse as Q, type IPromotion as R, type IPromotionResponse as S, type IPromotionType as T, type IProvider as U, type IProviderForSelect as V, type IProviderRequest as W, type IProviderResponse as X, type IReportComparisonByTimeFrame as Y, type IReportInventory as Z, type IReportX as _, type BankTerminalResponse as a, type IReview as a0, type IRole as a1, type IStockByWarehouseReport as a2, type IStockMovement as a3, type IStockMovementResponse as a4, type ITag as a5, type ITax as a6, type ITaxResponse as a7, type IUser as a8, type IUserForm as a9, type TblPromotionsTargetProductIDTotblProduct as aA, type TblProvidersTblProvidersUserIDTotblUser as aB, type TblReturn as aC, type TblReturnDetail as aD, type TblRoles as aE, type TblRolesTblUsersRoleIDTotblRoles as aF, type TblUsersTblProvidersUserIDTotblUsers as aG, type TblUsersTblTotblUsers as aH, type UpdatePriceRequest as aI, type UserResponse as aJ, type WeightBasedSale as aK, type IWareHouse as aa, type IWareHouseResponse as ab, type IWareHouseSelect as ac, type MaterialSummary as ad, type PaymentOptions as ae, type Period as af, Permission as ag, type PermissionRole as ah, type PriceCalculationResponse as ai, type PricePerGramForm as aj, type PricePerGramResponse as ak, type ProductInfo as al, PromotionTypeEnum as am, type ReportData as an, type ReportDataProduct as ao, type SchedulePriceRequest as ap, type TblModules as aq, type TblMoneyTransactionTypes as ar, type TblMoneyTransactions as as, type TblOrderDetail as at, type TblOrderDetailsMoneyTransactions as au, type TblOrderStatus as av, type TblPermissions as aw, type TblPriceTypes as ax, type TblProducts as ay, type TblPromotionTypes as az, ChartType as b, ComparisonBy as c, type FolioResponse as d, type IBankTerminal as e, type IBankTerminalForm as f, type IBankTerminalOption as g, type IBankTerminalResponse as h, type IClient as i, type IClientDataForTable as j, type IClientRequest as k, type IClientResponse as l, type IClientResponseById as m, type IContpaqOrder as n, type IContpaqOrderItem as o, type IContpaqOrderPayment as p, type IContpaqPaymentMethodTotal as q, type IContpaqSalesReport as r, type IFolio as s, type IFolioResponse as t, type IGender as u, type ILocation as v, type ILocationResponse as w, type IMaterial as x, type IMeta as y, type IModule as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as IUser, v as ILocation, w as ILocationResponse, x as IMaterial, H as IOrder, J as IOrderResponse, av as TblOrderStatus, N as IPermissionRole, ah as PermissionRole, aC as TblReturn, at as TblOrderDetail, aa as IWareHouse, ab as IWareHouseResponse } from './warehouse.interface-CCyPQruB.js';
|
|
2
2
|
import { e as IBatch, f as IBatchResponse } from './filters.interface-BwMi9FRP.js';
|
|
3
3
|
|
|
4
4
|
interface LoginResponse {
|