tt-entities 0.0.18 → 0.0.19
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/dist/libs/tatayab-entities-library/src/entities/apikey.entity.d.ts +0 -15
- package/dist/libs/tatayab-entities-library/src/entities/apikey.entity.js +0 -62
- package/dist/libs/tatayab-entities-library/src/entities/apikey.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/area.entity.d.ts +0 -7
- package/dist/libs/tatayab-entities-library/src/entities/area.entity.js +0 -37
- package/dist/libs/tatayab-entities-library/src/entities/area.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/brand.entity.d.ts +0 -12
- package/dist/libs/tatayab-entities-library/src/entities/brand.entity.js +0 -56
- package/dist/libs/tatayab-entities-library/src/entities/brand.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/category.entity.d.ts +0 -14
- package/dist/libs/tatayab-entities-library/src/entities/category.entity.js +0 -65
- package/dist/libs/tatayab-entities-library/src/entities/category.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/country.entity.d.ts +0 -8
- package/dist/libs/tatayab-entities-library/src/entities/country.entity.js +0 -40
- package/dist/libs/tatayab-entities-library/src/entities/country.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/inventory-stock.entity.d.ts +0 -16
- package/dist/libs/tatayab-entities-library/src/entities/inventory-stock.entity.js +0 -66
- package/dist/libs/tatayab-entities-library/src/entities/inventory-stock.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/inventory.entity.d.ts +0 -15
- package/dist/libs/tatayab-entities-library/src/entities/inventory.entity.js +0 -63
- package/dist/libs/tatayab-entities-library/src/entities/inventory.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/permission.entity.d.ts +0 -8
- package/dist/libs/tatayab-entities-library/src/entities/permission.entity.js +0 -38
- package/dist/libs/tatayab-entities-library/src/entities/permission.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/product-media.entity.d.ts +0 -16
- package/dist/libs/tatayab-entities-library/src/entities/product-media.entity.js +0 -62
- package/dist/libs/tatayab-entities-library/src/entities/product-media.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.d.ts +0 -11
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.js +0 -56
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/product-tag.entity.d.ts +0 -5
- package/dist/libs/tatayab-entities-library/src/entities/product-tag.entity.js +0 -32
- package/dist/libs/tatayab-entities-library/src/entities/product-tag.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/product-variant-option.entity.d.ts +0 -5
- package/dist/libs/tatayab-entities-library/src/entities/product-variant-option.entity.js +0 -32
- package/dist/libs/tatayab-entities-library/src/entities/product-variant-option.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/product-variant.entity.d.ts +0 -15
- package/dist/libs/tatayab-entities-library/src/entities/product-variant.entity.js +0 -64
- package/dist/libs/tatayab-entities-library/src/entities/product-variant.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.d.ts +0 -29
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.js +0 -110
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.d.ts +0 -25
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.js +0 -88
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order.entity.d.ts +0 -27
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order.entity.js +0 -108
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/role-permission.entity.d.ts +0 -5
- package/dist/libs/tatayab-entities-library/src/entities/role-permission.entity.js +0 -32
- package/dist/libs/tatayab-entities-library/src/entities/role-permission.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/stock-movement.entity.d.ts +0 -23
- package/dist/libs/tatayab-entities-library/src/entities/stock-movement.entity.js +0 -92
- package/dist/libs/tatayab-entities-library/src/entities/stock-movement.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/store-inventory.entity.d.ts +0 -6
- package/dist/libs/tatayab-entities-library/src/entities/store-inventory.entity.js +0 -36
- package/dist/libs/tatayab-entities-library/src/entities/store-inventory.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/store.entity.d.ts +0 -21
- package/dist/libs/tatayab-entities-library/src/entities/store.entity.js +0 -86
- package/dist/libs/tatayab-entities-library/src/entities/store.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.d.ts +0 -7
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.js +0 -34
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.d.ts +0 -16
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.js +0 -70
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/tag.entity.d.ts +0 -12
- package/dist/libs/tatayab-entities-library/src/entities/tag.entity.js +0 -54
- package/dist/libs/tatayab-entities-library/src/entities/tag.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/translation.entity.d.ts +0 -9
- package/dist/libs/tatayab-entities-library/src/entities/translation.entity.js +0 -44
- package/dist/libs/tatayab-entities-library/src/entities/translation.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/user.entity.d.ts +0 -27
- package/dist/libs/tatayab-entities-library/src/entities/user.entity.js +0 -114
- package/dist/libs/tatayab-entities-library/src/entities/user.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/userDevice.entity.d.ts +0 -11
- package/dist/libs/tatayab-entities-library/src/entities/userDevice.entity.js +0 -54
- package/dist/libs/tatayab-entities-library/src/entities/userDevice.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/variant-option.entity.d.ts +0 -11
- package/dist/libs/tatayab-entities-library/src/entities/variant-option.entity.js +0 -50
- package/dist/libs/tatayab-entities-library/src/entities/variant-option.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/variant-type.entity.d.ts +0 -7
- package/dist/libs/tatayab-entities-library/src/entities/variant-type.entity.js +0 -37
- package/dist/libs/tatayab-entities-library/src/entities/variant-type.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/vendor-product.entity.d.ts +0 -19
- package/dist/libs/tatayab-entities-library/src/entities/vendor-product.entity.js +0 -78
- package/dist/libs/tatayab-entities-library/src/entities/vendor-product.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/vendor.entity.d.ts +0 -19
- package/dist/libs/tatayab-entities-library/src/entities/vendor.entity.js +0 -82
- package/dist/libs/tatayab-entities-library/src/entities/vendor.entity.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/index.d.ts +0 -39
- package/dist/libs/tatayab-entities-library/src/index.js +0 -143
- package/dist/libs/tatayab-entities-library/src/index.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/gender.d.ts +0 -5
- package/dist/libs/tatayab-entities-library/src/utils/enums/gender.js +0 -10
- package/dist/libs/tatayab-entities-library/src/utils/enums/gender.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/language.d.ts +0 -4
- package/dist/libs/tatayab-entities-library/src/utils/enums/language.js +0 -9
- package/dist/libs/tatayab-entities-library/src/utils/enums/language.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/osName.d.ts +0 -5
- package/dist/libs/tatayab-entities-library/src/utils/enums/osName.js +0 -10
- package/dist/libs/tatayab-entities-library/src/utils/enums/osName.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/productApp.d.ts +0 -4
- package/dist/libs/tatayab-entities-library/src/utils/enums/productApp.js +0 -9
- package/dist/libs/tatayab-entities-library/src/utils/enums/productApp.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.d.ts +0 -8
- package/dist/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.js +0 -13
- package/dist/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/status.d.ts +0 -4
- package/dist/libs/tatayab-entities-library/src/utils/enums/status.js +0 -9
- package/dist/libs/tatayab-entities-library/src/utils/enums/status.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/stockMovementType.d.ts +0 -11
- package/dist/libs/tatayab-entities-library/src/utils/enums/stockMovementType.js +0 -16
- package/dist/libs/tatayab-entities-library/src/utils/enums/stockMovementType.js.map +0 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/versiontype.d.ts +0 -4
- package/dist/libs/tatayab-entities-library/src/utils/enums/versiontype.js +0 -9
- package/dist/libs/tatayab-entities-library/src/utils/enums/versiontype.js.map +0 -1
- package/dist/src/app.module.d.ts +0 -2
- package/dist/src/app.module.js +0 -43
- package/dist/src/app.module.js.map +0 -1
- package/dist/src/main.d.ts +0 -1
- package/dist/src/main.js.map +0 -1
- package/dist/test/app.e2e-spec.d.ts +0 -1
- package/dist/test/app.e2e-spec.js +0 -22
- package/dist/test/app.e2e-spec.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
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.Tag = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const product_entity_1 = require("./product.entity");
|
|
15
|
-
const product_tag_entity_1 = require("./product-tag.entity");
|
|
16
|
-
const status_1 = require("../utils/enums/status");
|
|
17
|
-
let Tag = class Tag extends sequelize_typescript_1.Model {
|
|
18
|
-
};
|
|
19
|
-
exports.Tag = Tag;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], Tag.prototype, "slug", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], Tag.prototype, "nameEn", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], Tag.prototype, "nameAr", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], Tag.prototype, "color", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], Tag.prototype, "sortOrder", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({
|
|
42
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
43
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], Tag.prototype, "status", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, sequelize_typescript_1.BelongsToMany)(() => product_entity_1.Product, () => product_tag_entity_1.ProductTag),
|
|
49
|
-
__metadata("design:type", Array)
|
|
50
|
-
], Tag.prototype, "products", void 0);
|
|
51
|
-
exports.Tag = Tag = __decorate([
|
|
52
|
-
sequelize_typescript_1.Table
|
|
53
|
-
], Tag);
|
|
54
|
-
//# sourceMappingURL=tag.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/tag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAM8B;AAC9B,qDAA2C;AAC3C,6DAAkD;AAClD,kDAA+C;AAGxC,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,4BAAK;CAyB7B,CAAA;AAzBY,kBAAG;AAEN;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;iCACtB;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mCACN;AAIf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;kCACL;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;sCACF;AAMlB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;mCACqB;AAGf;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,GAAG,EAAE,CAAC,+BAAU,CAAC;;qCACnB;cAxBjB,GAAG;IADf,4BAAK;GACO,GAAG,CAyBf"}
|
|
@@ -1,44 +0,0 @@
|
|
|
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.Translation = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
let Translation = class Translation extends sequelize_typescript_1.Model {
|
|
15
|
-
};
|
|
16
|
-
exports.Translation = Translation;
|
|
17
|
-
__decorate([
|
|
18
|
-
sequelize_typescript_1.Column,
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Translation.prototype, "text", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
sequelize_typescript_1.Column,
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Translation.prototype, "shortDesc", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
sequelize_typescript_1.Column,
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Translation.prototype, "longDesc", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
sequelize_typescript_1.Column,
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Translation.prototype, "locale", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
sequelize_typescript_1.Column,
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Translation.prototype, "entityId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
sequelize_typescript_1.Column,
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Translation.prototype, "entityName", void 0);
|
|
41
|
-
exports.Translation = Translation = __decorate([
|
|
42
|
-
sequelize_typescript_1.Table
|
|
43
|
-
], Translation);
|
|
44
|
-
//# sourceMappingURL=translation.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAGrD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAK;CAarC,CAAA;AAbY,kCAAW;AAEd;IADP,6BAAM;;yCACc;AAEb;IADP,6BAAM;;8CACoB;AAEnB;IADP,6BAAM;;6CACmB;AAElB;IADP,6BAAM;;2CACgB;AAEf;IADP,6BAAM;;6CACkB;AAEjB;IADP,6BAAM;;+CACoB;sBAZhB,WAAW;IADvB,4BAAK;GACO,WAAW,CAavB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Status } from '../utils/enums/status';
|
|
3
|
-
import { Language } from '../utils/enums/language';
|
|
4
|
-
import { Country } from './country.entity';
|
|
5
|
-
import { Gender } from '../utils/enums/gender';
|
|
6
|
-
export declare class User extends Model {
|
|
7
|
-
firstName?: string;
|
|
8
|
-
lastName?: string;
|
|
9
|
-
password: string;
|
|
10
|
-
status: Status;
|
|
11
|
-
email: string;
|
|
12
|
-
phone?: string;
|
|
13
|
-
phoneExt?: string;
|
|
14
|
-
birthday?: Date;
|
|
15
|
-
facebookId?: string;
|
|
16
|
-
googleId?: string;
|
|
17
|
-
appleId?: string;
|
|
18
|
-
preferredLanguage: Language;
|
|
19
|
-
preferredCountryId?: number;
|
|
20
|
-
profilePic?: string;
|
|
21
|
-
lastLogin: Date;
|
|
22
|
-
isBlocked: boolean;
|
|
23
|
-
isVerified: boolean;
|
|
24
|
-
refCode: string;
|
|
25
|
-
gender: Gender;
|
|
26
|
-
country: Country;
|
|
27
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
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.User = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const status_1 = require("../utils/enums/status");
|
|
15
|
-
const language_1 = require("../utils/enums/language");
|
|
16
|
-
const country_entity_1 = require("./country.entity");
|
|
17
|
-
const gender_1 = require("../utils/enums/gender");
|
|
18
|
-
let User = class User extends sequelize_typescript_1.Model {
|
|
19
|
-
};
|
|
20
|
-
exports.User = User;
|
|
21
|
-
__decorate([
|
|
22
|
-
sequelize_typescript_1.Column,
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], User.prototype, "firstName", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
sequelize_typescript_1.Column,
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], User.prototype, "lastName", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
sequelize_typescript_1.Column,
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], User.prototype, "password", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, sequelize_typescript_1.Column)({
|
|
35
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
36
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], User.prototype, "status", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, validate: { isEmail: { msg: 'Invalid Email' } } }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], User.prototype, "email", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
sequelize_typescript_1.Column,
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], User.prototype, "phone", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
sequelize_typescript_1.Column,
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], User.prototype, "phoneExt", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
sequelize_typescript_1.Column,
|
|
54
|
-
__metadata("design:type", Date)
|
|
55
|
-
], User.prototype, "birthday", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
sequelize_typescript_1.Column,
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], User.prototype, "facebookId", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
sequelize_typescript_1.Column,
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], User.prototype, "googleId", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
sequelize_typescript_1.Column,
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], User.prototype, "appleId", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, sequelize_typescript_1.Column)({
|
|
70
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(language_1.Language)),
|
|
71
|
-
defaultValue: language_1.Language.ENGLISH,
|
|
72
|
-
}),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], User.prototype, "preferredLanguage", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
77
|
-
sequelize_typescript_1.Column,
|
|
78
|
-
__metadata("design:type", Number)
|
|
79
|
-
], User.prototype, "preferredCountryId", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
sequelize_typescript_1.Column,
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], User.prototype, "profilePic", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
sequelize_typescript_1.Column,
|
|
86
|
-
__metadata("design:type", Date)
|
|
87
|
-
], User.prototype, "lastLogin", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
90
|
-
__metadata("design:type", Boolean)
|
|
91
|
-
], User.prototype, "isBlocked", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
94
|
-
__metadata("design:type", Boolean)
|
|
95
|
-
], User.prototype, "isVerified", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
sequelize_typescript_1.Column,
|
|
98
|
-
__metadata("design:type", String)
|
|
99
|
-
], User.prototype, "refCode", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, sequelize_typescript_1.Column)({
|
|
102
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(gender_1.Gender)),
|
|
103
|
-
defaultValue: gender_1.Gender.PREFER_NOT_TO_SAY,
|
|
104
|
-
}),
|
|
105
|
-
__metadata("design:type", String)
|
|
106
|
-
], User.prototype, "gender", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
109
|
-
__metadata("design:type", country_entity_1.Country)
|
|
110
|
-
], User.prototype, "country", void 0);
|
|
111
|
-
exports.User = User = __decorate([
|
|
112
|
-
sequelize_typescript_1.Table
|
|
113
|
-
], User);
|
|
114
|
-
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,kDAA+C;AAC/C,sDAAmD;AACnD,qDAA2C;AAC3C,kDAA+C;AAGxC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,4BAAK;CAsE9B,CAAA;AAtEY,oBAAI;AAEP;IADP,6BAAM;;uCACoB;AAGnB;IADP,6BAAM;;sCACmB;AAGlB;IADP,6BAAM;;sCACkB;AAMjB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;oCACqB;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC;;mCACxD;AAGd;IADP,6BAAM;;mCACgB;AAGf;IADP,6BAAM;;sCACmB;AAGlB;IADP,6BAAM;8BACY,IAAI;sCAAC;AAGhB;IADP,6BAAM;;wCACqB;AAGpB;IADP,6BAAM;;sCACmB;AAGlB;IADP,6BAAM;;qCACkB;AAMjB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAQ,CAAC,CAAC;QAC/C,YAAY,EAAE,mBAAQ,CAAC,OAAO;KAC/B,CAAC;;+CACkC;AAI5B;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,6BAAM;;gDAC6B;AAG5B;IADP,6BAAM;;wCACqB;AAGpB;IADP,6BAAM;8BACY,IAAI;uCAAC;AAGhB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;uCACvB;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;wCACJ;AAGpB;IADP,6BAAM;;qCACiB;AAMhB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,iBAAiB;KACvC,CAAC;;oCACqB;AAGf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;qCAAC;eArEd,IAAI;IADhB,4BAAK;GACO,IAAI,CAsEhB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { User } from './user.entity';
|
|
3
|
-
import { Status } from '../utils/enums/status';
|
|
4
|
-
export declare class UserDevice extends Model {
|
|
5
|
-
userId: number;
|
|
6
|
-
deviceId?: string;
|
|
7
|
-
fcmToken?: string;
|
|
8
|
-
status: Status;
|
|
9
|
-
osSystem: string;
|
|
10
|
-
user: User;
|
|
11
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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.UserDevice = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
15
|
-
const status_1 = require("../utils/enums/status");
|
|
16
|
-
const osName_1 = require("../utils/enums/osName");
|
|
17
|
-
let UserDevice = class UserDevice extends sequelize_typescript_1.Model {
|
|
18
|
-
};
|
|
19
|
-
exports.UserDevice = UserDevice;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.User),
|
|
22
|
-
sequelize_typescript_1.Column,
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], UserDevice.prototype, "userId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
sequelize_typescript_1.Column,
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], UserDevice.prototype, "deviceId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
sequelize_typescript_1.Column,
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], UserDevice.prototype, "fcmToken", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, sequelize_typescript_1.Column)({
|
|
35
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
36
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], UserDevice.prototype, "status", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({
|
|
42
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(osName_1.OsName)),
|
|
43
|
-
allowNull: true,
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], UserDevice.prototype, "osSystem", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.User),
|
|
49
|
-
__metadata("design:type", user_entity_1.User)
|
|
50
|
-
], UserDevice.prototype, "user", void 0);
|
|
51
|
-
exports.UserDevice = UserDevice = __decorate([
|
|
52
|
-
sequelize_typescript_1.Table
|
|
53
|
-
], UserDevice);
|
|
54
|
-
//# sourceMappingURL=userDevice.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userDevice.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/userDevice.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAa8B;AAC9B,+CAAqC;AACrC,kDAA+C;AAC/C,kDAA+C;AAGxC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CAqBpC,CAAA;AArBY,gCAAU;AAGb;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACtB,6BAAM;;0CACgB;AAEf;IADP,6BAAM;;4CACmB;AAElB;IADP,6BAAM;;4CACmB;AAKlB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;0CACqB;AAMf;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,SAAS,EAAE,IAAI;KAChB,CAAC;;4CACuB;AAEjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;8BACR,kBAAI;wCAAC;qBApBR,UAAU;IADtB,4BAAK;GACO,UAAU,CAqBtB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { VariantType } from './variant-type.entity';
|
|
3
|
-
import { Status } from '../utils/enums/status';
|
|
4
|
-
export declare class VariantOption extends Model {
|
|
5
|
-
variantTypeId: number;
|
|
6
|
-
nameEn: string;
|
|
7
|
-
nameAr: string;
|
|
8
|
-
sortOrder: number;
|
|
9
|
-
status: Status;
|
|
10
|
-
variantType: VariantType;
|
|
11
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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.VariantOption = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const variant_type_entity_1 = require("./variant-type.entity");
|
|
15
|
-
const status_1 = require("../utils/enums/status");
|
|
16
|
-
let VariantOption = class VariantOption extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
exports.VariantOption = VariantOption;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, sequelize_typescript_1.ForeignKey)(() => variant_type_entity_1.VariantType),
|
|
21
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], VariantOption.prototype, "variantTypeId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], VariantOption.prototype, "nameEn", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], VariantOption.prototype, "nameAr", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], VariantOption.prototype, "sortOrder", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, sequelize_typescript_1.Column)({
|
|
38
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
39
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
40
|
-
}),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], VariantOption.prototype, "status", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, sequelize_typescript_1.BelongsTo)(() => variant_type_entity_1.VariantType),
|
|
45
|
-
__metadata("design:type", variant_type_entity_1.VariantType)
|
|
46
|
-
], VariantOption.prototype, "variantType", void 0);
|
|
47
|
-
exports.VariantOption = VariantOption = __decorate([
|
|
48
|
-
sequelize_typescript_1.Table
|
|
49
|
-
], VariantOption);
|
|
50
|
-
//# sourceMappingURL=variant-option.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variant-option.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/variant-option.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,+DAAoD;AACpD,kDAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CAsBvC,CAAA;AAtBY,sCAAa;AAGhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;IAC7B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;oDACC;AAGtB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;gDACF;AAMlB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;6CACqB;AAGf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;8BACR,iCAAW;kDAAC;wBArBtB,aAAa;IADzB,4BAAK;GACO,aAAa,CAsBzB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
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.VariantType = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const status_1 = require("../utils/enums/status");
|
|
15
|
-
const sequelize_typescript_2 = require("sequelize-typescript");
|
|
16
|
-
let VariantType = class VariantType extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
exports.VariantType = VariantType;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], VariantType.prototype, "nameEn", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], VariantType.prototype, "nameAr", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, sequelize_typescript_1.Column)({
|
|
29
|
-
type: sequelize_typescript_2.DataType.ENUM(...Object.values(status_1.Status)),
|
|
30
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
31
|
-
}),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], VariantType.prototype, "status", void 0);
|
|
34
|
-
exports.VariantType = VariantType = __decorate([
|
|
35
|
-
sequelize_typescript_1.Table
|
|
36
|
-
], VariantType);
|
|
37
|
-
//# sourceMappingURL=variant-type.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variant-type.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/variant-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqE;AACrE,kDAA+C;AAC/C,+DAAgD;AAGzC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAK;CAYrC,CAAA;AAZY,kCAAW;AAEd;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2CACN;AAMf;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;2CACqB;sBAXZ,WAAW;IADvB,4BAAK;GACO,WAAW,CAYvB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Vendor } from './vendor.entity';
|
|
3
|
-
import { Product } from './product.entity';
|
|
4
|
-
import { ProductVariant } from './product-variant.entity';
|
|
5
|
-
import { Status } from '../utils/enums/status';
|
|
6
|
-
export declare class VendorProduct extends Model {
|
|
7
|
-
vendorId: number;
|
|
8
|
-
productId: number;
|
|
9
|
-
productVariantId?: number;
|
|
10
|
-
costPrice: number;
|
|
11
|
-
vendorSku?: string;
|
|
12
|
-
leadTimeDays?: number;
|
|
13
|
-
moq: number;
|
|
14
|
-
isPreferred: boolean;
|
|
15
|
-
status: Status;
|
|
16
|
-
vendor: Vendor;
|
|
17
|
-
product: Product;
|
|
18
|
-
variant?: ProductVariant;
|
|
19
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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.VendorProduct = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const vendor_entity_1 = require("./vendor.entity");
|
|
15
|
-
const product_entity_1 = require("./product.entity");
|
|
16
|
-
const product_variant_entity_1 = require("./product-variant.entity");
|
|
17
|
-
const status_1 = require("../utils/enums/status");
|
|
18
|
-
let VendorProduct = class VendorProduct extends sequelize_typescript_1.Model {
|
|
19
|
-
};
|
|
20
|
-
exports.VendorProduct = VendorProduct;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, sequelize_typescript_1.ForeignKey)(() => vendor_entity_1.Vendor),
|
|
23
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], VendorProduct.prototype, "vendorId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.ForeignKey)(() => product_entity_1.Product),
|
|
28
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], VendorProduct.prototype, "productId", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, sequelize_typescript_1.ForeignKey)(() => product_variant_entity_1.ProductVariant),
|
|
33
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], VendorProduct.prototype, "productVariantId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], VendorProduct.prototype, "costPrice", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], VendorProduct.prototype, "vendorSku", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], VendorProduct.prototype, "leadTimeDays", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 1 }),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], VendorProduct.prototype, "moq", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
54
|
-
__metadata("design:type", Boolean)
|
|
55
|
-
], VendorProduct.prototype, "isPreferred", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, sequelize_typescript_1.Column)({
|
|
58
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
59
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
60
|
-
}),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], VendorProduct.prototype, "status", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, sequelize_typescript_1.BelongsTo)(() => vendor_entity_1.Vendor),
|
|
65
|
-
__metadata("design:type", vendor_entity_1.Vendor)
|
|
66
|
-
], VendorProduct.prototype, "vendor", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
|
|
69
|
-
__metadata("design:type", product_entity_1.Product)
|
|
70
|
-
], VendorProduct.prototype, "product", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, sequelize_typescript_1.BelongsTo)(() => product_variant_entity_1.ProductVariant),
|
|
73
|
-
__metadata("design:type", product_variant_entity_1.ProductVariant)
|
|
74
|
-
], VendorProduct.prototype, "variant", void 0);
|
|
75
|
-
exports.VendorProduct = VendorProduct = __decorate([
|
|
76
|
-
sequelize_typescript_1.Table
|
|
77
|
-
], VendorProduct);
|
|
78
|
-
//# sourceMappingURL=vendor-product.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vendor-product.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/vendor-product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,mDAAyC;AACzC,qDAA2C;AAC3C,qEAA0D;AAC1D,kDAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CAkDvC,CAAA;AAlDY,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;AAKlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;uDACM;AAI1B;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;gDAClC;AAIlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;gDACD;AAInB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;mDACE;AAItB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;0CACR;AAIZ;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;kDACH;AAMrB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;6CACqB;AAKf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;8BACR,sBAAM;6CAAC;AAGf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;8CAAC;AAGjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BACd,uCAAc;8CAAC;wBAjDtB,aAAa;IADzB,4BAAK;GACO,aAAa,CAkDzB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Country } from './country.entity';
|
|
3
|
-
import { Status } from '../utils/enums/status';
|
|
4
|
-
export declare class Vendor extends Model {
|
|
5
|
-
nameEn: string;
|
|
6
|
-
nameAr: string;
|
|
7
|
-
contactPerson?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
phone?: string;
|
|
10
|
-
addressEn?: string;
|
|
11
|
-
addressAr?: string;
|
|
12
|
-
countryId?: number;
|
|
13
|
-
taxNumber?: string;
|
|
14
|
-
commercialRegNumber?: string;
|
|
15
|
-
paymentTermsDays: number;
|
|
16
|
-
notes?: string;
|
|
17
|
-
status: Status;
|
|
18
|
-
country: Country;
|
|
19
|
-
}
|