@managesome/eposmatic-toolkit 0.2.419 → 0.2.421

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.
Files changed (43) hide show
  1. package/lib/constants/ENUMS.d.ts +50 -0
  2. package/lib/constants/ENUMS.js +67 -1
  3. package/lib/helpers/types/workers.d.ts +4 -4
  4. package/lib/helpers/utils/index.d.ts +1 -0
  5. package/lib/helpers/utils/index.js +1 -0
  6. package/lib/helpers/utils/internal-amount-helpers.d.ts +20 -0
  7. package/lib/helpers/utils/internal-amount-helpers.js +31 -0
  8. package/lib/schemas/models/index.d.ts +3 -1
  9. package/lib/schemas/models/index.js +3 -1
  10. package/lib/schemas/models/internal_customers.d.ts +93 -0
  11. package/lib/schemas/models/internal_customers.js +116 -0
  12. package/lib/schemas/models/internal_invoices.d.ts +89 -0
  13. package/lib/schemas/models/internal_invoices.js +113 -0
  14. package/lib/schemas/models/internal_leads.d.ts +3 -3
  15. package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +18 -18
  16. package/lib/schemas/models/item_transactions.d.ts +3 -3
  17. package/lib/schemas/models/order.d.ts +108 -108
  18. package/lib/schemas/models/purchase_order_receipts.d.ts +3 -3
  19. package/lib/schemas/models/purchase_order_rfq.d.ts +6 -6
  20. package/lib/schemas/models/purchase_order_vendor_returns.d.ts +15 -15
  21. package/lib/schemas/models/purchase_orders.d.ts +3 -3
  22. package/lib/schemas/models/sale_order_deliveries.d.ts +18 -18
  23. package/lib/schemas/models/sale_order_invoices.d.ts +12 -12
  24. package/lib/schemas/models/sale_order_rfq.d.ts +6 -6
  25. package/lib/schemas/models/sale_orders.d.ts +3 -3
  26. package/lib/schemas/models/void_order_items.d.ts +3 -3
  27. package/lib/schemas/models/void_purchase_order_items.d.ts +6 -6
  28. package/lib/schemas/models/void_warehouse_invoice_items.d.ts +6 -6
  29. package/lib/schemas/models/warehouse_internal_movements.d.ts +357 -0
  30. package/lib/schemas/models/warehouse_internal_movements.js +323 -0
  31. package/lib/schemas/models/warehouse_inventory_transactions.d.ts +3 -3
  32. package/lib/schemas/models/warehouse_invoices.d.ts +3 -3
  33. package/lib/schemas/models/warehouse_item_transactions.d.ts +6 -6
  34. package/lib/schemas/models/warehouse_items.d.ts +12 -12
  35. package/lib/schemas/types/index.d.ts +3 -1
  36. package/lib/schemas/types/index.js +3 -1
  37. package/lib/schemas/types/internal_customers.d.ts +26 -0
  38. package/lib/schemas/types/internal_customers.js +2 -0
  39. package/lib/schemas/types/internal_invoices.d.ts +25 -0
  40. package/lib/schemas/types/internal_invoices.js +2 -0
  41. package/lib/schemas/types/warehouse_internal_movements.d.ts +73 -0
  42. package/lib/schemas/types/warehouse_internal_movements.js +2 -0
  43. package/package.json +1 -1
@@ -1351,3 +1351,53 @@ export declare enum CUSTOMER_TARGET_MODE_ENUM {
1351
1351
  TOP_DELIVERY_CUSTOMERS_BY_ORDERS = "TOP_DELIVERY_CUSTOMERS_BY_ORDERS"
1352
1352
  }
1353
1353
  export declare const ALL_CUSTOMER_TARGET_MODES: CUSTOMER_TARGET_MODE_ENUM[];
