@managesome/eposmatic-toolkit 0.2.366 → 0.2.368

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.
@@ -1,5 +1,5 @@
1
- import { CARD_PROCESSING_PROVIDERS_ENUM, CURRENCY_SYMBOL_ENUM, DELIVERY_STATUS_ENUM, ORDER_STATUS_ENUM, PLATFORM_TYPE_ENUM, PLATFORMS_ENUM, VOID_ORDER_ITEM_TYPE_ENUM, WALLET_ASSET_TYPE_ENUM, WALLET_ASSIGNMENT_BEHAVIOR_ENUM, WAREHOUSE_INVOICE_STATUS_ENUM } from '../../constants';
2
- import { IDineinTableFingerprint, IInternalLead, IModifierExtra, IOrder, IOrderItem, IOrderPayment, IPurchaseOrder, IWarehouseClientInvoice } from '../../schemas';
1
+ import { CARD_PROCESSING_PROVIDERS_ENUM, CURRENCY_SYMBOL_ENUM, DELIVERY_STATUS_ENUM, INTERNAL_MOVEMENT_STATUS_ENUM, ORDER_STATUS_ENUM, PLATFORM_TYPE_ENUM, PLATFORMS_ENUM, REMOVAL_STRATEGY_ENUM, TRACKING_MODE_ENUM, VOID_ORDER_ITEM_TYPE_ENUM, WALLET_ASSET_TYPE_ENUM, WALLET_ASSIGNMENT_BEHAVIOR_ENUM, WAREHOUSE_INVOICE_STATUS_ENUM } from '../../constants';
2
+ import { IDineinTableFingerprint, IInternalLead, IInternalMovement, IModifierExtra, IOrder, IOrderItem, IOrderPayment, IPurchaseOrder, IPurchaseOrderReceipt, IPurchaseOrderVendorReturn, ISaleOrder, IWarehouseClientInvoice } from '../../schemas';
3
3
  import { ISwitchPayEWalletRequestBody, ISwitchPayRefundRequestBody } from './switchpay';
