tt-entities 0.0.31 → 0.0.32
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/dist/libs/tatayab-entities-library/entities/coupon-product.entity.d.ts +12 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-product.entity.js +50 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-product.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-store.entity.d.ts +9 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-store.entity.js +40 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-store.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-user.entity.d.ts +11 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-user.entity.js +48 -0
- package/dist/libs/tatayab-entities-library/entities/coupon-user.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/coupon.entity.d.ts +44 -0
- package/dist/libs/tatayab-entities-library/entities/coupon.entity.js +145 -0
- package/dist/libs/tatayab-entities-library/entities/coupon.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/index.d.ts +4 -0
- package/dist/libs/tatayab-entities-library/index.js +21 -2
- package/dist/libs/tatayab-entities-library/index.js.map +1 -1
- package/dist/src/main.js +345 -3
- package/libs/tatayab-entities-library/src/entities/coupon-product.entity.ts +25 -0
- package/libs/tatayab-entities-library/src/entities/coupon-store.entity.ts +17 -0
- package/libs/tatayab-entities-library/src/entities/coupon-user.entity.ts +27 -0
- package/libs/tatayab-entities-library/src/entities/coupon.entity.ts +126 -0
- package/libs/tatayab-entities-library/src/index.ts +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Coupon } from './coupon.entity';
|
|
3
|
+
import { Product } from './product.entity';
|
|
4
|
+
import { ProductVariant } from './product-variant.entity';
|
|
5
|
+
export declare class CouponProduct extends Model {
|
|
6
|
+
couponId: number;
|
|
7
|
+
productId: number;
|
|
8
|
+
productVariantId?: number;
|
|
9
|
+
coupon: Coupon;
|
|
10
|
+
product: Product;
|
|
11
|
+
variant?: ProductVariant;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CouponProduct = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const coupon_entity_1 = require("./coupon.entity");
|
|
15
|
+
const product_entity_1 = require("./product.entity");
|
|
16
|
+
const product_variant_entity_1 = require("./product-variant.entity");
|
|
17
|
+
let CouponProduct = class CouponProduct extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
exports.CouponProduct = CouponProduct;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.ForeignKey)(() => coupon_entity_1.Coupon),
|
|
22
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CouponProduct.prototype, "couponId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_entity_1.Product),
|
|
27
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], CouponProduct.prototype, "productId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_variant_entity_1.ProductVariant),
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CouponProduct.prototype, "productVariantId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.BelongsTo)(() => coupon_entity_1.Coupon),
|
|
37
|
+
__metadata("design:type", coupon_entity_1.Coupon)
|
|
38
|
+
], CouponProduct.prototype, "coupon", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
|
|
41
|
+
__metadata("design:type", product_entity_1.Product)
|
|
42
|
+
], CouponProduct.prototype, "product", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.BelongsTo)(() => product_variant_entity_1.ProductVariant),
|
|
45
|
+
__metadata("design:type", product_variant_entity_1.ProductVariant)
|
|
46
|
+
], CouponProduct.prototype, "variant", void 0);
|
|
47
|
+
exports.CouponProduct = CouponProduct = __decorate([
|
|
48
|
+
sequelize_typescript_1.Table
|
|
49
|
+
], CouponProduct);
|
|
50
|
+
//# sourceMappingURL=coupon-product.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-product.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/coupon-product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAmF;AACnF,mDAAyC;AACzC,qDAA2C;AAC3C,qEAA0D;AAGnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CAkBvC,CAAA;AAlBY,sCAAa;AAGhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;+CACJ;AAIjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;gDACH;AAMlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;uDACM;AAEO;IAAxC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;8BAAyB,sBAAM;6CAAC;AACf;IAAxC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BAAyB,wBAAO;8CAAC;AACjB;IAAxC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BAAmB,uCAAc;8CAAC;wBAjBvD,aAAa;IADzB,4BAAK;GACO,aAAa,CAkBzB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CouponStore = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const coupon_entity_1 = require("./coupon.entity");
|
|
15
|
+
const store_entity_1 = require("./store.entity");
|
|
16
|
+
let CouponStore = class CouponStore extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.CouponStore = CouponStore;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => coupon_entity_1.Coupon),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], CouponStore.prototype, "couponId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.ForeignKey)(() => store_entity_1.Store),
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CouponStore.prototype, "storeId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.BelongsTo)(() => coupon_entity_1.Coupon),
|
|
31
|
+
__metadata("design:type", coupon_entity_1.Coupon)
|
|
32
|
+
], CouponStore.prototype, "coupon", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, sequelize_typescript_1.BelongsTo)(() => store_entity_1.Store),
|
|
35
|
+
__metadata("design:type", store_entity_1.Store)
|
|
36
|
+
], CouponStore.prototype, "store", void 0);
|
|
37
|
+
exports.CouponStore = CouponStore = __decorate([
|
|
38
|
+
sequelize_typescript_1.Table
|
|
39
|
+
], CouponStore);
|
|
40
|
+
//# sourceMappingURL=coupon-store.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-store.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/coupon-store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAmF;AACnF,mDAAyC;AACzC,iDAAuC;AAGhC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAK;CAWrC,CAAA;AAXY,kCAAW;AAGd;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACJ;AAIjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;4CACL;AAES;IAAhC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;8BAAiB,sBAAM;2CAAC;AACf;IAAhC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;8BAAiB,oBAAK;0CAAC;sBAVnC,WAAW;IADvB,4BAAK;GACO,WAAW,CAWvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Coupon } from './coupon.entity';
|
|
3
|
+
import { User } from './user.entity';
|
|
4
|
+
export declare class CouponUser extends Model {
|
|
5
|
+
couponId: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
usedCount: number;
|
|
8
|
+
isPreAssigned: boolean;
|
|
9
|
+
coupon: Coupon;
|
|
10
|
+
user: User;
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CouponUser = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const coupon_entity_1 = require("./coupon.entity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
let CouponUser = class CouponUser extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.CouponUser = CouponUser;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => coupon_entity_1.Coupon),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], CouponUser.prototype, "couponId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.User),
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CouponUser.prototype, "userId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 0 }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CouponUser.prototype, "usedCount", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], CouponUser.prototype, "isPreAssigned", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, sequelize_typescript_1.BelongsTo)(() => coupon_entity_1.Coupon),
|
|
39
|
+
__metadata("design:type", coupon_entity_1.Coupon)
|
|
40
|
+
], CouponUser.prototype, "coupon", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.User),
|
|
43
|
+
__metadata("design:type", user_entity_1.User)
|
|
44
|
+
], CouponUser.prototype, "user", void 0);
|
|
45
|
+
exports.CouponUser = CouponUser = __decorate([
|
|
46
|
+
sequelize_typescript_1.Table
|
|
47
|
+
], CouponUser);
|
|
48
|
+
//# sourceMappingURL=coupon-user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-user.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/coupon-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAmF;AACnF,mDAAyC;AACzC,+CAAqC;AAG9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CAqBpC,CAAA;AArBY,gCAAU;AAGb;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;4CACJ;AAIjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;0CACN;AAIf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;6CACpB;AAMlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;iDACnB;AAEE;IAAhC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;8BAAiB,sBAAM;0CAAC;AACf;IAAhC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;8BAAiB,kBAAI;wCAAC;qBApBjC,UAAU;IADtB,4BAAK;GACO,UAAU,CAqBtB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { CouponStore } from './coupon-store.entity';
|
|
3
|
+
import { CouponProduct } from './coupon-product.entity';
|
|
4
|
+
import { CouponUser } from './coupon-user.entity';
|
|
5
|
+
export declare enum CouponDiscountType {
|
|
6
|
+
FIXED = "fixed",
|
|
7
|
+
PERCENTAGE = "percentage"
|
|
8
|
+
}
|
|
9
|
+
export declare enum CouponAppliesTo {
|
|
10
|
+
SUBTOTAL = "subtotal",
|
|
11
|
+
DELIVERY = "delivery",
|
|
12
|
+
VAT = "vat"
|
|
13
|
+
}
|
|
14
|
+
export declare enum CouponOsTarget {
|
|
15
|
+
ALL = "all",
|
|
16
|
+
IOS = "ios",
|
|
17
|
+
ANDROID = "android",
|
|
18
|
+
WEB = "web"
|
|
19
|
+
}
|
|
20
|
+
export declare class Coupon extends Model {
|
|
21
|
+
code: string;
|
|
22
|
+
nameEn: string;
|
|
23
|
+
nameAr: string;
|
|
24
|
+
descriptionEn?: string;
|
|
25
|
+
descriptionAr?: string;
|
|
26
|
+
startsAt: Date;
|
|
27
|
+
expiresAt: Date;
|
|
28
|
+
discountType: CouponDiscountType;
|
|
29
|
+
discountValue: number;
|
|
30
|
+
maxDiscountAmount?: number;
|
|
31
|
+
appliesTo: CouponAppliesTo;
|
|
32
|
+
minOrderAmount?: number;
|
|
33
|
+
osTarget: CouponOsTarget;
|
|
34
|
+
maxUsesTotal?: number;
|
|
35
|
+
maxUsesPerUser?: number;
|
|
36
|
+
totalUsed: number;
|
|
37
|
+
isStoreSpecific: boolean;
|
|
38
|
+
isProductSpecific: boolean;
|
|
39
|
+
isUserSpecific: boolean;
|
|
40
|
+
isActive: boolean;
|
|
41
|
+
couponStores: CouponStore[];
|
|
42
|
+
couponProducts: CouponProduct[];
|
|
43
|
+
couponUsers: CouponUser[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Coupon = exports.CouponOsTarget = exports.CouponAppliesTo = exports.CouponDiscountType = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const coupon_store_entity_1 = require("./coupon-store.entity");
|
|
15
|
+
const coupon_product_entity_1 = require("./coupon-product.entity");
|
|
16
|
+
const coupon_user_entity_1 = require("./coupon-user.entity");
|
|
17
|
+
var CouponDiscountType;
|
|
18
|
+
(function (CouponDiscountType) {
|
|
19
|
+
CouponDiscountType["FIXED"] = "fixed";
|
|
20
|
+
CouponDiscountType["PERCENTAGE"] = "percentage";
|
|
21
|
+
})(CouponDiscountType || (exports.CouponDiscountType = CouponDiscountType = {}));
|
|
22
|
+
var CouponAppliesTo;
|
|
23
|
+
(function (CouponAppliesTo) {
|
|
24
|
+
CouponAppliesTo["SUBTOTAL"] = "subtotal";
|
|
25
|
+
CouponAppliesTo["DELIVERY"] = "delivery";
|
|
26
|
+
CouponAppliesTo["VAT"] = "vat";
|
|
27
|
+
})(CouponAppliesTo || (exports.CouponAppliesTo = CouponAppliesTo = {}));
|
|
28
|
+
var CouponOsTarget;
|
|
29
|
+
(function (CouponOsTarget) {
|
|
30
|
+
CouponOsTarget["ALL"] = "all";
|
|
31
|
+
CouponOsTarget["IOS"] = "ios";
|
|
32
|
+
CouponOsTarget["ANDROID"] = "android";
|
|
33
|
+
CouponOsTarget["WEB"] = "web";
|
|
34
|
+
})(CouponOsTarget || (exports.CouponOsTarget = CouponOsTarget = {}));
|
|
35
|
+
let Coupon = class Coupon extends sequelize_typescript_1.Model {
|
|
36
|
+
};
|
|
37
|
+
exports.Coupon = Coupon;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Coupon.prototype, "code", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Coupon.prototype, "nameEn", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Coupon.prototype, "nameAr", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Coupon.prototype, "descriptionEn", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Coupon.prototype, "descriptionAr", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: false }),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], Coupon.prototype, "startsAt", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: false }),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], Coupon.prototype, "expiresAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, sequelize_typescript_1.Column)({
|
|
68
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(CouponDiscountType)),
|
|
69
|
+
allowNull: false,
|
|
70
|
+
defaultValue: CouponDiscountType.PERCENTAGE,
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Coupon.prototype, "discountType", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], Coupon.prototype, "discountValue", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true }),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], Coupon.prototype, "maxDiscountAmount", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, sequelize_typescript_1.Column)({
|
|
84
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(CouponAppliesTo)),
|
|
85
|
+
allowNull: false,
|
|
86
|
+
defaultValue: CouponAppliesTo.SUBTOTAL,
|
|
87
|
+
}),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Coupon.prototype, "appliesTo", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true, defaultValue: 0 }),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], Coupon.prototype, "minOrderAmount", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, sequelize_typescript_1.Column)({
|
|
96
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(CouponOsTarget)),
|
|
97
|
+
allowNull: false,
|
|
98
|
+
defaultValue: CouponOsTarget.ALL,
|
|
99
|
+
}),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], Coupon.prototype, "osTarget", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: true }),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], Coupon.prototype, "maxUsesTotal", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: true, defaultValue: 1 }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], Coupon.prototype, "maxUsesPerUser", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: false, defaultValue: 0 }),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], Coupon.prototype, "totalUsed", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
116
|
+
__metadata("design:type", Boolean)
|
|
117
|
+
], Coupon.prototype, "isStoreSpecific", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
120
|
+
__metadata("design:type", Boolean)
|
|
121
|
+
], Coupon.prototype, "isProductSpecific", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
124
|
+
__metadata("design:type", Boolean)
|
|
125
|
+
], Coupon.prototype, "isUserSpecific", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: true }),
|
|
128
|
+
__metadata("design:type", Boolean)
|
|
129
|
+
], Coupon.prototype, "isActive", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, sequelize_typescript_1.HasMany)(() => coupon_store_entity_1.CouponStore),
|
|
132
|
+
__metadata("design:type", Array)
|
|
133
|
+
], Coupon.prototype, "couponStores", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, sequelize_typescript_1.HasMany)(() => coupon_product_entity_1.CouponProduct),
|
|
136
|
+
__metadata("design:type", Array)
|
|
137
|
+
], Coupon.prototype, "couponProducts", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, sequelize_typescript_1.HasMany)(() => coupon_user_entity_1.CouponUser),
|
|
140
|
+
__metadata("design:type", Array)
|
|
141
|
+
], Coupon.prototype, "couponUsers", void 0);
|
|
142
|
+
exports.Coupon = Coupon = __decorate([
|
|
143
|
+
sequelize_typescript_1.Table
|
|
144
|
+
], Coupon);
|
|
145
|
+
//# sourceMappingURL=coupon.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/coupon.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,+DAAoD;AACpD,mEAAwD;AACxD,6DAAkD;AAElD,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,qCAAoB,CAAA;IACpB,+CAAyB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAsB,CAAA;IACtB,wCAAsB,CAAA;IACtB,8BAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,6BAAe,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAK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,CAAC;;iDACf;AAG3B;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;8CAClB;AAGxB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;wCACvB;AAKlB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;;4CACS;AAG5B;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,qCAAa,CAAC;;8CACW;AAGhC;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,+BAAU,CAAC;;2CACQ;iBAlGvB,MAAM;IADlB,4BAAK;GACO,MAAM,CAmGlB"}
|
|
@@ -41,6 +41,10 @@ export { StorePaymentMethod } from './entities/store-payment-method.entity';
|
|
|
41
41
|
export { Cart, CartStatus } from './entities/cart.entity';
|
|
42
42
|
export { CartItem, CartItemType } from './entities/cart-item.entity';
|
|
43
43
|
export { CartItemBundleSelection } from './entities/cart-item-bundle-selection.entity';
|
|
44
|
+
export { Coupon, CouponDiscountType, CouponAppliesTo, CouponOsTarget, } from './entities/coupon.entity';
|
|
45
|
+
export { CouponStore } from './entities/coupon-store.entity';
|
|
46
|
+
export { CouponProduct } from './entities/coupon-product.entity';
|
|
47
|
+
export { CouponUser } from './entities/coupon-user.entity';
|
|
44
48
|
export { OsName } from './utils/enums/osName';
|
|
45
49
|
export { ProductApp } from './utils/enums/productApp';
|
|
46
50
|
export { VersionType } from './utils/enums/versiontype';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = void 0;
|
|
3
|
+
exports.CouponDiscountType = exports.Coupon = exports.CartItemBundleSelection = exports.CartItemType = exports.CartItem = exports.CartStatus = exports.Cart = exports.StorePaymentMethod = exports.PaymentMethodCountry = exports.PaymentMethodType = exports.PaymentMethod = exports.PaymentGatewayType = exports.PaymentGateway = exports.RolePermission = exports.Permission = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.ShippingRule = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.BundleStore = exports.BundleProduct = exports.Bundle = exports.ProductTag = exports.Tag = exports.ProductVariantOption = exports.ProductVariant = exports.MediaType = exports.ProductMedia = exports.Product = exports.VariantOption = exports.VariantType = exports.Brand = exports.Category = exports.UserFavorite = exports.UserAddress = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Country = exports.ApiKey = void 0;
|
|
4
|
+
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.CouponUser = exports.CouponProduct = exports.CouponStore = exports.CouponOsTarget = exports.CouponAppliesTo = void 0;
|
|
5
5
|
exports.getDbModels = getDbModels;
|
|
6
6
|
const country_entity_1 = require("./entities/country.entity");
|
|
7
7
|
const area_entity_1 = require("./entities/area.entity");
|
|
@@ -45,6 +45,10 @@ const store_payment_method_entity_1 = require("./entities/store-payment-method.e
|
|
|
45
45
|
const cart_entity_1 = require("./entities/cart.entity");
|
|
46
46
|
const cart_item_entity_1 = require("./entities/cart-item.entity");
|
|
47
47
|
const cart_item_bundle_selection_entity_1 = require("./entities/cart-item-bundle-selection.entity");
|
|
48
|
+
const coupon_entity_1 = require("./entities/coupon.entity");
|
|
49
|
+
const coupon_store_entity_1 = require("./entities/coupon-store.entity");
|
|
50
|
+
const coupon_product_entity_1 = require("./entities/coupon-product.entity");
|
|
51
|
+
const coupon_user_entity_1 = require("./entities/coupon-user.entity");
|
|
48
52
|
var apikey_entity_2 = require("./entities/apikey.entity");
|
|
49
53
|
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return apikey_entity_2.ApiKey; } });
|
|
50
54
|
var country_entity_2 = require("./entities/country.entity");
|
|
@@ -135,6 +139,17 @@ Object.defineProperty(exports, "CartItem", { enumerable: true, get: function ()
|
|
|
135
139
|
Object.defineProperty(exports, "CartItemType", { enumerable: true, get: function () { return cart_item_entity_2.CartItemType; } });
|
|
136
140
|
var cart_item_bundle_selection_entity_2 = require("./entities/cart-item-bundle-selection.entity");
|
|
137
141
|
Object.defineProperty(exports, "CartItemBundleSelection", { enumerable: true, get: function () { return cart_item_bundle_selection_entity_2.CartItemBundleSelection; } });
|
|
142
|
+
var coupon_entity_2 = require("./entities/coupon.entity");
|
|
143
|
+
Object.defineProperty(exports, "Coupon", { enumerable: true, get: function () { return coupon_entity_2.Coupon; } });
|
|
144
|
+
Object.defineProperty(exports, "CouponDiscountType", { enumerable: true, get: function () { return coupon_entity_2.CouponDiscountType; } });
|
|
145
|
+
Object.defineProperty(exports, "CouponAppliesTo", { enumerable: true, get: function () { return coupon_entity_2.CouponAppliesTo; } });
|
|
146
|
+
Object.defineProperty(exports, "CouponOsTarget", { enumerable: true, get: function () { return coupon_entity_2.CouponOsTarget; } });
|
|
147
|
+
var coupon_store_entity_2 = require("./entities/coupon-store.entity");
|
|
148
|
+
Object.defineProperty(exports, "CouponStore", { enumerable: true, get: function () { return coupon_store_entity_2.CouponStore; } });
|
|
149
|
+
var coupon_product_entity_2 = require("./entities/coupon-product.entity");
|
|
150
|
+
Object.defineProperty(exports, "CouponProduct", { enumerable: true, get: function () { return coupon_product_entity_2.CouponProduct; } });
|
|
151
|
+
var coupon_user_entity_2 = require("./entities/coupon-user.entity");
|
|
152
|
+
Object.defineProperty(exports, "CouponUser", { enumerable: true, get: function () { return coupon_user_entity_2.CouponUser; } });
|
|
138
153
|
var osName_1 = require("./utils/enums/osName");
|
|
139
154
|
Object.defineProperty(exports, "OsName", { enumerable: true, get: function () { return osName_1.OsName; } });
|
|
140
155
|
var productApp_1 = require("./utils/enums/productApp");
|
|
@@ -195,6 +210,10 @@ function getDbModels() {
|
|
|
195
210
|
cart_entity_1.Cart,
|
|
196
211
|
cart_item_entity_1.CartItem,
|
|
197
212
|
cart_item_bundle_selection_entity_1.CartItemBundleSelection,
|
|
213
|
+
coupon_entity_1.Coupon,
|
|
214
|
+
coupon_store_entity_1.CouponStore,
|
|
215
|
+
coupon_product_entity_1.CouponProduct,
|
|
216
|
+
coupon_user_entity_1.CouponUser,
|
|
198
217
|
];
|
|
199
218
|
}
|
|
200
219
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;;AAmKA,kCAkEC;AAlOD,8DAAoD;AACpD,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAClD,wEAA6D;AAC7D,0EAA+D;AAG/D,gEAAsD;AACtD,0DAAgD;AAChD,wEAA6D;AAC7D,4EAAiE;AACjE,8DAAoD;AACpD,0EAA+D;AAC/D,8EAAmE;AACnE,4FAAgF;AAChF,sDAA4C;AAC5C,sEAA2D;AAC3D,4DAAkD;AAClD,4EAAiE;AACjE,wEAA6D;AAG7D,0DAAgD;AAChD,0EAA+D;AAG/D,kEAAwD;AACxD,8EAAmE;AACnE,8EAAmE;AACnE,4EAAiE;AACjE,0EAA+D;AAG/D,4DAAkD;AAClD,4EAAiE;AACjE,4EAAiE;AACjE,sFAA0E;AAG1E,oEAA0D;AAC1D,8EAAmE;AAGnE,8EAAmE;AACnE,4EAAiE;AACjE,4FAAgF;AAChF,wFAA4E;AAG5E,wDAA8C;AAC9C,kEAAuD;AACvD,oGAAuF;AAGvF,4DAAkD;AAClD,wEAA6D;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