1354
+ export declare enum SUBSCRIPTION_HARDWARE_ENUM {
1355
+ PRINTERS = "PRINTERS",
1356
+ TABLET = "TABLET",
1357
+ ALL_IN_ONE_PC = "ALL_IN_ONE_PC",
1358
+ DUAL_SCREEN = "DUAL_SCREEN"
1359
+ }
1360
+ export declare const ALL_SUBSCRIPTION_HARDWARE_NAMES: SUBSCRIPTION_HARDWARE_ENUM[];
1361
+ export declare enum INTERNAL_INVOICE_STATUS_ENUM {
1362
+ PENDING = "PENDING",
1363
+ CHARGED = "CHARGED",
1364
+ PAID = "PAID",
1365
+ CANCELLED = "CANCELLED"
1366
+ }
1367
+ export declare const ALL_INTERNAL_INVOICE_STATUS_NAMES: INTERNAL_INVOICE_STATUS_ENUM[];
1368
+ export declare enum INTERNAL_INVOICE_TYPE_ENUM {
1369
+ SUBSCRIPTION = "SUBSCRIPTION",
1370
+ ONE_TIME = "ONE_TIME"
1371
+ }
1372
+ export declare const ALL_INTERNAL_INVOICE_TYPE_NAMES: INTERNAL_INVOICE_TYPE_ENUM[];
1373
+ export declare enum INTERNAL_CUSTOMER_TYPE_ENUM {
1374
+ TENANT = "TENANT",
1375
+ WAREHOUSE = "WAREHOUSE",
1376
+ EXTERNAL = "EXTERNAL"
1377
+ }
1378
+ export declare const ALL_INTERNAL_CUSTOMER_TYPE_NAMES: INTERNAL_CUSTOMER_TYPE_ENUM[];
1379
+ export declare enum INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM {
1380
+ MONTHLY = "MONTHLY",
1381
+ QUARTERLY = "QUARTERLY",
1382
+ BIANNUAL = "BIANNUAL",
1383
+ ANNUAL = "ANNUAL"
1384
+ }
1385
+ export declare const ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES: INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM[];
1386
+ export declare enum INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM {
1387
+ BASIC = "BASIC",
1388
+ ADVANCE = "ADVANCE",
1389
+ PREMIUM = "PREMIUM",
1390
+ GOLDEN = "GOLDEN"
1391
+ }
1392
+ export declare const ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES: INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM[];
1393
+ export declare enum INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM {
1394
+ SMS_NOTIFICATIONS = "SMS_NOTIFICATIONS",
1395
+ COMMISSION = "COMMISSION",
1396
+ RIDER_TRACKING = "RIDER_TRACKING"
1397
+ }
1398
+ export declare const ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES: INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM[];
1399
+ export declare enum INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM {
1400
+ EPOSMATIC_STRIPE_US = "EPOSMATIC_STRIPE_US",
1401
+ ASAAN_BILL_RAAST_DQRC = "ASAAN_BILL_RAAST_DQRC"
1402
+ }
1403
+ export declare const ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES: INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM[];
@@ -5,7 +5,8 @@ exports.EMAIL_STATUS_ENUM = exports.ALL_COMMUNICATION_CHANNELS = exports.COMMUNI
5
5
  exports.EXPENSE_REACCURING_TYPE_ENUM = exports.PAYMENT_EXTENSION_ENUM = exports.ALL_PRINTER_INTERFACES = exports.PRINTER_INTERFACE_ENUM = exports.RECEIPT_WIDTHS = exports.ALL_NUM_OF_COLUMNS = exports.NUM_OF_COLUMNS_ENUM = exports.SPLIT_SYNC_SOURCE_ENUM = exports.ALL_SPLIT_BILL_TYPES = exports.SPLIT_BILL_TYPE_ENUM = exports.ALL_RIDER_FEE_TYPES = exports.RIDER_FEE_TYPE_ENUM = exports.ALL_DELIVERY_AREAS_SEARCH_TYPES = exports.DELIVERY_AREAS_SEARCH_TYPE_ENUM = exports.ALL_WEB_AUTH_TYPES = exports.WEB_AUTH_TYPE_ENUM = exports.KITCHEN_RECEIPT_TYPE_ENUM = exports.PRINTER_EVENT_TYPE_ENUM = exports.SORT_TYPE_ENUM = exports.WHITELISTED_API_SMS_COUNTRY_CODES = exports.BLACKLISTED_SMS_COUNTRY_CODES = exports.ALL_OTP_TYPES = exports.OTP_TYPE_ENUM = exports.ALL_TAX_INVOICE_PROVIDERS = exports.TAX_INVOICE_PROVIDER_ENUM = exports.ALL_RESERVATION_STATUS_TYPES = exports.RESERVATION_STATUS_ENUM = exports.TENANT_AMOUNT_DUE_TYPE_ENUM = exports.ALL_KITCHEN_DOCKET_FONT_TYPES = exports.KITCHEN_DOCKET_FONT_TYPE_ENUM = exports.ALL_SORT_ORDER_BY_TYPES = exports.SORT_ORDER_BY_ENUM = exports.RECEIPT_IMAGE_TYPE_ENUM = exports.ALL_RECEIPT_TYPES = exports.RECEIPT_TYPE_ENUM = exports.ALL_PRINTING_PREFERENCES = exports.PRINTING_PREFERENCE_ENUM = exports.ALL_PRINTER_BRAND_TYPES = exports.PRINTER_BRAND_TYPE_ENUM = exports.ALL_ORDER_ITEM_TYPES = exports.ORDER_ITEM_TYPE_ENUM = exports.ALL_PLATFORM_PROVIDER_IDS = exports.PLATFORM_PROVIDER_IDS_ENUM = exports.ALL_MARKETING_RECEIPIENT_TYPES = exports.MARKETING_RECEIPIENT_ENUM = exports.ALL_MARKETING_TYPES = exports.MARKETING_TYPE_ENUM = exports.ALL_TOKEN_TYPES = exports.TOKEN_TYPE_ENUM = exports.ALL_EMAIL_STATUS = void 0;
