tt-entities 0.0.12 → 0.0.14
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/index.js.map +1 -1
- package/dist/src/main.d.ts +1 -1
- package/dist/src/main.js +763 -5
- package/dist/src/main.js.map +1 -1
- package/libs/tatayab-entities-library/src/index.ts +3 -1
- package/nest-cli.json +12 -0
- package/package.json +14 -2
- package/src/main.ts +1 -0
|
@@ -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":";;;AA4BA,kCAWC;AArCD,8DAAoD;AACpD,sEAA4D;AAC5D,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAGlD,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;AAGnB,+CAA8C;AAArC,gGAAA,MAAM,OAAA;AACf,uDAAsD;AAA7C,wGAAA,UAAU,OAAA;AACnB,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,mDAAkD;AAAzC,oGAAA,QAAQ,OAAA;AACjB,+CAA8C;AAArC,gGAAA,MAAM,OAAA;AAEf,SAAgB,WAAW;IACzB,OAAO;QACL,sBAAM;QACN,kBAAI;QACJ,wBAAO;QACP,yBAAO;QACP,yBAAO;QACP,gCAAW;QACX,kBAAI;QACJ,8BAAU;KACX,CAAC;AACJ,CAAC"}
|
package/dist/src/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import 'tsconfig-paths/register';
|
package/dist/src/main.js
CHANGED
|
@@ -1,10 +1,768 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ([
|
|
4
|
+
/* 0 */,
|
|
5
|
+
/* 1 */
|
|
6
|
+
/***/ ((module) => {
|
|
7
|
+
|
|
8
|
+
module.exports = require("tsconfig-paths/register");
|
|
9
|
+
|
|
10
|
+
/***/ }),
|
|
11
|
+
/* 2 */
|
|
12
|
+
/***/ ((module) => {
|
|
13
|
+
|
|
14
|
+
module.exports = require("@nestjs/core");
|
|
15
|
+
|
|
16
|
+
/***/ }),
|
|
17
|
+
/* 3 */
|
|
18
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
22
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24
|
+
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;
|
|
25
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
28
|
+
exports.AppModule = void 0;
|
|
29
|
+
const common_1 = __webpack_require__(4);
|
|
30
|
+
const sequelize_1 = __webpack_require__(5);
|
|
31
|
+
const config_1 = __webpack_require__(6);
|
|
32
|
+
const tatayab_entities_library_1 = __webpack_require__(7);
|
|
33
|
+
let AppModule = class AppModule {
|
|
34
|
+
};
|
|
35
|
+
exports.AppModule = AppModule;
|
|
36
|
+
exports.AppModule = AppModule = __decorate([
|
|
37
|
+
(0, common_1.Module)({
|
|
38
|
+
imports: [
|
|
39
|
+
config_1.ConfigModule.forRoot({
|
|
40
|
+
isGlobal: true,
|
|
41
|
+
}),
|
|
42
|
+
sequelize_1.SequelizeModule.forRoot({
|
|
43
|
+
dialect: 'mysql',
|
|
44
|
+
host: process.env.MYSQL_HOST,
|
|
45
|
+
database: process.env.MYSQL_DATABASE,
|
|
46
|
+
username: process.env.MYSQL_USER,
|
|
47
|
+
password: process.env.MYSQL_PASSWORD,
|
|
48
|
+
port: 3306,
|
|
49
|
+
models: (0, tatayab_entities_library_1.getDbModels)(),
|
|
50
|
+
autoLoadModels: true,
|
|
51
|
+
synchronize: true,
|
|
52
|
+
logging: false,
|
|
53
|
+
define: {
|
|
54
|
+
timestamps: true,
|
|
55
|
+
paranoid: true,
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
],
|
|
59
|
+
providers: [],
|
|
60
|
+
})
|
|
61
|
+
], AppModule);
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/***/ }),
|
|
65
|
+
/* 4 */
|
|
66
|
+
/***/ ((module) => {
|
|
67
|
+
|
|
68
|
+
module.exports = require("@nestjs/common");
|
|
69
|
+
|
|
70
|
+
/***/ }),
|
|
71
|
+
/* 5 */
|
|
72
|
+
/***/ ((module) => {
|
|
73
|
+
|
|
74
|
+
module.exports = require("@nestjs/sequelize");
|
|
75
|
+
|
|
76
|
+
/***/ }),
|
|
77
|
+
/* 6 */
|
|
78
|
+
/***/ ((module) => {
|
|
79
|
+
|
|
80
|
+
module.exports = require("@nestjs/config");
|
|
81
|
+
|
|
82
|
+
/***/ }),
|
|
83
|
+
/* 7 */
|
|
84
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88
|
+
exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Translation = exports.Country = exports.ApiKey = void 0;
|
|
89
|
+
exports.getDbModels = getDbModels;
|
|
90
|
+
const country_entity_1 = __webpack_require__(8);
|
|
91
|
+
const translation_entity_1 = __webpack_require__(10);
|
|
92
|
+
const area_entity_1 = __webpack_require__(11);
|
|
93
|
+
const sys_role_entity_1 = __webpack_require__(12);
|
|
94
|
+
const sys_user_entity_1 = __webpack_require__(13);
|
|
95
|
+
const user_entity_1 = __webpack_require__(15);
|
|
96
|
+
const userDevice_entity_1 = __webpack_require__(18);
|
|
97
|
+
const apikey_entity_1 = __webpack_require__(20);
|
|
98
|
+
var apikey_entity_2 = __webpack_require__(20);
|
|
99
|
+
Object.defineProperty(exports, "ApiKey", ({ enumerable: true, get: function () { return apikey_entity_2.ApiKey; } }));
|
|
100
|
+
var country_entity_2 = __webpack_require__(8);
|
|
101
|
+
Object.defineProperty(exports, "Country", ({ enumerable: true, get: function () { return country_entity_2.Country; } }));
|
|
102
|
+
var translation_entity_2 = __webpack_require__(10);
|
|
103
|
+
Object.defineProperty(exports, "Translation", ({ enumerable: true, get: function () { return translation_entity_2.Translation; } }));
|
|
104
|
+
var area_entity_2 = __webpack_require__(11);
|
|
105
|
+
Object.defineProperty(exports, "Area", ({ enumerable: true, get: function () { return area_entity_2.Area; } }));
|
|
106
|
+
var sys_role_entity_2 = __webpack_require__(12);
|
|
107
|
+
Object.defineProperty(exports, "SysRole", ({ enumerable: true, get: function () { return sys_role_entity_2.SysRole; } }));
|
|
108
|
+
var sys_user_entity_2 = __webpack_require__(13);
|
|
109
|
+
Object.defineProperty(exports, "SysUser", ({ enumerable: true, get: function () { return sys_user_entity_2.SysUser; } }));
|
|
110
|
+
var user_entity_2 = __webpack_require__(15);
|
|
111
|
+
Object.defineProperty(exports, "User", ({ enumerable: true, get: function () { return user_entity_2.User; } }));
|
|
112
|
+
var userDevice_entity_2 = __webpack_require__(18);
|
|
113
|
+
Object.defineProperty(exports, "UserDevice", ({ enumerable: true, get: function () { return userDevice_entity_2.UserDevice; } }));
|
|
114
|
+
var osName_1 = __webpack_require__(19);
|
|
115
|
+
Object.defineProperty(exports, "OsName", ({ enumerable: true, get: function () { return osName_1.OsName; } }));
|
|
116
|
+
var productApp_1 = __webpack_require__(22);
|
|
117
|
+
Object.defineProperty(exports, "ProductApp", ({ enumerable: true, get: function () { return productApp_1.ProductApp; } }));
|
|
118
|
+
var versiontype_1 = __webpack_require__(21);
|
|
119
|
+
Object.defineProperty(exports, "VersionType", ({ enumerable: true, get: function () { return versiontype_1.VersionType; } }));
|
|
120
|
+
var language_1 = __webpack_require__(16);
|
|
121
|
+
Object.defineProperty(exports, "Language", ({ enumerable: true, get: function () { return language_1.Language; } }));
|
|
122
|
+
var status_1 = __webpack_require__(14);
|
|
123
|
+
Object.defineProperty(exports, "Status", ({ enumerable: true, get: function () { return status_1.Status; } }));
|
|
124
|
+
var gender_1 = __webpack_require__(17);
|
|
125
|
+
Object.defineProperty(exports, "Gender", ({ enumerable: true, get: function () { return gender_1.Gender; } }));
|
|
126
|
+
function getDbModels() {
|
|
127
|
+
return [
|
|
128
|
+
apikey_entity_1.ApiKey,
|
|
129
|
+
area_entity_1.Area,
|
|
130
|
+
country_entity_1.Country,
|
|
131
|
+
sys_role_entity_1.SysRole,
|
|
132
|
+
sys_user_entity_1.SysUser,
|
|
133
|
+
translation_entity_1.Translation,
|
|
134
|
+
user_entity_1.User,
|
|
135
|
+
userDevice_entity_1.UserDevice,
|
|
136
|
+
];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/***/ }),
|
|
141
|
+
/* 8 */
|
|
142
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
146
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
147
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
148
|
+
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;
|
|
149
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
150
|
+
};
|
|
151
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
152
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
153
|
+
};
|
|
154
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
155
|
+
exports.Country = void 0;
|
|
156
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
157
|
+
let Country = class Country extends sequelize_typescript_1.Model {
|
|
158
|
+
};
|
|
159
|
+
exports.Country = Country;
|
|
160
|
+
__decorate([
|
|
161
|
+
sequelize_typescript_1.Column,
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], Country.prototype, "flagIcon", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
sequelize_typescript_1.Column,
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], Country.prototype, "isoCode", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
sequelize_typescript_1.Column,
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], Country.prototype, "phoneExt", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
sequelize_typescript_1.Column,
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], Country.prototype, "currency", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
sequelize_typescript_1.Column,
|
|
178
|
+
__metadata("design:type", Number)
|
|
179
|
+
], Country.prototype, "exchangeRateToKwd", void 0);
|
|
180
|
+
exports.Country = Country = __decorate([
|
|
181
|
+
sequelize_typescript_1.Table
|
|
182
|
+
], Country);
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/***/ }),
|
|
186
|
+
/* 9 */
|
|
187
|
+
/***/ ((module) => {
|
|
188
|
+
|
|
189
|
+
module.exports = require("sequelize-typescript");
|
|
190
|
+
|
|
191
|
+
/***/ }),
|
|
192
|
+
/* 10 */
|
|
193
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
197
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
198
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
199
|
+
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;
|
|
200
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
201
|
+
};
|
|
202
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
203
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
204
|
+
};
|
|
205
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
206
|
+
exports.Translation = void 0;
|
|
207
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
208
|
+
let Translation = class Translation extends sequelize_typescript_1.Model {
|
|
209
|
+
};
|
|
210
|
+
exports.Translation = Translation;
|
|
211
|
+
__decorate([
|
|
212
|
+
sequelize_typescript_1.Column,
|
|
213
|
+
__metadata("design:type", String)
|
|
214
|
+
], Translation.prototype, "text", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
sequelize_typescript_1.Column,
|
|
217
|
+
__metadata("design:type", String)
|
|
218
|
+
], Translation.prototype, "shortDesc", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
sequelize_typescript_1.Column,
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], Translation.prototype, "longDesc", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
sequelize_typescript_1.Column,
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], Translation.prototype, "locale", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
sequelize_typescript_1.Column,
|
|
229
|
+
__metadata("design:type", String)
|
|
230
|
+
], Translation.prototype, "entityId", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
sequelize_typescript_1.Column,
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], Translation.prototype, "entityName", void 0);
|
|
235
|
+
exports.Translation = Translation = __decorate([
|
|
236
|
+
sequelize_typescript_1.Table
|
|
237
|
+
], Translation);
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
/***/ }),
|
|
241
|
+
/* 11 */
|
|
242
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
246
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
247
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
248
|
+
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;
|
|
249
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
250
|
+
};
|
|
251
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
252
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
253
|
+
};
|
|
254
|
+
var _a;
|
|
255
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
256
|
+
exports.Area = void 0;
|
|
257
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
258
|
+
const country_entity_1 = __webpack_require__(8);
|
|
259
|
+
let Area = class Area extends sequelize_typescript_1.Model {
|
|
260
|
+
};
|
|
261
|
+
exports.Area = Area;
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
264
|
+
(0, sequelize_typescript_1.Column)({
|
|
265
|
+
allowNull: false,
|
|
266
|
+
validate: { notNull: { msg: 'County Id Required' } },
|
|
267
|
+
}),
|
|
268
|
+
__metadata("design:type", Number)
|
|
269
|
+
], Area.prototype, "countryId", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
sequelize_typescript_1.Column,
|
|
272
|
+
__metadata("design:type", Number)
|
|
273
|
+
], Area.prototype, "parentId", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
276
|
+
__metadata("design:type", typeof (_a = typeof country_entity_1.Country !== "undefined" && country_entity_1.Country) === "function" ? _a : Object)
|
|
277
|
+
], Area.prototype, "country", void 0);
|
|
278
|
+
exports.Area = Area = __decorate([
|
|
279
|
+
sequelize_typescript_1.Table
|
|
280
|
+
], Area);
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
/***/ }),
|
|
284
|
+
/* 12 */
|
|
285
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
289
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
290
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
291
|
+
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;
|
|
292
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
293
|
+
};
|
|
294
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
295
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
296
|
+
};
|
|
297
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
298
|
+
exports.SysRole = void 0;
|
|
299
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
300
|
+
let SysRole = class SysRole extends sequelize_typescript_1.Model {
|
|
301
|
+
};
|
|
302
|
+
exports.SysRole = SysRole;
|
|
303
|
+
__decorate([
|
|
304
|
+
sequelize_typescript_1.Column,
|
|
305
|
+
__metadata("design:type", String)
|
|
306
|
+
], SysRole.prototype, "name", void 0);
|
|
307
|
+
exports.SysRole = SysRole = __decorate([
|
|
308
|
+
sequelize_typescript_1.Table
|
|
309
|
+
], SysRole);
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
/***/ }),
|
|
313
|
+
/* 13 */
|
|
314
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
318
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
319
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
320
|
+
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;
|
|
321
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
322
|
+
};
|
|
323
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
324
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
325
|
+
};
|
|
326
|
+
var _a, _b, _c;
|
|
327
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
328
|
+
exports.SysUser = void 0;
|
|
329
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
330
|
+
const status_1 = __webpack_require__(14);
|
|
331
|
+
const sys_role_entity_1 = __webpack_require__(12);
|
|
332
|
+
let SysUser = class SysUser extends sequelize_typescript_1.Model {
|
|
333
|
+
};
|
|
334
|
+
exports.SysUser = SysUser;
|
|
335
|
+
__decorate([
|
|
336
|
+
sequelize_typescript_1.Column,
|
|
337
|
+
__metadata("design:type", String)
|
|
338
|
+
], SysUser.prototype, "name", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, validate: { unique: true } }),
|
|
341
|
+
__metadata("design:type", String)
|
|
342
|
+
], SysUser.prototype, "username", void 0);
|
|
343
|
+
__decorate([
|
|
344
|
+
sequelize_typescript_1.Column,
|
|
345
|
+
__metadata("design:type", String)
|
|
346
|
+
], SysUser.prototype, "email", void 0);
|
|
347
|
+
__decorate([
|
|
348
|
+
sequelize_typescript_1.Column,
|
|
349
|
+
__metadata("design:type", String)
|
|
350
|
+
], SysUser.prototype, "phoneExt", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
sequelize_typescript_1.Column,
|
|
353
|
+
__metadata("design:type", String)
|
|
354
|
+
], SysUser.prototype, "phone", void 0);
|
|
355
|
+
__decorate([
|
|
356
|
+
sequelize_typescript_1.Column,
|
|
357
|
+
__metadata("design:type", String)
|
|
358
|
+
], SysUser.prototype, "password", void 0);
|
|
359
|
+
__decorate([
|
|
360
|
+
(0, sequelize_typescript_1.Column)({
|
|
361
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
362
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
363
|
+
}),
|
|
364
|
+
__metadata("design:type", typeof (_a = typeof status_1.Status !== "undefined" && status_1.Status) === "function" ? _a : Object)
|
|
365
|
+
], SysUser.prototype, "status", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
(0, sequelize_typescript_1.ForeignKey)(() => sys_role_entity_1.SysRole),
|
|
368
|
+
sequelize_typescript_1.Column,
|
|
369
|
+
__metadata("design:type", Number)
|
|
370
|
+
], SysUser.prototype, "roleId", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
sequelize_typescript_1.Column,
|
|
373
|
+
__metadata("design:type", String)
|
|
374
|
+
], SysUser.prototype, "profilePicture", void 0);
|
|
375
|
+
__decorate([
|
|
376
|
+
sequelize_typescript_1.Column,
|
|
377
|
+
__metadata("design:type", typeof (_b = typeof Date !== "undefined" && Date) === "function" ? _b : Object)
|
|
378
|
+
], SysUser.prototype, "lastLogin", void 0);
|
|
379
|
+
__decorate([
|
|
380
|
+
(0, sequelize_typescript_1.BelongsTo)(() => sys_role_entity_1.SysRole),
|
|
381
|
+
__metadata("design:type", typeof (_c = typeof sys_role_entity_1.SysRole !== "undefined" && sys_role_entity_1.SysRole) === "function" ? _c : Object)
|
|
382
|
+
], SysUser.prototype, "role", void 0);
|
|
383
|
+
exports.SysUser = SysUser = __decorate([
|
|
384
|
+
sequelize_typescript_1.Table
|
|
385
|
+
], SysUser);
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/***/ }),
|
|
389
|
+
/* 14 */
|
|
390
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
394
|
+
exports.Status = void 0;
|
|
395
|
+
var Status;
|
|
396
|
+
(function (Status) {
|
|
397
|
+
Status["ACTIVE"] = "active";
|
|
398
|
+
Status["IN_ACTIVE"] = "inactive";
|
|
399
|
+
})(Status || (exports.Status = Status = {}));
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
/***/ }),
|
|
403
|
+
/* 15 */
|
|
404
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
408
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
409
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
410
|
+
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;
|
|
411
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
412
|
+
};
|
|
413
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
414
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
415
|
+
};
|
|
416
|
+
var _a, _b, _c, _d, _e, _f;
|
|
417
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
418
|
+
exports.User = void 0;
|
|
419
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
420
|
+
const status_1 = __webpack_require__(14);
|
|
421
|
+
const language_1 = __webpack_require__(16);
|
|
422
|
+
const country_entity_1 = __webpack_require__(8);
|
|
423
|
+
const gender_1 = __webpack_require__(17);
|
|
424
|
+
let User = class User extends sequelize_typescript_1.Model {
|
|
425
|
+
};
|
|
426
|
+
exports.User = User;
|
|
427
|
+
__decorate([
|
|
428
|
+
sequelize_typescript_1.Column,
|
|
429
|
+
__metadata("design:type", String)
|
|
430
|
+
], User.prototype, "firstName", void 0);
|
|
431
|
+
__decorate([
|
|
432
|
+
sequelize_typescript_1.Column,
|
|
433
|
+
__metadata("design:type", String)
|
|
434
|
+
], User.prototype, "lastName", void 0);
|
|
435
|
+
__decorate([
|
|
436
|
+
sequelize_typescript_1.Column,
|
|
437
|
+
__metadata("design:type", String)
|
|
438
|
+
], User.prototype, "password", void 0);
|
|
439
|
+
__decorate([
|
|
440
|
+
(0, sequelize_typescript_1.Column)({
|
|
441
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
442
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
443
|
+
}),
|
|
444
|
+
__metadata("design:type", typeof (_a = typeof status_1.Status !== "undefined" && status_1.Status) === "function" ? _a : Object)
|
|
445
|
+
], User.prototype, "status", void 0);
|
|
446
|
+
__decorate([
|
|
447
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, validate: { isEmail: { msg: 'Invalid Email' } } }),
|
|
448
|
+
__metadata("design:type", String)
|
|
449
|
+
], User.prototype, "email", void 0);
|
|
450
|
+
__decorate([
|
|
451
|
+
sequelize_typescript_1.Column,
|
|
452
|
+
__metadata("design:type", String)
|
|
453
|
+
], User.prototype, "phone", void 0);
|
|
454
|
+
__decorate([
|
|
455
|
+
sequelize_typescript_1.Column,
|
|
456
|
+
__metadata("design:type", String)
|
|
457
|
+
], User.prototype, "phoneExt", void 0);
|
|
458
|
+
__decorate([
|
|
459
|
+
sequelize_typescript_1.Column,
|
|
460
|
+
__metadata("design:type", typeof (_b = typeof Date !== "undefined" && Date) === "function" ? _b : Object)
|
|
461
|
+
], User.prototype, "birthday", void 0);
|
|
462
|
+
__decorate([
|
|
463
|
+
sequelize_typescript_1.Column,
|
|
464
|
+
__metadata("design:type", String)
|
|
465
|
+
], User.prototype, "facebookId", void 0);
|
|
466
|
+
__decorate([
|
|
467
|
+
sequelize_typescript_1.Column,
|
|
468
|
+
__metadata("design:type", String)
|
|
469
|
+
], User.prototype, "googleId", void 0);
|
|
470
|
+
__decorate([
|
|
471
|
+
sequelize_typescript_1.Column,
|
|
472
|
+
__metadata("design:type", String)
|
|
473
|
+
], User.prototype, "appleId", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
(0, sequelize_typescript_1.Column)({
|
|
476
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(language_1.Language)),
|
|
477
|
+
defaultValue: language_1.Language.ENGLISH,
|
|
478
|
+
}),
|
|
479
|
+
__metadata("design:type", typeof (_c = typeof language_1.Language !== "undefined" && language_1.Language) === "function" ? _c : Object)
|
|
480
|
+
], User.prototype, "preferredLanguage", void 0);
|
|
481
|
+
__decorate([
|
|
482
|
+
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
483
|
+
sequelize_typescript_1.Column,
|
|
484
|
+
__metadata("design:type", Number)
|
|
485
|
+
], User.prototype, "preferredCountryId", void 0);
|
|
486
|
+
__decorate([
|
|
487
|
+
sequelize_typescript_1.Column,
|
|
488
|
+
__metadata("design:type", String)
|
|
489
|
+
], User.prototype, "profilePic", void 0);
|
|
490
|
+
__decorate([
|
|
491
|
+
sequelize_typescript_1.Column,
|
|
492
|
+
__metadata("design:type", typeof (_d = typeof Date !== "undefined" && Date) === "function" ? _d : Object)
|
|
493
|
+
], User.prototype, "lastLogin", void 0);
|
|
494
|
+
__decorate([
|
|
495
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
496
|
+
__metadata("design:type", Boolean)
|
|
497
|
+
], User.prototype, "isBlocked", void 0);
|
|
498
|
+
__decorate([
|
|
499
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
500
|
+
__metadata("design:type", Boolean)
|
|
501
|
+
], User.prototype, "isVerified", void 0);
|
|
502
|
+
__decorate([
|
|
503
|
+
sequelize_typescript_1.Column,
|
|
504
|
+
__metadata("design:type", String)
|
|
505
|
+
], User.prototype, "refCode", void 0);
|
|
506
|
+
__decorate([
|
|
507
|
+
(0, sequelize_typescript_1.Column)({
|
|
508
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(gender_1.Gender)),
|
|
509
|
+
defaultValue: gender_1.Gender.PREFER_NOT_TO_SAY,
|
|
510
|
+
}),
|
|
511
|
+
__metadata("design:type", typeof (_e = typeof gender_1.Gender !== "undefined" && gender_1.Gender) === "function" ? _e : Object)
|
|
512
|
+
], User.prototype, "gender", void 0);
|
|
513
|
+
__decorate([
|
|
514
|
+
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
515
|
+
__metadata("design:type", typeof (_f = typeof country_entity_1.Country !== "undefined" && country_entity_1.Country) === "function" ? _f : Object)
|
|
516
|
+
], User.prototype, "country", void 0);
|
|
517
|
+
exports.User = User = __decorate([
|
|
518
|
+
sequelize_typescript_1.Table
|
|
519
|
+
], User);
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
/***/ }),
|
|
523
|
+
/* 16 */
|
|
524
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
528
|
+
exports.Language = void 0;
|
|
529
|
+
var Language;
|
|
530
|
+
(function (Language) {
|
|
531
|
+
Language["ENGLISH"] = "en";
|
|
532
|
+
Language["ARABIC"] = "ar";
|
|
533
|
+
})(Language || (exports.Language = Language = {}));
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
/***/ }),
|
|
537
|
+
/* 17 */
|
|
538
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
542
|
+
exports.Gender = void 0;
|
|
543
|
+
var Gender;
|
|
544
|
+
(function (Gender) {
|
|
545
|
+
Gender["MALE"] = "Male";
|
|
546
|
+
Gender["FEMALE"] = "Female";
|
|
547
|
+
Gender["PREFER_NOT_TO_SAY"] = "Prefer not to say";
|
|
548
|
+
})(Gender || (exports.Gender = Gender = {}));
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
/***/ }),
|
|
552
|
+
/* 18 */
|
|
553
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
557
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
558
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
559
|
+
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;
|
|
560
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
561
|
+
};
|
|
562
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
563
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
564
|
+
};
|
|
565
|
+
var _a, _b;
|
|
566
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
567
|
+
exports.UserDevice = void 0;
|
|
568
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
569
|
+
const user_entity_1 = __webpack_require__(15);
|
|
570
|
+
const status_1 = __webpack_require__(14);
|
|
571
|
+
const osName_1 = __webpack_require__(19);
|
|
572
|
+
let UserDevice = class UserDevice extends sequelize_typescript_1.Model {
|
|
573
|
+
};
|
|
574
|
+
exports.UserDevice = UserDevice;
|
|
575
|
+
__decorate([
|
|
576
|
+
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.User),
|
|
577
|
+
sequelize_typescript_1.Column,
|
|
578
|
+
__metadata("design:type", Number)
|
|
579
|
+
], UserDevice.prototype, "userId", void 0);
|
|
580
|
+
__decorate([
|
|
581
|
+
sequelize_typescript_1.Column,
|
|
582
|
+
__metadata("design:type", String)
|
|
583
|
+
], UserDevice.prototype, "deviceId", void 0);
|
|
584
|
+
__decorate([
|
|
585
|
+
sequelize_typescript_1.Column,
|
|
586
|
+
__metadata("design:type", String)
|
|
587
|
+
], UserDevice.prototype, "fcmToken", void 0);
|
|
588
|
+
__decorate([
|
|
589
|
+
(0, sequelize_typescript_1.Column)({
|
|
590
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
591
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
592
|
+
}),
|
|
593
|
+
__metadata("design:type", typeof (_a = typeof status_1.Status !== "undefined" && status_1.Status) === "function" ? _a : Object)
|
|
594
|
+
], UserDevice.prototype, "status", void 0);
|
|
595
|
+
__decorate([
|
|
596
|
+
(0, sequelize_typescript_1.Column)({
|
|
597
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(osName_1.OsName)),
|
|
598
|
+
allowNull: true,
|
|
599
|
+
}),
|
|
600
|
+
__metadata("design:type", String)
|
|
601
|
+
], UserDevice.prototype, "osSystem", void 0);
|
|
602
|
+
__decorate([
|
|
603
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.User),
|
|
604
|
+
__metadata("design:type", typeof (_b = typeof user_entity_1.User !== "undefined" && user_entity_1.User) === "function" ? _b : Object)
|
|
605
|
+
], UserDevice.prototype, "user", void 0);
|
|
606
|
+
exports.UserDevice = UserDevice = __decorate([
|
|
607
|
+
sequelize_typescript_1.Table
|
|
608
|
+
], UserDevice);
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
/***/ }),
|
|
612
|
+
/* 19 */
|
|
613
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
617
|
+
exports.OsName = void 0;
|
|
618
|
+
var OsName;
|
|
619
|
+
(function (OsName) {
|
|
620
|
+
OsName["ANDROID"] = "android";
|
|
621
|
+
OsName["IOS"] = "iOS";
|
|
622
|
+
OsName["WEB"] = "web";
|
|
623
|
+
})(OsName || (exports.OsName = OsName = {}));
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
/***/ }),
|
|
627
|
+
/* 20 */
|
|
628
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
632
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
633
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
634
|
+
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;
|
|
635
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
636
|
+
};
|
|
637
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
638
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
639
|
+
};
|
|
640
|
+
var _a, _b, _c, _d, _e;
|
|
641
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
642
|
+
exports.ApiKey = void 0;
|
|
643
|
+
const sequelize_typescript_1 = __webpack_require__(9);
|
|
644
|
+
const status_1 = __webpack_require__(14);
|
|
645
|
+
const versiontype_1 = __webpack_require__(21);
|
|
646
|
+
const osName_1 = __webpack_require__(19);
|
|
647
|
+
const productApp_1 = __webpack_require__(22);
|
|
648
|
+
let ApiKey = class ApiKey extends sequelize_typescript_1.Model {
|
|
649
|
+
};
|
|
650
|
+
exports.ApiKey = ApiKey;
|
|
651
|
+
__decorate([
|
|
652
|
+
sequelize_typescript_1.Column,
|
|
653
|
+
__metadata("design:type", String)
|
|
654
|
+
], ApiKey.prototype, "hashedApiKey", void 0);
|
|
655
|
+
__decorate([
|
|
656
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ENUM(...Object.values(osName_1.OsName)) }),
|
|
657
|
+
__metadata("design:type", typeof (_a = typeof osName_1.OsName !== "undefined" && osName_1.OsName) === "function" ? _a : Object)
|
|
658
|
+
], ApiKey.prototype, "osName", void 0);
|
|
659
|
+
__decorate([
|
|
660
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ENUM(...Object.values(productApp_1.ProductApp)) }),
|
|
661
|
+
__metadata("design:type", typeof (_b = typeof productApp_1.ProductApp !== "undefined" && productApp_1.ProductApp) === "function" ? _b : Object)
|
|
662
|
+
], ApiKey.prototype, "appName", void 0);
|
|
663
|
+
__decorate([
|
|
664
|
+
sequelize_typescript_1.Column,
|
|
665
|
+
__metadata("design:type", String)
|
|
666
|
+
], ApiKey.prototype, "appVersion", void 0);
|
|
667
|
+
__decorate([
|
|
668
|
+
sequelize_typescript_1.Column,
|
|
669
|
+
__metadata("design:type", typeof (_c = typeof Date !== "undefined" && Date) === "function" ? _c : Object)
|
|
670
|
+
], ApiKey.prototype, "expiryDate", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
(0, sequelize_typescript_1.Column)({
|
|
673
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
674
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
675
|
+
}),
|
|
676
|
+
__metadata("design:type", typeof (_d = typeof status_1.Status !== "undefined" && status_1.Status) === "function" ? _d : Object)
|
|
677
|
+
], ApiKey.prototype, "status", void 0);
|
|
678
|
+
__decorate([
|
|
679
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
|
|
680
|
+
__metadata("design:type", Boolean)
|
|
681
|
+
], ApiKey.prototype, "isReleased", void 0);
|
|
682
|
+
__decorate([
|
|
683
|
+
(0, sequelize_typescript_1.Column)({
|
|
684
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(versiontype_1.VersionType)),
|
|
685
|
+
defaultValue: versiontype_1.VersionType.OPTIONAL,
|
|
686
|
+
}),
|
|
687
|
+
__metadata("design:type", typeof (_e = typeof versiontype_1.VersionType !== "undefined" && versiontype_1.VersionType) === "function" ? _e : Object)
|
|
688
|
+
], ApiKey.prototype, "versionType", void 0);
|
|
689
|
+
exports.ApiKey = ApiKey = __decorate([
|
|
690
|
+
sequelize_typescript_1.Table
|
|
691
|
+
], ApiKey);
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
/***/ }),
|
|
695
|
+
/* 21 */
|
|
696
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
700
|
+
exports.VersionType = void 0;
|
|
701
|
+
var VersionType;
|
|
702
|
+
(function (VersionType) {
|
|
703
|
+
VersionType["OPTIONAL"] = "optional";
|
|
704
|
+
VersionType["MANDATORY"] = "mandatory";
|
|
705
|
+
})(VersionType || (exports.VersionType = VersionType = {}));
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
/***/ }),
|
|
709
|
+
/* 22 */
|
|
710
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
714
|
+
exports.ProductApp = void 0;
|
|
715
|
+
var ProductApp;
|
|
716
|
+
(function (ProductApp) {
|
|
717
|
+
ProductApp["DASHBOARD"] = "dashboard";
|
|
718
|
+
ProductApp["USER_APP"] = "userapp";
|
|
719
|
+
})(ProductApp || (exports.ProductApp = ProductApp = {}));
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
/***/ })
|
|
723
|
+
/******/ ]);
|
|
724
|
+
/************************************************************************/
|
|
725
|
+
/******/ // The module cache
|
|
726
|
+
/******/ var __webpack_module_cache__ = {};
|
|
727
|
+
/******/
|
|
728
|
+
/******/ // The require function
|
|
729
|
+
/******/ function __webpack_require__(moduleId) {
|
|
730
|
+
/******/ // Check if module is in cache
|
|
731
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
732
|
+
/******/ if (cachedModule !== undefined) {
|
|
733
|
+
/******/ return cachedModule.exports;
|
|
734
|
+
/******/ }
|
|
735
|
+
/******/ // Create a new module (and put it into the cache)
|
|
736
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
737
|
+
/******/ // no module.id needed
|
|
738
|
+
/******/ // no module.loaded needed
|
|
739
|
+
/******/ exports: {}
|
|
740
|
+
/******/ };
|
|
741
|
+
/******/
|
|
742
|
+
/******/ // Execute the module function
|
|
743
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
744
|
+
/******/
|
|
745
|
+
/******/ // Return the exports of the module
|
|
746
|
+
/******/ return module.exports;
|
|
747
|
+
/******/ }
|
|
748
|
+
/******/
|
|
749
|
+
/************************************************************************/
|
|
750
|
+
var __webpack_exports__ = {};
|
|
751
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
752
|
+
(() => {
|
|
753
|
+
var exports = __webpack_exports__;
|
|
754
|
+
|
|
755
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
756
|
+
__webpack_require__(1);
|
|
757
|
+
const core_1 = __webpack_require__(2);
|
|
758
|
+
const app_module_1 = __webpack_require__(3);
|
|
5
759
|
async function bootstrap() {
|
|
6
760
|
const app = await core_1.NestFactory.create(app_module_1.AppModule, { cors: true });
|
|
7
761
|
await app.listen(process.env.SERVER_PORT ?? 9004);
|
|
8
762
|
}
|
|
9
763
|
bootstrap();
|
|
10
|
-
|
|
764
|
+
|
|
765
|
+
})();
|
|
766
|
+
|
|
767
|
+
/******/ })()
|
|
768
|
+
;
|
package/dist/src/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC;AACpD,CAAC;AACD,SAAS,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;AAAA,mCAAiC;AACjC,uCAA2C;AAC3C,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC;AACpD,CAAC;AACD,SAAS,EAAE,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { User } from './entities/user.entity';
|
|
|
9
9
|
import { UserDevice } from './entities/userDevice.entity';
|
|
10
10
|
import { ApiKey } from './entities/apikey.entity';
|
|
11
11
|
|
|
12
|
+
// Entities Export
|
|
12
13
|
export { ApiKey } from './entities/apikey.entity';
|
|
13
14
|
export { Country } from './entities/country.entity';
|
|
14
15
|
export { Translation } from './entities/translation.entity';
|
|
@@ -18,12 +19,13 @@ export { SysUser } from './entities/sys.user.entity';
|
|
|
18
19
|
export { User } from './entities/user.entity';
|
|
19
20
|
export { UserDevice } from './entities/userDevice.entity';
|
|
20
21
|
|
|
21
|
-
//
|
|
22
|
+
// Other Utils Classes
|
|
22
23
|
export { OsName } from './utils/enums/osName';
|
|
23
24
|
export { ProductApp } from './utils/enums/productApp';
|
|
24
25
|
export { VersionType } from './utils/enums/versiontype';
|
|
25
26
|
export { Language } from './utils/enums/language';
|
|
26
27
|
export { Status } from './utils/enums/status';
|
|
28
|
+
export { Gender } from './utils/enums/gender';
|
|
27
29
|
|
|
28
30
|
export function getDbModels(): ModelCtor[] {
|
|
29
31
|
return [
|
package/nest-cli.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/nest-cli",
|
|
2
3
|
"collection": "@nestjs/schematics",
|
|
3
4
|
"sourceRoot": "src",
|
|
5
|
+
"monorepo": true,
|
|
6
|
+
"root": "src",
|
|
4
7
|
"projects": {
|
|
8
|
+
"tatayab-database-all": {
|
|
9
|
+
"type": "application",
|
|
10
|
+
"root": "src",
|
|
11
|
+
"entryFile": "main",
|
|
12
|
+
"sourceRoot": "src",
|
|
13
|
+
"compilerOptions": {
|
|
14
|
+
"tsConfigPath": "tsconfig.json"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
5
17
|
"tatayab-entities-library": {
|
|
6
18
|
"type": "library",
|
|
7
19
|
"root": "libs/tatayab-entities-library",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tt-entities",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Tatayab entities library",
|
|
5
5
|
"main": "dist/libs/tatayab-entities-library/src/index.js",
|
|
6
6
|
"types": "dist/libs/tatayab-entities-library/src/index.d.ts",
|
|
@@ -12,7 +12,19 @@
|
|
|
12
12
|
"url": ""
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "
|
|
15
|
+
"build": "nest build",
|
|
16
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
17
|
+
"start": "nest start",
|
|
18
|
+
"start:dev": "nest start --watch",
|
|
19
|
+
"start:debug": "nest start --debug --watch",
|
|
20
|
+
"start:prod": "node -r tsconfig-paths/register dist/src/main",
|
|
21
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"test:watch": "jest --watch",
|
|
24
|
+
"test:cov": "jest --coverage",
|
|
25
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
26
|
+
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
27
|
+
"build-tt": "tsc",
|
|
16
28
|
"publish-tt": "npm run build && npm publish"
|
|
17
29
|
},
|
|
18
30
|
"repository": {
|
package/src/main.ts
CHANGED