test-entity-library-asm 2.7.8 → 2.7.10
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/entities/VerifyLocal.d.ts +1 -0
- package/dist/entities/VerifyLocal.js +7 -0
- package/dist/entities.views.routes.d.ts +1 -0
- package/dist/entities.views.routes.js +3 -1
- package/dist/views/ViewLocalsCompanies.d.ts +17 -0
- package/dist/views/ViewLocalsCompanies.js +99 -0
- package/package.json +1 -1
- package/src/entities/VerifyLocal.ts +7 -0
- package/src/entities.views.routes.ts +1 -0
- package/src/views/ViewLocalsCompanies.ts +66 -0
|
@@ -129,6 +129,13 @@ var VerifyLocal = /** @class */ (function () {
|
|
|
129
129
|
}),
|
|
130
130
|
__metadata("design:type", Number)
|
|
131
131
|
], VerifyLocal.prototype, "status", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({
|
|
134
|
+
default: 1,
|
|
135
|
+
comment: 'Visible al usuario: 1 El registro es visto por el administrador en los lcoales verificados.0 El registro no es visto para el administrador y pasa a la papelera de reciclaje',
|
|
136
|
+
}),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], VerifyLocal.prototype, "visible", void 0);
|
|
132
139
|
VerifyLocal = __decorate([
|
|
133
140
|
(0, typeorm_1.Entity)({
|
|
134
141
|
name: 'verify_local',
|
|
@@ -49,6 +49,7 @@ export { PartnerPlatform } from './entities/PartnerPlatform';
|
|
|
49
49
|
export { LocalsCompany } from './views/LocalsCompany';
|
|
50
50
|
export { VerifyLocals } from './views/VerifyLocals';
|
|
51
51
|
export { MasterNotifications } from './views/MasterNotifications';
|
|
52
|
+
export { ViewLocalsCompanies } from './views/ViewLocalsCompanies';
|
|
52
53
|
export { Partners } from './views/Partners';
|
|
53
54
|
export { DiscountsCodeUser } from './views/DiscountsCodeUser';
|
|
54
55
|
export { CustomRepository } from './CustomRepository';
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.VerifyLocals = exports.LocalsCompany = exports.PartnerPlatform = exports.PartnerPermissionSection = exports.LocalPlan = exports.ReassignReview = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.TerminalSession = exports.Terminal = exports.Square = exports.RequestStatus = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
|
|
18
|
-
exports.CustomRepository = exports.DiscountsCodeUser = exports.Partners = exports.MasterNotifications = void 0;
|
|
18
|
+
exports.CustomRepository = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = void 0;
|
|
19
19
|
var BusinessTypeProduct_1 = require("./entities/BusinessTypeProduct");
|
|
20
20
|
Object.defineProperty(exports, "BusinessTypeProduct", { enumerable: true, get: function () { return BusinessTypeProduct_1.BusinessTypeProduct; } });
|
|
21
21
|
var Category_1 = require("./entities/Category");
|
|
@@ -118,6 +118,8 @@ var VerifyLocals_1 = require("./views/VerifyLocals");
|
|
|
118
118
|
Object.defineProperty(exports, "VerifyLocals", { enumerable: true, get: function () { return VerifyLocals_1.VerifyLocals; } });
|
|
119
119
|
var MasterNotifications_1 = require("./views/MasterNotifications");
|
|
120
120
|
Object.defineProperty(exports, "MasterNotifications", { enumerable: true, get: function () { return MasterNotifications_1.MasterNotifications; } });
|
|
121
|
+
var ViewLocalsCompanies_1 = require("./views/ViewLocalsCompanies");
|
|
122
|
+
Object.defineProperty(exports, "ViewLocalsCompanies", { enumerable: true, get: function () { return ViewLocalsCompanies_1.ViewLocalsCompanies; } });
|
|
121
123
|
var Partners_1 = require("./views/Partners");
|
|
122
124
|
Object.defineProperty(exports, "Partners", { enumerable: true, get: function () { return Partners_1.Partners; } });
|
|
123
125
|
var DiscountsCodeUser_1 = require("./views/DiscountsCodeUser");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class ViewLocalsCompanies {
|
|
2
|
+
id_local: number;
|
|
3
|
+
name_local: string;
|
|
4
|
+
created_local: string;
|
|
5
|
+
updated_local: string;
|
|
6
|
+
status_local: number;
|
|
7
|
+
has_square: string;
|
|
8
|
+
pos_system_name: string;
|
|
9
|
+
city_name: string;
|
|
10
|
+
region_name: string;
|
|
11
|
+
country_name: string;
|
|
12
|
+
country_code: string;
|
|
13
|
+
square_name: string;
|
|
14
|
+
total_partners: number;
|
|
15
|
+
local_contact_details: any;
|
|
16
|
+
address: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ViewLocalsCompanies = void 0;
|
|
13
|
+
var typeorm_1 = require("typeorm");
|
|
14
|
+
var moment = require("moment-timezone");
|
|
15
|
+
var __1 = require("..");
|
|
16
|
+
// JSON Transformer
|
|
17
|
+
var jsonTransformer = {
|
|
18
|
+
to: function (value) { return JSON.stringify(value); },
|
|
19
|
+
from: function (value) { return JSON.parse(value); },
|
|
20
|
+
};
|
|
21
|
+
var DateTransformer = {
|
|
22
|
+
to: function (value) {
|
|
23
|
+
return moment.utc(value).format('YYYY-MM-DD HH:mm:ss');
|
|
24
|
+
},
|
|
25
|
+
from: function (value) {
|
|
26
|
+
return moment.utc(value).tz((0, __1.getTimeZone)()).format('YYYY-MM-DD HH:mm:ss');
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
var ViewLocalsCompanies = /** @class */ (function () {
|
|
30
|
+
function ViewLocalsCompanies() {
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.ViewColumn)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ViewLocalsCompanies.prototype, "id_local", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ViewColumn)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ViewLocalsCompanies.prototype, "name_local", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ViewColumn)({ transformer: DateTransformer }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ViewLocalsCompanies.prototype, "created_local", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ViewColumn)({ transformer: DateTransformer }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ViewLocalsCompanies.prototype, "updated_local", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ViewColumn)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ViewLocalsCompanies.prototype, "status_local", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ViewColumn)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ViewLocalsCompanies.prototype, "has_square", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ViewColumn)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ViewLocalsCompanies.prototype, "pos_system_name", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.ViewColumn)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ViewLocalsCompanies.prototype, "city_name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ViewColumn)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ViewLocalsCompanies.prototype, "region_name", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.ViewColumn)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], ViewLocalsCompanies.prototype, "country_name", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ViewColumn)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], ViewLocalsCompanies.prototype, "country_code", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.ViewColumn)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], ViewLocalsCompanies.prototype, "square_name", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.ViewColumn)(),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], ViewLocalsCompanies.prototype, "total_partners", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], ViewLocalsCompanies.prototype, "local_contact_details", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.ViewColumn)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], ViewLocalsCompanies.prototype, "address", void 0);
|
|
92
|
+
ViewLocalsCompanies = __decorate([
|
|
93
|
+
(0, typeorm_1.ViewEntity)({
|
|
94
|
+
name: 'view_locals_companies',
|
|
95
|
+
})
|
|
96
|
+
], ViewLocalsCompanies);
|
|
97
|
+
return ViewLocalsCompanies;
|
|
98
|
+
}());
|
|
99
|
+
exports.ViewLocalsCompanies = ViewLocalsCompanies;
|
package/package.json
CHANGED
|
@@ -113,4 +113,11 @@ export class VerifyLocal {
|
|
|
113
113
|
'Este campo hace referencia al estado que tiene la verificación del local, es decir:\r\n1. Pendiente de verificación (Pending verification): Este estado hace referencia a que el usuario ya creó el local y lo mandó a verificación, entonces, le queda al master validar y aprobar o rechazar.\r\n\r\n2. Rechazado (Rejected): Hace referencia a que el master verificó y por alguna razón rechazó la información de la creación del local.\r\n\r\n3. Aprobado (approved): Hace referencia a que la información y se procede a la realización del pago (Si hay un plan, no debería hacer el pago, eso es automático).',
|
|
114
114
|
})
|
|
115
115
|
status: number
|
|
116
|
+
|
|
117
|
+
@Column({
|
|
118
|
+
default: 1,
|
|
119
|
+
comment:
|
|
120
|
+
'Visible al usuario: 1 El registro es visto por el administrador en los lcoales verificados.0 El registro no es visto para el administrador y pasa a la papelera de reciclaje',
|
|
121
|
+
})
|
|
122
|
+
visible: number
|
|
116
123
|
}
|
|
@@ -50,6 +50,7 @@ export { PartnerPlatform } from './entities/PartnerPlatform'
|
|
|
50
50
|
export { LocalsCompany } from './views/LocalsCompany'
|
|
51
51
|
export { VerifyLocals } from './views/VerifyLocals'
|
|
52
52
|
export { MasterNotifications } from './views/MasterNotifications'
|
|
53
|
+
export { ViewLocalsCompanies } from './views/ViewLocalsCompanies'
|
|
53
54
|
export { Partners } from './views/Partners'
|
|
54
55
|
export { DiscountsCodeUser } from './views/DiscountsCodeUser'
|
|
55
56
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ViewEntity, ViewColumn } from 'typeorm'
|
|
2
|
+
import moment = require('moment-timezone')
|
|
3
|
+
import { getTimeZone } from '..'
|
|
4
|
+
|
|
5
|
+
// JSON Transformer
|
|
6
|
+
const jsonTransformer = {
|
|
7
|
+
to: (value: any) => JSON.stringify(value),
|
|
8
|
+
from: (value: string) => JSON.parse(value),
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const DateTransformer = {
|
|
12
|
+
to(value: Date | string): string {
|
|
13
|
+
return moment.utc(value).format('YYYY-MM-DD HH:mm:ss')
|
|
14
|
+
},
|
|
15
|
+
from(value: string): string {
|
|
16
|
+
return moment.utc(value).tz(getTimeZone()).format('YYYY-MM-DD HH:mm:ss')
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@ViewEntity({
|
|
21
|
+
name: 'view_locals_companies',
|
|
22
|
+
})
|
|
23
|
+
export class ViewLocalsCompanies {
|
|
24
|
+
@ViewColumn()
|
|
25
|
+
id_local: number
|
|
26
|
+
@ViewColumn()
|
|
27
|
+
name_local: string
|
|
28
|
+
@ViewColumn({ transformer: DateTransformer })
|
|
29
|
+
created_local: string
|
|
30
|
+
|
|
31
|
+
@ViewColumn({ transformer: DateTransformer })
|
|
32
|
+
updated_local: string
|
|
33
|
+
|
|
34
|
+
@ViewColumn()
|
|
35
|
+
status_local: number
|
|
36
|
+
|
|
37
|
+
@ViewColumn()
|
|
38
|
+
has_square: string
|
|
39
|
+
|
|
40
|
+
@ViewColumn()
|
|
41
|
+
pos_system_name: string
|
|
42
|
+
|
|
43
|
+
@ViewColumn()
|
|
44
|
+
city_name: string
|
|
45
|
+
|
|
46
|
+
@ViewColumn()
|
|
47
|
+
region_name: string
|
|
48
|
+
|
|
49
|
+
@ViewColumn()
|
|
50
|
+
country_name: string
|
|
51
|
+
|
|
52
|
+
@ViewColumn()
|
|
53
|
+
country_code: string
|
|
54
|
+
|
|
55
|
+
@ViewColumn()
|
|
56
|
+
square_name: string
|
|
57
|
+
|
|
58
|
+
@ViewColumn()
|
|
59
|
+
total_partners: number
|
|
60
|
+
|
|
61
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
62
|
+
local_contact_details: any
|
|
63
|
+
|
|
64
|
+
@ViewColumn()
|
|
65
|
+
address: string
|
|
66
|
+
}
|