6
6
  exports.ALL_SALE_ORDER_INVOICE_TYPE_NAMES = exports.SALE_ORDER_INVOICE_TYPE_ENUM = exports.ALL_SALE_ORDER_FIN_DOC_KIND_NAMES = exports.SALE_ORDER_FIN_DOC_KIND_ENUM = exports.ALL_SALES_ORDER_STATUS_NAMES = exports.SALES_ORDER_STATUS_ENUM = exports.ALL_SALE_ORDER_RFQ_STATUS_NAMES = exports.SALE_ORDER_RFQ_STATUS_ENUM = exports.ALL_PURCHASE_ORDER_RFQ_STATUS_NAMES = exports.PURCHASE_ORDER_RFQ_STATUS_ENUM = exports.ALL_PURCHASE_ORDER_STATUS_NAMES = exports.PURCHASE_ORDER_STATUS_ENUM = exports.ALL_DELIVERY_STATUS = exports.DELIVERY_STATUS_ENUM = exports.ALL_INVENTORY_ITEM_TYPES = exports.INVENTORY_ITEM_TYPE_ENUM = exports.ALL_RATING_TYPES = exports.RATING_TYPE_ENUM = exports.ALL_SUBSCRIPTION_STATUS = exports.SUBSCRIPTION_STATUS_ENUM = exports.ALL_VOID_WAREHOUSE_INVOICE_ITEM_TYPES = exports.VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM = exports.ALL_VOID_PURCHASE_ORDER_ITEM_TYPES = exports.VOID_PURCHASE_ORDER_ITEM_TYPE_ENUM = exports.ALL_VOID_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = exports.ALL_MULTI_TENANT_WEBSITE_TYPES = exports.MULTI_TENANT_WEBSITE_TYPE_ENUM = exports.ALL_TIME_RANGE_ENUMS = exports.TIME_RANGE_ENUM = exports.ALL_ITEM_TRANSACTION_TYPES = exports.ITEM_TRANSACTION_TYPE_ENUM = exports.INVENTORY_OUTBOUND_TRANSACTIONS = exports.INVENTORY_INBOUND_TRANSACTIONS = exports.ALL_INVENTORY_TRANSACTION_CATEGORIES = exports.INVENTORY_TRANSACTION_CATEGORY_ENUM = exports.ALL_INVENTORY_TRANSACTION_TYPES = exports.INVENTORY_TRANSACTION_TYPE_ENUM = exports.ALL_REMOVAL_STRATEGY_TYPES = exports.REMOVAL_STRATEGY_ENUM = exports.ALL_LOT_SERIAL_MOVEMENT_SOURCES = exports.LOT_SERIAL_MOVEMENT_SOURCE_ENUM = exports.ALL_LOT_SERIAL_DOC_TYPES = exports.LOT_SERIAL_DOC_TYPE_ENUM = exports.ALL_TRACKING_MODES = exports.TRACKING_MODE_ENUM = exports.ALL_GST_TYPES = exports.GST_TYPE_ENUM = exports.ALL_EXPENSE_REACCURING_TYPES = void 0;
7
7
  exports.VOID_ITEM_STAFF_REPORT_ENUM = exports.ALL_DISCOUNT_APPLICABILITY_TYPES = exports.DISCOUNT_APPLICABILITY_ENUM = exports.ALL_DISCOUNT_TYPES = exports.DISCOUNT_TYPE_ENUM = exports.EMAIL_TEMPLATES_TYPE_ENUM = exports.ALL_ALERT_NOTIFICATIONS_TYPES = exports.ALERT_NOTIFICATIONS_TYPE_ENUM = exports.ALL_WALLET_TRANSACTION_STATUS = exports.WALLET_TRANSACTION_STATUS_ENUM = exports.ALL_WALLET_TRANSACTION_CATEGORIES = exports.WALLET_TRANSACTION_CATEGORY_ENUM = exports.ALL_WALLET_TRANSACTION_TYPES = exports.WALLET_TRANSACTION_TYPE_ENUM = exports.ALL_WAREHOUSE_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_WAREHOUSE_MODERATOR_PERMISSIONS = exports.ALL_WAREHOUSE_USER_PERMISSIONS = exports.WAREHOUSE_USER_PERMISSIONS_ENUM = exports.ALL_WAREHOUSE_INVOICE_STATUS_NAMES = exports.WAREHOUSE_INVOICE_STATUS_ENUM = exports.TActivityLogSeverity = exports.ACTIVITY_LOG_ACTIONS = exports.TActivityLogAction = exports.TActivityLogEntityType = exports.ALL_PURCHASE_ORDER_VENDOR_RETURN_STATUS_NAMES = exports.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM = exports.ALL_PURCHASE_ORDER_RECEIPT_STATUS_NAMES = exports.PURCHASE_ORDER_RECEIPT_STATUS_ENUM = exports.ALL_INTERNAL_MOVEMENT_LOCATION_TYPE_NAMES = exports.INTERNAL_MOVEMENT_LOCATION_TYPE_ENUM = exports.ALL_INTERNAL_MOVEMENT_FLOW_NAMES = exports.INTERNAL_MOVEMENT_FLOW_ENUM = exports.ALL_INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_NAMES = exports.INTERNAL_MOVEMENT_EDIT_REQUEST_STATUS_ENUM = exports.ALL_INTERNAL_MOVEMENT_STATUS_NAMES = exports.INTERNAL_MOVEMENT_STATUS_ENUM = exports.ALL_INTERNAL_MOVEMENT_RECORD_TYPE_NAMES = exports.INTERNAL_MOVEMENT_RECORD_TYPE_ENUM = exports.ALL_REF_TYPES = exports.REF_TYPE_ENUM = exports.ALL_SALE_ORDER_DELIVERY_RETURN_STATUS_NAMES = exports.SALE_ORDER_DELIVERY_RETURN_STATUS_ENUM = exports.ALL_SALE_ORDER_DELIVERY_STATUS_NAMES = exports.SALE_ORDER_DELIVERY_STATUS_ENUM = exports.ALL_SALE_ORDER_PHYSICAL_DOC_KIND_NAMES = exports.SALE_ORDER_PHYSICAL_DOC_KIND_ENUM = exports.ALL_SALE_ORDER_CREDIT_NOTE_STATUS_NAMES = exports.SALE_ORDER_CREDIT_NOTE_STATUS_ENUM = exports.ALL_SALE_ORDER_INVOICE_PAYMENT_STATUS_NAMES = exports.SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM = void 0;
