@asumano/worklip-typeorm-db 1.1.66 → 1.1.68
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/Company.d.ts +3 -0
- package/dist/entities/Company.js +27 -0
- package/dist/entities/Master.d.ts +1 -1
- package/dist/entities/Master.js +2 -1
- package/dist/entities/SubscriptionPlan.d.ts +2 -0
- package/dist/entities/SubscriptionPlan.js +6 -0
- package/dist/entities.index.d.ts +7 -0
- package/dist/entities.index.js +17 -1
- package/dist/views/Companies.d.ts +47 -0
- package/dist/views/Companies.js +201 -0
- package/dist/views/GlobalTemplateSectionItems.d.ts +13 -0
- package/dist/views/GlobalTemplateSectionItems.js +65 -0
- package/dist/views/GlobalTemplateSections.d.ts +12 -0
- package/dist/views/GlobalTemplateSections.js +61 -0
- package/dist/views/GlobalTemplates.d.ts +14 -0
- package/dist/views/GlobalTemplates.js +69 -0
- package/dist/views/Masters.d.ts +24 -0
- package/dist/views/Masters.js +109 -0
- package/dist/views/SubscriptionAddonTemplates.d.ts +14 -0
- package/dist/views/SubscriptionAddonTemplates.js +69 -0
- package/dist/views/SubscriptionPlans.d.ts +22 -0
- package/dist/views/SubscriptionPlans.js +101 -0
- package/package.json +1 -1
package/dist/entities/Company.js
CHANGED
|
@@ -56,6 +56,24 @@ __decorate([
|
|
|
56
56
|
}),
|
|
57
57
|
__metadata("design:type", Object)
|
|
58
58
|
], Company.prototype, "details", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({
|
|
61
|
+
type: "datetime",
|
|
62
|
+
comment: "Fecha de creación del registro.",
|
|
63
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], Company.prototype, "created", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({
|
|
69
|
+
type: "datetime",
|
|
70
|
+
nullable: true,
|
|
71
|
+
default: null,
|
|
72
|
+
comment: "Fecha de actualización del registro.",
|
|
73
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], Company.prototype, "updated", void 0);
|
|
59
77
|
__decorate([
|
|
60
78
|
(0, typeorm_1.Column)({
|
|
61
79
|
default: 1,
|
|
@@ -65,6 +83,15 @@ __decorate([
|
|
|
65
83
|
}),
|
|
66
84
|
__metadata("design:type", Number)
|
|
67
85
|
], Company.prototype, "status", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({
|
|
88
|
+
default: 1,
|
|
89
|
+
type: "int",
|
|
90
|
+
width: 1,
|
|
91
|
+
comment: "Es el estado para verificar si se envía en la papelera o no.",
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], Company.prototype, "visible", void 0);
|
|
68
95
|
__decorate([
|
|
69
96
|
(0, typeorm_1.OneToMany)(() => Vehicle_1.Vehicle, (vehicle) => vehicle.company),
|
|
70
97
|
__metadata("design:type", Array)
|
package/dist/entities/Master.js
CHANGED
|
@@ -76,9 +76,10 @@ __decorate([
|
|
|
76
76
|
(0, typeorm_1.ManyToOne)(() => City_1.City, (city) => city.masters, {
|
|
77
77
|
onDelete: "RESTRICT",
|
|
78
78
|
onUpdate: "NO ACTION",
|
|
79
|
+
nullable: true,
|
|
79
80
|
}),
|
|
80
81
|
(0, typeorm_1.JoinColumn)({ name: "city" }),
|
|
81
|
-
__metadata("design:type",
|
|
82
|
+
__metadata("design:type", Object)
|
|
82
83
|
], Master.prototype, "city", void 0);
|
|
83
84
|
__decorate([
|
|
84
85
|
(0, typeorm_1.Column)({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Company } from "./Company";
|
|
1
2
|
import { CompanySubscription } from "./CompanySubscription";
|
|
2
3
|
export declare class SubscriptionPlan {
|
|
3
4
|
id: number;
|
|
@@ -12,6 +13,7 @@ export declare class SubscriptionPlan {
|
|
|
12
13
|
max_users: number;
|
|
13
14
|
retention_days: number | null;
|
|
14
15
|
is_custom: number;
|
|
16
|
+
company: Company | null;
|
|
15
17
|
status: number;
|
|
16
18
|
created: Date;
|
|
17
19
|
updated: Date | null;
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubscriptionPlan = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Company_1 = require("./Company");
|
|
14
15
|
const CompanySubscription_1 = require("./CompanySubscription");
|
|
15
16
|
let SubscriptionPlan = class SubscriptionPlan {
|
|
16
17
|
};
|
|
@@ -110,6 +111,11 @@ __decorate([
|
|
|
110
111
|
}),
|
|
111
112
|
__metadata("design:type", Number)
|
|
112
113
|
], SubscriptionPlan.prototype, "is_custom", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.ManyToOne)(() => Company_1.Company, { onDelete: "SET NULL", onUpdate: "NO ACTION" }),
|
|
116
|
+
(0, typeorm_1.JoinColumn)({ name: "company" }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], SubscriptionPlan.prototype, "company", void 0);
|
|
113
119
|
__decorate([
|
|
114
120
|
(0, typeorm_1.Column)({
|
|
115
121
|
default: 1,
|
package/dist/entities.index.d.ts
CHANGED
|
@@ -55,3 +55,10 @@ export { TemplateSections } from "./views/TemplateSections";
|
|
|
55
55
|
export { TemplateSectionItems } from "./views/TemplateSectionItems";
|
|
56
56
|
export { Workshops } from "./views/Workshops";
|
|
57
57
|
export { WorkshopsByAssociate } from "./views/WorkshopsByAssociate";
|
|
58
|
+
export { Companies } from "./views/Companies";
|
|
59
|
+
export { Masters } from "./views/Masters";
|
|
60
|
+
export { SubscriptionPlans } from "./views/SubscriptionPlans";
|
|
61
|
+
export { SubscriptionAddonTemplates } from "./views/SubscriptionAddonTemplates";
|
|
62
|
+
export { GlobalTemplates } from "./views/GlobalTemplates";
|
|
63
|
+
export { GlobalTemplateSections } from "./views/GlobalTemplateSections";
|
|
64
|
+
export { GlobalTemplateSectionItems } from "./views/GlobalTemplateSectionItems";
|
package/dist/entities.index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Clients = exports.ServicesOrder = exports.Associates = exports.UsageAlert = exports.SubscriptionAddonTemplate = exports.PaymentTransaction = exports.BillingInvoice = exports.EmailLog = exports.WhatsappLog = exports.ServiceOrderApproval = exports.MediaFile = exports.BillingUsageSnapshot = exports.PaymentMethod = exports.SubscriptionAddon = exports.CompanySubscription = exports.SubscriptionPlan = exports.CountryHoliday = exports.CompanyVehicleType = exports.CompanyBrand = exports.VehicleType = exports.MasterSection = exports.MasterPermission = exports.MasterRole = exports.MasterPlatform = exports.AssociatePasswordReset = exports.AssociateSection = exports.AssociatePermission = exports.AssociateRole = exports.AssociatePlatform = exports.Reminder = exports.ServiceOrderHistory = exports.ServiceOrder = exports.TemplateSectionItem = exports.TemplateSection = exports.Template = exports.Workshop = exports.GlobalTemplateSectionItem = exports.GlobalTemplateSection = exports.GlobalTemplate = exports.AssociateSession = exports.MasterSession = exports.Associate = exports.Client = exports.Master = exports.Vehicle = exports.Brand = exports.Company = exports.City = exports.Region = exports.Country = void 0;
|
|
4
|
-
exports.WorkshopsByAssociate = exports.Workshops = exports.TemplateSectionItems = exports.TemplateSections = exports.Templates = exports.Reminders = exports.Vehicles = void 0;
|
|
4
|
+
exports.GlobalTemplateSectionItems = exports.GlobalTemplateSections = exports.GlobalTemplates = exports.SubscriptionAddonTemplates = exports.SubscriptionPlans = exports.Masters = exports.Companies = exports.WorkshopsByAssociate = exports.Workshops = exports.TemplateSectionItems = exports.TemplateSections = exports.Templates = exports.Reminders = exports.Vehicles = void 0;
|
|
5
5
|
var Country_1 = require("./entities/Country");
|
|
6
6
|
Object.defineProperty(exports, "Country", { enumerable: true, get: function () { return Country_1.Country; } });
|
|
7
7
|
var Region_1 = require("./entities/Region");
|
|
@@ -116,3 +116,19 @@ var Workshops_1 = require("./views/Workshops");
|
|
|
116
116
|
Object.defineProperty(exports, "Workshops", { enumerable: true, get: function () { return Workshops_1.Workshops; } });
|
|
117
117
|
var WorkshopsByAssociate_1 = require("./views/WorkshopsByAssociate");
|
|
118
118
|
Object.defineProperty(exports, "WorkshopsByAssociate", { enumerable: true, get: function () { return WorkshopsByAssociate_1.WorkshopsByAssociate; } });
|
|
119
|
+
// DOC: Vistas del panel administrativo (worklip-admin-web). El SQL que las crea
|
|
120
|
+
// está en sql/08_admin_views.sql y hay que aplicarlo ANTES de publicar.
|
|
121
|
+
var Companies_1 = require("./views/Companies");
|
|
122
|
+
Object.defineProperty(exports, "Companies", { enumerable: true, get: function () { return Companies_1.Companies; } });
|
|
123
|
+
var Masters_1 = require("./views/Masters");
|
|
124
|
+
Object.defineProperty(exports, "Masters", { enumerable: true, get: function () { return Masters_1.Masters; } });
|
|
125
|
+
var SubscriptionPlans_1 = require("./views/SubscriptionPlans");
|
|
126
|
+
Object.defineProperty(exports, "SubscriptionPlans", { enumerable: true, get: function () { return SubscriptionPlans_1.SubscriptionPlans; } });
|
|
127
|
+
var SubscriptionAddonTemplates_1 = require("./views/SubscriptionAddonTemplates");
|
|
128
|
+
Object.defineProperty(exports, "SubscriptionAddonTemplates", { enumerable: true, get: function () { return SubscriptionAddonTemplates_1.SubscriptionAddonTemplates; } });
|
|
129
|
+
var GlobalTemplates_1 = require("./views/GlobalTemplates");
|
|
130
|
+
Object.defineProperty(exports, "GlobalTemplates", { enumerable: true, get: function () { return GlobalTemplates_1.GlobalTemplates; } });
|
|
131
|
+
var GlobalTemplateSections_1 = require("./views/GlobalTemplateSections");
|
|
132
|
+
Object.defineProperty(exports, "GlobalTemplateSections", { enumerable: true, get: function () { return GlobalTemplateSections_1.GlobalTemplateSections; } });
|
|
133
|
+
var GlobalTemplateSectionItems_1 = require("./views/GlobalTemplateSectionItems");
|
|
134
|
+
Object.defineProperty(exports, "GlobalTemplateSectionItems", { enumerable: true, get: function () { return GlobalTemplateSectionItems_1.GlobalTemplateSectionItems; } });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare class Companies {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
country: number;
|
|
6
|
+
details: any | null;
|
|
7
|
+
created: Date;
|
|
8
|
+
updated: Date | null;
|
|
9
|
+
status: number;
|
|
10
|
+
visible: number;
|
|
11
|
+
country_id: number;
|
|
12
|
+
country_code: string;
|
|
13
|
+
country_name: string;
|
|
14
|
+
country_currency: string;
|
|
15
|
+
country_prefix: string;
|
|
16
|
+
country_structure_phone: string;
|
|
17
|
+
country_details: any | null;
|
|
18
|
+
country_status: number;
|
|
19
|
+
owner_id: number | null;
|
|
20
|
+
owner_code: string | null;
|
|
21
|
+
owner_document: string | null;
|
|
22
|
+
owner_name: string | null;
|
|
23
|
+
owner_surname: string | null;
|
|
24
|
+
owner_full_name: string | null;
|
|
25
|
+
owner_email: string | null;
|
|
26
|
+
owner_phone: string | null;
|
|
27
|
+
owner_status: number | null;
|
|
28
|
+
users_count: number;
|
|
29
|
+
users_total_count: number;
|
|
30
|
+
workshops_count: number;
|
|
31
|
+
workshops_total_count: number;
|
|
32
|
+
visits_count: number;
|
|
33
|
+
addons_count: number;
|
|
34
|
+
subscription_id: number | null;
|
|
35
|
+
subscription_status: number | null;
|
|
36
|
+
subscription_start_date: string | null;
|
|
37
|
+
subscription_end_date: string | null;
|
|
38
|
+
subscription_billing_day: number | null;
|
|
39
|
+
subscription_price_monthly: number | null;
|
|
40
|
+
subscription_pending_plan: number | null;
|
|
41
|
+
plan_id: number | null;
|
|
42
|
+
plan_code: string | null;
|
|
43
|
+
plan_name: string | null;
|
|
44
|
+
plan_price_monthly: number | null;
|
|
45
|
+
plan_is_custom: number | null;
|
|
46
|
+
plan_status: number | null;
|
|
47
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
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.Companies = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Companies = class Companies {
|
|
15
|
+
};
|
|
16
|
+
exports.Companies = Companies;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], Companies.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Companies.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Companies.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Companies.prototype, "country", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], Companies.prototype, "details", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], Companies.prototype, "created", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], Companies.prototype, "updated", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], Companies.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Companies.prototype, "visible", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Companies.prototype, "country_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Companies.prototype, "country_code", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Companies.prototype, "country_name", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.ViewColumn)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Companies.prototype, "country_currency", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ViewColumn)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Companies.prototype, "country_prefix", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ViewColumn)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Companies.prototype, "country_structure_phone", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.ViewColumn)(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], Companies.prototype, "country_details", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.ViewColumn)(),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], Companies.prototype, "country_status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.ViewColumn)(),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], Companies.prototype, "owner_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.ViewColumn)(),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], Companies.prototype, "owner_code", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ViewColumn)(),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], Companies.prototype, "owner_document", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.ViewColumn)(),
|
|
99
|
+
__metadata("design:type", Object)
|
|
100
|
+
], Companies.prototype, "owner_name", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.ViewColumn)(),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], Companies.prototype, "owner_surname", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.ViewColumn)(),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], Companies.prototype, "owner_full_name", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.ViewColumn)(),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], Companies.prototype, "owner_email", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.ViewColumn)(),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], Companies.prototype, "owner_phone", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.ViewColumn)(),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], Companies.prototype, "owner_status", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.ViewColumn)(),
|
|
123
|
+
__metadata("design:type", Number)
|
|
124
|
+
], Companies.prototype, "users_count", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.ViewColumn)(),
|
|
127
|
+
__metadata("design:type", Number)
|
|
128
|
+
], Companies.prototype, "users_total_count", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.ViewColumn)(),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
|
+
], Companies.prototype, "workshops_count", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.ViewColumn)(),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], Companies.prototype, "workshops_total_count", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.ViewColumn)(),
|
|
139
|
+
__metadata("design:type", Number)
|
|
140
|
+
], Companies.prototype, "visits_count", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.ViewColumn)(),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], Companies.prototype, "addons_count", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.ViewColumn)(),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], Companies.prototype, "subscription_id", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.ViewColumn)(),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], Companies.prototype, "subscription_status", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.ViewColumn)(),
|
|
155
|
+
__metadata("design:type", Object)
|
|
156
|
+
], Companies.prototype, "subscription_start_date", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.ViewColumn)(),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], Companies.prototype, "subscription_end_date", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.ViewColumn)(),
|
|
163
|
+
__metadata("design:type", Object)
|
|
164
|
+
], Companies.prototype, "subscription_billing_day", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.ViewColumn)(),
|
|
167
|
+
__metadata("design:type", Object)
|
|
168
|
+
], Companies.prototype, "subscription_price_monthly", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.ViewColumn)(),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], Companies.prototype, "subscription_pending_plan", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.ViewColumn)(),
|
|
175
|
+
__metadata("design:type", Object)
|
|
176
|
+
], Companies.prototype, "plan_id", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.ViewColumn)(),
|
|
179
|
+
__metadata("design:type", Object)
|
|
180
|
+
], Companies.prototype, "plan_code", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.ViewColumn)(),
|
|
183
|
+
__metadata("design:type", Object)
|
|
184
|
+
], Companies.prototype, "plan_name", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.ViewColumn)(),
|
|
187
|
+
__metadata("design:type", Object)
|
|
188
|
+
], Companies.prototype, "plan_price_monthly", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.ViewColumn)(),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], Companies.prototype, "plan_is_custom", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.ViewColumn)(),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], Companies.prototype, "plan_status", void 0);
|
|
197
|
+
exports.Companies = Companies = __decorate([
|
|
198
|
+
(0, typeorm_1.ViewEntity)({
|
|
199
|
+
name: "companies",
|
|
200
|
+
})
|
|
201
|
+
], Companies);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class GlobalTemplateSectionItems {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
section: number;
|
|
5
|
+
name: string;
|
|
6
|
+
observation: string | null;
|
|
7
|
+
order: number;
|
|
8
|
+
details: any | null;
|
|
9
|
+
created: Date;
|
|
10
|
+
updated: Date | null;
|
|
11
|
+
status: number;
|
|
12
|
+
template_id: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.GlobalTemplateSectionItems = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let GlobalTemplateSectionItems = class GlobalTemplateSectionItems {
|
|
15
|
+
};
|
|
16
|
+
exports.GlobalTemplateSectionItems = GlobalTemplateSectionItems;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], GlobalTemplateSectionItems.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GlobalTemplateSectionItems.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], GlobalTemplateSectionItems.prototype, "section", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GlobalTemplateSectionItems.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], GlobalTemplateSectionItems.prototype, "observation", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], GlobalTemplateSectionItems.prototype, "order", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], GlobalTemplateSectionItems.prototype, "details", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], GlobalTemplateSectionItems.prototype, "created", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], GlobalTemplateSectionItems.prototype, "updated", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], GlobalTemplateSectionItems.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], GlobalTemplateSectionItems.prototype, "template_id", void 0);
|
|
61
|
+
exports.GlobalTemplateSectionItems = GlobalTemplateSectionItems = __decorate([
|
|
62
|
+
(0, typeorm_1.ViewEntity)({
|
|
63
|
+
name: "global_template_section_items",
|
|
64
|
+
})
|
|
65
|
+
], GlobalTemplateSectionItems);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GlobalTemplateSections {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
template: number;
|
|
5
|
+
name: string;
|
|
6
|
+
order: number;
|
|
7
|
+
details: any | null;
|
|
8
|
+
created: Date;
|
|
9
|
+
updated: Date | null;
|
|
10
|
+
status: number;
|
|
11
|
+
global_template_section_items_count: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.GlobalTemplateSections = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let GlobalTemplateSections = class GlobalTemplateSections {
|
|
15
|
+
};
|
|
16
|
+
exports.GlobalTemplateSections = GlobalTemplateSections;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], GlobalTemplateSections.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GlobalTemplateSections.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], GlobalTemplateSections.prototype, "template", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GlobalTemplateSections.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], GlobalTemplateSections.prototype, "order", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], GlobalTemplateSections.prototype, "details", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], GlobalTemplateSections.prototype, "created", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], GlobalTemplateSections.prototype, "updated", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], GlobalTemplateSections.prototype, "status", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], GlobalTemplateSections.prototype, "global_template_section_items_count", void 0);
|
|
57
|
+
exports.GlobalTemplateSections = GlobalTemplateSections = __decorate([
|
|
58
|
+
(0, typeorm_1.ViewEntity)({
|
|
59
|
+
name: "global_template_sections",
|
|
60
|
+
})
|
|
61
|
+
], GlobalTemplateSections);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class GlobalTemplates {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
vehicle_type: number;
|
|
5
|
+
name: string;
|
|
6
|
+
created: Date;
|
|
7
|
+
updated: Date | null;
|
|
8
|
+
status: number;
|
|
9
|
+
vehicle_type_id: number | null;
|
|
10
|
+
vehicle_type_name: string | null;
|
|
11
|
+
vehicle_type_details: any | null;
|
|
12
|
+
vehicle_type_status: number | null;
|
|
13
|
+
global_template_sections_count: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.GlobalTemplates = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let GlobalTemplates = class GlobalTemplates {
|
|
15
|
+
};
|
|
16
|
+
exports.GlobalTemplates = GlobalTemplates;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], GlobalTemplates.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GlobalTemplates.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], GlobalTemplates.prototype, "vehicle_type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GlobalTemplates.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], GlobalTemplates.prototype, "created", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], GlobalTemplates.prototype, "updated", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], GlobalTemplates.prototype, "status", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], GlobalTemplates.prototype, "vehicle_type_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], GlobalTemplates.prototype, "vehicle_type_name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], GlobalTemplates.prototype, "vehicle_type_details", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], GlobalTemplates.prototype, "vehicle_type_status", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], GlobalTemplates.prototype, "global_template_sections_count", void 0);
|
|
65
|
+
exports.GlobalTemplates = GlobalTemplates = __decorate([
|
|
66
|
+
(0, typeorm_1.ViewEntity)({
|
|
67
|
+
name: "global_templates",
|
|
68
|
+
})
|
|
69
|
+
], GlobalTemplates);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class Masters {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
document: string;
|
|
5
|
+
name: string;
|
|
6
|
+
surname: string;
|
|
7
|
+
full_name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
address: string | null;
|
|
11
|
+
details: any | null;
|
|
12
|
+
created: Date;
|
|
13
|
+
updated: Date | null;
|
|
14
|
+
status: number;
|
|
15
|
+
visible: number;
|
|
16
|
+
city_id: number | null;
|
|
17
|
+
city_name: string | null;
|
|
18
|
+
city_region: number | null;
|
|
19
|
+
city_status: number | null;
|
|
20
|
+
region_id: number | null;
|
|
21
|
+
region_name: string | null;
|
|
22
|
+
region_country: number | null;
|
|
23
|
+
permissions_count: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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.Masters = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Masters = class Masters {
|
|
15
|
+
};
|
|
16
|
+
exports.Masters = Masters;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], Masters.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Masters.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Masters.prototype, "document", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Masters.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Masters.prototype, "surname", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Masters.prototype, "full_name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Masters.prototype, "email", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Masters.prototype, "phone", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], Masters.prototype, "address", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], Masters.prototype, "details", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], Masters.prototype, "created", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], Masters.prototype, "updated", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.ViewColumn)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], Masters.prototype, "status", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ViewColumn)(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Masters.prototype, "visible", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ViewColumn)(),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], Masters.prototype, "city_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.ViewColumn)(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], Masters.prototype, "city_name", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.ViewColumn)(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], Masters.prototype, "city_region", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.ViewColumn)(),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], Masters.prototype, "city_status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.ViewColumn)(),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], Masters.prototype, "region_id", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ViewColumn)(),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], Masters.prototype, "region_name", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.ViewColumn)(),
|
|
99
|
+
__metadata("design:type", Object)
|
|
100
|
+
], Masters.prototype, "region_country", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.ViewColumn)(),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], Masters.prototype, "permissions_count", void 0);
|
|
105
|
+
exports.Masters = Masters = __decorate([
|
|
106
|
+
(0, typeorm_1.ViewEntity)({
|
|
107
|
+
name: "masters",
|
|
108
|
+
})
|
|
109
|
+
], Masters);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class SubscriptionAddonTemplates {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
addon_type: number;
|
|
7
|
+
quantity: number;
|
|
8
|
+
monthly_price: number;
|
|
9
|
+
status: number;
|
|
10
|
+
created: Date;
|
|
11
|
+
updated: Date | null;
|
|
12
|
+
companies_count: number;
|
|
13
|
+
addons_count: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.SubscriptionAddonTemplates = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let SubscriptionAddonTemplates = class SubscriptionAddonTemplates {
|
|
15
|
+
};
|
|
16
|
+
exports.SubscriptionAddonTemplates = SubscriptionAddonTemplates;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], SubscriptionAddonTemplates.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SubscriptionAddonTemplates.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SubscriptionAddonTemplates.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SubscriptionAddonTemplates.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], SubscriptionAddonTemplates.prototype, "addon_type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], SubscriptionAddonTemplates.prototype, "quantity", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], SubscriptionAddonTemplates.prototype, "monthly_price", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], SubscriptionAddonTemplates.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], SubscriptionAddonTemplates.prototype, "created", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], SubscriptionAddonTemplates.prototype, "updated", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], SubscriptionAddonTemplates.prototype, "companies_count", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], SubscriptionAddonTemplates.prototype, "addons_count", void 0);
|
|
65
|
+
exports.SubscriptionAddonTemplates = SubscriptionAddonTemplates = __decorate([
|
|
66
|
+
(0, typeorm_1.ViewEntity)({
|
|
67
|
+
name: "subscription_addon_templates",
|
|
68
|
+
})
|
|
69
|
+
], SubscriptionAddonTemplates);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class SubscriptionPlans {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
price_monthly: number;
|
|
7
|
+
included_storage_gb: number;
|
|
8
|
+
included_whatsapp_messages: number;
|
|
9
|
+
included_emails: number;
|
|
10
|
+
max_workshops: number;
|
|
11
|
+
max_users: number;
|
|
12
|
+
retention_days: number | null;
|
|
13
|
+
is_custom: number;
|
|
14
|
+
company: number | null;
|
|
15
|
+
company_name: string | null;
|
|
16
|
+
status: number;
|
|
17
|
+
created: Date;
|
|
18
|
+
updated: Date | null;
|
|
19
|
+
companies_count: number;
|
|
20
|
+
subscriptions_count: number;
|
|
21
|
+
pending_count: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.SubscriptionPlans = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let SubscriptionPlans = class SubscriptionPlans {
|
|
15
|
+
};
|
|
16
|
+
exports.SubscriptionPlans = SubscriptionPlans;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], SubscriptionPlans.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SubscriptionPlans.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SubscriptionPlans.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], SubscriptionPlans.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], SubscriptionPlans.prototype, "price_monthly", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], SubscriptionPlans.prototype, "included_storage_gb", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], SubscriptionPlans.prototype, "included_whatsapp_messages", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], SubscriptionPlans.prototype, "included_emails", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], SubscriptionPlans.prototype, "max_workshops", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], SubscriptionPlans.prototype, "max_users", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], SubscriptionPlans.prototype, "retention_days", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], SubscriptionPlans.prototype, "is_custom", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.ViewColumn)(),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], SubscriptionPlans.prototype, "company", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ViewColumn)(),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], SubscriptionPlans.prototype, "company_name", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ViewColumn)(),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], SubscriptionPlans.prototype, "status", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.ViewColumn)(),
|
|
79
|
+
__metadata("design:type", Date)
|
|
80
|
+
], SubscriptionPlans.prototype, "created", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.ViewColumn)(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], SubscriptionPlans.prototype, "updated", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.ViewColumn)(),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], SubscriptionPlans.prototype, "companies_count", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.ViewColumn)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], SubscriptionPlans.prototype, "subscriptions_count", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ViewColumn)(),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], SubscriptionPlans.prototype, "pending_count", void 0);
|
|
97
|
+
exports.SubscriptionPlans = SubscriptionPlans = __decorate([
|
|
98
|
+
(0, typeorm_1.ViewEntity)({
|
|
99
|
+
name: "subscription_plans",
|
|
100
|
+
})
|
|
101
|
+
], SubscriptionPlans);
|