@natrave/shared-entities 1.4.60 → 1.4.61

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.
@@ -1,14 +1,4 @@
1
- export declare enum DownloadPlatform {
2
- ANDROID = "android",
3
- IOS = "ios"
4
- }
5
- export declare enum DownloadMetric {
6
- DOWNLOADS = "downloads"
7
- }
8
- export declare enum DownloadSource {
9
- GA4 = "ga4",
10
- APPSTORE = "appstore"
11
- }
1
+ import { DownloadMetric, DownloadPlatform, DownloadSource } from '..';
12
2
  export declare class AppDownloadDaily {
13
3
  day: string;
14
4
  platform: DownloadPlatform;
@@ -1 +1 @@
1
- {"version":3,"file":"app-download-daily.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/app-downloads/app-download-daily.entity.ts"],"names":[],"mappings":"AAKA,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,GAAG,QAAQ;CACZ;AAKD,oBAAY,cAAc;IACxB,SAAS,cAAc;CACxB;AAKD,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,QAAQ,aAAa;CACtB;AAYD,qBAGa,gBAAgB;IAM3B,GAAG,EAAE,MAAM,CAAC;IAQZ,QAAQ,EAAE,gBAAgB,CAAC;IAS3B,MAAM,EAAE,cAAc,CAAC;IAQvB,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,cAAc,CAAC;IAQvB,SAAS,EAAE,IAAI,CAAC;CACjB"}
1
+ {"version":3,"file":"app-download-daily.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/app-downloads/app-download-daily.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAYtE,qBAGa,gBAAgB;IAM3B,GAAG,EAAE,MAAM,CAAC;IAQZ,QAAQ,EAAE,gBAAgB,CAAC;IAS3B,MAAM,EAAE,cAAc,CAAC;IAQvB,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,cAAc,CAAC;IAQvB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -9,20 +9,7 @@ var __decorateClass = (decorators, target, key, kind) => {
9
9
  return result;
10
10
  };
11
11
  import { Column, Entity, Index, PrimaryColumn } from "typeorm";
12
- var DownloadPlatform = /* @__PURE__ */ ((DownloadPlatform2) => {
13
- DownloadPlatform2["ANDROID"] = "android";
14
- DownloadPlatform2["IOS"] = "ios";
15
- return DownloadPlatform2;
16
- })(DownloadPlatform || {});
17
- var DownloadMetric = /* @__PURE__ */ ((DownloadMetric2) => {
18
- DownloadMetric2["DOWNLOADS"] = "downloads";
19
- return DownloadMetric2;
20
- })(DownloadMetric || {});
21
- var DownloadSource = /* @__PURE__ */ ((DownloadSource2) => {
22
- DownloadSource2["GA4"] = "ga4";
23
- DownloadSource2["APPSTORE"] = "appstore";
24
- return DownloadSource2;
25
- })(DownloadSource || {});
12
+ import { DownloadMetric, DownloadPlatform, DownloadSource } from "..";
26
13
  const BigIntToNumber = {
27
14
  to: (value) => value,
28
15
  from: (value) => value ? Number(value) : 0
@@ -49,7 +36,7 @@ __decorateClass([
49
36
  name: "metric",
50
37
  type: "enum",
51
38
  enum: DownloadMetric,
52
- default: "downloads" /* DOWNLOADS */,
39
+ default: DownloadMetric.DOWNLOADS,
53
40
  comment: "Nome da m\xE9trica agregada."
54
41
  })
55
42
  ], AppDownloadDaily.prototype, "metric", 2);
@@ -83,8 +70,5 @@ AppDownloadDaily = __decorateClass([
83
70
  Index(["platform", "day"])
84
71
  ], AppDownloadDaily);
85
72
  export {
86
- AppDownloadDaily,
87
- DownloadMetric,
88
- DownloadPlatform,
89
- DownloadSource
73
+ AppDownloadDaily
90
74
  };
@@ -0,0 +1,4 @@
1
+ export declare enum DownloadMetric {
2
+ DOWNLOADS = "downloads"
3
+ }
4
+ //# sourceMappingURL=metric.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metric.enum.d.ts","sourceRoot":"","sources":["../../../src/backoffice/enums/metric.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,SAAS,cAAc;CACxB"}
@@ -0,0 +1,7 @@
1
+ var DownloadMetric = /* @__PURE__ */ ((DownloadMetric2) => {
2
+ DownloadMetric2["DOWNLOADS"] = "downloads";
3
+ return DownloadMetric2;
4
+ })(DownloadMetric || {});
5
+ export {
6
+ DownloadMetric
7
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum DownloadPlatform {
2
+ ANDROID = "android",
3
+ IOS = "ios"
4
+ }
5
+ //# sourceMappingURL=platform.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.enum.d.ts","sourceRoot":"","sources":["../../../src/backoffice/enums/platform.enum.ts"],"names":[],"mappings":"AAGA,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,GAAG,QAAQ;CACZ"}
@@ -0,0 +1,8 @@
1
+ var DownloadPlatform = /* @__PURE__ */ ((DownloadPlatform2) => {
2
+ DownloadPlatform2["ANDROID"] = "android";
3
+ DownloadPlatform2["IOS"] = "ios";
4
+ return DownloadPlatform2;
5
+ })(DownloadPlatform || {});
6
+ export {
7
+ DownloadPlatform
8
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum DownloadSource {
2
+ GA4 = "ga4",
3
+ APPSTORE = "appstore"
4
+ }
5
+ //# sourceMappingURL=source.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.enum.d.ts","sourceRoot":"","sources":["../../../src/backoffice/enums/source.enum.ts"],"names":[],"mappings":"AAGA,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,8 @@
1
+ var DownloadSource = /* @__PURE__ */ ((DownloadSource2) => {
2
+ DownloadSource2["GA4"] = "ga4";
3
+ DownloadSource2["APPSTORE"] = "appstore";
4
+ return DownloadSource2;
5
+ })(DownloadSource || {});
6
+ export {
7
+ DownloadSource
8
+ };
@@ -1,2 +1,5 @@
1
1
  export * from './app-downloads';
2
+ export { DownloadMetric } from './enums/metric.enum';
3
+ export { DownloadPlatform } from './enums/platform.enum';
4
+ export { DownloadSource } from './enums/source.enum';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1,9 @@
1
1
  export * from "./app-downloads/index.js";
2
+ import { DownloadMetric } from "./enums/metric.enum.js";
3
+ import { DownloadPlatform } from "./enums/platform.enum.js";
4
+ import { DownloadSource } from "./enums/source.enum.js";
5
+ export {
6
+ DownloadMetric,
7
+ DownloadPlatform,
8
+ DownloadSource
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.4.60",
3
+ "version": "1.4.61",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",