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.
Files changed (54) hide show
  1. package/dist/entities/Company.js +5 -11
  2. package/dist/entities/Country.d.ts +2 -2
  3. package/dist/entities/Country.js +7 -7
  4. package/dist/entities/DiscountCodeCompany.js +1 -4
  5. package/dist/entities/DiscountCodeUser.js +1 -3
  6. package/dist/entities/Local.js +6 -7
  7. package/dist/entities/LocalPlan.js +1 -3
  8. package/dist/entities/Master.js +1 -3
  9. package/dist/entities/MasterNotification.js +1 -3
  10. package/dist/entities/Partner.js +1 -3
  11. package/dist/entities/PartnerNotification.js +1 -3
  12. package/dist/entities/PaymentMethod.js +1 -3
  13. package/dist/entities/Plan.js +1 -3
  14. package/dist/entities/Square.js +1 -3
  15. package/dist/entities/User.js +1 -3
  16. package/dist/filters/LocalsCompanyInformationForTheTable.d.ts +1 -1
  17. package/dist/filters/LocalsCompanyInformationForTheTable.js +63 -14
  18. package/dist/index.js +5 -5
  19. package/dist/interfaces.d.ts +0 -1
  20. package/dist/views/DiscountsCodeUser.js +2 -15
  21. package/dist/views/LocalReserves.js +2 -15
  22. package/dist/views/LocalsCompanyInformationForTheMap.js +10 -22
  23. package/dist/views/LocalsCompanyInformationForTheTable.d.ts +2 -2
  24. package/dist/views/LocalsCompanyInformationForTheTable.js +16 -28
  25. package/dist/views/MasterNotifications.js +5 -10
  26. package/dist/views/PartnerNotifications.js +3 -8
  27. package/dist/views/Partners.js +2 -15
  28. package/dist/views/ViewLocalsCompanies.js +1 -6
  29. package/package.json +1 -1
  30. package/src/entities/Company.ts +5 -11
  31. package/src/entities/Country.ts +9 -9
  32. package/src/entities/DiscountCodeCompany.ts +1 -4
  33. package/src/entities/DiscountCodeUser.ts +1 -3
  34. package/src/entities/Local.ts +7 -9
  35. package/src/entities/LocalPlan.ts +1 -3
  36. package/src/entities/Master.ts +2 -4
  37. package/src/entities/MasterNotification.ts +1 -3
  38. package/src/entities/Partner.ts +1 -3
  39. package/src/entities/PartnerNotification.ts +1 -3
  40. package/src/entities/PaymentMethod.ts +1 -3
  41. package/src/entities/Plan.ts +1 -3
  42. package/src/entities/Square.ts +1 -3
  43. package/src/entities/User.ts +1 -3
  44. package/src/filters/LocalsCompanyInformationForTheTable.ts +66 -23
  45. package/src/index.ts +9 -10
  46. package/src/interfaces.ts +0 -1
  47. package/src/views/DiscountsCodeUser.ts +2 -16
  48. package/src/views/LocalReserves.ts +2 -15
  49. package/src/views/LocalsCompanyInformationForTheMap.ts +10 -22
  50. package/src/views/LocalsCompanyInformationForTheTable.ts +17 -29
  51. package/src/views/MasterNotifications.ts +5 -11
  52. package/src/views/PartnerNotifications.ts +3 -9
  53. package/src/views/Partners.ts +2 -15
  54. 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({ transformer: jsonTransformer })
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({ transformer: jsonTransformer })
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({ transformer: jsonTransformer })
64
+ @ViewColumn()
71
65
  master_profile: any;
72
66
 
73
67
  @ViewColumn()
@@ -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({ transformer: jsonTransformer })
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({ transformer: jsonTransformer })
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({ transformer: jsonTransformer })
25
+ @ViewColumn()
32
26
  details_local: any;
33
27
 
34
28
  @ViewColumn()