test-entity-library-asm 3.9.56 → 3.9.58
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.js +5 -11
- package/dist/entities/Country.d.ts +2 -2
- package/dist/entities/Country.js +7 -7
- package/dist/entities/DiscountCodeCompany.js +1 -4
- package/dist/entities/DiscountCodeUser.js +1 -3
- package/dist/entities/Local.js +6 -7
- package/dist/entities/LocalPlan.js +1 -3
- package/dist/entities/Master.js +1 -3
- package/dist/entities/MasterNotification.js +1 -3
- package/dist/entities/Partner.js +1 -3
- package/dist/entities/PartnerNotification.js +1 -3
- package/dist/entities/PaymentMethod.js +1 -3
- package/dist/entities/Plan.js +1 -3
- package/dist/entities/Square.js +1 -3
- package/dist/entities/User.js +1 -3
- package/dist/filters/LocalsCompanyInformationForTheTable.d.ts +1 -1
- package/dist/filters/LocalsCompanyInformationForTheTable.js +63 -14
- package/dist/index.js +5 -5
- package/dist/interfaces.d.ts +0 -1
- package/dist/views/DiscountsCodeUser.js +2 -15
- package/dist/views/LocalReserves.js +2 -15
- package/dist/views/LocalsCompanyInformationForTheMap.js +10 -22
- package/dist/views/LocalsCompanyInformationForTheTable.d.ts +2 -2
- package/dist/views/LocalsCompanyInformationForTheTable.js +16 -28
- package/dist/views/MasterNotifications.js +5 -10
- package/dist/views/PartnerNotifications.js +3 -8
- package/dist/views/Partners.js +2 -15
- package/dist/views/ViewLocalsCompanies.js +1 -6
- package/package.json +1 -1
- package/src/entities/Company.ts +5 -11
- package/src/entities/Country.ts +9 -9
- package/src/entities/DiscountCodeCompany.ts +1 -4
- package/src/entities/DiscountCodeUser.ts +1 -3
- package/src/entities/Local.ts +7 -9
- package/src/entities/LocalPlan.ts +1 -3
- package/src/entities/Master.ts +2 -4
- package/src/entities/MasterNotification.ts +1 -3
- package/src/entities/Partner.ts +1 -3
- package/src/entities/PartnerNotification.ts +1 -3
- package/src/entities/PaymentMethod.ts +1 -3
- package/src/entities/Plan.ts +1 -3
- package/src/entities/Square.ts +1 -3
- package/src/entities/User.ts +1 -3
- package/src/filters/LocalsCompanyInformationForTheTable.ts +66 -23
- package/src/index.ts +9 -10
- package/src/interfaces.ts +0 -1
- package/src/views/DiscountsCodeUser.ts +2 -16
- package/src/views/LocalReserves.ts +2 -15
- package/src/views/LocalsCompanyInformationForTheMap.ts +10 -22
- package/src/views/LocalsCompanyInformationForTheTable.ts +17 -29
- package/src/views/MasterNotifications.ts +5 -11
- package/src/views/PartnerNotifications.ts +3 -9
- package/src/views/Partners.ts +2 -15
- package/src/views/ViewLocalsCompanies.ts +1 -7
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ViewEntity, ViewColumn } from "typeorm";
|
|
2
2
|
|
|
3
|
-
// JSON Transformer
|
|
4
|
-
const jsonTransformer = {
|
|
5
|
-
to: (value: any) => JSON.stringify(value),
|
|
6
|
-
from: (value: string) => JSON.parse(value),
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
@ViewEntity({
|
|
10
4
|
name: "partner_notifications",
|
|
11
5
|
})
|
|
@@ -25,7 +19,7 @@ export class PartnerNotifications {
|
|
|
25
19
|
@ViewColumn()
|
|
26
20
|
description: string;
|
|
27
21
|
|
|
28
|
-
@ViewColumn(
|
|
22
|
+
@ViewColumn()
|
|
29
23
|
settings: any;
|
|
30
24
|
|
|
31
25
|
@ViewColumn()
|
|
@@ -40,7 +34,7 @@ export class PartnerNotifications {
|
|
|
40
34
|
@ViewColumn()
|
|
41
35
|
partner_surname: string;
|
|
42
36
|
|
|
43
|
-
@ViewColumn(
|
|
37
|
+
@ViewColumn()
|
|
44
38
|
partner_profile: any;
|
|
45
39
|
|
|
46
40
|
@ViewColumn()
|
|
@@ -67,7 +61,7 @@ export class PartnerNotifications {
|
|
|
67
61
|
@ViewColumn()
|
|
68
62
|
master_phone: string;
|
|
69
63
|
|
|
70
|
-
@ViewColumn(
|
|
64
|
+
@ViewColumn()
|
|
71
65
|
master_profile: any;
|
|
72
66
|
|
|
73
67
|
@ViewColumn()
|
package/src/views/Partners.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { ViewEntity, ViewColumn } from "typeorm";
|
|
2
2
|
|
|
3
|
-
// JSON Transformer
|
|
4
|
-
const jsonTransformer = {
|
|
5
|
-
to: (value: any) => JSON.stringify(value),
|
|
6
|
-
from: (value: string) => {
|
|
7
|
-
try {
|
|
8
|
-
return JSON.parse(value);
|
|
9
|
-
} catch (error) {
|
|
10
|
-
console.log(error, "Transformer error");
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
3
|
@ViewEntity({
|
|
17
4
|
name: "partners",
|
|
18
5
|
})
|
|
@@ -50,7 +37,7 @@ export class Partners {
|
|
|
50
37
|
@ViewColumn()
|
|
51
38
|
password: string;
|
|
52
39
|
|
|
53
|
-
@ViewColumn(
|
|
40
|
+
@ViewColumn()
|
|
54
41
|
profile: any;
|
|
55
42
|
|
|
56
43
|
@ViewColumn()
|
|
@@ -101,7 +88,7 @@ export class Partners {
|
|
|
101
88
|
@ViewColumn()
|
|
102
89
|
country_structure_phone: string;
|
|
103
90
|
|
|
104
|
-
@ViewColumn(
|
|
91
|
+
@ViewColumn()
|
|
105
92
|
country_details: any;
|
|
106
93
|
|
|
107
94
|
@ViewColumn()
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ViewEntity, ViewColumn } from "typeorm";
|
|
2
2
|
|
|
3
|
-
// JSON Transformer
|
|
4
|
-
const jsonTransformer = {
|
|
5
|
-
to: (value: any) => JSON.stringify(value),
|
|
6
|
-
from: (value: string) => JSON.parse(value),
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
@ViewEntity({
|
|
10
4
|
name: "view_locals_companies",
|
|
11
5
|
})
|
|
@@ -28,7 +22,7 @@ export class ViewLocalsCompanies {
|
|
|
28
22
|
@ViewColumn()
|
|
29
23
|
has_square: number;
|
|
30
24
|
|
|
31
|
-
@ViewColumn(
|
|
25
|
+
@ViewColumn()
|
|
32
26
|
details_local: any;
|
|
33
27
|
|
|
34
28
|
@ViewColumn()
|