@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
|
@@ -15,8 +15,8 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
|
|
|
15
15
|
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
16
16
|
inventory_code: string;
|
|
17
17
|
order_number: number;
|
|
18
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
19
18
|
quantity: number;
|
|
19
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
20
20
|
item_name: string;
|
|
21
21
|
category_name: string;
|
|
22
22
|
selling_price: number;
|
|
@@ -36,8 +36,8 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
|
|
|
36
36
|
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
37
37
|
inventory_code: string;
|
|
38
38
|
order_number: number;
|
|
39
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
40
39
|
quantity: number;
|
|
40
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
41
41
|
item_name: string;
|
|
42
42
|
category_name: string;
|
|
43
43
|
selling_price: number;
|
|
@@ -57,8 +57,8 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
|
|
|
57
57
|
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
58
58
|
inventory_code: string;
|
|
59
59
|
order_number: number;
|
|
60
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
61
60
|
quantity: number;
|
|
61
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
62
62
|
item_name: string;
|
|
63
63
|
category_name: string;
|
|
64
64
|
selling_price: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CUSTOMER_REDEMPTION_TYPE_ENUM } from '../../constants';
|
|
2
|
+
export interface ICustomerRedemption {
|
|
3
|
+
_id: string;
|
|
4
|
+
brand_id: string;
|
|
5
|
+
ref_id: string;
|
|
6
|
+
type: CUSTOMER_REDEMPTION_TYPE_ENUM;
|
|
7
|
+
customer_phone: string;
|
|
8
|
+
customer_name: string;
|
|
9
|
+
redeemed_times: number;
|
|
10
|
+
createdAt_mins: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from './category';
|
|
|
9
9
|
export * from './close_dates';
|
|
10
10
|
export * from './common';
|
|
11
11
|
export * from './courses';
|
|
12
|
+
export * from './customer_redemptions';
|
|
12
13
|
export * from './customers';
|
|
13
14
|
export * from './deliveries';
|
|
14
15
|
export * from './delivery_areas';
|
|
@@ -18,6 +19,7 @@ export * from './dinein_tables_fingerprints';
|
|
|
18
19
|
export * from './discounts';
|
|
19
20
|
export * from './expense_category';
|
|
20
21
|
export * from './expense_details';
|
|
22
|
+
export * from './gift_cards';
|
|
21
23
|
export * from './halfhalf_setup';
|
|
22
24
|
export * from './instore_shift_sessions';
|
|
23
25
|
export * from './instore_shifts';
|
|
@@ -41,6 +43,7 @@ export * from './public_holidays';
|
|
|
41
43
|
export * from './purchase_orders';
|
|
42
44
|
export * from './reservations';
|
|
43
45
|
export * from './reviews';
|
|
46
|
+
export * from './rewards_usage';
|
|
44
47
|
export * from './rider';
|
|
45
48
|
export * from './specials';
|
|
46
49
|
export * from './staff_shifts';
|
|
@@ -52,10 +55,10 @@ export * from './tenant_staff';
|
|
|
52
55
|
export * from './terminal_devices';
|
|
53
56
|
export * from './tokens';
|
|
54
57
|
export * from './track_order_number';
|
|
55
|
-
export * from './vouchers';
|
|
56
58
|
export * from './void_order_items';
|
|
57
59
|
export * from './void_purchase_order_items';
|
|
58
60
|
export * from './void_warehouse_invoice_items';
|
|
61
|
+
export * from './vouchers';
|
|
59
62
|
export * from './wallet';
|
|
60
63
|
export * from './wallet_transactions';
|
|
61
64
|
export * from './warehouse';
|
|
@@ -69,5 +72,3 @@ export * from './warehouse_operational_roles';
|
|
|
69
72
|
export * from './warehouse_staff';
|
|
70
73
|
export * from './warehouse_track_order_number';
|
|
71
74
|
export * from './warehouse_vendors';
|
|
72
|
-
export * from './gift_cards';
|
|
73
|
-
export * from './rewards_usage';
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./category"), exports);
|
|
|
25
25
|
__exportStar(require("./close_dates"), exports);
|
|
26
26
|
__exportStar(require("./common"), exports);
|
|
27
27
|
__exportStar(require("./courses"), exports);
|
|
28
|
+
__exportStar(require("./customer_redemptions"), exports);
|
|
28
29
|
__exportStar(require("./customers"), exports);
|
|
29
30
|
__exportStar(require("./deliveries"), exports);
|
|
30
31
|
__exportStar(require("./delivery_areas"), exports);
|
|
@@ -34,6 +35,7 @@ __exportStar(require("./dinein_tables_fingerprints"), exports);
|
|
|
34
35
|
__exportStar(require("./discounts"), exports);
|
|
35
36
|
__exportStar(require("./expense_category"), exports);
|
|
36
37
|
__exportStar(require("./expense_details"), exports);
|
|
38
|
+
__exportStar(require("./gift_cards"), exports);
|
|
37
39
|
__exportStar(require("./halfhalf_setup"), exports);
|
|
38
40
|
__exportStar(require("./instore_shift_sessions"), exports);
|
|
39
41
|
__exportStar(require("./instore_shifts"), exports);
|
|
@@ -57,6 +59,7 @@ __exportStar(require("./public_holidays"), exports);
|
|
|
57
59
|
__exportStar(require("./purchase_orders"), exports);
|
|
58
60
|
__exportStar(require("./reservations"), exports);
|
|
59
61
|
__exportStar(require("./reviews"), exports);
|
|
62
|
+
__exportStar(require("./rewards_usage"), exports);
|
|
60
63
|
__exportStar(require("./rider"), exports);
|
|
61
64
|
__exportStar(require("./specials"), exports);
|
|
62
65
|
__exportStar(require("./staff_shifts"), exports);
|
|
@@ -68,10 +71,10 @@ __exportStar(require("./tenant_staff"), exports);
|
|
|
68
71
|
__exportStar(require("./terminal_devices"), exports);
|
|
69
72
|
__exportStar(require("./tokens"), exports);
|
|
70
73
|
__exportStar(require("./track_order_number"), exports);
|
|
71
|
-
__exportStar(require("./vouchers"), exports);
|
|
72
74
|
__exportStar(require("./void_order_items"), exports);
|
|
73
75
|
__exportStar(require("./void_purchase_order_items"), exports);
|
|
74
76
|
__exportStar(require("./void_warehouse_invoice_items"), exports);
|
|
77
|
+
__exportStar(require("./vouchers"), exports);
|
|
75
78
|
__exportStar(require("./wallet"), exports);
|
|
76
79
|
__exportStar(require("./wallet_transactions"), exports);
|
|
77
80
|
__exportStar(require("./warehouse"), exports);
|
|
@@ -85,5 +88,3 @@ __exportStar(require("./warehouse_operational_roles"), exports);
|
|
|
85
88
|
__exportStar(require("./warehouse_staff"), exports);
|
|
86
89
|
__exportStar(require("./warehouse_track_order_number"), exports);
|
|
87
90
|
__exportStar(require("./warehouse_vendors"), exports);
|
|
88
|
-
__exportStar(require("./gift_cards"), exports);
|
|
89
|
-
__exportStar(require("./rewards_usage"), exports);
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { OFFER_FINGERPRINT_TYPE_ENUM } from '../../constants';
|
|
2
1
|
export interface IOfferFingerprint {
|
|
3
2
|
_id: string;
|
|
4
3
|
brand_id: string;
|
|
5
4
|
tenants: string[];
|
|
6
5
|
offer_id: string;
|
|
7
|
-
type: OFFER_FINGERPRINT_TYPE_ENUM;
|
|
8
6
|
customer_phone: string;
|
|
9
7
|
customer_name: string;
|
|
10
|
-
|
|
11
|
-
redeemed_at: Date | null;
|
|
8
|
+
order_id: string;
|
|
12
9
|
createdAt_mins: number;
|
|
13
10
|
createdAt: Date;
|
|
14
11
|
updatedAt: Date;
|