erp-pos-ecommerce-shared 0.2.21 → 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.
@@ -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 { v as IOrderResponse, u as IOrder, am as TblOrderStatus, m as IGender } from './warehouse.interface-S5seQY-_.js';
6
- import { a as ChangeProductResponse, C as ChangeProductRequest, R as Response } from './warehouse.service-CV2UDqAD.js';
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 FolioResponse as F, 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 };
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 IUser as $, type AgentResponse as A, type BankTerminalQuery as B, type CalculatePriceRequest as C, type DateRange as D, type IPricePerGramHistory as E, type IPriceType as F, type IPriceTypeResponse as G, type IPromotion as H, type IAgent as I, type IPromotionResponse as J, type IPromotionType as K, type IProvider as L, type IProviderForSelect as M, type IProviderRequest as N, type IProviderResponse as O, type IReportComparisonByTimeFrame as P, type IReportInventory as Q, type IReportX as R, type IReportZ as S, type IReview as T, type IRole as U, type IStockByWarehouseReport as V, type IStockMovement as W, type IStockMovementResponse as X, type ITag as Y, type ITax as Z, type ITaxResponse as _, type BankTerminalResponse as a, type IUserForm as a0, type IWareHouse as a1, type IWareHouseResponse as a2, type IWareHouseSelect as a3, type MaterialSummary as a4, type PaymentOptions as a5, type Period as a6, Permission as a7, type PermissionRole as a8, type PriceCalculationResponse as a9, type UserResponse as aA, type WeightBasedSale as aB, type PricePerGramForm as aa, type PricePerGramResponse as ab, type ProductInfo as ac, PromotionTypeEnum as ad, type ReportData as ae, type ReportDataProduct as af, type SchedulePriceRequest as ag, type TblModules as ah, type TblMoneyTransactionTypes as ai, type TblMoneyTransactions as aj, type TblOrderDetail as ak, type TblOrderDetailsMoneyTransactions as al, type TblOrderStatus as am, type TblPermissions as an, type TblPriceTypes as ao, type TblProducts as ap, type TblPromotionTypes as aq, type TblPromotionsTargetProductIDTotblProduct as ar, type TblProvidersTblProvidersUserIDTotblUser as as, type TblReturn as at, type TblReturnDetail as au, type TblRoles as av, type TblRolesTblUsersRoleIDTotblRoles as aw, type TblUsersTblProvidersUserIDTotblUsers as ax, type TblUsersTblTotblUsers as ay, type UpdatePriceRequest as az, ChartType as b, ComparisonBy as c, type IBankTerminal as d, type IBankTerminalForm as e, type IBankTerminalOption as f, type IBankTerminalResponse as g, type IClient as h, type IClientDataForTable as i, type IClientRequest as j, type IClientResponse as k, type IClientResponseById as l, type IGender as m, type ILocation as n, type ILocationResponse as o, type IMaterial as p, type IMeta as q, type IModule as r, type IMovement as s, type IMovementResponse as t, type IOrder as u, type IOrderResponse as v, type IPayment as w, type IPaymentMethod as x, type IPaymentMethodAmountExpected as y, type IPermissionRole as z };
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 { $ as IUser, n as ILocation, o as ILocationResponse, p as IMaterial, u as IOrder, v as IOrderResponse, am as TblOrderStatus, z as IPermissionRole, a8 as PermissionRole, at as TblReturn, ak as TblOrderDetail, a1 as IWareHouse, a2 as IWareHouseResponse } from './warehouse.interface-S5seQY-_.js';
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 {
@@ -261,6 +261,12 @@ interface StateResponse {
261
261
  }
262
262
  declare const getAllStates: () => Promise<StateResponse[]>;
263
263
 
264
+ interface IUserSettings {
265
+ lowStockThreshold: number;
266
+ }
267
+ declare const getUserSettings: () => Promise<IUserSettings>;
268
+ declare const updateUserSettings: (settings: Partial<IUserSettings>) => Promise<IUserSettings>;
269
+
264
270
  interface WareHouseQuery {
265
271
  skip?: number;
266
272
  limit?: number;
@@ -296,4 +302,4 @@ declare const restoreWarehouse: ({ warehouseId }: {
296
302
  warehouseId: number;
297
303
  }) => Promise<void>;
298
304
 
299
- export { getWarehousesForSelect as $, getLocationById as A, getLocations as B, type ChangeProductRequest as C, getLocationsForSelect as D, getMatchedBatches as E, getMaterialById as F, type GetReturnsByOrderIdResponse as G, getMaterials as H, type IExchange as I, getMaterialsForSelect as J, getOrderById as K, type LocationResponse as L, type MaterialResponse as M, getOrders as N, getOrdersStatusForSelect as O, type PaymentType as P, type QRBaseUrlResponse as Q, type Response as R, type StateResponse as S, getPaymentTypes as T, type UpdateBatchData as U, getPermissionRoleByRoleID as V, type WarehouseResponse as W, getQRBaseUrl as X, getReturnsByOrderId as Y, getWarehouseById as Z, getWarehouses as _, type ChangeProductResponse as a, login as a0, makeNewCashMovement as a1, printQR as a2, restoreLocation as a3, restoreWarehouse as a4, setNewShift as a5, undeleteMaterial as a6, updateBatch as a7, updateLocation as a8, updateMaterial as a9, updatePermission as aa, updateWarehouse as ab, type IExchangeResponse as b, type IUpdatePermission as c, type LoginResponse as d, type PrintQRResponse as e, changeOrderProduct as f, closeShift as g, createBatch as h, createBatchAndUpdateOtherBatches as i, createExchangeRate as j, createLocation as k, createMaterial as l, createReturn as m, createWareHouse as n, deleteLocation as o, deleteMaterial as p, deleteWarehouse as q, getAllLocations as r, getAllMaterials as s, getAllPermissions as t, getAllStates as u, getBatchById as v, getBatches as w, getBatchesForSelect as x, getExchangeRate as y, getExchangeRates as z };
305
+ export { getWarehouseById as $, getExchangeRates as A, getLocationById as B, type ChangeProductRequest as C, getLocations as D, getLocationsForSelect as E, getMatchedBatches as F, type GetReturnsByOrderIdResponse as G, getMaterialById as H, type IExchange as I, getMaterials as J, getMaterialsForSelect as K, type LocationResponse as L, type MaterialResponse as M, getOrderById as N, getOrders as O, type PaymentType as P, type QRBaseUrlResponse as Q, type Response as R, type StateResponse as S, getOrdersStatusForSelect as T, type UpdateBatchData as U, getPaymentTypes as V, type WarehouseResponse as W, getPermissionRoleByRoleID as X, getQRBaseUrl as Y, getReturnsByOrderId as Z, getUserSettings as _, type ChangeProductResponse as a, getWarehouses as a0, getWarehousesForSelect as a1, login as a2, makeNewCashMovement as a3, printQR as a4, restoreLocation as a5, restoreWarehouse as a6, setNewShift as a7, undeleteMaterial as a8, updateBatch as a9, updateLocation as aa, updateMaterial as ab, updatePermission as ac, updateUserSettings as ad, updateWarehouse as ae, type IExchangeResponse as b, type IUpdatePermission as c, type IUserSettings as d, type LoginResponse as e, type PrintQRResponse as f, changeOrderProduct as g, closeShift as h, createBatch as i, createBatchAndUpdateOtherBatches as j, createExchangeRate as k, createLocation as l, createMaterial as m, createReturn as n, createWareHouse as o, deleteLocation as p, deleteMaterial as q, deleteWarehouse as r, getAllLocations as s, getAllMaterials as t, getAllPermissions as u, getAllStates as v, getBatchById as w, getBatches as x, getBatchesForSelect as y, getExchangeRate as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erp-pos-ecommerce-shared",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "repository": {