tt-entities 0.0.7 → 0.0.9
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/src/entities/apikey.entity.d.ts +1 -2
- package/dist/libs/tatayab-entities-library/src/entities/apikey.entity.js +3 -10
- package/dist/libs/tatayab-entities-library/src/entities/apikey.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/area.entity.js +0 -3
- package/dist/libs/tatayab-entities-library/src/entities/area.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/country.entity.js +0 -5
- package/dist/libs/tatayab-entities-library/src/entities/country.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.js +0 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.js +0 -11
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/translation.entity.js +0 -6
- package/dist/libs/tatayab-entities-library/src/entities/translation.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/user.entity.js +0 -20
- package/dist/libs/tatayab-entities-library/src/entities/user.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/userDevice.entity.js +0 -6
- package/dist/libs/tatayab-entities-library/src/entities/userDevice.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/index.d.ts +8 -0
- package/dist/libs/tatayab-entities-library/src/index.js +19 -2
- package/dist/libs/tatayab-entities-library/src/index.js.map +1 -1
- package/libs/tatayab-entities-library/src/entities/apikey.entity.ts +16 -11
- package/libs/tatayab-entities-library/src/entities/area.entity.ts +3 -3
- package/libs/tatayab-entities-library/src/entities/country.entity.ts +5 -5
- package/libs/tatayab-entities-library/src/entities/sys.role.entity.ts +1 -1
- package/libs/tatayab-entities-library/src/entities/sys.user.entity.ts +11 -11
- package/libs/tatayab-entities-library/src/entities/translation.entity.ts +6 -6
- package/libs/tatayab-entities-library/src/entities/user.entity.ts +20 -20
- package/libs/tatayab-entities-library/src/entities/userDevice.entity.ts +6 -6
- package/libs/tatayab-entities-library/src/index.ts +11 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -0
|
@@ -3,7 +3,7 @@ import { Status } from '../utils/enums/status';
|
|
|
3
3
|
import { VersionType } from '../utils/enums/versiontype';
|
|
4
4
|
import { OsName } from '../utils/enums/osName';
|
|
5
5
|
import { ProductApp } from '../utils/enums/productApp';
|
|
6
|
-
declare class ApiKey extends Model {
|
|
6
|
+
export declare class ApiKey extends Model {
|
|
7
7
|
hashedApiKey: string;
|
|
8
8
|
osName: OsName;
|
|
9
9
|
appName: ProductApp;
|
|
@@ -13,4 +13,3 @@ declare class ApiKey extends Model {
|
|
|
13
13
|
isReleased: boolean;
|
|
14
14
|
versionType: VersionType;
|
|
15
15
|
}
|
|
16
|
-
export default ApiKey;
|
|
@@ -9,21 +9,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ApiKey = void 0;
|
|
12
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
14
|
const status_1 = require("../utils/enums/status");
|
|
14
15
|
const versiontype_1 = require("../utils/enums/versiontype");
|
|
15
16
|
const osName_1 = require("../utils/enums/osName");
|
|
16
17
|
const productApp_1 = require("../utils/enums/productApp");
|
|
17
18
|
let ApiKey = class ApiKey extends sequelize_typescript_1.Model {
|
|
18
|
-
hashedApiKey;
|
|
19
|
-
osName;
|
|
20
|
-
appName;
|
|
21
|
-
appVersion;
|
|
22
|
-
expiryDate;
|
|
23
|
-
status;
|
|
24
|
-
isReleased;
|
|
25
|
-
versionType;
|
|
26
19
|
};
|
|
20
|
+
exports.ApiKey = ApiKey;
|
|
27
21
|
__decorate([
|
|
28
22
|
sequelize_typescript_1.Column,
|
|
29
23
|
__metadata("design:type", String)
|
|
@@ -62,8 +56,7 @@ __decorate([
|
|
|
62
56
|
}),
|
|
63
57
|
__metadata("design:type", String)
|
|
64
58
|
], ApiKey.prototype, "versionType", void 0);
|
|
65
|
-
ApiKey = __decorate([
|
|
59
|
+
exports.ApiKey = ApiKey = __decorate([
|
|
66
60
|
sequelize_typescript_1.Table
|
|
67
61
|
], ApiKey);
|
|
68
|
-
exports.default = ApiKey;
|
|
69
62
|
//# sourceMappingURL=apikey.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/apikey.entity.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -13,9 +13,6 @@ exports.Area = void 0;
|
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
14
|
const country_entity_1 = require("./country.entity");
|
|
15
15
|
let Area = class Area extends sequelize_typescript_1.Model {
|
|
16
|
-
countryId;
|
|
17
|
-
parentId;
|
|
18
|
-
country;
|
|
19
16
|
};
|
|
20
17
|
exports.Area = Area;
|
|
21
18
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -12,11 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Country = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
14
|
let Country = class Country extends sequelize_typescript_1.Model {
|
|
15
|
-
flagIcon;
|
|
16
|
-
isoCode;
|
|
17
|
-
phoneExt;
|
|
18
|
-
currency;
|
|
19
|
-
exchangeRateToKwd;
|
|
20
15
|
};
|
|
21
16
|
exports.Country = Country;
|
|
22
17
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SysRole = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
14
|
let SysRole = class SysRole extends sequelize_typescript_1.Model {
|
|
15
|
-
name;
|
|
16
15
|
};
|
|
17
16
|
exports.SysRole = SysRole;
|
|
18
17
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sys.role.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAGrD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;
|
|
1
|
+
{"version":3,"file":"sys.role.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAGrD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CAGjC,CAAA;AAHY,0BAAO;AAEV;IADP,6BAAM;;qCACc;kBAFV,OAAO;IADnB,4BAAK;GACO,OAAO,CAGnB"}
|
|
@@ -14,17 +14,6 @@ const sequelize_typescript_1 = require("sequelize-typescript");
|
|
|
14
14
|
const status_1 = require("../utils/enums/status");
|
|
15
15
|
const sys_role_entity_1 = require("./sys.role.entity");
|
|
16
16
|
let SysUser = class SysUser extends sequelize_typescript_1.Model {
|
|
17
|
-
name;
|
|
18
|
-
username;
|
|
19
|
-
email;
|
|
20
|
-
phoneExt;
|
|
21
|
-
phone;
|
|
22
|
-
password;
|
|
23
|
-
status;
|
|
24
|
-
roleId;
|
|
25
|
-
profilePicture;
|
|
26
|
-
lastLogin;
|
|
27
|
-
role;
|
|
28
17
|
};
|
|
29
18
|
exports.SysUser = SysUser;
|
|
30
19
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sys.user.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,kDAA+C;AAC/C,uDAA4C;AAGrC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;
|
|
1
|
+
{"version":3,"file":"sys.user.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,kDAA+C;AAC/C,uDAA4C;AAGrC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CAoCjC,CAAA;AApCY,0BAAO;AAEV;IADP,6BAAM;;qCACc;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC;;yCAChC;AAGjB;IADP,6BAAM;;sCACe;AAGd;IADP,6BAAM;;yCACkB;AAGjB;IADP,6BAAM;;sCACe;AAGd;IADP,6BAAM;;yCACkB;AAKjB;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;;uCACsB;AAIhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,yBAAO,CAAC;IACzB,6BAAM;;uCACgB;AAGf;IADP,6BAAM;;+CACwB;AAGvB;IADP,6BAAM;8BACY,IAAI;0CAAC;AAGhB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,yBAAO,CAAC;8BACX,yBAAO;qCAAC;kBAnCX,OAAO;IADnB,4BAAK;GACO,OAAO,CAoCnB"}
|
|
@@ -12,12 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Translation = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
14
|
let Translation = class Translation extends sequelize_typescript_1.Model {
|
|
15
|
-
text;
|
|
16
|
-
shortDesc;
|
|
17
|
-
longDesc;
|
|
18
|
-
locale;
|
|
19
|
-
entityId;
|
|
20
|
-
entityName;
|
|
21
15
|
};
|
|
22
16
|
exports.Translation = Translation;
|
|
23
17
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -16,26 +16,6 @@ const language_1 = require("../utils/enums/language");
|
|
|
16
16
|
const country_entity_1 = require("./country.entity");
|
|
17
17
|
const gender_1 = require("../utils/enums/gender");
|
|
18
18
|
let User = class User extends sequelize_typescript_1.Model {
|
|
19
|
-
firstName;
|
|
20
|
-
lastName;
|
|
21
|
-
password;
|
|
22
|
-
status;
|
|
23
|
-
email;
|
|
24
|
-
phone;
|
|
25
|
-
phoneExt;
|
|
26
|
-
birthday;
|
|
27
|
-
facebookId;
|
|
28
|
-
googleId;
|
|
29
|
-
appleId;
|
|
30
|
-
preferredLanguage;
|
|
31
|
-
preferredCountryId;
|
|
32
|
-
profilePic;
|
|
33
|
-
lastLogin;
|
|
34
|
-
isBlocked;
|
|
35
|
-
isVerified;
|
|
36
|
-
refCode;
|
|
37
|
-
gender;
|
|
38
|
-
country;
|
|
39
19
|
};
|
|
40
20
|
exports.User = User;
|
|
41
21
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -15,12 +15,6 @@ const user_entity_1 = require("./user.entity");
|
|
|
15
15
|
const status_1 = require("../utils/enums/status");
|
|
16
16
|
const osName_1 = require("../utils/enums/osName");
|
|
17
17
|
let UserDevice = class UserDevice extends sequelize_typescript_1.Model {
|
|
18
|
-
userId;
|
|
19
|
-
deviceId;
|
|
20
|
-
fcmToken;
|
|
21
|
-
status;
|
|
22
|
-
osSystem;
|
|
23
|
-
user;
|
|
24
18
|
};
|
|
25
19
|
exports.UserDevice = UserDevice;
|
|
26
20
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,2 +1,10 @@
|
|
|
1
1
|
import { ModelCtor } from 'sequelize-typescript';
|
|
2
|
+
export { ApiKey } from './entities/apikey.entity';
|
|
3
|
+
export { Country } from './entities/country.entity';
|
|
4
|
+
export { Translation } from './entities/translation.entity';
|
|
5
|
+
export { Area } from './entities/area.entity';
|
|
6
|
+
export { SysRole } from './entities/sys.role.entity';
|
|
7
|
+
export { SysUser } from './entities/sys.user.entity';
|
|
8
|
+
export { User } from './entities/user.entity';
|
|
9
|
+
export { UserDevice } from './entities/userDevice.entity';
|
|
2
10
|
export declare function getDbModels(): ModelCtor[];
|
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Translation = exports.Country = exports.ApiKey = void 0;
|
|
3
4
|
exports.getDbModels = getDbModels;
|
|
4
5
|
const country_entity_1 = require("./entities/country.entity");
|
|
5
6
|
const translation_entity_1 = require("./entities/translation.entity");
|
|
6
|
-
const apikey_entity_1 = require("./entities/apikey.entity");
|
|
7
7
|
const area_entity_1 = require("./entities/area.entity");
|
|
8
8
|
const sys_role_entity_1 = require("./entities/sys.role.entity");
|
|
9
9
|
const sys_user_entity_1 = require("./entities/sys.user.entity");
|
|
10
10
|
const user_entity_1 = require("./entities/user.entity");
|
|
11
11
|
const userDevice_entity_1 = require("./entities/userDevice.entity");
|
|
12
|
+
const apikey_entity_1 = require("./entities/apikey.entity");
|
|
13
|
+
var apikey_entity_2 = require("./entities/apikey.entity");
|
|
14
|
+
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return apikey_entity_2.ApiKey; } });
|
|
15
|
+
var country_entity_2 = require("./entities/country.entity");
|
|
16
|
+
Object.defineProperty(exports, "Country", { enumerable: true, get: function () { return country_entity_2.Country; } });
|
|
17
|
+
var translation_entity_2 = require("./entities/translation.entity");
|
|
18
|
+
Object.defineProperty(exports, "Translation", { enumerable: true, get: function () { return translation_entity_2.Translation; } });
|
|
19
|
+
var area_entity_2 = require("./entities/area.entity");
|
|
20
|
+
Object.defineProperty(exports, "Area", { enumerable: true, get: function () { return area_entity_2.Area; } });
|
|
21
|
+
var sys_role_entity_2 = require("./entities/sys.role.entity");
|
|
22
|
+
Object.defineProperty(exports, "SysRole", { enumerable: true, get: function () { return sys_role_entity_2.SysRole; } });
|
|
23
|
+
var sys_user_entity_2 = require("./entities/sys.user.entity");
|
|
24
|
+
Object.defineProperty(exports, "SysUser", { enumerable: true, get: function () { return sys_user_entity_2.SysUser; } });
|
|
25
|
+
var user_entity_2 = require("./entities/user.entity");
|
|
26
|
+
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_entity_2.User; } });
|
|
27
|
+
var userDevice_entity_2 = require("./entities/userDevice.entity");
|
|
28
|
+
Object.defineProperty(exports, "UserDevice", { enumerable: true, get: function () { return userDevice_entity_2.UserDevice; } });
|
|
12
29
|
function getDbModels() {
|
|
13
30
|
return [
|
|
14
|
-
apikey_entity_1.
|
|
31
|
+
apikey_entity_1.ApiKey,
|
|
15
32
|
area_entity_1.Area,
|
|
16
33
|
country_entity_1.Country,
|
|
17
34
|
sys_role_entity_1.SysRole,
|
|
@@ -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":";;;AAoBA,kCAWC;AA7BD,8DAAoD;AACpD,sEAA4D;AAC5D,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAElD,0DAAkD;AAAzC,uGAAA,MAAM,OAAA;AACf,4DAAoD;AAA3C,yGAAA,OAAO,OAAA;AAChB,oEAA4D;AAAnD,iHAAA,WAAW,OAAA;AACpB,sDAA8C;AAArC,mGAAA,IAAI,OAAA;AACb,8DAAqD;AAA5C,0GAAA,OAAO,OAAA;AAChB,8DAAqD;AAA5C,0GAAA,OAAO,OAAA;AAChB,sDAA8C;AAArC,mGAAA,IAAI,OAAA;AACb,kEAA0D;AAAjD,+GAAA,UAAU,OAAA;AAEnB,SAAgB,WAAW;IACzB,OAAO;QACL,sBAAM;QACN,kBAAI;QACJ,wBAAO;QACP,yBAAO;QACP,yBAAO;QACP,gCAAW;QACX,kBAAI;QACJ,8BAAU;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -5,29 +5,34 @@ import { OsName } from '../utils/enums/osName';
|
|
|
5
5
|
import { ProductApp } from '../utils/enums/productApp';
|
|
6
6
|
|
|
7
7
|
@Table
|
|
8
|
-
class ApiKey extends Model {
|
|
8
|
+
export class ApiKey extends Model {
|
|
9
9
|
@Column
|
|
10
|
-
hashedApiKey: string;
|
|
10
|
+
declare hashedApiKey: string;
|
|
11
|
+
|
|
11
12
|
@Column({ type: DataType.ENUM(...Object.values(OsName)) })
|
|
12
|
-
osName: OsName;
|
|
13
|
+
declare osName: OsName;
|
|
14
|
+
|
|
13
15
|
@Column({ type: DataType.ENUM(...Object.values(ProductApp)) })
|
|
14
|
-
appName: ProductApp;
|
|
16
|
+
declare appName: ProductApp;
|
|
17
|
+
|
|
15
18
|
@Column
|
|
16
|
-
appVersion: string;
|
|
19
|
+
declare appVersion: string;
|
|
20
|
+
|
|
17
21
|
@Column
|
|
18
|
-
expiryDate: Date;
|
|
22
|
+
declare expiryDate: Date;
|
|
23
|
+
|
|
19
24
|
@Column({
|
|
20
25
|
type: DataType.ENUM(...Object.values(Status)),
|
|
21
26
|
defaultValue: Status.ACTIVE,
|
|
22
27
|
})
|
|
23
|
-
status: Status;
|
|
28
|
+
declare status: Status;
|
|
29
|
+
|
|
24
30
|
@Column({ allowNull: false, defaultValue: false })
|
|
25
|
-
isReleased: boolean;
|
|
31
|
+
declare isReleased: boolean;
|
|
32
|
+
|
|
26
33
|
@Column({
|
|
27
34
|
type: DataType.ENUM(...Object.values(VersionType)),
|
|
28
35
|
defaultValue: VersionType.OPTIONAL,
|
|
29
36
|
})
|
|
30
|
-
versionType: VersionType;
|
|
37
|
+
declare versionType: VersionType;
|
|
31
38
|
}
|
|
32
|
-
|
|
33
|
-
export default ApiKey;
|
|
@@ -14,11 +14,11 @@ export class Area extends Model {
|
|
|
14
14
|
allowNull: false,
|
|
15
15
|
validate: { notNull: { msg: 'County Id Required' } },
|
|
16
16
|
})
|
|
17
|
-
countryId
|
|
17
|
+
declare countryId: number;
|
|
18
18
|
|
|
19
19
|
@Column
|
|
20
|
-
parentId?: number;
|
|
20
|
+
declare parentId?: number;
|
|
21
21
|
|
|
22
22
|
@BelongsTo(() => Country)
|
|
23
|
-
country: Country;
|
|
23
|
+
declare country: Country;
|
|
24
24
|
}
|
|
@@ -3,13 +3,13 @@ import { Column, Model, Table } from 'sequelize-typescript';
|
|
|
3
3
|
@Table
|
|
4
4
|
export class Country extends Model {
|
|
5
5
|
@Column
|
|
6
|
-
flagIcon: string;
|
|
6
|
+
declare flagIcon: string;
|
|
7
7
|
@Column
|
|
8
|
-
isoCode: string;
|
|
8
|
+
declare isoCode: string;
|
|
9
9
|
@Column
|
|
10
|
-
phoneExt: string;
|
|
10
|
+
declare phoneExt: string;
|
|
11
11
|
@Column
|
|
12
|
-
currency: string;
|
|
12
|
+
declare currency: string;
|
|
13
13
|
@Column
|
|
14
|
-
exchangeRateToKwd: number;
|
|
14
|
+
declare exchangeRateToKwd: number;
|
|
15
15
|
}
|
|
@@ -12,38 +12,38 @@ import { SysRole } from './sys.role.entity';
|
|
|
12
12
|
@Table
|
|
13
13
|
export class SysUser extends Model {
|
|
14
14
|
@Column
|
|
15
|
-
name
|
|
15
|
+
declare name: string;
|
|
16
16
|
|
|
17
17
|
@Column({ allowNull: false, validate: { unique: true } })
|
|
18
|
-
username
|
|
18
|
+
declare username: string;
|
|
19
19
|
|
|
20
20
|
@Column
|
|
21
|
-
email
|
|
21
|
+
declare email: string;
|
|
22
22
|
|
|
23
23
|
@Column
|
|
24
|
-
phoneExt
|
|
24
|
+
declare phoneExt: string;
|
|
25
25
|
|
|
26
26
|
@Column
|
|
27
|
-
phone
|
|
27
|
+
declare phone: string;
|
|
28
28
|
|
|
29
29
|
@Column
|
|
30
|
-
password
|
|
30
|
+
declare password: string;
|
|
31
31
|
@Column({
|
|
32
32
|
type: DataType.ENUM(...Object.values(Status)),
|
|
33
33
|
defaultValue: Status.ACTIVE,
|
|
34
34
|
})
|
|
35
|
-
status?: Status;
|
|
35
|
+
declare status?: Status;
|
|
36
36
|
|
|
37
37
|
@ForeignKey(() => SysRole)
|
|
38
38
|
@Column
|
|
39
|
-
roleId: number;
|
|
39
|
+
declare roleId: number;
|
|
40
40
|
|
|
41
41
|
@Column
|
|
42
|
-
profilePicture: string;
|
|
42
|
+
declare profilePicture: string;
|
|
43
43
|
|
|
44
44
|
@Column
|
|
45
|
-
lastLogin: Date;
|
|
45
|
+
declare lastLogin: Date;
|
|
46
46
|
|
|
47
47
|
@BelongsTo(() => SysRole)
|
|
48
|
-
role: SysRole;
|
|
48
|
+
declare role: SysRole;
|
|
49
49
|
}
|
|
@@ -3,15 +3,15 @@ import { Column, Model, Table } from 'sequelize-typescript';
|
|
|
3
3
|
@Table
|
|
4
4
|
export class Translation extends Model {
|
|
5
5
|
@Column
|
|
6
|
-
text: string;
|
|
6
|
+
declare text: string;
|
|
7
7
|
@Column
|
|
8
|
-
shortDesc?: string;
|
|
8
|
+
declare shortDesc?: string;
|
|
9
9
|
@Column
|
|
10
|
-
longDesc?: string;
|
|
10
|
+
declare longDesc?: string;
|
|
11
11
|
@Column
|
|
12
|
-
locale: string;
|
|
12
|
+
declare locale: string;
|
|
13
13
|
@Column
|
|
14
|
-
entityId: string;
|
|
14
|
+
declare entityId: string;
|
|
15
15
|
@Column
|
|
16
|
-
entityName: string;
|
|
16
|
+
declare entityName: string;
|
|
17
17
|
}
|
|
@@ -14,72 +14,72 @@ import { Gender } from '../utils/enums/gender';
|
|
|
14
14
|
@Table
|
|
15
15
|
export class User extends Model {
|
|
16
16
|
@Column
|
|
17
|
-
firstName?: string;
|
|
17
|
+
declare firstName?: string;
|
|
18
18
|
|
|
19
19
|
@Column
|
|
20
|
-
lastName?: string;
|
|
20
|
+
declare lastName?: string;
|
|
21
21
|
|
|
22
22
|
@Column
|
|
23
|
-
password
|
|
23
|
+
declare password: string;
|
|
24
24
|
|
|
25
25
|
@Column({
|
|
26
26
|
type: DataType.ENUM(...Object.values(Status)),
|
|
27
27
|
defaultValue: Status.ACTIVE,
|
|
28
28
|
})
|
|
29
|
-
status: Status;
|
|
29
|
+
declare status: Status;
|
|
30
30
|
|
|
31
31
|
@Column({ allowNull: false, validate: { isEmail: { msg: 'Invalid Email' } } })
|
|
32
|
-
email
|
|
32
|
+
declare email: string;
|
|
33
33
|
|
|
34
34
|
@Column
|
|
35
|
-
phone?: string;
|
|
35
|
+
declare phone?: string;
|
|
36
36
|
|
|
37
37
|
@Column
|
|
38
|
-
phoneExt?: string;
|
|
38
|
+
declare phoneExt?: string;
|
|
39
39
|
|
|
40
40
|
@Column
|
|
41
|
-
birthday?: Date;
|
|
41
|
+
declare birthday?: Date;
|
|
42
42
|
|
|
43
43
|
@Column
|
|
44
|
-
facebookId?: string;
|
|
44
|
+
declare facebookId?: string;
|
|
45
45
|
|
|
46
46
|
@Column
|
|
47
|
-
googleId?: string;
|
|
47
|
+
declare googleId?: string;
|
|
48
48
|
|
|
49
49
|
@Column
|
|
50
|
-
appleId?: string;
|
|
50
|
+
declare appleId?: string;
|
|
51
51
|
|
|
52
52
|
@Column({
|
|
53
53
|
type: DataType.ENUM(...Object.values(Language)),
|
|
54
54
|
defaultValue: Language.ENGLISH,
|
|
55
55
|
})
|
|
56
|
-
preferredLanguage: Language;
|
|
56
|
+
declare preferredLanguage: Language;
|
|
57
57
|
|
|
58
58
|
@ForeignKey(() => Country)
|
|
59
59
|
@Column
|
|
60
|
-
preferredCountryId?: number;
|
|
60
|
+
declare preferredCountryId?: number;
|
|
61
61
|
|
|
62
62
|
@Column
|
|
63
|
-
profilePic?: string;
|
|
63
|
+
declare profilePic?: string;
|
|
64
64
|
|
|
65
65
|
@Column
|
|
66
|
-
lastLogin
|
|
66
|
+
declare lastLogin: Date;
|
|
67
67
|
|
|
68
68
|
@Column({ allowNull: false, defaultValue: false })
|
|
69
|
-
isBlocked
|
|
69
|
+
declare isBlocked: boolean;
|
|
70
70
|
|
|
71
71
|
@Column({ defaultValue: false })
|
|
72
|
-
isVerified: boolean;
|
|
72
|
+
declare isVerified: boolean;
|
|
73
73
|
|
|
74
74
|
@Column
|
|
75
|
-
refCode: string;
|
|
75
|
+
declare refCode: string;
|
|
76
76
|
|
|
77
77
|
@Column({
|
|
78
78
|
type: DataType.ENUM(...Object.values(Gender)),
|
|
79
79
|
defaultValue: Gender.PREFER_NOT_TO_SAY,
|
|
80
80
|
})
|
|
81
|
-
gender: Gender;
|
|
81
|
+
declare gender: Gender;
|
|
82
82
|
|
|
83
83
|
@BelongsTo(() => Country)
|
|
84
|
-
country: Country;
|
|
84
|
+
declare country: Country;
|
|
85
85
|
}
|
|
@@ -20,22 +20,22 @@ import { OsName } from '../utils/enums/osName';
|
|
|
20
20
|
export class UserDevice extends Model {
|
|
21
21
|
@ForeignKey(() => User)
|
|
22
22
|
@Column
|
|
23
|
-
userId
|
|
23
|
+
declare userId: number;
|
|
24
24
|
@Column
|
|
25
|
-
deviceId?: string;
|
|
25
|
+
declare deviceId?: string;
|
|
26
26
|
@Column
|
|
27
|
-
fcmToken?: string;
|
|
27
|
+
declare fcmToken?: string;
|
|
28
28
|
@Column({
|
|
29
29
|
type: DataType.ENUM(...Object.values(Status)),
|
|
30
30
|
defaultValue: Status.ACTIVE,
|
|
31
31
|
})
|
|
32
|
-
status: Status;
|
|
32
|
+
declare status: Status;
|
|
33
33
|
|
|
34
34
|
@Column({
|
|
35
35
|
type: DataType.ENUM(...Object.values(OsName)),
|
|
36
36
|
allowNull: true,
|
|
37
37
|
})
|
|
38
|
-
osSystem: string;
|
|
38
|
+
declare osSystem: string;
|
|
39
39
|
@BelongsTo(() => User)
|
|
40
|
-
user: User;
|
|
40
|
+
declare user: User;
|
|
41
41
|
}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { ModelCtor } from 'sequelize-typescript';
|
|
2
|
+
|
|
2
3
|
import { Country } from './entities/country.entity';
|
|
3
4
|
import { Translation } from './entities/translation.entity';
|
|
4
|
-
import ApiKey from './entities/apikey.entity';
|
|
5
5
|
import { Area } from './entities/area.entity';
|
|
6
6
|
import { SysRole } from './entities/sys.role.entity';
|
|
7
7
|
import { SysUser } from './entities/sys.user.entity';
|
|
8
8
|
import { User } from './entities/user.entity';
|
|
9
9
|
import { UserDevice } from './entities/userDevice.entity';
|
|
10
|
+
import { ApiKey } from './entities/apikey.entity';
|
|
11
|
+
|
|
12
|
+
export { ApiKey } from './entities/apikey.entity';
|
|
13
|
+
export { Country } from './entities/country.entity';
|
|
14
|
+
export { Translation } from './entities/translation.entity';
|
|
15
|
+
export { Area } from './entities/area.entity';
|
|
16
|
+
export { SysRole } from './entities/sys.role.entity';
|
|
17
|
+
export { SysUser } from './entities/sys.user.entity';
|
|
18
|
+
export { User } from './entities/user.entity';
|
|
19
|
+
export { UserDevice } from './entities/userDevice.entity';
|
|
10
20
|
|
|
11
21
|
export function getDbModels(): ModelCtor[] {
|
|
12
22
|
return [
|
package/package.json
CHANGED