@natrave/shared-entities 1.4.58 → 1.4.60

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.
@@ -0,0 +1,20 @@
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
+ }
12
+ export declare class AppDownloadDaily {
13
+ day: string;
14
+ platform: DownloadPlatform;
15
+ metric: DownloadMetric;
16
+ value: number;
17
+ source: DownloadSource;
18
+ fetchedAt: Date;
19
+ }
20
+ //# sourceMappingURL=app-download-daily.entity.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,90 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
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 || {});
26
+ const BigIntToNumber = {
27
+ to: (value) => value,
28
+ from: (value) => value ? Number(value) : 0
29
+ };
30
+ let AppDownloadDaily = class {
31
+ };
32
+ __decorateClass([
33
+ PrimaryColumn({
34
+ name: "day",
35
+ type: "date",
36
+ comment: "Dia (UTC) do agregado."
37
+ })
38
+ ], AppDownloadDaily.prototype, "day", 2);
39
+ __decorateClass([
40
+ PrimaryColumn({
41
+ name: "platform",
42
+ type: "enum",
43
+ enum: DownloadPlatform,
44
+ comment: "Plataforma do app."
45
+ })
46
+ ], AppDownloadDaily.prototype, "platform", 2);
47
+ __decorateClass([
48
+ PrimaryColumn({
49
+ name: "metric",
50
+ type: "enum",
51
+ enum: DownloadMetric,
52
+ default: "downloads" /* DOWNLOADS */,
53
+ comment: "Nome da m\xE9trica agregada."
54
+ })
55
+ ], AppDownloadDaily.prototype, "metric", 2);
56
+ __decorateClass([
57
+ Column({
58
+ name: "value",
59
+ type: "bigint",
60
+ transformer: BigIntToNumber,
61
+ comment: "Valor agregado di\xE1rio da m\xE9trica."
62
+ })
63
+ ], AppDownloadDaily.prototype, "value", 2);
64
+ __decorateClass([
65
+ Column({
66
+ name: "source",
67
+ type: "enum",
68
+ enum: DownloadSource,
69
+ comment: "Origem do dado (GA4 ou App Store Connect)."
70
+ })
71
+ ], AppDownloadDaily.prototype, "source", 2);
72
+ __decorateClass([
73
+ Column({
74
+ name: "fetched_at",
75
+ type: "timestamptz",
76
+ default: () => "now()",
77
+ comment: "Momento em que o valor foi coletado/atualizado."
78
+ })
79
+ ], AppDownloadDaily.prototype, "fetchedAt", 2);
80
+ AppDownloadDaily = __decorateClass([
81
+ Entity("downloads_daily"),
82
+ Index(["day"]),
83
+ Index(["platform", "day"])
84
+ ], AppDownloadDaily);
85
+ export {
86
+ AppDownloadDaily,
87
+ DownloadMetric,
88
+ DownloadPlatform,
89
+ DownloadSource
90
+ };
@@ -0,0 +1,2 @@
1
+ export { AppDownloadDaily } from './app-download-daily.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backoffice/app-downloads/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AppDownloadDaily } from "./app-download-daily.entity.js";
2
+ export {
3
+ AppDownloadDaily
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './app-downloads';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./app-downloads/index.js";
package/dist/index.d.ts CHANGED
@@ -8,4 +8,5 @@ export * from './notifications';
8
8
  export * from './players';
9
9
  export * from './teams';
10
10
  export { DATABASE_ENTITIES } from './database-entities';
11
+ export * from './backoffice';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ export * from "./notifications/index.js";
8
8
  export * from "./players/index.js";
9
9
  export * from "./teams/index.js";
10
10
  import { DATABASE_ENTITIES } from "./database-entities/index.js";
11
+ export * from "./backoffice/index.js";
11
12
  export {
12
13
  DATABASE_ENTITIES
13
14
  };
@@ -4,6 +4,9 @@ export declare enum Position {
4
4
  FULLBACK = "fullback",
5
5
  DEFENSIVE_MIDFIELDER = "defensive_midfielder",
6
6
  MIDFIELDER = "midfielder",
7
- FORWARD = "forward"
7
+ FORWARD = "forward",
8
+ FUTSAL_DEFENDER = "futsal_defender",
9
+ FUTSAL_PIVOT = "futsal_pivot",
10
+ FUTSAL_WINGER = "futsal_winger"
8
11
  }
9
12
  //# sourceMappingURL=position.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"position.enum.d.ts","sourceRoot":"","sources":["../../../../src/players/player-position/enums/position.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB"}
1
+ {"version":3,"file":"position.enum.d.ts","sourceRoot":"","sources":["../../../../src/players/player-position/enums/position.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC"}
@@ -5,6 +5,9 @@ var Position = /* @__PURE__ */ ((Position2) => {
5
5
  Position2["DEFENSIVE_MIDFIELDER"] = "defensive_midfielder";
6
6
  Position2["MIDFIELDER"] = "midfielder";
7
7
  Position2["FORWARD"] = "forward";
8
+ Position2["FUTSAL_DEFENDER"] = "futsal_defender";
9
+ Position2["FUTSAL_PIVOT"] = "futsal_pivot";
10
+ Position2["FUTSAL_WINGER"] = "futsal_winger";
8
11
  return Position2;
9
12
  })(Position || {});
10
13
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.4.58",
3
+ "version": "1.4.60",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",