@yolo-croket-dev/entity-v2 0.2.120-jun.0 → 0.2.120-jun.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.
|
@@ -25,6 +25,8 @@ export interface AppPushDeviceTokenEntity {
|
|
|
25
25
|
deviceType: AppPushDeviceType;
|
|
26
26
|
/** 앱 버전 */
|
|
27
27
|
appVersion?: string;
|
|
28
|
+
/** 디바이스 고유 식별자 (Android: ANDROID_ID, iOS: IDFV → 향후 Keychain UUID) */
|
|
29
|
+
deviceId?: string;
|
|
28
30
|
/** 디바이스 정보 */
|
|
29
31
|
deviceInfo?: DeviceInfo;
|
|
30
32
|
/** 마지막 수정일 */
|
|
@@ -7,17 +7,8 @@ export declare enum AppPushSendLogTypeEnum {
|
|
|
7
7
|
/** 대량 앱푸시 */
|
|
8
8
|
대량 = "bulk"
|
|
9
9
|
}
|
|
10
|
-
/** 발송 채널 */
|
|
11
|
-
export declare enum AppPushSendLogChannelEnum {
|
|
12
|
-
/** 개별 디바이스 토큰 FCM */
|
|
13
|
-
토큰 = "token",
|
|
14
|
-
/** 그룹 키 FCM */
|
|
15
|
-
그룹 = "group",
|
|
16
|
-
/** AWS SNS */
|
|
17
|
-
SNS = "sns"
|
|
18
|
-
}
|
|
19
10
|
/** 앱 푸시 개별 발송 결과 로그 */
|
|
20
|
-
export
|
|
11
|
+
export interface AppPushSendLogEntity {
|
|
21
12
|
_id: Types.ObjectId;
|
|
22
13
|
/** 발송 대상 유저 아이디 */
|
|
23
14
|
userId: Types.ObjectId;
|
|
@@ -25,19 +16,17 @@ export default interface AppPushSendLogEntity {
|
|
|
25
16
|
traceId: string;
|
|
26
17
|
/** 발송 타입 (single: 단일, bulk: 대량) */
|
|
27
18
|
type: AppPushSendLogTypeEnum;
|
|
28
|
-
/** 발송 채널 (token: 개별토큰, group: 그룹키, sns: AWS SNS) */
|
|
29
|
-
channel: AppPushSendLogChannelEnum;
|
|
30
19
|
/** 대량 푸시 로그 아이디 (type: bulk 일 때만) */
|
|
31
20
|
bulkPushLogId?: Types.ObjectId;
|
|
32
21
|
/** 발송 성공 여부 */
|
|
33
22
|
success: boolean;
|
|
34
23
|
/** 실패 사유 (실패 시에만) */
|
|
35
24
|
failureReason?: string;
|
|
36
|
-
/** 디바이스 토큰
|
|
25
|
+
/** 디바이스 토큰 */
|
|
37
26
|
deviceToken?: string;
|
|
38
27
|
/** 디바이스 타입 (ios, android, etc) */
|
|
39
28
|
deviceType?: AppPushDeviceType;
|
|
40
|
-
/** 디바이스 정보
|
|
29
|
+
/** 디바이스 정보 */
|
|
41
30
|
deviceInfo?: DeviceInfo;
|
|
42
31
|
/** 발송 시도 시간 */
|
|
43
32
|
attemptedAt: Date;
|
|
@@ -45,7 +34,6 @@ export default interface AppPushSendLogEntity {
|
|
|
45
34
|
succeededAt?: Date;
|
|
46
35
|
/** 발송 실패 시간 (실패 시에만) */
|
|
47
36
|
failedAt?: Date;
|
|
48
|
-
/**
|
|
49
|
-
|
|
37
|
+
/** 등록일 (TTL index 대상) */
|
|
38
|
+
regDate: Date;
|
|
50
39
|
}
|
|
51
|
-
export { AppPushSendLogEntity };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AppPushSendLogTypeEnum = void 0;
|
|
4
4
|
/** 발송 타입 */
|
|
5
5
|
var AppPushSendLogTypeEnum;
|
|
6
6
|
(function (AppPushSendLogTypeEnum) {
|
|
@@ -9,13 +9,3 @@ var AppPushSendLogTypeEnum;
|
|
|
9
9
|
/** 대량 앱푸시 */
|
|
10
10
|
AppPushSendLogTypeEnum["\uB300\uB7C9"] = "bulk";
|
|
11
11
|
})(AppPushSendLogTypeEnum || (exports.AppPushSendLogTypeEnum = AppPushSendLogTypeEnum = {}));
|
|
12
|
-
/** 발송 채널 */
|
|
13
|
-
var AppPushSendLogChannelEnum;
|
|
14
|
-
(function (AppPushSendLogChannelEnum) {
|
|
15
|
-
/** 개별 디바이스 토큰 FCM */
|
|
16
|
-
AppPushSendLogChannelEnum["\uD1A0\uD070"] = "token";
|
|
17
|
-
/** 그룹 키 FCM */
|
|
18
|
-
AppPushSendLogChannelEnum["\uADF8\uB8F9"] = "group";
|
|
19
|
-
/** AWS SNS */
|
|
20
|
-
AppPushSendLogChannelEnum["SNS"] = "sns";
|
|
21
|
-
})(AppPushSendLogChannelEnum || (exports.AppPushSendLogChannelEnum = AppPushSendLogChannelEnum = {}));
|