@managesome/eposmatic-toolkit 0.2.274 → 0.2.275
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.
- package/lib/constants/ENUMS.d.ts +2 -2
- package/lib/constants/ENUMS.js +8 -8
- package/lib/schemas/models/customer_redemptions.d.ts +53 -0
- package/lib/schemas/models/customer_redemptions.js +62 -0
- package/lib/schemas/models/gift_cards.d.ts +108 -108
- package/lib/schemas/models/halfhalf_setup.d.ts +6 -6
- package/lib/schemas/models/index.d.ts +4 -3
- package/lib/schemas/models/index.js +4 -3
- package/lib/schemas/models/item_transactions.d.ts +3 -3
- package/lib/schemas/models/offers.d.ts +136 -136
- package/lib/schemas/models/offers_fingerprints.d.ts +6 -13
- package/lib/schemas/models/offers_fingerprints.js +4 -14
- package/lib/schemas/models/order.d.ts +216 -216
- package/lib/schemas/models/purchase_orders.d.ts +216 -216
- package/lib/schemas/models/reservations.d.ts +6 -6
- package/lib/schemas/models/reviews.d.ts +6 -6
- package/lib/schemas/models/rewards_usage.d.ts +3 -3
- package/lib/schemas/models/specials.d.ts +18 -18
- package/lib/schemas/models/tenant.d.ts +3 -3
- package/lib/schemas/models/void_order_items.d.ts +3 -3
- package/lib/schemas/models/void_purchase_order_items.d.ts +3 -3
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +3 -3
- package/lib/schemas/models/vouchers.d.ts +3 -3
- package/lib/schemas/models/warehouse_invoices.d.ts +216 -216
- package/lib/schemas/models/warehouse_item_transactions.d.ts +3 -3
- package/lib/schemas/types/customer_redemptions.d.ts +13 -0
- package/lib/schemas/types/customer_redemptions.js +2 -0
- package/lib/schemas/types/index.d.ts +4 -3
- package/lib/schemas/types/index.js +4 -3
- package/lib/schemas/types/offers_fingerprints.d.ts +1 -4
- package/package.json +1 -1
package/lib/constants/ENUMS.d.ts
CHANGED
|
@@ -410,12 +410,12 @@ export declare enum OFFER_REWARD_TYPE_ENUM {
|
|
|
410
410
|
VOUCHER = "VOUCHER"
|
|
411
411
|
}
|
|
412
412
|
export declare const ALL_OFFER_REWARD_TYPES: OFFER_REWARD_TYPE_ENUM[];
|
|
413
|
-
export declare enum
|
|
413
|
+
export declare enum CUSTOMER_REDEMPTION_TYPE_ENUM {
|
|
414
414
|
OFFER = "OFFER",
|
|
415
415
|
VOUCHER = "VOUCHER",
|
|
416
416
|
GIFT_CARD = "GIFT_CARD"
|
|
417
417
|
}
|
|
418
|
-
export declare const
|
|
418
|
+
export declare const ALL_CUSTOMER_REDEMPTION_TYPES: CUSTOMER_REDEMPTION_TYPE_ENUM[];
|
|
419
419
|
export declare enum GIFT_CARD_REWARD_TYPE_ENUM {
|
|
420
420
|
DISCOUNT = "DISCOUNT",
|
|
421
421
|
DISCOUNT_ITEMS = "DISCOUNT_ITEMS",
|
package/lib/constants/ENUMS.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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 = 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.ALL_PAYMENT_TYPE_NAMES = exports.PaymentTypeDescriptions = 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
|
-
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_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.
|
|
4
|
+
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_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_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.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 = 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 = void 0;
|
|
6
6
|
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_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 = void 0;
|
|
7
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 = 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 = void 0;
|
|
@@ -590,13 +590,13 @@ var OFFER_REWARD_TYPE_ENUM;
|
|
|
590
590
|
})(OFFER_REWARD_TYPE_ENUM || (exports.OFFER_REWARD_TYPE_ENUM = OFFER_REWARD_TYPE_ENUM = {}));
|
|
591
591
|
exports.ALL_OFFER_REWARD_TYPES = Object.values(OFFER_REWARD_TYPE_ENUM);
|
|
592
592
|
/* ================><================= */
|
|
593
|
-
var
|
|
594
|
-
(function (
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
})(
|
|
599
|
-
exports.
|
|
593
|
+
var CUSTOMER_REDEMPTION_TYPE_ENUM;
|
|
594
|
+
(function (CUSTOMER_REDEMPTION_TYPE_ENUM) {
|
|
595
|
+
CUSTOMER_REDEMPTION_TYPE_ENUM["OFFER"] = "OFFER";
|
|
596
|
+
CUSTOMER_REDEMPTION_TYPE_ENUM["VOUCHER"] = "VOUCHER";
|
|
597
|
+
CUSTOMER_REDEMPTION_TYPE_ENUM["GIFT_CARD"] = "GIFT_CARD";
|
|
598
|
+
})(CUSTOMER_REDEMPTION_TYPE_ENUM || (exports.CUSTOMER_REDEMPTION_TYPE_ENUM = CUSTOMER_REDEMPTION_TYPE_ENUM = {}));
|
|
599
|
+
exports.ALL_CUSTOMER_REDEMPTION_TYPES = Object.values(CUSTOMER_REDEMPTION_TYPE_ENUM);
|
|
600
600
|
/* ================><================= */
|
|
601
601
|
var GIFT_CARD_REWARD_TYPE_ENUM;
|
|
602
602
|
(function (GIFT_CARD_REWARD_TYPE_ENUM) {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const CustomerRedemptionSchema: 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
|
+
type: import("../../constants").CUSTOMER_REDEMPTION_TYPE_ENUM;
|
|
12
|
+
createdAt_mins: number;
|
|
13
|
+
createdAt: NativeDate;
|
|
14
|
+
updatedAt: NativeDate;
|
|
15
|
+
brand_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
ref_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
customer_phone: string;
|
|
18
|
+
customer_name: string;
|
|
19
|
+
redeemed_times: number;
|
|
20
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
21
|
+
createdAt: NativeDate;
|
|
22
|
+
updatedAt: NativeDate;
|
|
23
|
+
} & {
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
type: import("../../constants").CUSTOMER_REDEMPTION_TYPE_ENUM;
|
|
26
|
+
createdAt_mins: number;
|
|
27
|
+
createdAt: NativeDate;
|
|
28
|
+
updatedAt: NativeDate;
|
|
29
|
+
brand_id: import("mongoose").Types.ObjectId;
|
|
30
|
+
ref_id: import("mongoose").Types.ObjectId;
|
|
31
|
+
customer_phone: string;
|
|
32
|
+
customer_name: string;
|
|
33
|
+
redeemed_times: number;
|
|
34
|
+
}>> & import("mongoose").FlatRecord<{
|
|
35
|
+
createdAt: NativeDate;
|
|
36
|
+
updatedAt: NativeDate;
|
|
37
|
+
} & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
type: import("../../constants").CUSTOMER_REDEMPTION_TYPE_ENUM;
|
|
40
|
+
createdAt_mins: number;
|
|
41
|
+
createdAt: NativeDate;
|
|
42
|
+
updatedAt: NativeDate;
|
|
43
|
+
brand_id: import("mongoose").Types.ObjectId;
|
|
44
|
+
ref_id: import("mongoose").Types.ObjectId;
|
|
45
|
+
customer_phone: string;
|
|
46
|
+
customer_name: string;
|
|
47
|
+
redeemed_times: number;
|
|
48
|
+
}> & Required<{
|
|
49
|
+
_id: import("mongoose").Types.ObjectId;
|
|
50
|
+
}> & {
|
|
51
|
+
__v: number;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const CUSTOMER_REDEMPTIONS_COLLECTION_NAME = "customer_redemptions";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUSTOMER_REDEMPTIONS_COLLECTION_NAME = exports.CustomerRedemptionSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
exports.CustomerRedemptionSchema = new mongoose_1.Schema({
|
|
7
|
+
_id: {
|
|
8
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
+
required: true,
|
|
10
|
+
immutable: true,
|
|
11
|
+
},
|
|
12
|
+
brand_id: {
|
|
13
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
+
required: true,
|
|
15
|
+
immutable: true,
|
|
16
|
+
},
|
|
17
|
+
ref_id: {
|
|
18
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
19
|
+
required: true,
|
|
20
|
+
immutable: true,
|
|
21
|
+
},
|
|
22
|
+
type: {
|
|
23
|
+
type: String,
|
|
24
|
+
enum: constants_1.ALL_CUSTOMER_REDEMPTION_TYPES,
|
|
25
|
+
required: true,
|
|
26
|
+
immutable: true,
|
|
27
|
+
},
|
|
28
|
+
customer_phone: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: true,
|
|
31
|
+
immutable: true,
|
|
32
|
+
},
|
|
33
|
+
customer_name: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
redeemed_times: {
|
|
38
|
+
type: Number,
|
|
39
|
+
required: true,
|
|
40
|
+
default: 0,
|
|
41
|
+
},
|
|
42
|
+
createdAt_mins: {
|
|
43
|
+
type: Number,
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
createdAt: {
|
|
47
|
+
type: mongoose_1.Schema.Types.Date,
|
|
48
|
+
required: true,
|
|
49
|
+
default: () => new Date(),
|
|
50
|
+
immutable: true,
|
|
51
|
+
},
|
|
52
|
+
updatedAt: {
|
|
53
|
+
type: mongoose_1.Schema.Types.Date,
|
|
54
|
+
required: true,
|
|
55
|
+
default: () => new Date(),
|
|
56
|
+
},
|
|
57
|
+
}, {
|
|
58
|
+
timestamps: true,
|
|
59
|
+
versionKey: false,
|
|
60
|
+
minimize: false,
|
|
61
|
+
});
|
|
62
|
+
exports.CUSTOMER_REDEMPTIONS_COLLECTION_NAME = 'customer_redemptions';
|
|
@@ -17,24 +17,8 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
17
17
|
brand_id: string;
|
|
18
18
|
active: boolean;
|
|
19
19
|
code: string;
|
|
20
|
-
reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
|
|
21
20
|
used_count: number;
|
|
22
|
-
|
|
23
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
24
|
-
excluded_refs: string[];
|
|
25
|
-
exclusive_refs: string[];
|
|
26
|
-
num_of_items: number;
|
|
27
|
-
allocation?: import("mongoose").Types.DocumentArray<{
|
|
28
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
29
|
-
quantity: number;
|
|
30
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
31
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
32
|
-
quantity: number;
|
|
33
|
-
}> & {
|
|
34
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
35
|
-
quantity: number;
|
|
36
|
-
}> | null | undefined;
|
|
37
|
-
} | null | undefined;
|
|
21
|
+
reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
|
|
38
22
|
reward_discount?: {
|
|
39
23
|
is_discount_percentage: boolean;
|
|
40
24
|
excluded_refs: string[];
|
|
@@ -45,9 +29,9 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
45
29
|
reward_discount_items?: {
|
|
46
30
|
is_discount_percentage: boolean;
|
|
47
31
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
32
|
+
num_of_items: number;
|
|
48
33
|
excluded_refs: string[];
|
|
49
34
|
exclusive_refs: string[];
|
|
50
|
-
num_of_items: number;
|
|
51
35
|
discount_value: number;
|
|
52
36
|
allocation?: import("mongoose").Types.DocumentArray<{
|
|
53
37
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
@@ -70,31 +54,30 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
70
54
|
is_cashback_percentage: boolean;
|
|
71
55
|
max_cashback_amount?: number | null | undefined;
|
|
72
56
|
} | null | undefined;
|
|
57
|
+
reward_items?: {
|
|
58
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
59
|
+
num_of_items: number;
|
|
60
|
+
excluded_refs: string[];
|
|
61
|
+
exclusive_refs: string[];
|
|
62
|
+
allocation?: import("mongoose").Types.DocumentArray<{
|
|
63
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
64
|
+
quantity: number;
|
|
65
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
66
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
67
|
+
quantity: number;
|
|
68
|
+
}> & {
|
|
69
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
70
|
+
quantity: number;
|
|
71
|
+
}> | null | undefined;
|
|
72
|
+
} | null | undefined;
|
|
73
73
|
reward_voucher?: {
|
|
74
74
|
voucher_ids: Map<string, number>;
|
|
75
75
|
} | null | undefined;
|
|
76
76
|
max_uses?: number | null | undefined;
|
|
77
77
|
max_uses_per_customer?: number | null | undefined;
|
|
78
78
|
last_used_at?: NativeDate | null | undefined;
|
|
79
|
-
expire_at?: NativeDate | null | undefined;
|
|
80
79
|
reward_mystery_gift?: {
|
|
81
80
|
choice_of_rewards: string[];
|
|
82
|
-
reward_items?: {
|
|
83
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
84
|
-
excluded_refs: string[];
|
|
85
|
-
exclusive_refs: string[];
|
|
86
|
-
num_of_items: number;
|
|
87
|
-
allocation?: import("mongoose").Types.DocumentArray<{
|
|
88
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
89
|
-
quantity: number;
|
|
90
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
91
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
92
|
-
quantity: number;
|
|
93
|
-
}> & {
|
|
94
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
95
|
-
quantity: number;
|
|
96
|
-
}> | null | undefined;
|
|
97
|
-
} | null | undefined;
|
|
98
81
|
reward_discount?: {
|
|
99
82
|
is_discount_percentage: boolean;
|
|
100
83
|
excluded_refs: string[];
|
|
@@ -105,9 +88,9 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
105
88
|
reward_discount_items?: {
|
|
106
89
|
is_discount_percentage: boolean;
|
|
107
90
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
91
|
+
num_of_items: number;
|
|
108
92
|
excluded_refs: string[];
|
|
109
93
|
exclusive_refs: string[];
|
|
110
|
-
num_of_items: number;
|
|
111
94
|
discount_value: number;
|
|
112
95
|
allocation?: import("mongoose").Types.DocumentArray<{
|
|
113
96
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
@@ -130,10 +113,27 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
130
113
|
is_cashback_percentage: boolean;
|
|
131
114
|
max_cashback_amount?: number | null | undefined;
|
|
132
115
|
} | null | undefined;
|
|
116
|
+
reward_items?: {
|
|
117
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
118
|
+
num_of_items: number;
|
|
119
|
+
excluded_refs: string[];
|
|
120
|
+
exclusive_refs: string[];
|
|
121
|
+
allocation?: import("mongoose").Types.DocumentArray<{
|
|
122
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
123
|
+
quantity: number;
|
|
124
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
125
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
126
|
+
quantity: number;
|
|
127
|
+
}> & {
|
|
128
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
129
|
+
quantity: number;
|
|
130
|
+
}> | null | undefined;
|
|
131
|
+
} | null | undefined;
|
|
133
132
|
reward_voucher?: {
|
|
134
133
|
voucher_ids: Map<string, number>;
|
|
135
134
|
} | null | undefined;
|
|
136
135
|
} | null | undefined;
|
|
136
|
+
expire_at?: NativeDate | null | undefined;
|
|
137
137
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
138
138
|
createdAt: NativeDate;
|
|
139
139
|
updatedAt: NativeDate;
|
|
@@ -147,24 +147,8 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
147
147
|
brand_id: string;
|
|
148
148
|
active: boolean;
|
|
149
149
|
code: string;
|
|
150
|
-
reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
|
|
151
150
|
used_count: number;
|
|
152
|
-
|
|
153
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
154
|
-
excluded_refs: string[];
|
|
155
|
-
exclusive_refs: string[];
|
|
156
|
-
num_of_items: number;
|
|
157
|
-
allocation?: import("mongoose").Types.DocumentArray<{
|
|
158
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
159
|
-
quantity: number;
|
|
160
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
161
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
162
|
-
quantity: number;
|
|
163
|
-
}> & {
|
|
164
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
165
|
-
quantity: number;
|
|
166
|
-
}> | null | undefined;
|
|
167
|
-
} | null | undefined;
|
|
151
|
+
reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
|
|
168
152
|
reward_discount?: {
|
|
169
153
|
is_discount_percentage: boolean;
|
|
170
154
|
excluded_refs: string[];
|
|
@@ -175,9 +159,9 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
175
159
|
reward_discount_items?: {
|
|
176
160
|
is_discount_percentage: boolean;
|
|
177
161
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
162
|
+
num_of_items: number;
|
|
178
163
|
excluded_refs: string[];
|
|
179
164
|
exclusive_refs: string[];
|
|
180
|
-
num_of_items: number;
|
|
181
165
|
discount_value: number;
|
|
182
166
|
allocation?: import("mongoose").Types.DocumentArray<{
|
|
183
167
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
@@ -200,31 +184,30 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
200
184
|
is_cashback_percentage: boolean;
|
|
201
185
|
max_cashback_amount?: number | null | undefined;
|
|
202
186
|
} | null | undefined;
|
|
187
|
+
reward_items?: {
|
|
188
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
189
|
+
num_of_items: number;
|
|
190
|
+
excluded_refs: string[];
|
|
191
|
+
exclusive_refs: string[];
|
|
192
|
+
allocation?: import("mongoose").Types.DocumentArray<{
|
|
193
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
194
|
+
quantity: number;
|
|
195
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
196
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
197
|
+
quantity: number;
|
|
198
|
+
}> & {
|
|
199
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
200
|
+
quantity: number;
|
|
201
|
+
}> | null | undefined;
|
|
202
|
+
} | null | undefined;
|
|
203
203
|
reward_voucher?: {
|
|
204
204
|
voucher_ids: Map<string, number>;
|
|
205
205
|
} | null | undefined;
|
|
206
206
|
max_uses?: number | null | undefined;
|
|
207
207
|
max_uses_per_customer?: number | null | undefined;
|
|
208
208
|
last_used_at?: NativeDate | null | undefined;
|
|
209
|
-
expire_at?: NativeDate | null | undefined;
|
|
210
209
|
reward_mystery_gift?: {
|
|
211
210
|
choice_of_rewards: string[];
|
|
212
|
-
reward_items?: {
|
|
213
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
214
|
-
excluded_refs: string[];
|
|
215
|
-
exclusive_refs: string[];
|
|
216
|
-
num_of_items: number;
|
|
217
|
-
allocation?: import("mongoose").Types.DocumentArray<{
|
|
218
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
219
|
-
quantity: number;
|
|
220
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
221
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
222
|
-
quantity: number;
|
|
223
|
-
}> & {
|
|
224
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
225
|
-
quantity: number;
|
|
226
|
-
}> | null | undefined;
|
|
227
|
-
} | null | undefined;
|
|
228
211
|
reward_discount?: {
|
|
229
212
|
is_discount_percentage: boolean;
|
|
230
213
|
excluded_refs: string[];
|
|
@@ -235,9 +218,9 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
235
218
|
reward_discount_items?: {
|
|
236
219
|
is_discount_percentage: boolean;
|
|
237
220
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
221
|
+
num_of_items: number;
|
|
238
222
|
excluded_refs: string[];
|
|
239
223
|
exclusive_refs: string[];
|
|
240
|
-
num_of_items: number;
|
|
241
224
|
discount_value: number;
|
|
242
225
|
allocation?: import("mongoose").Types.DocumentArray<{
|
|
243
226
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
@@ -260,10 +243,27 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
260
243
|
is_cashback_percentage: boolean;
|
|
261
244
|
max_cashback_amount?: number | null | undefined;
|
|
262
245
|
} | null | undefined;
|
|
246
|
+
reward_items?: {
|
|
247
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
248
|
+
num_of_items: number;
|
|
249
|
+
excluded_refs: string[];
|
|
250
|
+
exclusive_refs: string[];
|
|
251
|
+
allocation?: import("mongoose").Types.DocumentArray<{
|
|
252
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
253
|
+
quantity: number;
|
|
254
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
255
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
256
|
+
quantity: number;
|
|
257
|
+
}> & {
|
|
258
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
259
|
+
quantity: number;
|
|
260
|
+
}> | null | undefined;
|
|
261
|
+
} | null | undefined;
|
|
263
262
|
reward_voucher?: {
|
|
264
263
|
voucher_ids: Map<string, number>;
|
|
265
264
|
} | null | undefined;
|
|
266
265
|
} | null | undefined;
|
|
266
|
+
expire_at?: NativeDate | null | undefined;
|
|
267
267
|
}>> & import("mongoose").FlatRecord<{
|
|
268
268
|
createdAt: NativeDate;
|
|
269
269
|
updatedAt: NativeDate;
|
|
@@ -277,24 +277,8 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
277
277
|
brand_id: string;
|
|
278
278
|
active: boolean;
|
|
279
279
|
code: string;
|
|
280
|
-
reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
|
|
281
280
|
used_count: number;
|
|
282
|
-
|
|
283
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
284
|
-
excluded_refs: string[];
|
|
285
|
-
exclusive_refs: string[];
|
|
286
|
-
num_of_items: number;
|
|
287
|
-
allocation?: import("mongoose").Types.DocumentArray<{
|
|
288
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
289
|
-
quantity: number;
|
|
290
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
291
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
292
|
-
quantity: number;
|
|
293
|
-
}> & {
|
|
294
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
295
|
-
quantity: number;
|
|
296
|
-
}> | null | undefined;
|
|
297
|
-
} | null | undefined;
|
|
281
|
+
reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
|
|
298
282
|
reward_discount?: {
|
|
299
283
|
is_discount_percentage: boolean;
|
|
300
284
|
excluded_refs: string[];
|
|
@@ -305,9 +289,9 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
305
289
|
reward_discount_items?: {
|
|
306
290
|
is_discount_percentage: boolean;
|
|
307
291
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
292
|
+
num_of_items: number;
|
|
308
293
|
excluded_refs: string[];
|
|
309
294
|
exclusive_refs: string[];
|
|
310
|
-
num_of_items: number;
|
|
311
295
|
discount_value: number;
|
|
312
296
|
allocation?: import("mongoose").Types.DocumentArray<{
|
|
313
297
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
@@ -330,31 +314,30 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
330
314
|
is_cashback_percentage: boolean;
|
|
331
315
|
max_cashback_amount?: number | null | undefined;
|
|
332
316
|
} | null | undefined;
|
|
317
|
+
reward_items?: {
|
|
318
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
319
|
+
num_of_items: number;
|
|
320
|
+
excluded_refs: string[];
|
|
321
|
+
exclusive_refs: string[];
|
|
322
|
+
allocation?: import("mongoose").Types.DocumentArray<{
|
|
323
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
324
|
+
quantity: number;
|
|
325
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
326
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
327
|
+
quantity: number;
|
|
328
|
+
}> & {
|
|
329
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
330
|
+
quantity: number;
|
|
331
|
+
}> | null | undefined;
|
|
332
|
+
} | null | undefined;
|
|
333
333
|
reward_voucher?: {
|
|
334
334
|
voucher_ids: Map<string, number>;
|
|
335
335
|
} | null | undefined;
|
|
336
336
|
max_uses?: number | null | undefined;
|
|
337
337
|
max_uses_per_customer?: number | null | undefined;
|
|
338
338
|
last_used_at?: NativeDate | null | undefined;
|
|
339
|
-
expire_at?: NativeDate | null | undefined;
|
|
340
339
|
reward_mystery_gift?: {
|
|
341
340
|
choice_of_rewards: string[];
|
|
342
|
-
reward_items?: {
|
|
343
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
344
|
-
excluded_refs: string[];
|
|
345
|
-
exclusive_refs: string[];
|
|
346
|
-
num_of_items: number;
|
|
347
|
-
allocation?: import("mongoose").Types.DocumentArray<{
|
|
348
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
349
|
-
quantity: number;
|
|
350
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
351
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
352
|
-
quantity: number;
|
|
353
|
-
}> & {
|
|
354
|
-
item_ids: import("mongoose").Types.ObjectId[];
|
|
355
|
-
quantity: number;
|
|
356
|
-
}> | null | undefined;
|
|
357
|
-
} | null | undefined;
|
|
358
341
|
reward_discount?: {
|
|
359
342
|
is_discount_percentage: boolean;
|
|
360
343
|
excluded_refs: string[];
|
|
@@ -365,9 +348,9 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
365
348
|
reward_discount_items?: {
|
|
366
349
|
is_discount_percentage: boolean;
|
|
367
350
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
351
|
+
num_of_items: number;
|
|
368
352
|
excluded_refs: string[];
|
|
369
353
|
exclusive_refs: string[];
|
|
370
|
-
num_of_items: number;
|
|
371
354
|
discount_value: number;
|
|
372
355
|
allocation?: import("mongoose").Types.DocumentArray<{
|
|
373
356
|
item_ids: import("mongoose").Types.ObjectId[];
|
|
@@ -390,10 +373,27 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
|
|
|
390
373
|
is_cashback_percentage: boolean;
|
|
391
374
|
max_cashback_amount?: number | null | undefined;
|
|
392
375
|
} | null | undefined;
|
|
376
|
+
reward_items?: {
|
|
377
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
378
|
+
num_of_items: number;
|
|
379
|
+
excluded_refs: string[];
|
|
380
|
+
exclusive_refs: string[];
|
|
381
|
+
allocation?: import("mongoose").Types.DocumentArray<{
|
|
382
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
383
|
+
quantity: number;
|
|
384
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
385
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
386
|
+
quantity: number;
|
|
387
|
+
}> & {
|
|
388
|
+
item_ids: import("mongoose").Types.ObjectId[];
|
|
389
|
+
quantity: number;
|
|
390
|
+
}> | null | undefined;
|
|
391
|
+
} | null | undefined;
|
|
393
392
|
reward_voucher?: {
|
|
394
393
|
voucher_ids: Map<string, number>;
|
|
395
394
|
} | null | undefined;
|
|
396
395
|
} | null | undefined;
|
|
396
|
+
expire_at?: NativeDate | null | undefined;
|
|
397
397
|
}> & Required<{
|
|
398
398
|
_id: import("mongoose").Types.ObjectId;
|
|
399
399
|
}> & {
|
|
@@ -488,6 +488,8 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
|
|
|
488
488
|
BASE_PRICE: number;
|
|
489
489
|
} | null | undefined;
|
|
490
490
|
}>;
|
|
491
|
+
excluded_refs: string[];
|
|
492
|
+
exclusive_refs: string[];
|
|
491
493
|
upsell_price: {
|
|
492
494
|
"POS_WALK-IN": number;
|
|
493
495
|
"POS_TAKE-AWAY": number;
|
|
@@ -531,8 +533,6 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
|
|
|
531
533
|
KEETA_DELIVERY: number;
|
|
532
534
|
BASE_PRICE: number;
|
|
533
535
|
};
|
|
534
|
-
excluded_refs: string[];
|
|
535
|
-
exclusive_refs: string[];
|
|
536
536
|
segments: number;
|
|
537
537
|
choose_expensive_segment_price: boolean;
|
|
538
538
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -1020,6 +1020,8 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
|
|
|
1020
1020
|
BASE_PRICE: number;
|
|
1021
1021
|
} | null | undefined;
|
|
1022
1022
|
}>;
|
|
1023
|
+
excluded_refs: string[];
|
|
1024
|
+
exclusive_refs: string[];
|
|
1023
1025
|
upsell_price: {
|
|
1024
1026
|
"POS_WALK-IN": number;
|
|
1025
1027
|
"POS_TAKE-AWAY": number;
|
|
@@ -1063,8 +1065,6 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
|
|
|
1063
1065
|
KEETA_DELIVERY: number;
|
|
1064
1066
|
BASE_PRICE: number;
|
|
1065
1067
|
};
|
|
1066
|
-
excluded_refs: string[];
|
|
1067
|
-
exclusive_refs: string[];
|
|
1068
1068
|
segments: number;
|
|
1069
1069
|
choose_expensive_segment_price: boolean;
|
|
1070
1070
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -1552,6 +1552,8 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
|
|
|
1552
1552
|
BASE_PRICE: number;
|
|
1553
1553
|
} | null | undefined;
|
|
1554
1554
|
}>;
|
|
1555
|
+
excluded_refs: string[];
|
|
1556
|
+
exclusive_refs: string[];
|
|
1555
1557
|
upsell_price: {
|
|
1556
1558
|
"POS_WALK-IN": number;
|
|
1557
1559
|
"POS_TAKE-AWAY": number;
|
|
@@ -1595,8 +1597,6 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
|
|
|
1595
1597
|
KEETA_DELIVERY: number;
|
|
1596
1598
|
BASE_PRICE: number;
|
|
1597
1599
|
};
|
|
1598
|
-
excluded_refs: string[];
|
|
1599
|
-
exclusive_refs: string[];
|
|
1600
1600
|
segments: number;
|
|
1601
1601
|
choose_expensive_segment_price: boolean;
|
|
1602
1602
|
}> & Required<{
|
|
@@ -8,6 +8,7 @@ export * from './cash_in_out';
|
|
|
8
8
|
export * from './category';
|
|
9
9
|
export * from './close_dates';
|
|
10
10
|
export * from './courses';
|
|
11
|
+
export * from './customer_redemptions';
|
|
11
12
|
export * from './customers';
|
|
12
13
|
export * from './deliveries';
|
|
13
14
|
export * from './delivery_areas';
|
|
@@ -17,6 +18,7 @@ export * from './dinein_tables';
|
|
|
17
18
|
export * from './discounts';
|
|
18
19
|
export * from './expense_category';
|
|
19
20
|
export * from './expense_details';
|
|
21
|
+
export * from './gift_cards';
|
|
20
22
|
export * from './halfhalf_setup';
|
|
21
23
|
export * from './instore_shift_sessions';
|
|
22
24
|
export * from './instore_shifts';
|
|
@@ -39,6 +41,7 @@ export * from './public_holidays';
|
|
|
39
41
|
export * from './purchase_orders';
|
|
40
42
|
export * from './reservations';
|
|
41
43
|
export * from './reviews';
|
|
44
|
+
export * from './rewards_usage';
|
|
42
45
|
export * from './rider';
|
|
43
46
|
export * from './specials';
|
|
44
47
|
export * from './staff_shifts';
|
|
@@ -50,10 +53,10 @@ export * from './tenant_staff';
|
|
|
50
53
|
export * from './terminal_devices';
|
|
51
54
|
export * from './tokens';
|
|
52
55
|
export * from './track_order_number';
|
|
53
|
-
export * from './vouchers';
|
|
54
56
|
export * from './void_order_items';
|
|
55
57
|
export * from './void_purchase_order_items';
|
|
56
58
|
export * from './void_warehouse_invoice_items';
|
|
59
|
+
export * from './vouchers';
|
|
57
60
|
export * from './wallet';
|
|
58
61
|
export * from './wallet_transactions';
|
|
59
62
|
export * from './warehouse';
|
|
@@ -67,5 +70,3 @@ export * from './warehouse_operational_roles';
|
|
|
67
70
|
export * from './warehouse_staff';
|
|
68
71
|
export * from './warehouse_track_order_number';
|
|
69
72
|
export * from './warehouse_vendors';
|
|
70
|
-
export * from './gift_cards';
|
|
71
|
-
export * from './rewards_usage';
|