@yolo-croket-dev/entity-v2 0.2.96-hj-13 → 0.2.96-hj-15

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,9 @@
1
+ import { Types } from 'mongoose';
2
+ import { AttributionTouchEntity } from '../attribution-touch';
3
+ export interface AttributionHistoryEntity {
4
+ _id: Types.ObjectId | string;
5
+ userId: Types.ObjectId | string;
6
+ pInfoIds: Types.ObjectId[] | string[];
7
+ regDate: Date;
8
+ histories: AttributionTouchEntity[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './attribution-history.entity';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./attribution-history.entity"), exports);
@@ -1,7 +1,7 @@
1
1
  import { Types } from 'mongoose';
2
2
  export declare enum AttributionPlatformEnum {
3
3
  ANDROID = "android",
4
- IOS = "ios",
4
+ IOS = "iOS",
5
5
  DESKTOP = "desktop"
6
6
  }
7
7
  export declare enum AttributionChannelEnum {
@@ -57,7 +57,7 @@ export declare enum AttributionTouchTypeEnum {
57
57
  EXTERNAL = "external"
58
58
  }
59
59
  export interface AttributionTouchEntity {
60
- _id: Types.ObjectId;
60
+ _id: Types.ObjectId | string;
61
61
  /** 아이피 */
62
62
  ip: string;
63
63
  /** 운영체제 */
@@ -66,6 +66,8 @@ export interface AttributionTouchEntity {
66
66
  attributionId?: string;
67
67
  /** 만료 날짜 ttl 처리 */
68
68
  expired_ttl?: Date;
69
+ /** 터치 시간 - 생성일 */
70
+ touchTime?: Date;
69
71
  /** 채널 */
70
72
  channel?: AttributionChannelEnum;
71
73
  /** utm 그룹 */
@@ -81,7 +83,7 @@ export interface AttributionTouchEntity {
81
83
  referrer?: string;
82
84
  landingUrl?: string;
83
85
  type: AttributionTouchTypeEnum;
84
- userId?: Types.ObjectId;
86
+ userId?: Types.ObjectId | string;
85
87
  event?: string;
86
88
  params?: string;
87
89
  }
@@ -4,7 +4,7 @@ exports.AttributionTouchTypeEnum = exports.AttributionChannelEnum = exports.Attr
4
4
  var AttributionPlatformEnum;
5
5
  (function (AttributionPlatformEnum) {
6
6
  AttributionPlatformEnum["ANDROID"] = "android";
7
- AttributionPlatformEnum["IOS"] = "ios";
7
+ AttributionPlatformEnum["IOS"] = "iOS";
8
8
  AttributionPlatformEnum["DESKTOP"] = "desktop";
9
9
  })(AttributionPlatformEnum || (exports.AttributionPlatformEnum = AttributionPlatformEnum = {}));
10
10
  var AttributionChannelEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.96-hj-13",
3
+ "version": "0.2.96-hj-15",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",