@yolo-croket-dev/entity-v2 0.2.96-hjj-9 → 0.2.97-hj-1

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 {
@@ -10,6 +10,16 @@ export declare enum AttributionChannelEnum {
10
10
  META = "meta",
11
11
  GOOGLE = "google"
12
12
  }
13
+ /**
14
+ * @description
15
+ * yg 정보
16
+ * 존재 이유: 기존 앱 버전은 utm 데이터를 상품 상세 페이지 에서만 읽기 때문에 외부용 utm 정보들을 수집 불가
17
+ * -> yg정보는 앱에서 언제든 추적 하기 때문에 외부에 yg 정보를 심어 마케팅 팀에서 사용하였음 (yg정보가 심어진 외부 광고가 많음)
18
+ * */
19
+ export interface AttributionYgGroup {
20
+ yg_type?: string;
21
+ yg_method?: string;
22
+ }
13
23
  export interface AttributionUtmGroup {
14
24
  utm_source?: string;
15
25
  utm_medium?: string;
@@ -57,7 +67,7 @@ export declare enum AttributionTouchTypeEnum {
57
67
  EXTERNAL = "external"
58
68
  }
59
69
  export interface AttributionTouchEntity {
60
- _id: Types.ObjectId;
70
+ _id: Types.ObjectId | string;
61
71
  /** 아이피 */
62
72
  ip: string;
63
73
  /** 운영체제 */
@@ -66,6 +76,10 @@ export interface AttributionTouchEntity {
66
76
  attributionId?: string;
67
77
  /** 만료 날짜 ttl 처리 */
68
78
  expired_ttl?: Date;
79
+ /** 터치 시간 - 생성일 */
80
+ touchTime: Date;
81
+ /** ygGroup */
82
+ ygGroup?: AttributionYgGroup;
69
83
  /** 채널 */
70
84
  channel?: AttributionChannelEnum;
71
85
  /** utm 그룹 */
@@ -79,8 +93,13 @@ export interface AttributionTouchEntity {
79
93
  /** 구글 */
80
94
  google?: AttributionGoogle;
81
95
  referrer?: string;
96
+ /** 랜딩 url (해당 url의 프로퍼티에서 필요한 값들을 추출) */
82
97
  landingUrl?: string;
98
+ /** 터치 타입 (내부, 외부) */
83
99
  type: AttributionTouchTypeEnum;
100
+ userId?: Types.ObjectId | string;
101
+ /** 내부용 이벤트 */
84
102
  event?: string;
103
+ /** 내부용 파라미터 */
85
104
  params?: string;
86
105
  }
@@ -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/index.d.ts CHANGED
@@ -52,3 +52,4 @@ export * from './brand.modules/brand-log';
52
52
  export * from './daily-random-coupon-noti-user';
53
53
  export * from './store-item.modules';
54
54
  export * from './attribution-touch';
55
+ export * from './attribution-history';
package/index.js CHANGED
@@ -68,3 +68,4 @@ __exportStar(require("./brand.modules/brand-log"), exports);
68
68
  __exportStar(require("./daily-random-coupon-noti-user"), exports);
69
69
  __exportStar(require("./store-item.modules"), exports);
70
70
  __exportStar(require("./attribution-touch"), exports);
71
+ __exportStar(require("./attribution-history"), exports);
@@ -24,8 +24,8 @@ export declare enum NaverSearchAdExcelStatusEnum {
24
24
  done = "done"
25
25
  }
26
26
  export interface NaverSearchAdExcelSearchInfo {
27
- /** 캠페인 ID (필수) */
28
- nccCampaignId: string;
27
+ /** 캠페인 ID (선택) */
28
+ nccCampaignId?: string;
29
29
  /** 광고그룹 ID (선택) */
30
30
  nccAdgroupId?: string;
31
31
  /** 소재 ID (선택) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.96-hjj-9",
3
+ "version": "0.2.97-hj-1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -237,7 +237,5 @@ export default interface UserEntity {
237
237
  needsPhoneVerification?: boolean;
238
238
  /** @description 유저 배송지 정보 목록 */
239
239
  shippingAddresses?: UserShippingAddressesEntity[];
240
- /** @description 어트리뷰션터치 추적용 아이디 */
241
- attributionId?: string;
242
240
  }
243
241
  export { UserEntity };