4
4
  export interface IWorker_CreateDelivery {
5
5
  order: IOrder;
@@ -319,3 +319,84 @@ export interface IWorker_CleanupRewardsAndAssetsOnSettleOrder {
319
319
  brand_id: string;
320
320
  phoneNumber: string;
321
321
  }
322
+ export interface ILocationInventoryStats {
323
+ unit_price: number;
324
+ quantity_left: number;
325
+ remaining_stock_price: number;
326
+ }
327
+ interface IWorker_UpdateInternalMovementInventoryOnDelivered {
328
+ movement: IInternalMovement;
329
+ previous_status?: INTERNAL_MOVEMENT_STATUS_ENUM;
330
+ }
331
+ export interface ISessionUpdateInternalMovementInventoryOnDelivered extends IWorker_UpdateInternalMovementInventoryOnDelivered {
332
+ details?: string;
333
+ }
334
+ export interface IWorker_UpdateWarehouseInventoryOnCancelPurchaseOrder {
335
+ purchaseOrder: IPurchaseOrder;
336
+ currency_symbol: CURRENCY_SYMBOL_ENUM | undefined;
337
+ }
338
+ export interface ISessionUpdateWarehouseInventoryOnCancelPurchaseOrder extends IWorker_UpdateWarehouseInventoryOnCancelPurchaseOrder {
339
+ details?: string;
340
+ }
341
+ export interface IWorker_UpdateWarehouseInventoryOnCancelSaleOrder {
342
+ saleOrder: Pick<ISaleOrder, '_id' | 'warehouse_id' | 'order_number' | 'client_name'>;
343
+ }
344
+ export interface ISessionUpdateWarehouseInventoryOnCancelSaleOrder extends IWorker_UpdateWarehouseInventoryOnCancelSaleOrder {
345
+ details?: string;
346
+ }
347
+ export interface IWorker_UpdateWarehouseInventoryOnPurchaseOrderEdit {
348
+ previousPurchaseOrder: Pick<IPurchaseOrder, '_id' | 'warehouse_id' | 'order_number' | 'vendor_name' | 'categories'>;
349
+ updatedPurchaseOrder: Pick<IPurchaseOrder, 'categories'>;
350
+ currency_symbol: CURRENCY_SYMBOL_ENUM | undefined;
351
+ }
352
+ export interface ISessionUpdateWarehouseInventoryOnPurchaseOrderEdit extends IWorker_UpdateWarehouseInventoryOnPurchaseOrderEdit {
353
+ details?: string;
354
+ }
355
+ export interface ITrackedRollbackLine {
356
+ inventory_code: string;
357
+ tracking_mode: TRACKING_MODE_ENUM.LOT | TRACKING_MODE_ENUM.SERIAL;
358
+ strategy: REMOVAL_STRATEGY_ENUM;
359
+ quantity: number;
360
+ }
361
+ export interface IIngredientUsed {
362
+ [key: string]: {
363
+ quantity: number;
364
+ description: string;
365
+ stock_price?: number;
366
+ };
367
+ }
368
+ export interface IEditRollbackResult {
369
+ ingredientsUsed: IIngredientUsed;
370
+ trackedRollbacks: ITrackedRollbackLine[];
371
+ }
372
+ export interface IWorker_UpdateWarehouseInventoryOnReceiptValidated {
373
+ purchaseOrder: IPurchaseOrder;
374
+ currency_symbol: CURRENCY_SYMBOL_ENUM | undefined;
375
+ receipt: IPurchaseOrderReceipt;
376
+ }
377
+ export interface ISessionUpdateWarehouseInventoryOnReceiptValidated extends IWorker_UpdateWarehouseInventoryOnReceiptValidated {
378
+ details?: string;
379
+ }
380
+ export interface IWorker_UpdateWarehouseInventoryOnVendorReturnDispatched {
381
+ purchaseOrder: IPurchaseOrder;
382
+ vendorReturn: IPurchaseOrderVendorReturn;
383
+ }
384
+ export interface ISessionUpdateWarehouseInventoryOnVendorReturnDispatched extends IWorker_UpdateWarehouseInventoryOnVendorReturnDispatched {
385
+ details?: string;
386
+ }
387
+ export interface IWorker_UpdateWarehouseLotSerialOnCancelPurchaseOrder {
388
+ purchaseOrder: Pick<IPurchaseOrder, '_id' | 'warehouse_id' | 'order_number' | 'categories' | 'order_status'>;
389
+ uid: string;
390
+ }
391
+ export interface ILotSerialMovementDoc {
392
+ inventory_code?: string;
393
+ lot_number?: string;
394
+ serial_number?: string;
395
+ quantity?: number;
396
+ }
397
+ export interface ITrackedRollbackPlanLine {
398
+ inventory_code: string;
399
+ tracking_mode: TRACKING_MODE_ENUM.LOT | TRACKING_MODE_ENUM.SERIAL;
400
+ quantity: number;
401
+ }
402
+ export {};
@@ -11,13 +11,13 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
11
11
  _id: import("mongoose").Types.ObjectId;
12
12
  createdAt: NativeDate;
13
13
  updatedAt: NativeDate;
14
+ description: string;
14
15
  warehouse_id: string;
15
16
  document_kind: import("../../constants").EMAIL_DOCUMENT_KIND_ENUM;
16
17
  document_id: string;
17
18
  communication_channel: COMMUNICATION_CHANNEL_ENUM;
18
19
  to: string;
19
20
  subject: string;
20
- body: string;
21
21
  metadata: {
22
22
  grand_total: number;
23
23
  subtotal: number;
@@ -83,13 +83,13 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
83
83
  _id: import("mongoose").Types.ObjectId;
84
84
  createdAt: NativeDate;
85
85
  updatedAt: NativeDate;
86
+ description: string;
86
87
  warehouse_id: string;
87
88
  document_kind: import("../../constants").EMAIL_DOCUMENT_KIND_ENUM;
88
89
  document_id: string;
89
90
  communication_channel: COMMUNICATION_CHANNEL_ENUM;
90
91
  to: string;
91
92
  subject: string;
92
- body: string;
93
93
  metadata: {
94
94
  grand_total: number;
95
95
  subtotal: number;
@@ -155,13 +155,13 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
155
155
  _id: import("mongoose").Types.ObjectId;
156
156
  createdAt: NativeDate;
157
157
  updatedAt: NativeDate;
158
+ description: string;
158
159
  warehouse_id: string;
159
160
  document_kind: import("../../constants").EMAIL_DOCUMENT_KIND_ENUM;
160
161
  document_id: string;
161
162
  communication_channel: COMMUNICATION_CHANNEL_ENUM;
162
163
  to: string;
163
164
  subject: string;
164
- body: string;
165
165
  metadata: {
166
166
  grand_total: number;
167
167
  subtotal: number;
@@ -184,7 +184,7 @@ exports.WarehouseCommunicationsSchema = new mongoose_1.Schema({
184
184
  type: String,
185
185
  required: true,
186
186
  },
187
- body: {
187
+ description: {
188
188
  type: String,
189
189
  default: '',
190
190
  },
@@ -44,7 +44,7 @@ export interface IWarehouseCommunication {
44
44
  communication_channel: TWarehouseCommunicationChannel;
45
45
  to: string;
46
46
  subject: string;
47
- body: string;
47
+ description: string;
48
48
  metadata: IWarehouseCommunicationMetadata;
49
49
  sent_at?: Date | null;
50
50
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.366",
3
+ "version": "0.2.368",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",