@managesome/eposmatic-toolkit 0.2.238 → 0.2.240

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.
@@ -1046,3 +1046,4 @@ export declare enum RECEIPT_QR_CODE_TYPE_ENUM {
1046
1046
  TIKTOK_FOLLOW = "TIKTOK_FOLLOW",
1047
1047
  TWITTER_FOLLOW = "TWITTER_FOLLOW"
1048
1048
  }
1049
+ export declare const ALL_RECEIPT_QR_CODE_TYPES: RECEIPT_QR_CODE_TYPE_ENUM[];
@@ -4,7 +4,7 @@ exports.ALL_CATEGORY_DISPLAY_TYPES = exports.CATEGORY_DISPLAY_TYPE_ENUM = export
4
4
  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_PROCESSING_PROVIDERS = exports.EMAIL_PROCESSING_PROVIDERS_ENUM = exports.ALL_SMS_PROCESSING_PROVIDERS = exports.SMS_PROCESSING_PROVIDERS_ENUM = exports.ALL_TERMINAL_TYPES = exports.TERMINAL_TYPE_ENUM = exports.ALL_TERMINAL_PROCESSING_PROVIDERS = exports.TERMINAL_PROCESSING_PROVIDERS_ENUM = exports.TRANSACTION_TYPE_ENUM = exports.ALL_CARD_PROCESSING_PROVIDERS = exports.CARD_PROCESSING_PROVIDERS_ENUM = exports.ALL_PAYMENT_PROVIDERS = exports.PAYMENT_PROVIDERS_ENUM = exports.ALL_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_MODERATOR_PERMISSIONS = exports.ALL_USER_PERMISSIONS = exports.USER_PERMISSIONS_ENUM = exports.ALL_OFFER_TYPES = exports.OFFER_TYPE_ENUM = exports.ALL_OFFER_USE_TYPES = exports.OFFER_USE_TYPE_ENUM = exports.ALL_OFFER_CODE_USAGE_TYPES = exports.OFFER_CODE_USAGE_TYPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPES = exports.PATHWAY_TO_UNLOCK_TYPE_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 = void 0;
5
5
  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_GST_TYPES = exports.GST_TYPE_ENUM = exports.ALL_EXPENSE_REACCURING_TYPES = 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.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 = void 0;
6
6
  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 = 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.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_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = void 0;
7
- 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 = void 0;
7
+ 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 = void 0;
8
8
  var ORDER_FROM_ENUM;
9
9
  (function (ORDER_FROM_ENUM) {
10
10
  ORDER_FROM_ENUM["WEB"] = "WEB";
@@ -1743,3 +1743,4 @@ var RECEIPT_QR_CODE_TYPE_ENUM;
1743
1743
  RECEIPT_QR_CODE_TYPE_ENUM["TIKTOK_FOLLOW"] = "TIKTOK_FOLLOW";
1744
1744
  RECEIPT_QR_CODE_TYPE_ENUM["TWITTER_FOLLOW"] = "TWITTER_FOLLOW";
1745
1745
  })(RECEIPT_QR_CODE_TYPE_ENUM || (exports.RECEIPT_QR_CODE_TYPE_ENUM = RECEIPT_QR_CODE_TYPE_ENUM = {}));
