@vita-mojo/types 1.0.37-VMOS-13392-2f418c4-901-rc.0 → 1.0.37-VMOS-13502-ad27934-902-rc.0
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/package.json +1 -1
- package/src/order/bundle.d.ts +0 -11
- package/src/order/index.d.ts +0 -1
- package/src/order/index.js +0 -1
- package/src/order/index.js.map +1 -1
- package/src/order/payment.d.ts +0 -18
- package/src/order/promotion.d.ts +45 -24
- package/src/order/promotion.js +0 -8
- package/src/order/promotion.js.map +1 -1
- package/src/order/subway.d.ts +0 -4
- package/src/order/user.d.ts +0 -6
- package/src/order/provider-promotion/acteol.d.ts +0 -14
- package/src/order/provider-promotion/acteol.js +0 -3
- package/src/order/provider-promotion/acteol.js.map +0 -1
- package/src/order/provider-promotion/como.d.ts +0 -50
- package/src/order/provider-promotion/como.js +0 -3
- package/src/order/provider-promotion/como.js.map +0 -1
- package/src/order/provider-promotion/index.d.ts +0 -5
- package/src/order/provider-promotion/index.js +0 -5
- package/src/order/provider-promotion/index.js.map +0 -1
- package/src/order/provider-promotion/subway.d.ts +0 -22
- package/src/order/provider-promotion/subway.js +0 -17
- package/src/order/provider-promotion/subway.js.map +0 -1
package/package.json
CHANGED
package/src/order/bundle.d.ts
CHANGED
|
@@ -23,13 +23,8 @@ export interface DefaultItem {
|
|
|
23
23
|
name: string;
|
|
24
24
|
customizations: DefaultItemCustomization[];
|
|
25
25
|
}
|
|
26
|
-
export interface DealCategory {
|
|
27
|
-
uuid: string;
|
|
28
|
-
isOptional: boolean;
|
|
29
|
-
}
|
|
30
26
|
export interface Deal {
|
|
31
27
|
uuid: string;
|
|
32
|
-
dealCategories: DealCategory[];
|
|
33
28
|
dealCategoryUUID: string;
|
|
34
29
|
name: string;
|
|
35
30
|
basketUUID: string;
|
|
@@ -50,11 +45,6 @@ export interface Adjustment {
|
|
|
50
45
|
time: string;
|
|
51
46
|
type: string;
|
|
52
47
|
}
|
|
53
|
-
export interface Tag {
|
|
54
|
-
name: string;
|
|
55
|
-
uuid: string;
|
|
56
|
-
type: 'tag' | 'recommendation' | 'discountGroup';
|
|
57
|
-
}
|
|
58
48
|
export interface Bundle {
|
|
59
49
|
uuid: string;
|
|
60
50
|
menuUUID?: string;
|
|
@@ -125,5 +115,4 @@ export interface Bundle {
|
|
|
125
115
|
quantity?: number;
|
|
126
116
|
basketEntries?: Record<string, Partial<Bundle>>;
|
|
127
117
|
adjustment?: Adjustment;
|
|
128
|
-
tags: Tag[];
|
|
129
118
|
}
|
package/src/order/index.d.ts
CHANGED
package/src/order/index.js
CHANGED
|
@@ -15,5 +15,4 @@ tslib_1.__exportStar(require("./promotion"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./settings"), exports);
|
|
16
16
|
exports.Subway = require("./subway");
|
|
17
17
|
tslib_1.__exportStar(require("./tenant-settings"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./provider-promotion"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
package/src/order/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/index.ts"],"names":[],"mappings":";;;;AAAA,iDAAuB;AACvB,oDAA0B;AAC1B,qCAAmC;AACnC,mDAAiD;AACjD,iCAA+B;AAG/B,uDAA6B;AAC7B,kEAAwC;AACxC,uCAAqC;AACrC,sDAA4B;AAC5B,sDAA4B;AAC5B,qDAA2B;AAC3B,qCAAmC;AACnC,4DAAkC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/index.ts"],"names":[],"mappings":";;;;AAAA,iDAAuB;AACvB,oDAA0B;AAC1B,qCAAmC;AACnC,mDAAiD;AACjD,iCAA+B;AAG/B,uDAA6B;AAC7B,kEAAwC;AACxC,uCAAqC;AACrC,sDAA4B;AAC5B,sDAA4B;AAC5B,qDAA2B;AAC3B,qCAAmC;AACnC,4DAAkC"}
|
package/src/order/payment.d.ts
CHANGED
|
@@ -33,22 +33,6 @@ export interface Payment {
|
|
|
33
33
|
deliveryFeeRefundTaxAmount?: number;
|
|
34
34
|
requireExternalPayment?: boolean;
|
|
35
35
|
}
|
|
36
|
-
interface SubwayPointsAcquired {
|
|
37
|
-
basePoints?: number;
|
|
38
|
-
bonusPoints?: number;
|
|
39
|
-
}
|
|
40
|
-
interface SubwayRedemptionDetails {
|
|
41
|
-
redemptionId: string;
|
|
42
|
-
points: number;
|
|
43
|
-
redemptionAmount: number;
|
|
44
|
-
forfeitedAmount: number;
|
|
45
|
-
numberOfConversion: number;
|
|
46
|
-
}
|
|
47
|
-
interface SubwayTransactionLoyalty {
|
|
48
|
-
pointsAcquired?: SubwayPointsAcquired;
|
|
49
|
-
redemptionDetails?: SubwayRedemptionDetails;
|
|
50
|
-
}
|
|
51
|
-
type TransactionLoyalty = SubwayTransactionLoyalty;
|
|
52
36
|
export interface Transaction {
|
|
53
37
|
uuid: string;
|
|
54
38
|
status: string;
|
|
@@ -66,6 +50,4 @@ export interface Transaction {
|
|
|
66
50
|
updatedAt?: string;
|
|
67
51
|
meta?: any;
|
|
68
52
|
pat?: any;
|
|
69
|
-
loyalty?: TransactionLoyalty;
|
|
70
53
|
}
|
|
71
|
-
export {};
|
package/src/order/promotion.d.ts
CHANGED
|
@@ -1,49 +1,70 @@
|
|
|
1
|
-
import { PromotionProviderDetails } from './provider-promotion';
|
|
2
1
|
export interface PromoCodeDto {
|
|
3
2
|
code: string;
|
|
4
3
|
phoneNumber?: string;
|
|
5
4
|
secureCode?: string;
|
|
6
5
|
bindAccount?: boolean;
|
|
7
6
|
}
|
|
8
|
-
export declare enum PromoAppliesTo {
|
|
9
|
-
AssocBundles = "assoc_bundles",
|
|
10
|
-
AssocMostExpensive = "assoc_most_expensive",
|
|
11
|
-
AssocLeastExpensive = "assoc_least_expensive",
|
|
12
|
-
Order = "order"
|
|
13
|
-
}
|
|
14
7
|
export interface Promotion {
|
|
15
8
|
uuid: string;
|
|
16
9
|
bundleDiscountOnly?: boolean;
|
|
17
10
|
type: string;
|
|
18
11
|
value: number;
|
|
19
12
|
name: string;
|
|
20
|
-
appliesTo:
|
|
13
|
+
appliesTo: string;
|
|
21
14
|
promoCode?: PromoCodeDto;
|
|
22
|
-
loyaltyPoints?:
|
|
15
|
+
loyaltyPoints?: boolean;
|
|
23
16
|
maxAmount?: number;
|
|
24
17
|
minBasket?: number;
|
|
25
18
|
providerPromotion?: PromotionProviderDetails;
|
|
26
19
|
provider?: string;
|
|
27
20
|
freeDelivery?: boolean;
|
|
28
|
-
userReward?: UserReward;
|
|
29
|
-
discount?: number;
|
|
30
21
|
}
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
export interface PromotionProviderDetails {
|
|
23
|
+
type?: string;
|
|
24
|
+
expirationDate?: string;
|
|
25
|
+
count?: number;
|
|
26
|
+
code: string;
|
|
27
|
+
name: string;
|
|
28
|
+
productKey: string;
|
|
29
|
+
vmosPromoUUID: string;
|
|
30
|
+
voucherID: number;
|
|
31
|
+
purchase: Purchase;
|
|
32
|
+
}
|
|
33
|
+
interface Purchase {
|
|
34
|
+
transactionId: string;
|
|
35
|
+
openTime: Date;
|
|
36
|
+
relatedTransactionId?: string;
|
|
37
|
+
totalAmount: number;
|
|
38
|
+
totalTaxAmount?: number;
|
|
39
|
+
totalGeneralDiscount?: number;
|
|
40
|
+
orderType?: string;
|
|
41
|
+
items?: Item[];
|
|
42
|
+
meansOfPayment?: MeansOfPayment;
|
|
43
|
+
tags?: string[];
|
|
44
|
+
employee?: string;
|
|
45
|
+
}
|
|
46
|
+
interface Item {
|
|
47
|
+
lineId: string;
|
|
48
|
+
code: string;
|
|
49
|
+
name: string;
|
|
50
|
+
departmentCode: string;
|
|
51
|
+
departmentName: string;
|
|
52
|
+
quantity: number;
|
|
53
|
+
weight?: number;
|
|
54
|
+
grossAmount: number;
|
|
55
|
+
netAmount: number;
|
|
56
|
+
action?: 'sale' | 'refund';
|
|
57
|
+
tags?: string[];
|
|
58
|
+
}
|
|
59
|
+
interface MeansOfPayment {
|
|
60
|
+
type: string;
|
|
61
|
+
details?: string;
|
|
62
|
+
amount: number;
|
|
63
|
+
paymentCard?: string;
|
|
44
64
|
}
|
|
45
65
|
export interface BundlePromotion {
|
|
46
66
|
uuid: string;
|
|
47
67
|
discount: number;
|
|
48
68
|
meta?: Record<string, unknown>;
|
|
49
69
|
}
|
|
70
|
+
export {};
|
package/src/order/promotion.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromoAppliesTo = void 0;
|
|
4
|
-
var PromoAppliesTo;
|
|
5
|
-
(function (PromoAppliesTo) {
|
|
6
|
-
PromoAppliesTo["AssocBundles"] = "assoc_bundles";
|
|
7
|
-
PromoAppliesTo["AssocMostExpensive"] = "assoc_most_expensive";
|
|
8
|
-
PromoAppliesTo["AssocLeastExpensive"] = "assoc_least_expensive";
|
|
9
|
-
PromoAppliesTo["Order"] = "order";
|
|
10
|
-
})(PromoAppliesTo || (exports.PromoAppliesTo = PromoAppliesTo = {}));
|
|
11
3
|
//# sourceMappingURL=promotion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/promotion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/promotion.ts"],"names":[],"mappings":""}
|
package/src/order/subway.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ export interface Validation {
|
|
|
8
8
|
offers: Offer[];
|
|
9
9
|
certificates: Certificate[];
|
|
10
10
|
productIdIndex: ProductIdIndex;
|
|
11
|
-
locationId: string;
|
|
12
|
-
orderSourceType: string;
|
|
13
11
|
}
|
|
14
12
|
export interface Tax {
|
|
15
13
|
name: string;
|
|
@@ -25,8 +23,6 @@ export interface Item {
|
|
|
25
23
|
modifiers: Item[];
|
|
26
24
|
discounts: Discount[];
|
|
27
25
|
taxes: Tax[];
|
|
28
|
-
price: number;
|
|
29
|
-
description: string;
|
|
30
26
|
}
|
|
31
27
|
export interface Discount {
|
|
32
28
|
promotionId: number;
|
package/src/order/user.d.ts
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface ActeolProviderPromotionBase {
|
|
2
|
-
vmosPromoUUID: string;
|
|
3
|
-
name: string;
|
|
4
|
-
code: string;
|
|
5
|
-
productKey: string;
|
|
6
|
-
}
|
|
7
|
-
interface ActeolProviderPromotionValidateVoucher extends ActeolProviderPromotionBase {
|
|
8
|
-
redemptionID: number;
|
|
9
|
-
}
|
|
10
|
-
interface ActeolProviderPromotionVoucher extends ActeolProviderPromotionBase {
|
|
11
|
-
voucherID: number;
|
|
12
|
-
}
|
|
13
|
-
export type ActeolProviderPromotion = ActeolProviderPromotionValidateVoucher | ActeolProviderPromotionVoucher;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acteol.js","sourceRoot":"","sources":["../../../../../../packages/types/src/order/provider-promotion/acteol.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export type AppliedDeal = {
|
|
2
|
-
key: string;
|
|
3
|
-
appliedAmount: number;
|
|
4
|
-
};
|
|
5
|
-
export type AppliedAsset = {
|
|
6
|
-
key?: string;
|
|
7
|
-
code?: string;
|
|
8
|
-
appliedAmount: number;
|
|
9
|
-
};
|
|
10
|
-
interface Purchase {
|
|
11
|
-
transactionId: string;
|
|
12
|
-
openTime: Date;
|
|
13
|
-
relatedTransactionId?: string;
|
|
14
|
-
totalAmount: number;
|
|
15
|
-
totalTaxAmount?: number;
|
|
16
|
-
totalGeneralDiscount?: number;
|
|
17
|
-
orderType?: string;
|
|
18
|
-
items?: Item[];
|
|
19
|
-
meansOfPayment?: MeansOfPayment;
|
|
20
|
-
tags?: string[];
|
|
21
|
-
employee?: string;
|
|
22
|
-
}
|
|
23
|
-
interface Item {
|
|
24
|
-
lineId: string;
|
|
25
|
-
code: string;
|
|
26
|
-
name: string;
|
|
27
|
-
departmentCode: string;
|
|
28
|
-
departmentName: string;
|
|
29
|
-
quantity: number;
|
|
30
|
-
weight?: number;
|
|
31
|
-
grossAmount: number;
|
|
32
|
-
netAmount: number;
|
|
33
|
-
action?: 'sale' | 'refund';
|
|
34
|
-
tags?: string[];
|
|
35
|
-
}
|
|
36
|
-
interface MeansOfPayment {
|
|
37
|
-
type: string;
|
|
38
|
-
details?: string;
|
|
39
|
-
amount: number;
|
|
40
|
-
paymentCard?: string;
|
|
41
|
-
}
|
|
42
|
-
export type ComoProviderPromotion = {
|
|
43
|
-
purchase?: Purchase;
|
|
44
|
-
deals?: AppliedDeal[];
|
|
45
|
-
redeemAssets?: AppliedAsset[];
|
|
46
|
-
deal?: AppliedDeal;
|
|
47
|
-
redeemAsset?: AppliedAsset;
|
|
48
|
-
useItemTypes?: boolean;
|
|
49
|
-
};
|
|
50
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"como.js","sourceRoot":"","sources":["../../../../../../packages/types/src/order/provider-promotion/como.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ActeolProviderPromotion } from './acteol';
|
|
2
|
-
import { ComoProviderPromotion } from './como';
|
|
3
|
-
import { SubwayProviderPromotion } from './subway';
|
|
4
|
-
export * from './acteol';
|
|
5
|
-
export type PromotionProviderDetails = ActeolProviderPromotion | ComoProviderPromotion | SubwayProviderPromotion;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/types/src/order/provider-promotion/index.ts"],"names":[],"mappings":";;;AAIA,mDAAyB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum SubwayOfferStatus {
|
|
2
|
-
UNKNOWN = "Unknown",
|
|
3
|
-
ACTIVE = "Active",
|
|
4
|
-
REDEEMED = "Redeemed",
|
|
5
|
-
REDEEM_PENDING = "RedeemPending",
|
|
6
|
-
EXPIRED = "Expired",
|
|
7
|
-
CANCELLED = "Cancelled",
|
|
8
|
-
REVERSAL_PENDING = "ReversalPending",
|
|
9
|
-
REVERSAL_FAILED = "ReversalFailed",
|
|
10
|
-
VOID_PENDING = "VoidPending",
|
|
11
|
-
REFUND_PENDING = "RefundPending"
|
|
12
|
-
}
|
|
13
|
-
export interface SubwayProviderPromotion {
|
|
14
|
-
offerStatus: SubwayOfferStatus;
|
|
15
|
-
offerPLU: string;
|
|
16
|
-
promotionId: string | number;
|
|
17
|
-
couponProvider: string;
|
|
18
|
-
promoCode?: string;
|
|
19
|
-
offerType?: 'NON_SD' | 'SD';
|
|
20
|
-
propositionId?: string;
|
|
21
|
-
customerRefId?: string;
|
|
22
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubwayOfferStatus = void 0;
|
|
4
|
-
var SubwayOfferStatus;
|
|
5
|
-
(function (SubwayOfferStatus) {
|
|
6
|
-
SubwayOfferStatus["UNKNOWN"] = "Unknown";
|
|
7
|
-
SubwayOfferStatus["ACTIVE"] = "Active";
|
|
8
|
-
SubwayOfferStatus["REDEEMED"] = "Redeemed";
|
|
9
|
-
SubwayOfferStatus["REDEEM_PENDING"] = "RedeemPending";
|
|
10
|
-
SubwayOfferStatus["EXPIRED"] = "Expired";
|
|
11
|
-
SubwayOfferStatus["CANCELLED"] = "Cancelled";
|
|
12
|
-
SubwayOfferStatus["REVERSAL_PENDING"] = "ReversalPending";
|
|
13
|
-
SubwayOfferStatus["REVERSAL_FAILED"] = "ReversalFailed";
|
|
14
|
-
SubwayOfferStatus["VOID_PENDING"] = "VoidPending";
|
|
15
|
-
SubwayOfferStatus["REFUND_PENDING"] = "RefundPending";
|
|
16
|
-
})(SubwayOfferStatus || (exports.SubwayOfferStatus = SubwayOfferStatus = {}));
|
|
17
|
-
//# sourceMappingURL=subway.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subway.js","sourceRoot":"","sources":["../../../../../../packages/types/src/order/provider-promotion/subway.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,qDAAgC,CAAA;IAChC,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,yDAAoC,CAAA;IACpC,uDAAkC,CAAA;IAClC,iDAA4B,CAAA;IAC5B,qDAAgC,CAAA;AAClC,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B"}
|