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
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Status } from '../utils/enums/status';
|
|
3
|
-
import { VersionType } from '../utils/enums/versiontype';
|
|
4
|
-
import { OsName } from '../utils/enums/osName';
|
|
5
|
-
import { ProductApp } from '../utils/enums/productApp';
|
|
6
|
-
export declare class ApiKey extends Model {
|
|
7
|
-
hashedApiKey: string;
|
|
8
|
-
osName: OsName;
|
|
9
|
-
appName: ProductApp;
|
|
10
|
-
appVersion: string;
|
|
11
|
-
expiryDate: Date;
|
|
12
|
-
status: Status;
|
|
13
|
-
isReleased: boolean;
|
|
14
|
-
versionType: VersionType;
|
|
15
|
-
}
|
|
@@ -1,62 +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.ApiKey = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const status_1 = require("../utils/enums/status");
|
|
15
|
-
const versiontype_1 = require("../utils/enums/versiontype");
|
|
16
|
-
const osName_1 = require("../utils/enums/osName");
|
|
17
|
-
const productApp_1 = require("../utils/enums/productApp");
|
|
18
|
-
let ApiKey = class ApiKey extends sequelize_typescript_1.Model {
|
|
19
|
-
};
|
|
20
|
-
exports.ApiKey = ApiKey;
|
|
21
|
-
__decorate([
|
|
22
|
-
sequelize_typescript_1.Column,
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ApiKey.prototype, "hashedApiKey", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ENUM(...Object.values(osName_1.OsName)) }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ApiKey.prototype, "osName", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ENUM(...Object.values(productApp_1.ProductApp)) }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], ApiKey.prototype, "appName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
sequelize_typescript_1.Column,
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], ApiKey.prototype, "appVersion", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
sequelize_typescript_1.Column,
|
|
39
|
-
__metadata("design:type", Date)
|
|
40
|
-
], ApiKey.prototype, "expiryDate", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, sequelize_typescript_1.Column)({
|
|
43
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
44
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], ApiKey.prototype, "status", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], ApiKey.prototype, "isReleased", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, sequelize_typescript_1.Column)({
|
|
54
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(versiontype_1.VersionType)),
|
|
55
|
-
defaultValue: versiontype_1.VersionType.OPTIONAL,
|
|
56
|
-
}),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], ApiKey.prototype, "versionType", void 0);
|
|
59
|
-
exports.ApiKey = ApiKey = __decorate([
|
|
60
|
-
sequelize_typescript_1.Table
|
|
61
|
-
], ApiKey);
|
|
62
|
-
//# sourceMappingURL=apikey.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/apikey.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAsE;AACtE,kDAA+C;AAC/C,4DAAyD;AACzD,kDAA+C;AAC/C,0DAAuD;AAGhD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,4BAAK;CA8BhC,CAAA;AA9BY,wBAAM;AAET;IADP,6BAAM;;4CACsB;AAGrB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC,EAAE,CAAC;;sCACnC;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAU,CAAC,CAAC,EAAE,CAAC;;uCAClC;AAGpB;IADP,6BAAM;;0CACoB;AAGnB;IADP,6BAAM;8BACa,IAAI;0CAAC;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;;sCACqB;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;0CACtB;AAMpB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,yBAAW,CAAC,CAAC;QAClD,YAAY,EAAE,yBAAW,CAAC,QAAQ;KACnC,CAAC;;2CAC+B;iBA7BtB,MAAM;IADlB,4BAAK;GACO,MAAM,CA8BlB"}
|
|
@@ -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.Area = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const country_entity_1 = require("./country.entity");
|
|
15
|
-
let Area = class Area extends sequelize_typescript_1.Model {
|
|
16
|
-
};
|
|
17
|
-
exports.Area = Area;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
20
|
-
(0, sequelize_typescript_1.Column)({
|
|
21
|
-
allowNull: false,
|
|
22
|
-
validate: { notNull: { msg: 'County Id Required' } },
|
|
23
|
-
}),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], Area.prototype, "countryId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
sequelize_typescript_1.Column,
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], Area.prototype, "parentId", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
32
|
-
__metadata("design:type", country_entity_1.Country)
|
|
33
|
-
], Area.prototype, "country", void 0);
|
|
34
|
-
exports.Area = Area = __decorate([
|
|
35
|
-
sequelize_typescript_1.Table
|
|
36
|
-
], Area);
|
|
37
|
-
//# sourceMappingURL=area.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/area.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAM8B;AAC9B,qDAA2C;AAGpC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,4BAAK;CAa9B,CAAA;AAbY,oBAAI;AAMP;IALP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE,EAAE;KACrD,CAAC;;uCACwB;AAGlB;IADP,6BAAM;;sCACmB;AAGlB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;qCAAC;eAZd,IAAI;IADhB,4BAAK;GACO,IAAI,CAahB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Status } from '../utils/enums/status';
|
|
3
|
-
export declare class Brand extends Model {
|
|
4
|
-
nameEn: string;
|
|
5
|
-
nameAr: string;
|
|
6
|
-
descriptionEn?: string;
|
|
7
|
-
descriptionAr?: string;
|
|
8
|
-
logo?: string;
|
|
9
|
-
website?: string;
|
|
10
|
-
sortOrder: number;
|
|
11
|
-
status: Status;
|
|
12
|
-
}
|
|
@@ -1,56 +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.Brand = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const status_1 = require("../utils/enums/status");
|
|
15
|
-
let Brand = class Brand extends sequelize_typescript_1.Model {
|
|
16
|
-
};
|
|
17
|
-
exports.Brand = Brand;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], Brand.prototype, "nameEn", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], Brand.prototype, "nameAr", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Brand.prototype, "descriptionEn", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], Brand.prototype, "descriptionAr", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], Brand.prototype, "logo", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], Brand.prototype, "website", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], Brand.prototype, "sortOrder", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, sequelize_typescript_1.Column)({
|
|
48
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
49
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
50
|
-
}),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Brand.prototype, "status", void 0);
|
|
53
|
-
exports.Brand = Brand = __decorate([
|
|
54
|
-
sequelize_typescript_1.Table
|
|
55
|
-
], Brand);
|
|
56
|
-
//# sourceMappingURL=brand.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/brand.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA+E;AAC/E,kDAA+C;AAGxC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,4BAAK;CA2B/B,CAAA;AA3BY,sBAAK;AAER;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;qCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;qCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;mCACN;AAGd;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;sCACH;AAGjB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;wCACF;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;;qCACqB;gBA1BZ,KAAK;IADjB,4BAAK;GACO,KAAK,CA2BjB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Status } from '../utils/enums/status';
|
|
3
|
-
export declare class Category extends Model {
|
|
4
|
-
nameEn: string;
|
|
5
|
-
nameAr: string;
|
|
6
|
-
descriptionEn?: string;
|
|
7
|
-
descriptionAr?: string;
|
|
8
|
-
image?: string;
|
|
9
|
-
sortOrder: number;
|
|
10
|
-
status: Status;
|
|
11
|
-
parentId?: number;
|
|
12
|
-
parent?: Category;
|
|
13
|
-
children?: Category[];
|
|
14
|
-
}
|
|
@@ -1,65 +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.Category = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const status_1 = require("../utils/enums/status");
|
|
15
|
-
let Category = class Category extends sequelize_typescript_1.Model {
|
|
16
|
-
};
|
|
17
|
-
exports.Category = Category;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], Category.prototype, "nameEn", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], Category.prototype, "nameAr", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Category.prototype, "descriptionEn", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], Category.prototype, "descriptionAr", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], Category.prototype, "image", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], Category.prototype, "sortOrder", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, sequelize_typescript_1.Column)({
|
|
44
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
45
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Category.prototype, "status", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, sequelize_typescript_1.ForeignKey)(() => Category),
|
|
51
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], Category.prototype, "parentId", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, sequelize_typescript_1.BelongsTo)(() => Category, { foreignKey: 'parentId', as: 'parent' }),
|
|
56
|
-
__metadata("design:type", Category)
|
|
57
|
-
], Category.prototype, "parent", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, sequelize_typescript_1.HasMany)(() => Category, { foreignKey: 'parentId', as: 'children' }),
|
|
60
|
-
__metadata("design:type", Array)
|
|
61
|
-
], Category.prototype, "children", void 0);
|
|
62
|
-
exports.Category = Category = __decorate([
|
|
63
|
-
sequelize_typescript_1.Table
|
|
64
|
-
], Category);
|
|
65
|
-
//# sourceMappingURL=category.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"category.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/category.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAQ8B;AAC9B,kDAA+C;AAGxC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAK;CAkClC,CAAA;AAlCY,4BAAQ;AAEX;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;wCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;wCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;uCACL;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;2CACF;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;;wCACqB;AAIf;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;IAC1B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;0CACF;AAGlB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;8BACnD,QAAQ;wCAAC;AAGlB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC;;0CACtC;mBAjCnB,QAAQ;IADpB,4BAAK;GACO,QAAQ,CAkCpB"}
|
|
@@ -1,40 +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.Country = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
let Country = class Country extends sequelize_typescript_1.Model {
|
|
15
|
-
};
|
|
16
|
-
exports.Country = Country;
|
|
17
|
-
__decorate([
|
|
18
|
-
sequelize_typescript_1.Column,
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Country.prototype, "flagIcon", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
sequelize_typescript_1.Column,
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Country.prototype, "isoCode", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
sequelize_typescript_1.Column,
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Country.prototype, "phoneExt", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
sequelize_typescript_1.Column,
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Country.prototype, "currency", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
sequelize_typescript_1.Column,
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], Country.prototype, "exchangeRateToKwd", void 0);
|
|
37
|
-
exports.Country = Country = __decorate([
|
|
38
|
-
sequelize_typescript_1.Table
|
|
39
|
-
], Country);
|
|
40
|
-
//# sourceMappingURL=country.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAGrD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CAWjC,CAAA;AAXY,0BAAO;AAEV;IADP,6BAAM;;yCACkB;AAEjB;IADP,6BAAM;;wCACiB;AAEhB;IADP,6BAAM;;yCACkB;AAEjB;IADP,6BAAM;;yCACkB;AAEjB;IADP,6BAAM;;kDAC2B;kBAVvB,OAAO;IADnB,4BAAK;GACO,OAAO,CAWnB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Inventory } from './inventory.entity';
|
|
3
|
-
import { Product } from './product.entity';
|
|
4
|
-
import { ProductVariant } from './product-variant.entity';
|
|
5
|
-
export declare class InventoryStock extends Model {
|
|
6
|
-
inventoryId: number;
|
|
7
|
-
productId: number;
|
|
8
|
-
productVariantId?: number;
|
|
9
|
-
physicalQuantity: number;
|
|
10
|
-
reservedQuantity: number;
|
|
11
|
-
availableFromVendor: boolean;
|
|
12
|
-
lowStockThreshold?: number;
|
|
13
|
-
inventory: Inventory;
|
|
14
|
-
product: Product;
|
|
15
|
-
variant?: ProductVariant;
|
|
16
|
-
}
|
|
@@ -1,66 +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.InventoryStock = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const inventory_entity_1 = require("./inventory.entity");
|
|
15
|
-
const product_entity_1 = require("./product.entity");
|
|
16
|
-
const product_variant_entity_1 = require("./product-variant.entity");
|
|
17
|
-
let InventoryStock = class InventoryStock extends sequelize_typescript_1.Model {
|
|
18
|
-
};
|
|
19
|
-
exports.InventoryStock = InventoryStock;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, sequelize_typescript_1.ForeignKey)(() => inventory_entity_1.Inventory),
|
|
22
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], InventoryStock.prototype, "inventoryId", 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
|
-
], InventoryStock.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
|
-
], InventoryStock.prototype, "productVariantId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], InventoryStock.prototype, "physicalQuantity", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], InventoryStock.prototype, "reservedQuantity", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
45
|
-
__metadata("design:type", Boolean)
|
|
46
|
-
], InventoryStock.prototype, "availableFromVendor", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], InventoryStock.prototype, "lowStockThreshold", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, sequelize_typescript_1.BelongsTo)(() => inventory_entity_1.Inventory),
|
|
53
|
-
__metadata("design:type", inventory_entity_1.Inventory)
|
|
54
|
-
], InventoryStock.prototype, "inventory", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
|
|
57
|
-
__metadata("design:type", product_entity_1.Product)
|
|
58
|
-
], InventoryStock.prototype, "product", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, sequelize_typescript_1.BelongsTo)(() => product_variant_entity_1.ProductVariant),
|
|
61
|
-
__metadata("design:type", product_variant_entity_1.ProductVariant)
|
|
62
|
-
], InventoryStock.prototype, "variant", void 0);
|
|
63
|
-
exports.InventoryStock = InventoryStock = __decorate([
|
|
64
|
-
sequelize_typescript_1.Table
|
|
65
|
-
], InventoryStock);
|
|
66
|
-
//# sourceMappingURL=inventory-stock.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-stock.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/inventory-stock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,yDAA+C;AAC/C,qDAA2C;AAC3C,qEAA0D;AAGnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAyCxC,CAAA;AAzCY,wCAAc;AAGjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,4BAAS,CAAC;IAC3B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mDACD;AAIpB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;iDACH;AAKlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;wDACM;AAI1B;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;wDACK;AAIzB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;wDACK;AAMzB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;2DACK;AAG7B;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;yDACO;AAK3B;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,CAAC;8BACR,4BAAS;iDAAC;AAGrB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;+CAAC;AAGjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BACd,uCAAc;+CAAC;yBAxCtB,cAAc;IAD1B,4BAAK;GACO,cAAc,CAyC1B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { InventoryStock } from './inventory-stock.entity';
|
|
3
|
-
import { Store } from './store.entity';
|
|
4
|
-
import { Status } from '../utils/enums/status';
|
|
5
|
-
export declare class Inventory extends Model {
|
|
6
|
-
nameEn: string;
|
|
7
|
-
nameAr: string;
|
|
8
|
-
addressEn?: string;
|
|
9
|
-
addressAr?: string;
|
|
10
|
-
contactPhone?: string;
|
|
11
|
-
contactEmail?: string;
|
|
12
|
-
status: Status;
|
|
13
|
-
stocks: InventoryStock[];
|
|
14
|
-
stores: Store[];
|
|
15
|
-
}
|
|
@@ -1,63 +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.Inventory = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const inventory_stock_entity_1 = require("./inventory-stock.entity");
|
|
15
|
-
const store_inventory_entity_1 = require("./store-inventory.entity");
|
|
16
|
-
const store_entity_1 = require("./store.entity");
|
|
17
|
-
const status_1 = require("../utils/enums/status");
|
|
18
|
-
let Inventory = class Inventory extends sequelize_typescript_1.Model {
|
|
19
|
-
};
|
|
20
|
-
exports.Inventory = Inventory;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Inventory.prototype, "nameEn", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Inventory.prototype, "nameAr", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Inventory.prototype, "addressEn", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Inventory.prototype, "addressAr", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Inventory.prototype, "contactPhone", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], Inventory.prototype, "contactEmail", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, sequelize_typescript_1.Column)({
|
|
47
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
48
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
49
|
-
}),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], Inventory.prototype, "status", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, sequelize_typescript_1.HasMany)(() => inventory_stock_entity_1.InventoryStock),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], Inventory.prototype, "stocks", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, sequelize_typescript_1.BelongsToMany)(() => store_entity_1.Store, () => store_inventory_entity_1.StoreInventory),
|
|
58
|
-
__metadata("design:type", Array)
|
|
59
|
-
], Inventory.prototype, "stores", void 0);
|
|
60
|
-
exports.Inventory = Inventory = __decorate([
|
|
61
|
-
sequelize_typescript_1.Table
|
|
62
|
-
], Inventory);
|
|
63
|
-
//# sourceMappingURL=inventory.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/inventory.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,qEAA0D;AAC1D,qEAA0D;AAC1D,iDAAuC;AACvC,kDAA+C;AAGxC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,4BAAK;CAgCnC,CAAA;AAhCY,8BAAS;AAEZ;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CACtB;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CACtB;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CACE;AAGtB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CACE;AAMtB;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;;yCACqB;AAKf;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;;yCACG;AAGzB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,GAAG,EAAE,CAAC,uCAAc,CAAC;;yCACzB;oBA/Bb,SAAS;IADrB,4BAAK;GACO,SAAS,CAgCrB"}
|
|
@@ -1,38 +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.Permission = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const sys_role_entity_1 = require("./sys.role.entity");
|
|
15
|
-
const role_permission_entity_1 = require("./role-permission.entity");
|
|
16
|
-
let Permission = class Permission extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
exports.Permission = Permission;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], Permission.prototype, "name", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], Permission.prototype, "displayName", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], Permission.prototype, "group", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, sequelize_typescript_1.BelongsToMany)(() => sys_role_entity_1.SysRole, () => role_permission_entity_1.RolePermission),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], Permission.prototype, "roles", void 0);
|
|
35
|
-
exports.Permission = Permission = __decorate([
|
|
36
|
-
sequelize_typescript_1.Table
|
|
37
|
-
], Permission);
|
|
38
|
-
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAK8B;AAC9B,uDAA4C;AAC5C,qEAA0D;AAGnD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CAepC,CAAA;AAfY,gCAAU;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACtB;AAIb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;+CACD;AAIpB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACP;AAGd;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,yBAAO,EAAE,GAAG,EAAE,CAAC,uCAAc,CAAC;;yCAC1B;qBAdd,UAAU;IADtB,4BAAK;GACO,UAAU,CAetB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Product } from './product.entity';
|
|
3
|
-
export declare enum MediaType {
|
|
4
|
-
IMAGE = "image",
|
|
5
|
-
VIDEO = "video"
|
|
6
|
-
}
|
|
7
|
-
export declare class ProductMedia extends Model {
|
|
8
|
-
productId: number;
|
|
9
|
-
url: string;
|
|
10
|
-
type: MediaType;
|
|
11
|
-
isDefault: boolean;
|
|
12
|
-
sortOrder: number;
|
|
13
|
-
altEn?: string;
|
|
14
|
-
altAr?: string;
|
|
15
|
-
product: Product;
|
|
16
|
-
}
|