1746
+ exports.ALL_RECEIPT_QR_CODE_TYPES = Object.values(RECEIPT_QR_CODE_TYPE_ENUM);
@@ -70,7 +70,6 @@ export interface ISettingsForWeb {
70
70
  operational_time_zone_offset_gmt: ITenant['operational_time_zone_offset_gmt'];
71
71
  card_processing_provider: ITenant['card_processing_provider'];
72
72
  card_processing_account_id: ITenant['card_processing_account_id'];
73
- business_website: ITenant['business_website'];
74
73
  takeaway_is_pickup: ITenant['takeaway_is_pickup'];
75
74
  ms_clarity_id: ITenant['ms_clarity_id'];
76
75
  fb_pixel_id: ITenant['fb_pixel_id'];
@@ -166,7 +166,6 @@ function getSettingsForWeb(settings) {
166
166
  operational_time_zone_offset_gmt: settings.operational_time_zone_offset_gmt,
167
167
  card_processing_provider: settings.card_processing_provider,
168
168
  card_processing_account_id: settings.card_processing_account_id,
169
- business_website: settings.business_website,
170
169
  takeaway_is_pickup: settings.takeaway_is_pickup,
171
170
  ms_clarity_id: settings.ms_clarity_id,
172
171
  fb_pixel_id: settings.fb_pixel_id,
@@ -142,6 +142,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
142
142
  rider_pickup_food_image_mandatory?: boolean | null | undefined;
143
143
  rider_dropoff_food_image_mandatory?: boolean | null | undefined;
144
144
  disable_reason_for_discount?: boolean | null | undefined;
145
+ staff_ordering_domain?: string | null | undefined;
145
146
  card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
146
147
  card_processing_account_id?: string | null | undefined;
147
148
  _card_processing_account_token?: string | null | undefined;
@@ -170,6 +171,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
170
171
  instagram_link?: string | null | undefined;
171
172
  fb_link?: string | null | undefined;
172
173
  tiktok_link?: string | null | undefined;
174
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
173
175
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
174
176
  createdAt: NativeDate;
175
177
  updatedAt: NativeDate;
@@ -308,6 +310,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
308
310
  rider_pickup_food_image_mandatory?: boolean | null | undefined;
309
311
  rider_dropoff_food_image_mandatory?: boolean | null | undefined;
310
312
  disable_reason_for_discount?: boolean | null | undefined;
313
+ staff_ordering_domain?: string | null | undefined;
311
314
  card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
312
315
  card_processing_account_id?: string | null | undefined;
313
316
  _card_processing_account_token?: string | null | undefined;
@@ -336,6 +339,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
336
339
  instagram_link?: string | null | undefined;
337
340
  fb_link?: string | null | undefined;
338
341
  tiktok_link?: string | null | undefined;
342
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
339
343
  }>> & import("mongoose").FlatRecord<{
340
344
  createdAt: NativeDate;
341
345
  updatedAt: NativeDate;
@@ -474,6 +478,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
474
478
  rider_pickup_food_image_mandatory?: boolean | null | undefined;
475
479
  rider_dropoff_food_image_mandatory?: boolean | null | undefined;
476
480
  disable_reason_for_discount?: boolean | null | undefined;
481
+ staff_ordering_domain?: string | null | undefined;
477
482
  card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
478
483
  card_processing_account_id?: string | null | undefined;
479
484
  _card_processing_account_token?: string | null | undefined;
@@ -502,6 +507,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
502
507
  instagram_link?: string | null | undefined;
503
508
  fb_link?: string | null | undefined;
504
509
  tiktok_link?: string | null | undefined;
510
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
505
511
  }> & Required<{
506
512
  _id: string;
507
513
  }> & {
@@ -377,6 +377,10 @@ exports.TenantSchema = new mongoose_1.Schema({
377
377
  type: String,
378
378
  default: null,
379
379
  },
380
+ staff_ordering_domain: {
381
+ type: String,
382
+ required: false,
383
+ },
380
384
  business_type: {
381
385
  type: String,
382
386
  default: '',
@@ -710,6 +714,11 @@ exports.TenantSchema = new mongoose_1.Schema({
710
714
  type: String,
711
715
  required: false,
712
716
  },
717
+ receipt_qr_type: {
718
+ type: String,
719
+ enum: constants_1.ALL_RECEIPT_QR_CODE_TYPES,
720
+ required: false,
721
+ },
713
722
  // ====><====
714
723
  createdAt: {
715
724
  type: mongoose_1.Schema.Types.Date,
@@ -91,6 +91,7 @@ export interface ITenant {
91
91
  public_business_name: string;
92
92
  support_email: string;
93
93
  business_website: string | null;
94
+ staff_ordering_domain?: string | null;
94
95
  business_type: string;
95
96
  tax_business_number: string;
96
97
  track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.238",
3
+ "version": "0.2.240",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",