8
- exports.ALL_CUSTOMER_TARGET_MODES = exports.CUSTOMER_TARGET_MODE_ENUM = exports.ALL_WALLET_ASSIGNMENT_BEHAVIORS = exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = exports.ALL_WALLET_ASSET_TYPES = exports.WALLET_ASSET_TYPE_ENUM = exports.ALL_RECEIPT_QR_CODE_TYPES = exports.RECEIPT_QR_CODE_TYPE_ENUM = exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = exports.ALL_CASH_IN_OUT_TYPES = exports.CASH_IN_OUT_TYPE_ENUM = exports.ALL_POS_SHIFT_STATUS = exports.POS_SHIFT_STATUS_ENUM = exports.ALL_POS_DAY_STATUS = exports.POS_DAY_STATUS_ENUM = exports.ALL_MODIFIER_OPTION_REF_TYPES = exports.MODIFIER_OPTION_REF_TYPE_ENUM = exports.ALL_WAREHOUSE_CLIENT_TYPES = exports.WAREHOUSE_CLIENT_TYPE_ENUM = exports.ALL_ONLINE_ORDERING_DESIGN_TYPES = exports.ONLINE_ORDERING_DESIGN_TYPE_ENUM = exports.ALL_NOTIFICATION_PROVIDERS = exports.NOTIFICATION_PROVIDER_ENUM = exports.ALL_ORDER_COMPLETION_TYPES = exports.ORDER_COMPLETION_TYPE_ENUM = exports.ITEM_COMPARISON_FIELD_ENUM = void 0;
8
+ exports.INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM = exports.ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES = exports.INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM = exports.ALL_INTERNAL_CUSTOMER_TYPE_NAMES = exports.INTERNAL_CUSTOMER_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_TYPE_NAMES = exports.INTERNAL_INVOICE_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_STATUS_NAMES = exports.INTERNAL_INVOICE_STATUS_ENUM = exports.ALL_SUBSCRIPTION_HARDWARE_NAMES = exports.SUBSCRIPTION_HARDWARE_ENUM = exports.ALL_CUSTOMER_TARGET_MODES = exports.CUSTOMER_TARGET_MODE_ENUM = exports.ALL_WALLET_ASSIGNMENT_BEHAVIORS = exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = exports.ALL_WALLET_ASSET_TYPES = exports.WALLET_ASSET_TYPE_ENUM = exports.ALL_RECEIPT_QR_CODE_TYPES = exports.RECEIPT_QR_CODE_TYPE_ENUM = exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = exports.ALL_CASH_IN_OUT_TYPES = exports.CASH_IN_OUT_TYPE_ENUM = exports.ALL_POS_SHIFT_STATUS = exports.POS_SHIFT_STATUS_ENUM = exports.ALL_POS_DAY_STATUS = exports.POS_DAY_STATUS_ENUM = exports.ALL_MODIFIER_OPTION_REF_TYPES = exports.MODIFIER_OPTION_REF_TYPE_ENUM = exports.ALL_WAREHOUSE_CLIENT_TYPES = exports.WAREHOUSE_CLIENT_TYPE_ENUM = exports.ALL_ONLINE_ORDERING_DESIGN_TYPES = exports.ONLINE_ORDERING_DESIGN_TYPE_ENUM = exports.ALL_NOTIFICATION_PROVIDERS = exports.NOTIFICATION_PROVIDER_ENUM = exports.ALL_ORDER_COMPLETION_TYPES = exports.ORDER_COMPLETION_TYPE_ENUM = exports.ITEM_COMPARISON_FIELD_ENUM = void 0;
9
+ exports.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES = void 0;
9
10
  var ORDER_FROM_ENUM;
10
11
  (function (ORDER_FROM_ENUM) {
11
12
  ORDER_FROM_ENUM["WEB"] = "WEB";
@@ -2114,3 +2115,68 @@ var CUSTOMER_TARGET_MODE_ENUM;
2114
2115
  })(CUSTOMER_TARGET_MODE_ENUM || (exports.CUSTOMER_TARGET_MODE_ENUM = CUSTOMER_TARGET_MODE_ENUM = {}));
2115
2116
  exports.ALL_CUSTOMER_TARGET_MODES = Object.values(CUSTOMER_TARGET_MODE_ENUM);
2116
2117
  // ====================>> <<====================== //
