@managesome/eposmatic-toolkit 0.2.422 → 0.2.424

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.
@@ -956,6 +956,14 @@ export declare enum PURCHASE_ORDER_RFQ_STATUS_ENUM {
956
956
  CANCELLED = "CANCELLED"
957
957
  }
958
958
  export declare const ALL_PURCHASE_ORDER_RFQ_STATUS_NAMES: PURCHASE_ORDER_RFQ_STATUS_ENUM[];
959
+ export declare enum RFQ_VENDOR_STATUS_ENUM {
960
+ PENDING = "PENDING",
961
+ SENT = "SENT",
962
+ ACCEPTED = "ACCEPTED",
963
+ CONFIRMED = "CONFIRMED",
964
+ REJECTED = "REJECTED"
965
+ }
966
+ export declare const ALL_RFQ_VENDOR_STATUS_NAMES: RFQ_VENDOR_STATUS_ENUM[];
959
967
  export declare enum SALE_ORDER_RFQ_STATUS_ENUM {
960
968
  DRAFT = "DRAFT",
961
969
  SENT = "SENT",
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COUNTRY_NAME_ENUM = exports.ALL_COUNTRY_ALPHA_3_TYPES = exports.COUNTRY_ALPHA_3_ENUM = exports.ALL_COUNTRY_ALPHA_2_TYPES = exports.COUNTRY_ALPHA_2_ENUM = exports.ALL_COUNTRY_CODES = exports.COUNTRY_CODE_ENUM = exports.ALL_CURRENCY_SYMBOLS = exports.CURRENCY_SYMBOL_ENUM = exports.ALL_CURRENCY_NAMES = exports.CURRENCY_NAME_ENUM = exports.ALL_CURRENCY_CODES = exports.CURRENCY_CODE_ENUM = exports.ALL_DAY_INDEX = exports.DAY_INDEX_ENUM = exports.ALL_INVENTORY_UNIT_TYPES = exports.INVENTORY_ITEM_UNIT_ENUM = exports.ALL_DIETARY_PREFERENCES = exports.ITEM_DIETARY_PREFERENCE_ENUM = exports.ALL_CAVEATS = exports.ITEM_CAVEATS_ENUM = exports.ALL_PAYMENT_STATUS = exports.PAYMENT_STATUS_ENUM = exports.ALL_ORDER_STATUS_NAMES = exports.ORDER_STATUS_ENUM = exports.TRANSACTION_TYPE_ENUM = exports.ALL_CARD_PROCESSING_PROVIDERS = exports.CARD_PROCESSING_PROVIDERS_ENUM = exports.ALL_TERMINAL_PROVIDER_NAMES = exports.TERMINAL_PROVIDER_ENUM = exports.ALL_PAYMENT_PROVIDERS = exports.PAYMENT_PROVIDERS_ENUM = exports.ALL_TERMINAL_PAYMENT_TYPE_NAMES = exports.TERMINAL_PAYMENT_TYPE_ENUM = exports.PaymentTypeDescriptions = exports.ALL_PAYMENT_TYPE_NAMES = exports.PAYMENT_TYPE_ENUM = exports.ALL_API_STATUS_NAMES = exports.API_STATUS_ENUM = exports.ALL_INTEGRATIONS = exports.INTEGRATIONS_ENUM = exports.PLATFORM_NAMES = exports.PLATFORMS_BY_ORDER_FROM = exports.PLATFORMS_BY_ORDER_TYPE = exports.ALL_PLATFORMS = exports.PLATFORMS_ENUM = exports.ALL_ORDER_TYPE_NAMES = exports.ORDER_TYPE_ENUM = exports.ALL_ORDER_FROM_NAMES = exports.ORDER_FROM_ENUM = void 0;
4
4
  exports.EMAIL_STATUS_ENUM = exports.ALL_COMMUNICATION_CHANNELS = exports.COMMUNICATION_CHANNEL_ENUM = exports.ALL_EMAIL_DOCUMENT_KINDS = exports.EMAIL_DOCUMENT_KIND_ENUM = exports.ALL_EMAIL_PROCESSING_PROVIDERS = exports.EMAIL_PROCESSING_PROVIDERS_ENUM = exports.ALL_SMS_PROCESSING_PROVIDERS = exports.SMS_PROCESSING_PROVIDERS_ENUM = exports.ALL_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_MODERATOR_PERMISSIONS = exports.ALL_USER_PERMISSIONS = exports.USER_PERMISSIONS_ENUM = exports.ALL_REWARDS_USAGE_REF_TYPES = exports.REWARDS_USAGE_REF_TYPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPES = exports.PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPES = exports.PATHWAY_TO_UNLOCK_TYPE_ENUM = exports.ALL_MYSTERY_GIFT_POPUP_TYPES = exports.MYSTERY_GIFT_POPUP_TYPE_ENUM = exports.ALL_MYSTERY_GIFT_TYPES = exports.MYSTERY_GIFT_TYPE_ENUM = exports.ALL_GIFT_CARD_REWARD_TYPES = exports.GIFT_CARD_REWARD_TYPE_ENUM = exports.ALL_CUSTOMER_REDEMPTION_TYPES = exports.CUSTOMER_REDEMPTION_TYPE_ENUM = exports.ALL_CUSTOMER_REDEMPTION_SOURCE_TYPES = exports.CUSTOMER_REDEMPTION_SOURCE_ENUM = exports.ALL_OFFER_REWARD_TYPES = exports.OFFER_REWARD_TYPE_ENUM = exports.ALL_USER_ROLES = exports.USER_ROLES_ENUM = exports.ALL_PLATFORM_TYPES = exports.PLATFORM_TYPE_ENUM = exports.ALL_ORDER_NUMBER_GROUPING_TYPES = exports.ORDER_NUMBER_GROUPING_TYPE_ENUM = exports.ALL_TRACK_ORDER_NUMBER_TYPES = exports.TRACK_ORDER_NUMBER_ENUM = exports.ALL_TABLE_TYPES = exports.TABLE_TYPE_ENUM = exports.ALL_CATEGORY_DISPLAY_TYPES = exports.CATEGORY_DISPLAY_TYPE_ENUM = exports.ALL_PAYMENT_METHOD_EXPECTED = exports.PAYMENT_METHOD_EXPECTED_ENUM = exports.ALL_WEB_UNPAID_PAYMENT_TYPES = exports.WEB_UNPAID_PAYMENT_TYPE_ENUM = exports.ALL_COUNTRY_FLAG_TYPES = exports.COUNTRY_FLAG_ENUM = exports.ALL_COUNTRY_NAME_TYPES = void 0;
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
- 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
- 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.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;
6
+ 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_RFQ_VENDOR_STATUS_NAMES = exports.RFQ_VENDOR_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
+ 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 = exports.ALL_SALE_ORDER_INVOICE_TYPE_NAMES = exports.SALE_ORDER_INVOICE_TYPE_ENUM = void 0;
8
+ 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 = exports.VOID_ITEM_STAFF_REPORT_ENUM = exports.ALL_DISCOUNT_APPLICABILITY_TYPES = void 0;
9
+ exports.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES = exports.INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES = void 0;
10
10
  var ORDER_FROM_ENUM;
11
11
  (function (ORDER_FROM_ENUM) {
12
12
  ORDER_FROM_ENUM["WEB"] = "WEB";
@@ -1596,6 +1596,16 @@ var PURCHASE_ORDER_RFQ_STATUS_ENUM;
1596
1596
  })(PURCHASE_ORDER_RFQ_STATUS_ENUM || (exports.PURCHASE_ORDER_RFQ_STATUS_ENUM = PURCHASE_ORDER_RFQ_STATUS_ENUM = {}));
1597
1597
  exports.ALL_PURCHASE_ORDER_RFQ_STATUS_NAMES = Object.values(PURCHASE_ORDER_RFQ_STATUS_ENUM);
1598
1598
  // ======================>> <<====================== //
1599
+ var RFQ_VENDOR_STATUS_ENUM;
1600
+ (function (RFQ_VENDOR_STATUS_ENUM) {
1601
+ RFQ_VENDOR_STATUS_ENUM["PENDING"] = "PENDING";
1602
+ RFQ_VENDOR_STATUS_ENUM["SENT"] = "SENT";
1603
+ RFQ_VENDOR_STATUS_ENUM["ACCEPTED"] = "ACCEPTED";
1604
+ RFQ_VENDOR_STATUS_ENUM["CONFIRMED"] = "CONFIRMED";
1605
+ RFQ_VENDOR_STATUS_ENUM["REJECTED"] = "REJECTED";
1606
+ })(RFQ_VENDOR_STATUS_ENUM || (exports.RFQ_VENDOR_STATUS_ENUM = RFQ_VENDOR_STATUS_ENUM = {}));
1607
+ exports.ALL_RFQ_VENDOR_STATUS_NAMES = Object.values(RFQ_VENDOR_STATUS_ENUM);
1608
+ // ======================>> <<====================== //
1599
1609
  var SALE_ORDER_RFQ_STATUS_ENUM;
1600
1610
  (function (SALE_ORDER_RFQ_STATUS_ENUM) {
1601
1611
  SALE_ORDER_RFQ_STATUS_ENUM["DRAFT"] = "DRAFT";
@@ -24,6 +24,7 @@ export interface IRfqRespondPageResult {
24
24
  export declare function getRfqRespondPageResult(code: RFQ_PUBLIC_RESPOND_CODE_ENUM, action: RFQ_PUBLIC_RESPOND_ACTION_ENUM, rfqType: RfqType): IRfqRespondPageResult;
25
25
  export interface IPublicRfqRespondRequest {
26
26
  rfq_id: string;
27
+ vendor_id: string;
27
28
  action: RFQ_PUBLIC_RESPOND_ACTION_ENUM;
28
29
  }
29
30
  export interface IPublicRfqRespondResponse {
@@ -19,18 +19,18 @@ export declare function convertInvoiceAmountsToCents(invoice: {
19
19
  /**
20
20
  * Converts all subscription base amount fields on a customer from cents to dollars.
21
21
  */
22
- export declare function convertCustomerSubscriptionAmountsFromCents(customer: {
23
- base_subscription_price: number;
24
- base_subscription_discount_amount: number;
25
- base_subscription_tax_amount: number;
26
- base_subscription_grand_total: number;
22
+ export declare function convertCustomerInvoiceAmountsFromCents(customer: {
23
+ base_invoice_price: number;
24
+ base_invoice_discount_amount: number;
25
+ base_invoice_tax_amount: number;
26
+ base_invoice_grand_total: number;
27
27
  }): typeof customer;
28
28
  /**
29
29
  * Converts all subscription base amount fields on a customer from dollars to cents.
30
30
  */
31
- export declare function convertCustomerSubscriptionAmountsToCents(customer: {
32
- base_subscription_price: number;
33
- base_subscription_discount_amount: number;
34
- base_subscription_tax_amount: number;
35
- base_subscription_grand_total: number;
31
+ export declare function convertCustomerInvoiceAmountsToCents(customer: {
32
+ base_invoice_price: number;
33
+ base_invoice_discount_amount: number;
34
+ base_invoice_tax_amount: number;
35
+ base_invoice_grand_total: number;
36
36
  }): typeof customer;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.convertInvoiceAmountsFromCents = convertInvoiceAmountsFromCents;
4
4
  exports.convertInvoiceAmountsToCents = convertInvoiceAmountsToCents;
5
- exports.convertCustomerSubscriptionAmountsFromCents = convertCustomerSubscriptionAmountsFromCents;
6
- exports.convertCustomerSubscriptionAmountsToCents = convertCustomerSubscriptionAmountsToCents;
5
+ exports.convertCustomerInvoiceAmountsFromCents = convertCustomerInvoiceAmountsFromCents;
6
+ exports.convertCustomerInvoiceAmountsToCents = convertCustomerInvoiceAmountsToCents;
7
7
  const price_conversion_1 = require("./price-conversion");
8
8
  /**
9
9
  * Converts all monetary fields on an invoice from cents to dollars.
@@ -32,24 +32,24 @@ function convertInvoiceAmountsToCents(invoice) {
32
32
  /**
33
33
  * Converts all subscription base amount fields on a customer from cents to dollars.
34
34
  */
35
- function convertCustomerSubscriptionAmountsFromCents(customer) {
35
+ function convertCustomerInvoiceAmountsFromCents(customer) {
36
36
  return {
37
37
  ...customer,
38
- base_subscription_price: (0, price_conversion_1.convertPriceFromCents)(customer.base_subscription_price),
39
- base_subscription_discount_amount: (0, price_conversion_1.convertPriceFromCents)(customer.base_subscription_discount_amount),
40
- base_subscription_tax_amount: (0, price_conversion_1.convertPriceFromCents)(customer.base_subscription_tax_amount),
41
- base_subscription_grand_total: (0, price_conversion_1.convertPriceFromCents)(customer.base_subscription_grand_total),
38
+ base_invoice_price: (0, price_conversion_1.convertPriceFromCents)(customer.base_invoice_price),
39
+ base_invoice_discount_amount: (0, price_conversion_1.convertPriceFromCents)(customer.base_invoice_discount_amount),
40
+ base_invoice_tax_amount: (0, price_conversion_1.convertPriceFromCents)(customer.base_invoice_tax_amount),
41
+ base_invoice_grand_total: (0, price_conversion_1.convertPriceFromCents)(customer.base_invoice_grand_total),
42
42
  };
43
43
  }
44
44
  /**
45
45
  * Converts all subscription base amount fields on a customer from dollars to cents.
46
46
  */
47
- function convertCustomerSubscriptionAmountsToCents(customer) {
47
+ function convertCustomerInvoiceAmountsToCents(customer) {
48
48
  return {
49
49
  ...customer,
50
- base_subscription_price: (0, price_conversion_1.convertPriceToCents)(customer.base_subscription_price),
51
- base_subscription_discount_amount: (0, price_conversion_1.convertPriceToCents)(customer.base_subscription_discount_amount),
52
- base_subscription_tax_amount: (0, price_conversion_1.convertPriceToCents)(customer.base_subscription_tax_amount),
53
- base_subscription_grand_total: (0, price_conversion_1.convertPriceToCents)(customer.base_subscription_grand_total),
50
+ base_invoice_price: (0, price_conversion_1.convertPriceToCents)(customer.base_invoice_price),
51
+ base_invoice_discount_amount: (0, price_conversion_1.convertPriceToCents)(customer.base_invoice_discount_amount),
52
+ base_invoice_tax_amount: (0, price_conversion_1.convertPriceToCents)(customer.base_invoice_tax_amount),
53
+ base_invoice_grand_total: (0, price_conversion_1.convertPriceToCents)(customer.base_invoice_grand_total),
54
54
  };
55
55
  }
@@ -20,12 +20,13 @@ export declare const InternalCustomerSchema: Schema<any, import("mongoose").Mode
20
20
  invoice_notes: string;
21
21
  personal_notes: string;
22
22
  payment_channel: import("../../constants").INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
23
+ invoice_currency: import("../../constants").CURRENCY_CODE_ENUM;
23
24
  subscription_plan: import("../../constants").INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
24
25
  subscription_services: string[];
25
- base_subscription_price: number;
26
- base_subscription_discount_amount: number;
27
- base_subscription_tax_amount: number;
28
- base_subscription_grand_total: number;
26
+ base_invoice_price: number;
27
+ base_invoice_discount_amount: number;
28
+ base_invoice_tax_amount: number;
29
+ base_invoice_grand_total: number;
29
30
  subscription_status: SUBSCRIPTION_STATUS_ENUM;
30
31
  billing_cycle: import("../../constants").INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
31
32
  last_invoice_id: import("mongoose").Types.ObjectId;
@@ -51,12 +52,13 @@ export declare const InternalCustomerSchema: Schema<any, import("mongoose").Mode
51
52
  invoice_notes: string;
52
53
  personal_notes: string;
53
54
  payment_channel: import("../../constants").INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
55
+ invoice_currency: import("../../constants").CURRENCY_CODE_ENUM;
54
56
  subscription_plan: import("../../constants").INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
55
57
  subscription_services: string[];
56
- base_subscription_price: number;
57
- base_subscription_discount_amount: number;
58
- base_subscription_tax_amount: number;
59
- base_subscription_grand_total: number;
58
+ base_invoice_price: number;
59
+ base_invoice_discount_amount: number;
60
+ base_invoice_tax_amount: number;
61
+ base_invoice_grand_total: number;
60
62
  subscription_status: SUBSCRIPTION_STATUS_ENUM;
61
63
  billing_cycle: import("../../constants").INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
62
64
  last_invoice_id: import("mongoose").Types.ObjectId;
@@ -82,12 +84,13 @@ export declare const InternalCustomerSchema: Schema<any, import("mongoose").Mode
82
84
  invoice_notes: string;
83
85
  personal_notes: string;
84
86
  payment_channel: import("../../constants").INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
87
+ invoice_currency: import("../../constants").CURRENCY_CODE_ENUM;
85
88
  subscription_plan: import("../../constants").INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
86
89
  subscription_services: string[];
87
- base_subscription_price: number;
88
- base_subscription_discount_amount: number;
89
- base_subscription_tax_amount: number;
90
- base_subscription_grand_total: number;
90
+ base_invoice_price: number;
91
+ base_invoice_discount_amount: number;
92
+ base_invoice_tax_amount: number;
93
+ base_invoice_grand_total: number;
91
94
  subscription_status: SUBSCRIPTION_STATUS_ENUM;
92
95
  billing_cycle: import("../../constants").INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM;
93
96
  last_invoice_id: import("mongoose").Types.ObjectId;
@@ -12,6 +12,7 @@ exports.InternalCustomerSchema = new mongoose_1.Schema({
12
12
  ref_id: {
13
13
  type: String,
14
14
  required: true,
15
+ immutable: true,
15
16
  },
16
17
  customer_type: {
17
18
  type: String,
@@ -55,6 +56,11 @@ exports.InternalCustomerSchema = new mongoose_1.Schema({
55
56
  enum: constants_1.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES,
56
57
  required: true,
57
58
  },
59
+ invoice_currency: {
60
+ type: String,
61
+ enum: constants_1.ALL_CURRENCY_CODES,
62
+ required: true,
63
+ },
58
64
  // Subscription
59
65
  subscription_plan: {
60
66
  type: String,
@@ -66,22 +72,22 @@ exports.InternalCustomerSchema = new mongoose_1.Schema({
66
72
  enum: constants_1.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES,
67
73
  default: [],
68
74
  },
69
- base_subscription_price: {
75
+ base_invoice_price: {
70
76
  type: Number,
71
77
  min: 0,
72
78
  required: true,
73
79
  },
74
- base_subscription_discount_amount: {
80
+ base_invoice_discount_amount: {
75
81
  type: Number,
76
82
  min: 0,
77
83
  required: true,
78
84
  },
79
- base_subscription_tax_amount: {
85
+ base_invoice_tax_amount: {
80
86
  type: Number,
81
87
  min: 0,
82
88
  required: true,
83
89
  },
84
- base_subscription_grand_total: {
90
+ base_invoice_grand_total: {
85
91
  type: Number,
86
92
  min: 0,
87
93
  required: true,
@@ -24,6 +24,7 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
24
24
  invoice_number: string;
25
25
  invoice_type: import("../../constants").INTERNAL_INVOICE_TYPE_ENUM;
26
26
  hardware: string[];
27
+ currency: import("../../constants").CURRENCY_CODE_ENUM;
27
28
  subtotal: number;
28
29
  payment_terms: string;
29
30
  dqrc: string;
@@ -51,6 +52,7 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
51
52
  invoice_number: string;
52
53
  invoice_type: import("../../constants").INTERNAL_INVOICE_TYPE_ENUM;
53
54
  hardware: string[];
55
+ currency: import("../../constants").CURRENCY_CODE_ENUM;
54
56
  subtotal: number;
55
57
  payment_terms: string;
56
58
  dqrc: string;
@@ -78,6 +80,7 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
78
80
  invoice_number: string;
79
81
  invoice_type: import("../../constants").INTERNAL_INVOICE_TYPE_ENUM;
80
82
  hardware: string[];
83
+ currency: import("../../constants").CURRENCY_CODE_ENUM;
81
84
  subtotal: number;
82
85
  payment_terms: string;
83
86
  dqrc: string;
@@ -40,6 +40,11 @@ exports.InternalInvoiceSchema = new mongoose_1.Schema({
40
40
  enum: constants_1.ALL_SUBSCRIPTION_HARDWARE_NAMES,
41
41
  default: null,
42
42
  },
43
+ currency: {
44
+ type: String,
45
+ enum: constants_1.ALL_CURRENCY_CODES,
46
+ required: true,
47
+ },
43
48
  subtotal: {
44
49
  type: Number,
45
50
  min: 0,
@@ -1,5 +1,5 @@
1
1
  import { Schema } from 'mongoose';
2
- import { PURCHASE_ORDER_RFQ_STATUS_ENUM } from '../../constants';
2
+ import { PURCHASE_ORDER_RFQ_STATUS_ENUM, RFQ_VENDOR_STATUS_ENUM } from '../../constants';
3
3
  export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
4
  timestamps: true;
5
5
  versionKey: false;
@@ -639,6 +639,13 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
639
639
  warehouse_id: string;
640
640
  vendor_id: import("mongoose").Types.ObjectId;
641
641
  vendor_name: string;
642
+ requested_vendors: Map<string, {
643
+ status: RFQ_VENDOR_STATUS_ENUM;
644
+ vendor_id: import("mongoose").Types.ObjectId;
645
+ vendor_name: string;
646
+ vendor_email: string;
647
+ vendor_price: number;
648
+ }>;
642
649
  expected_deadline: string;
643
650
  cancel_reason?: string | null | undefined;
644
651
  delete_reason?: string | null | undefined;
@@ -1281,6 +1288,13 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
1281
1288
  warehouse_id: string;
1282
1289
  vendor_id: import("mongoose").Types.ObjectId;
1283
1290
  vendor_name: string;
1291
+ requested_vendors: Map<string, {
1292
+ status: RFQ_VENDOR_STATUS_ENUM;
1293
+ vendor_id: import("mongoose").Types.ObjectId;
1294
+ vendor_name: string;
1295
+ vendor_email: string;
1296
+ vendor_price: number;
1297
+ }>;
1284
1298
  expected_deadline: string;
1285
1299
  cancel_reason?: string | null | undefined;
1286
1300
  delete_reason?: string | null | undefined;
@@ -1923,6 +1937,13 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
1923
1937
  warehouse_id: string;
1924
1938
  vendor_id: import("mongoose").Types.ObjectId;
1925
1939
  vendor_name: string;
1940
+ requested_vendors: Map<string, {
1941
+ status: RFQ_VENDOR_STATUS_ENUM;
1942
+ vendor_id: import("mongoose").Types.ObjectId;
1943
+ vendor_name: string;
1944
+ vendor_email: string;
1945
+ vendor_price: number;
1946
+ }>;
1926
1947
  expected_deadline: string;
1927
1948
  cancel_reason?: string | null | undefined;
1928
1949
  delete_reason?: string | null | undefined;
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PURCHASE_ORDER_RFQ_COLLECTION_NAME = exports.PurchaseOrderRFQSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
+ const warehouse_1 = require("./warehouse");
6
7
  const warehouse_categories_1 = require("./warehouse_categories");
7
8
  const warehouse_items_1 = require("./warehouse_items");
8
- const warehouse_1 = require("./warehouse");
9
9
  const warehouse_vendors_1 = require("./warehouse_vendors");
10
10
  const StaffDetailsSchema = new mongoose_1.Schema({
11
11
  staff_id: {
@@ -111,6 +111,21 @@ const PurchaseOrderRFQCategoriesSchema = new mongoose_1.Schema({
111
111
  _id: false,
112
112
  minimize: false,
113
113
  });
114
+ const RequestedVendorEntrySchema = new mongoose_1.Schema({
115
+ vendor_id: {
116
+ type: mongoose_1.Schema.Types.ObjectId,
117
+ required: true,
118
+ ref: warehouse_vendors_1.WAREHOUSE_VENDORS_COLLECTION_NAME,
119
+ },
120
+ vendor_name: { type: String, default: '' },
121
+ vendor_email: { type: String, default: null },
122
+ vendor_price: { type: Number, min: 0, default: null },
123
+ status: {
124
+ type: String,
125
+ enum: constants_1.ALL_RFQ_VENDOR_STATUS_NAMES,
126
+ default: constants_1.RFQ_VENDOR_STATUS_ENUM.PENDING,
127
+ },
128
+ }, { _id: false, minimize: false });
114
129
  const PurchaseOrderRFQIterationSchema = new mongoose_1.Schema({
115
130
  categories: {
116
131
  type: [PurchaseOrderRFQCategoriesSchema],
@@ -185,11 +200,18 @@ exports.PurchaseOrderRFQSchema = new mongoose_1.Schema({
185
200
  vendor_id: {
186
201
  type: mongoose_1.Schema.Types.ObjectId,
187
202
  required: true,
203
+ default: null,
188
204
  ref: warehouse_vendors_1.WAREHOUSE_VENDORS_COLLECTION_NAME,
189
205
  },
190
206
  vendor_name: {
191
207
  type: String,
192
- default: '',
208
+ required: true,
209
+ default: null,
210
+ },
211
+ requested_vendors: {
212
+ type: Map,
213
+ of: RequestedVendorEntrySchema,
214
+ default: new Map(),
193
215
  },
194
216
  order_number: {
195
217
  type: Number,
@@ -27,8 +27,8 @@ export declare const WarehouseVendorsSchema: Schema<any, import("mongoose").Mode
27
27
  phone_number: string;
28
28
  uid: string;
29
29
  email: string;
30
- warehouse_id: string;
31
30
  tax_business_number: string;
31
+ warehouse_id: string;
32
32
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
33
33
  createdAt: NativeDate;
34
34
  updatedAt: NativeDate;
@@ -53,8 +53,8 @@ export declare const WarehouseVendorsSchema: Schema<any, import("mongoose").Mode
53
53
  phone_number: string;
54
54
  uid: string;
55
55
  email: string;
56
- warehouse_id: string;
57
56
  tax_business_number: string;
57
+ warehouse_id: string;
58
58
  }>> & import("mongoose").FlatRecord<{
59
59
  createdAt: NativeDate;
60
60
  updatedAt: NativeDate;
@@ -79,8 +79,8 @@ export declare const WarehouseVendorsSchema: Schema<any, import("mongoose").Mode
79
79
  phone_number: string;
80
80
  uid: string;
81
81
  email: string;
82
- warehouse_id: string;
83
82
  tax_business_number: string;
83
+ warehouse_id: string;
84
84
  }> & Required<{
85
85
  _id: import("mongoose").Types.ObjectId;
86
86
  }> & {
@@ -1,4 +1,4 @@
1
- import { INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM, INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM, INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM, INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM, INTERNAL_CUSTOMER_TYPE_ENUM, INTERNAL_INVOICE_STATUS_ENUM, SUBSCRIPTION_STATUS_ENUM } from '../../constants';
1
+ import { CURRENCY_CODE_ENUM, INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM, INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM, INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM, INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM, INTERNAL_CUSTOMER_TYPE_ENUM, INTERNAL_INVOICE_STATUS_ENUM, SUBSCRIPTION_STATUS_ENUM } from '../../constants';
2
2
  export interface IInternalCustomer {
3
3
  _id: string;
4
4
  ref_id: string;
@@ -12,12 +12,13 @@ export interface IInternalCustomer {
12
12
  personal_notes: string;
13
13
  active: boolean;
14
14
  payment_channel: INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM;
15
+ invoice_currency: CURRENCY_CODE_ENUM;
15
16
  subscription_plan: INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM;
16
17
  subscription_services: INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM[];
17
- base_subscription_price: number;
18
- base_subscription_discount_amount: number;
19
- base_subscription_tax_amount: number;
20
- base_subscription_grand_total: number;
18
+ base_invoice_price: number;
19
+ base_invoice_discount_amount: number;
20
+ base_invoice_tax_amount: number;
21
+ base_invoice_grand_total: number;
21
22
  subscription_status: SUBSCRIPTION_STATUS_ENUM;
22
23
  billing_cycle: INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM | null;
23
24
  last_invoice_id: string | null;
@@ -1,4 +1,4 @@
1
- import { INTERNAL_INVOICE_STATUS_ENUM, INTERNAL_INVOICE_TYPE_ENUM, SUBSCRIPTION_HARDWARE_ENUM } from '../../constants';
1
+ import { CURRENCY_CODE_ENUM, INTERNAL_INVOICE_STATUS_ENUM, INTERNAL_INVOICE_TYPE_ENUM, SUBSCRIPTION_HARDWARE_ENUM } from '../../constants';
2
2
  export interface IInternalInvoice {
3
3
  _id: string;
4
4
  customer_id: string;
@@ -8,6 +8,7 @@ export interface IInternalInvoice {
8
8
  invoice_number: string;
9
9
  invoice_type: INTERNAL_INVOICE_TYPE_ENUM;
10
10
  hardware: SUBSCRIPTION_HARDWARE_ENUM[] | null;
11
+ currency: CURRENCY_CODE_ENUM;
11
12
  subtotal: number;
12
13
  discount_amount: number;
13
14
  tax_amount: number;
@@ -1,15 +1,23 @@
1
- import { PURCHASE_ORDER_RFQ_STATUS_ENUM } from '../../constants';
1
+ import { PURCHASE_ORDER_RFQ_STATUS_ENUM, RFQ_VENDOR_STATUS_ENUM } from '../../constants';
2
2
  import { IPurchaseOrderCommonCategoryByCategoryId, IPurchaseOrderCommonItem, IPurchaseOrderCommonIterationBase } from './purchase_order_common';
3
3
  export type IPurchaseOrderRFQItem = IPurchaseOrderCommonItem;
4
4
  export type IPurchaseOrderRFQCategory = IPurchaseOrderCommonCategoryByCategoryId;
5
5
  export interface IPurchaseOrderRFQIteration extends IPurchaseOrderCommonIterationBase<IPurchaseOrderRFQCategory, PURCHASE_ORDER_RFQ_STATUS_ENUM | string> {
6
6
  tax_number: string;
7
7
  }
8
+ export interface IRFQVendorEntry {
9
+ vendor_id: string;
10
+ vendor_name: string;
11
+ vendor_email?: string | null;
12
+ vendor_price?: number | null;
13
+ status: RFQ_VENDOR_STATUS_ENUM;
14
+ }
8
15
  export interface IPurchaseOrderRFQ extends IPurchaseOrderRFQIteration {
9
16
  _id: string;
10
17
  warehouse_id: string;
11
- vendor_id: string;
12
- vendor_name: string;
18
+ vendor_id: string | null;
19
+ vendor_name: string | null;
20
+ requested_vendors: Record<string, IRFQVendorEntry>;
13
21
  iterations: IPurchaseOrderRFQIteration[];
14
22
  order_number: number | null;
15
23
  expected_deadline: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.422",
3
+ "version": "0.2.424",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",