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