2118
+ var SUBSCRIPTION_HARDWARE_ENUM;
2119
+ (function (SUBSCRIPTION_HARDWARE_ENUM) {
2120
+ SUBSCRIPTION_HARDWARE_ENUM["PRINTERS"] = "PRINTERS";
2121
+ SUBSCRIPTION_HARDWARE_ENUM["TABLET"] = "TABLET";
2122
+ SUBSCRIPTION_HARDWARE_ENUM["ALL_IN_ONE_PC"] = "ALL_IN_ONE_PC";
2123
+ SUBSCRIPTION_HARDWARE_ENUM["DUAL_SCREEN"] = "DUAL_SCREEN";
2124
+ })(SUBSCRIPTION_HARDWARE_ENUM || (exports.SUBSCRIPTION_HARDWARE_ENUM = SUBSCRIPTION_HARDWARE_ENUM = {}));
2125
+ exports.ALL_SUBSCRIPTION_HARDWARE_NAMES = Object.values(SUBSCRIPTION_HARDWARE_ENUM);
2126
+ // ====================>> <<====================== //
2127
+ var INTERNAL_INVOICE_STATUS_ENUM;
2128
+ (function (INTERNAL_INVOICE_STATUS_ENUM) {
2129
+ INTERNAL_INVOICE_STATUS_ENUM["PENDING"] = "PENDING";
2130
+ INTERNAL_INVOICE_STATUS_ENUM["CHARGED"] = "CHARGED";
2131
+ INTERNAL_INVOICE_STATUS_ENUM["PAID"] = "PAID";
2132
+ INTERNAL_INVOICE_STATUS_ENUM["CANCELLED"] = "CANCELLED";
2133
+ })(INTERNAL_INVOICE_STATUS_ENUM || (exports.INTERNAL_INVOICE_STATUS_ENUM = INTERNAL_INVOICE_STATUS_ENUM = {}));
2134
+ exports.ALL_INTERNAL_INVOICE_STATUS_NAMES = Object.values(INTERNAL_INVOICE_STATUS_ENUM);
2135
+ // ====================>> <<====================== //
2136
+ var INTERNAL_INVOICE_TYPE_ENUM;
2137
+ (function (INTERNAL_INVOICE_TYPE_ENUM) {
2138
+ INTERNAL_INVOICE_TYPE_ENUM["SUBSCRIPTION"] = "SUBSCRIPTION";
2139
+ INTERNAL_INVOICE_TYPE_ENUM["ONE_TIME"] = "ONE_TIME";
2140
+ })(INTERNAL_INVOICE_TYPE_ENUM || (exports.INTERNAL_INVOICE_TYPE_ENUM = INTERNAL_INVOICE_TYPE_ENUM = {}));
2141
+ exports.ALL_INTERNAL_INVOICE_TYPE_NAMES = Object.values(INTERNAL_INVOICE_TYPE_ENUM);
2142
+ // ====================>> <<====================== //
2143
+ var INTERNAL_CUSTOMER_TYPE_ENUM;
2144
+ (function (INTERNAL_CUSTOMER_TYPE_ENUM) {
2145
+ INTERNAL_CUSTOMER_TYPE_ENUM["TENANT"] = "TENANT";
2146
+ INTERNAL_CUSTOMER_TYPE_ENUM["WAREHOUSE"] = "WAREHOUSE";
2147
+ INTERNAL_CUSTOMER_TYPE_ENUM["EXTERNAL"] = "EXTERNAL";
2148
+ })(INTERNAL_CUSTOMER_TYPE_ENUM || (exports.INTERNAL_CUSTOMER_TYPE_ENUM = INTERNAL_CUSTOMER_TYPE_ENUM = {}));
2149
+ exports.ALL_INTERNAL_CUSTOMER_TYPE_NAMES = Object.values(INTERNAL_CUSTOMER_TYPE_ENUM);
2150
+ // ====================>> <<====================== //
2151
+ var INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
2152
+ (function (INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM) {
2153
+ INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM["MONTHLY"] = "MONTHLY";
2154
+ INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM["QUARTERLY"] = "QUARTERLY";
2155
+ INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM["BIANNUAL"] = "BIANNUAL";
2156
+ INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM["ANNUAL"] = "ANNUAL";
2157
+ })(INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM || (exports.INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM = INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM = {}));
2158
+ exports.ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES = Object.values(INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM);
2159
+ // ====================>> <<====================== //
2160
+ var INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
2161
+ (function (INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM) {
2162
+ INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM["BASIC"] = "BASIC";
2163
+ INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM["ADVANCE"] = "ADVANCE";
2164
+ INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM["PREMIUM"] = "PREMIUM";
2165
+ INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM["GOLDEN"] = "GOLDEN";
2166
+ })(INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM || (exports.INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM = INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM = {}));
2167
+ exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES = Object.values(INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM);
2168
+ // ====================>> <<====================== //
2169
+ var INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM;
2170
+ (function (INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM) {
2171
+ INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM["SMS_NOTIFICATIONS"] = "SMS_NOTIFICATIONS";
2172
+ INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM["COMMISSION"] = "COMMISSION";
2173
+ INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM["RIDER_TRACKING"] = "RIDER_TRACKING";
2174
+ })(INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM || (exports.INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM = INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM = {}));
2175
+ exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES = Object.values(INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM);
2176
+ // ====================>> <<====================== //
2177
+ var INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
2178
+ (function (INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM) {
2179
+ INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM["EPOSMATIC_STRIPE_US"] = "EPOSMATIC_STRIPE_US";
2180
+ INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM["ASAAN_BILL_RAAST_DQRC"] = "ASAAN_BILL_RAAST_DQRC";
2181
+ })(INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM || (exports.INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = {}));
2182
+ exports.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES = Object.values(INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM);
@@ -1,5 +1,5 @@
1
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, ISaleOrderDelivery, IWarehouseClientInvoice } from '../../schemas';
2
+ import { IDineinTableFingerprint, IInternalLead, IWarehouseInternalMovement, IModifierExtra, IOrder, IOrderItem, IOrderPayment, IPurchaseOrder, IPurchaseOrderReceipt, IPurchaseOrderVendorReturn, ISaleOrder, ISaleOrderDelivery, IWarehouseClientInvoice } from '../../schemas';
3
3
  import { ISwitchPayEWalletRequestBody, ISwitchPayRefundRequestBody } from './switchpay';
