test-entity-library-asm 3.9.34 → 3.9.35

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 (60) hide show
  1. package/dist/entities/CodeRedemptionHistoryUser.d.ts +1 -1
  2. package/dist/entities/CodeRedemptionHistoryUser.js +3 -3
  3. package/dist/entities/Company.js +2 -3
  4. package/dist/entities/CountryHoliday.js +1 -1
  5. package/dist/entities/DiscountCodeUser.js +2 -3
  6. package/dist/entities/Local.js +2 -2
  7. package/dist/entities/LocalPlan.js +2 -2
  8. package/dist/entities/LocalQualification.d.ts +1 -1
  9. package/dist/entities/LocalQualification.js +2 -3
  10. package/dist/entities/LocalReserve.js +2 -3
  11. package/dist/entities/LocalReserveStatus.d.ts +1 -1
  12. package/dist/entities/LocalReserveStatus.js +2 -3
  13. package/dist/entities/LocalTable.js +2 -3
  14. package/dist/entities/LocalTableZone.js +2 -3
  15. package/dist/entities/Master.js +3 -3
  16. package/dist/entities/Partner.js +2 -2
  17. package/dist/entities/Plan.js +2 -2
  18. package/dist/entities/PosSystem.d.ts +4 -1
  19. package/dist/entities/PosSystem.js +30 -2
  20. package/dist/entities/RequestLocal.d.ts +1 -1
  21. package/dist/entities/RequestLocal.js +3 -5
  22. package/dist/entities/RequestLocalHistory.js +2 -2
  23. package/dist/entities/RequestLocalPayment.js +2 -3
  24. package/dist/entities/User.js +4 -4
  25. package/dist/views/DiscountsCodeUser.d.ts +2 -2
  26. package/dist/views/DiscountsCodeUser.js +6 -16
  27. package/dist/views/LocalReserves.d.ts +3 -3
  28. package/dist/views/LocalReserves.js +4 -14
  29. package/dist/views/LocalTableZonesFilter.d.ts +2 -2
  30. package/dist/views/LocalTableZonesFilter.js +3 -13
  31. package/dist/views/LocalsCompany.d.ts +10 -10
  32. package/dist/views/LocalsCompany.js +8 -18
  33. package/dist/views/LocalsCompanyInformationForTheTable.js +0 -8
  34. package/dist/views/MasterNotifications.js +1 -11
  35. package/package.json +1 -1
  36. package/src/entities/CodeRedemptionHistoryUser.ts +5 -5
  37. package/src/entities/Company.ts +2 -3
  38. package/src/entities/CountryHoliday.ts +1 -1
  39. package/src/entities/DiscountCodeUser.ts +3 -4
  40. package/src/entities/Local.ts +2 -2
  41. package/src/entities/LocalPlan.ts +2 -2
  42. package/src/entities/LocalQualification.ts +2 -3
  43. package/src/entities/LocalReserve.ts +6 -7
  44. package/src/entities/LocalReserveStatus.ts +2 -3
  45. package/src/entities/LocalTable.ts +5 -6
  46. package/src/entities/LocalTableZone.ts +2 -3
  47. package/src/entities/Master.ts +13 -8
  48. package/src/entities/Partner.ts +2 -2
  49. package/src/entities/Plan.ts +2 -2
  50. package/src/entities/PosSystem.ts +30 -4
  51. package/src/entities/RequestLocal.ts +8 -10
  52. package/src/entities/RequestLocalHistory.ts +3 -3
  53. package/src/entities/RequestLocalPayment.ts +4 -5
  54. package/src/entities/User.ts +10 -10
  55. package/src/views/DiscountsCodeUser.ts +34 -45
  56. package/src/views/LocalReserves.ts +6 -17
  57. package/src/views/LocalTableZonesFilter.ts +4 -15
  58. package/src/views/LocalsCompany.ts +44 -55
  59. package/src/views/LocalsCompanyInformationForTheTable.ts +0 -9
  60. package/src/views/MasterNotifications.ts +1 -12
@@ -1,6 +1,4 @@
1
1
  import { ViewEntity, ViewColumn } from "typeorm";
2
- import moment = require("moment-timezone");
3
- import { getTimeZone } from "..";
4
2
 
5
3
  // JSON Transformer
6
4
  const jsonTransformer = {
@@ -8,15 +6,6 @@ const jsonTransformer = {
8
6
  from: (value: string) => JSON.parse(value),
9
7
  };
10
8
 
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
9
  @ViewEntity({
21
10
  name: "master_notifications",
22
11
  })
@@ -39,7 +28,7 @@ export class MasterNotifications {
39
28
  @ViewColumn({ transformer: jsonTransformer })
40
29
  settings: any;
41
30
 
42
- @ViewColumn({ transformer: DateTransformer })
31
+ @ViewColumn()
43
32
  created: Date;
44
33
 
45
34
  @ViewColumn()