4
4
  export interface IWorker_CreateDelivery {
5
5
  order: IOrder;
@@ -336,11 +336,11 @@ export interface ILocationInventoryStats {
336
336
  quantity_left: number;
337
337
  remaining_stock_price: number;
338
338
  }
339
- export interface IWorker_UpdateInternalMovementInventoryOnDelivered {
340
- movement: IInternalMovement;
339
+ export interface IWorker_UpdateWarehouseInternalMovementInventoryOnDelivered {
340
+ movement: IWarehouseInternalMovement;
341
341
  previous_status?: INTERNAL_MOVEMENT_STATUS_ENUM;
342
342
  }
343
- export interface ISessionUpdateInternalMovementInventoryOnDelivered extends IWorker_UpdateInternalMovementInventoryOnDelivered {
343
+ export interface ISessionUpdateWarehouseInternalMovementInventoryOnDelivered extends IWorker_UpdateWarehouseInternalMovementInventoryOnDelivered {
344
344
  details?: string;
345
345
  }
346
346
  export interface IWorker_UpdateWarehouseInventoryOnCancelPurchaseOrder {
@@ -20,6 +20,7 @@ export * from './hourly-comparison-report-helpers';
20
20
  export * from './hubrise-utils';
21
21
  export * from './image-helpers';
22
22
  export * from './ingredients';
23
+ export * from './internal-amount-helpers';
23
24
  export * from './inventory';
24
25
  export * from './inventory_transactions';
25
26
  export * from './invoice-x-report-helpers';
@@ -37,6 +37,7 @@ __exportStar(require("./hourly-comparison-report-helpers"), exports);
37
37
  __exportStar(require("./hubrise-utils"), exports);
38
38
  __exportStar(require("./image-helpers"), exports);
39
39
  __exportStar(require("./ingredients"), exports);
40
+ __exportStar(require("./internal-amount-helpers"), exports);
40
41
  __exportStar(require("./inventory"), exports);
41
42
  __exportStar(require("./inventory_transactions"), exports);
42
43
  __exportStar(require("./invoice-x-report-helpers"), exports);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Converts all monetary fields on an invoice from cents to dollars.
3
+ * Mutates and returns the same object.
4
+ */
5
+ export declare function convertInvoiceAmountsFromCents(invoice: {
6
+ subtotal: number;
7
+ discount_amount: number;
8
+ tax_amount: number;
9
+ grand_total: number;
10
+ }): typeof invoice;
11
+ /**
12
+ * Converts all monetary fields on an invoice from dollars to cents.
13
+ * Mutates and returns the same object.
14
+ */
15
+ export declare function convertInvoiceAmountsToCents(invoice: {
16
+ subtotal: number;
17
+ discount_amount: number;
18
+ tax_amount: number;
19
+ grand_total: number;
20
+ }): typeof invoice;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertInvoiceAmountsFromCents = convertInvoiceAmountsFromCents;
4
+ exports.convertInvoiceAmountsToCents = convertInvoiceAmountsToCents;
5
+ const price_conversion_1 = require("./price-conversion");
6
+ /**
7
+ * Converts all monetary fields on an invoice from cents to dollars.
8
+ * Mutates and returns the same object.
9
+ */
10
+ function convertInvoiceAmountsFromCents(invoice) {
11
+ return {
12
+ ...invoice,
13
+ subtotal: (0, price_conversion_1.convertPriceFromCents)(invoice.subtotal),
14
+ discount_amount: (0, price_conversion_1.convertPriceFromCents)(invoice.discount_amount),
15
+ tax_amount: (0, price_conversion_1.convertPriceFromCents)(invoice.tax_amount),
16
+ grand_total: (0, price_conversion_1.convertPriceFromCents)(invoice.grand_total),
17
+ };
18
+ }
19
+ /**
20
+ * Converts all monetary fields on an invoice from dollars to cents.
21
+ * Mutates and returns the same object.
22
+ */
23
+ function convertInvoiceAmountsToCents(invoice) {
24
+ return {
25
+ ...invoice,
26
+ subtotal: (0, price_conversion_1.convertPriceToCents)(invoice.subtotal),
27
+ discount_amount: (0, price_conversion_1.convertPriceToCents)(invoice.discount_amount),
28
+ tax_amount: (0, price_conversion_1.convertPriceToCents)(invoice.tax_amount),
29
+ grand_total: (0, price_conversion_1.convertPriceToCents)(invoice.grand_total),
30
+ };
31
+ }
@@ -22,8 +22,9 @@ export * from './gift_cards';
22
22
  export * from './halfhalf_setup';
23
23
  export * from './instore_shift_sessions';
24
24
  export * from './instore_shifts';
25
+ export * from './internal_customers';
26
+ export * from './internal_invoices';
25
27
  export * from './internal_leads';
26
- export * from './internal_movements';
27
28
  export * from './inventory';
28
29
  export * from './inventory_categories';
29
30
  export * from './inventory_lot_serial_numbers';
@@ -73,6 +74,7 @@ export * from './warehouse-activity-logs';
73
74
  export * from './warehouse-communications';
74
75
  export * from './warehouse_categories';
75
76
  export * from './warehouse_clients';
77
+ export * from './warehouse_internal_movements';
76
78
  export * from './warehouse_inventory_transactions';
77
79
  export * from './warehouse_invoices';
78
80
  export * from './warehouse_item_transactions';
@@ -38,8 +38,9 @@ __exportStar(require("./gift_cards"), exports);
38
38
  __exportStar(require("./halfhalf_setup"), exports);
39
39
  __exportStar(require("./instore_shift_sessions"), exports);
40
40
  __exportStar(require("./instore_shifts"), exports);
41
+ __exportStar(require("./internal_customers"), exports);
42
+ __exportStar(require("./internal_invoices"), exports);
41
43
  __exportStar(require("./internal_leads"), exports);
42
- __exportStar(require("./internal_movements"), exports);
43
44
  __exportStar(require("./inventory"), exports);
44
45
  __exportStar(require("./inventory_categories"), exports);
45
46
  __exportStar(require("./inventory_lot_serial_numbers"), exports);
@@ -89,6 +90,7 @@ __exportStar(require("./warehouse-activity-logs"), exports);
89
90
  __exportStar(require("./warehouse-communications"), exports);
90
91
  __exportStar(require("./warehouse_categories"), exports);
91
92
  __exportStar(require("./warehouse_clients"), exports);
93
+ __exportStar(require("./warehouse_internal_movements"), exports);
92
94
  __exportStar(require("./warehouse_inventory_transactions"), exports);
93
95
  __exportStar(require("./warehouse_invoices"), exports);
94
96
  __exportStar(require("./warehouse_item_transactions"), exports);
@@ -0,0 +1,93 @@
1
+ import { Schema } from 'mongoose';
2
+ import { SUBSCRIPTION_STATUS_ENUM } from '../../constants';
3
+ export declare const InternalCustomerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ timestamps: true;
5
+ versionKey: false;
6
+ minimize: false;
7
+ }, {
8
+ createdAt: NativeDate;
9
+ updatedAt: NativeDate;
10
+ } & {
11
+ _id: import("mongoose").Types.ObjectId;
12
+ createdAt: NativeDate;
13
+ updatedAt: NativeDate;
14
+ active: boolean;
15
+ ref_id: string;
16
+ phone_number: string;
17
+ email: string;
18
+ customer_type: import("../../constants").INTERNAL_CUSTOMER_TYPE_ENUM;
19
+ full_name: string;
20
+ invoice_notes: string;
21
+ personal_notes: string;
22
+ payment_channel: import("../../constants").INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
23
+ subscription_plan: import("../../constants").INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
24
+ subscription_services: string[];
25
+ subscription_status: SUBSCRIPTION_STATUS_ENUM;
26
+ billing_cycle: import("../../constants").INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
27
+ last_invoice_id: import("mongoose").Types.ObjectId;
28
+ last_invoice_number: string;
29
+ last_invoice_status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
30
+ last_invoice_due_date: NativeDate;
31
+ last_invoice_paid_at: NativeDate;
32
+ tax_number?: string | null | undefined;
33
+ company_name?: string | null | undefined;
34
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
35
+ createdAt: NativeDate;
36
+ updatedAt: NativeDate;
37
+ } & {
38
+ _id: import("mongoose").Types.ObjectId;
39
+ createdAt: NativeDate;
40
+ updatedAt: NativeDate;
41
+ active: boolean;
42
+ ref_id: string;
43
+ phone_number: string;
44
+ email: string;
45
+ customer_type: import("../../constants").INTERNAL_CUSTOMER_TYPE_ENUM;
46
+ full_name: string;
47
+ invoice_notes: string;
48
+ personal_notes: string;
49
+ payment_channel: import("../../constants").INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
50
+ subscription_plan: import("../../constants").INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
51
+ subscription_services: string[];
52
+ subscription_status: SUBSCRIPTION_STATUS_ENUM;
53
+ billing_cycle: import("../../constants").INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
54
+ last_invoice_id: import("mongoose").Types.ObjectId;
55
+ last_invoice_number: string;
56
+ last_invoice_status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
57
+ last_invoice_due_date: NativeDate;
58
+ last_invoice_paid_at: NativeDate;
59
+ tax_number?: string | null | undefined;
60
+ company_name?: string | null | undefined;
61
+ }>> & import("mongoose").FlatRecord<{
62
+ createdAt: NativeDate;
63
+ updatedAt: NativeDate;
64
+ } & {
65
+ _id: import("mongoose").Types.ObjectId;
66
+ createdAt: NativeDate;
67
+ updatedAt: NativeDate;
68
+ active: boolean;
69
+ ref_id: string;
70
+ phone_number: string;
71
+ email: string;
72
+ customer_type: import("../../constants").INTERNAL_CUSTOMER_TYPE_ENUM;
73
+ full_name: string;
74
+ invoice_notes: string;
75
+ personal_notes: string;
76
+ payment_channel: import("../../constants").INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
77
+ subscription_plan: import("../../constants").INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
78
+ subscription_services: string[];
79
+ subscription_status: SUBSCRIPTION_STATUS_ENUM;
80
+ billing_cycle: import("../../constants").INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
81
+ last_invoice_id: import("mongoose").Types.ObjectId;
82
+ last_invoice_number: string;
83
+ last_invoice_status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
84
+ last_invoice_due_date: NativeDate;
85
+ last_invoice_paid_at: NativeDate;
86
+ tax_number?: string | null | undefined;
87
+ company_name?: string | null | undefined;
88
+ }> & Required<{
89
+ _id: import("mongoose").Types.ObjectId;
90
+ }> & {
91
+ __v: number;
92
+ }>;
93
+ export declare const INTERNAL_CUSTOMERS_COLLECTION_NAME = "internal_customers";
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INTERNAL_CUSTOMERS_COLLECTION_NAME = exports.InternalCustomerSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const constants_1 = require("../../constants");
6
+ exports.InternalCustomerSchema = new mongoose_1.Schema({
7
+ _id: {
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ required: true,
10
+ immutable: true,
11
+ },
12
+ ref_id: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ customer_type: {
17
+ type: String,
18
+ enum: constants_1.ALL_INTERNAL_CUSTOMER_TYPE_NAMES,
19
+ required: true,
20
+ },
21
+ full_name: {
22
+ type: String,
23
+ required: true,
24
+ },
25
+ email: {
26
+ type: String,
27
+ default: null,
28
+ },
29
+ phone_number: {
30
+ type: String,
31
+ required: true,
32
+ },
33
+ company_name: {
34
+ type: String,
35
+ required: false,
36
+ },
37
+ tax_number: {
38
+ type: String,
39
+ required: false,
40
+ },
41
+ invoice_notes: {
42
+ type: String,
43
+ default: '',
44
+ },
45
+ personal_notes: {
46
+ type: String,
47
+ default: '',
48
+ },
49
+ active: {
50
+ type: Boolean,
51
+ default: true,
52
+ },
53
+ payment_channel: {
54
+ type: String,
55
+ enum: constants_1.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES,
56
+ required: true,
57
+ },
58
+ // Subscription
59
+ subscription_plan: {
60
+ type: String,
61
+ enum: constants_1.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES,
62
+ required: true,
63
+ },
64
+ subscription_services: {
65
+ type: [String],
66
+ enum: constants_1.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES,
67
+ default: [],
68
+ },
69
+ subscription_status: {
70
+ type: String,
71
+ enum: constants_1.ALL_SUBSCRIPTION_STATUS,
72
+ default: constants_1.SUBSCRIPTION_STATUS_ENUM.PENDING,
73
+ },
74
+ billing_cycle: {
75
+ type: String,
76
+ enum: constants_1.ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES,
77
+ default: null,
78
+ },
79
+ last_invoice_id: {
80
+ type: mongoose_1.Schema.Types.ObjectId,
81
+ default: null,
82
+ },
83
+ last_invoice_number: {
84
+ type: String,
85
+ default: null,
86
+ },
87
+ last_invoice_status: {
88
+ type: String,
89
+ enum: constants_1.ALL_INTERNAL_INVOICE_STATUS_NAMES,
90
+ default: null,
91
+ },
92
+ last_invoice_due_date: {
93
+ type: mongoose_1.Schema.Types.Date,
94
+ default: null,
95
+ },
96
+ last_invoice_paid_at: {
97
+ type: mongoose_1.Schema.Types.Date,
98
+ default: null,
99
+ },
100
+ createdAt: {
101
+ type: mongoose_1.Schema.Types.Date,
102
+ required: true,
103
+ default: () => new Date(),
104
+ immutable: true,
105
+ },
106
+ updatedAt: {
107
+ type: mongoose_1.Schema.Types.Date,
108
+ required: true,
109
+ default: () => new Date(),
110
+ },
111
+ }, {
112
+ timestamps: true,
113
+ versionKey: false,
114
+ minimize: false,
115
+ });
116
+ exports.INTERNAL_CUSTOMERS_COLLECTION_NAME = 'internal_customers';
@@ -0,0 +1,89 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
+ timestamps: true;
4
+ versionKey: false;
5
+ minimize: false;
6
+ }, {
7
+ createdAt: NativeDate;
8
+ updatedAt: NativeDate;
9
+ } & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ discount_amount: number;
12
+ createdAt: NativeDate;
13
+ updatedAt: NativeDate;
14
+ status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
15
+ ref_id: string;
16
+ customer_name: string;
17
+ payment_method: string;
18
+ tax_number: string;
19
+ tax_amount: number;
20
+ grand_total: number;
21
+ notes: string;
22
+ customer_id: import("mongoose").Types.ObjectId;
23
+ invoice_number: string;
24
+ invoice_type: import("../../constants").INTERNAL_INVOICE_TYPE_ENUM;
25
+ hardware: string[];
26
+ subtotal: number;
27
+ payment_terms: string;
28
+ dqrc: string;
29
+ issue_date: NativeDate;
30
+ due_date: NativeDate;
31
+ paid_at: NativeDate;
32
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
33
+ createdAt: NativeDate;
34
+ updatedAt: NativeDate;
35
+ } & {
36
+ _id: import("mongoose").Types.ObjectId;
37
+ discount_amount: number;
38
+ createdAt: NativeDate;
39
+ updatedAt: NativeDate;
40
+ status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
41
+ ref_id: string;
42
+ customer_name: string;
43
+ payment_method: string;
44
+ tax_number: string;
45
+ tax_amount: number;
46
+ grand_total: number;
47
+ notes: string;
48
+ customer_id: import("mongoose").Types.ObjectId;
49
+ invoice_number: string;
50
+ invoice_type: import("../../constants").INTERNAL_INVOICE_TYPE_ENUM;
51
+ hardware: string[];
52
+ subtotal: number;
53
+ payment_terms: string;
54
+ dqrc: string;
55
+ issue_date: NativeDate;
56
+ due_date: NativeDate;
57
+ paid_at: NativeDate;
58
+ }>> & import("mongoose").FlatRecord<{
59
+ createdAt: NativeDate;
60
+ updatedAt: NativeDate;
61
+ } & {
62
+ _id: import("mongoose").Types.ObjectId;
63
+ discount_amount: number;
64
+ createdAt: NativeDate;
65
+ updatedAt: NativeDate;
66
+ status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
67
+ ref_id: string;
68
+ customer_name: string;
69
+ payment_method: string;
70
+ tax_number: string;
71
+ tax_amount: number;
72
+ grand_total: number;
73
+ notes: string;
74
+ customer_id: import("mongoose").Types.ObjectId;
75
+ invoice_number: string;
76
+ invoice_type: import("../../constants").INTERNAL_INVOICE_TYPE_ENUM;
77
+ hardware: string[];
78
+ subtotal: number;
79
+ payment_terms: string;
80
+ dqrc: string;
81
+ issue_date: NativeDate;
82
+ due_date: NativeDate;
83
+ paid_at: NativeDate;
84
+ }> & Required<{
85
+ _id: import("mongoose").Types.ObjectId;
86
+ }> & {
87
+ __v: number;
88
+ }>;
89
+ export declare const INTERNAL_INVOICES_COLLECTION_NAME = "internal_invoices";