@yolo-croket-dev/amqp-access 0.7.228 → 0.7.229
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.
- package/package.json +1 -1
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/user-service/dto/store-md-theme/query/get-store-md-theme-admin-preview.dto.d.ts +28 -0
- package/user-service/dto/store-md-theme/query/get-store-md-theme-admin-preview.dto.js +111 -0
- package/user-service/dto/store-md-theme/query/index.d.ts +1 -0
- package/user-service/dto/store-md-theme/query/index.js +1 -0
- package/user-service/services/amqp.store-md-theme.service.d.ts +2 -1
- package/user-service/services/amqp.store-md-theme.service.js +3 -0
- package/.claude/settings.local.json +0 -11
package/package.json
CHANGED
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MDThemeAutoDisplayCategory, MDThemeAutoDisplaySortTypeEnum, StoreMDThemeGroupList } from '@yolo-croket-dev/entity/src/storemdtheme';
|
|
2
|
+
import { SearchStoreMDThemeDetailByIdResult } from './search-store-md-theme-detail-by-id.dto';
|
|
3
|
+
declare class StoreMDThemeAdminPreviewItem {
|
|
4
|
+
itemId: string;
|
|
5
|
+
sortNums: number;
|
|
6
|
+
}
|
|
7
|
+
declare class StoreMDThemeAdminPreviewCategory implements MDThemeAutoDisplayCategory {
|
|
8
|
+
mainCategory: string;
|
|
9
|
+
subCategory?: string;
|
|
10
|
+
}
|
|
11
|
+
declare class StoreMDThemeAdminPreviewGroup implements Omit<StoreMDThemeGroupList, 'MDThemeItemList' | 'MDThemeBanner' | 'MDThemeAutoDisplayBrandIds' | 'MDThemeAutoDisplayCategories'> {
|
|
12
|
+
MDThemeGroupSortNumber: number;
|
|
13
|
+
MDThemeGroupMainTitle: string;
|
|
14
|
+
MDThemeGroupSubTitle: string;
|
|
15
|
+
MDThemeItemList: StoreMDThemeAdminPreviewItem[];
|
|
16
|
+
MDThemeItemAutoDisplay?: boolean;
|
|
17
|
+
MDThemeManualItemPopularSortEnabled: boolean;
|
|
18
|
+
MDThemeSoldOutItemBottomSortEnabled: boolean;
|
|
19
|
+
MDThemeAutoDisplayBrandIds?: string[];
|
|
20
|
+
MDThemeAutoDisplayCategories?: StoreMDThemeAdminPreviewCategory[];
|
|
21
|
+
MDThemeAutoDisplaySortType?: MDThemeAutoDisplaySortTypeEnum;
|
|
22
|
+
}
|
|
23
|
+
export declare class GetStoreMDThemeAdminPreviewPayload {
|
|
24
|
+
MDThemeGroupList: StoreMDThemeAdminPreviewGroup[];
|
|
25
|
+
}
|
|
26
|
+
export interface GetStoreMDThemeAdminPreviewResult extends Pick<SearchStoreMDThemeDetailByIdResult, 'MDThemeItemList'> {
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetStoreMDThemeAdminPreviewPayload = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const storemdtheme_1 = require("@yolo-croket-dev/entity/src/storemdtheme");
|
|
16
|
+
class StoreMDThemeAdminPreviewItem {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], StoreMDThemeAdminPreviewItem.prototype, "itemId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsInt)(),
|
|
24
|
+
(0, class_validator_1.Min)(0),
|
|
25
|
+
(0, class_validator_1.Max)(99),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], StoreMDThemeAdminPreviewItem.prototype, "sortNums", void 0);
|
|
28
|
+
class StoreMDThemeAdminPreviewCategory {
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.MinLength)(1),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], StoreMDThemeAdminPreviewCategory.prototype, "mainCategory", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.MinLength)(1),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], StoreMDThemeAdminPreviewCategory.prototype, "subCategory", void 0);
|
|
41
|
+
class StoreMDThemeAdminPreviewGroup {
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNumber)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeGroupSortNumber", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MinLength)(1),
|
|
50
|
+
(0, class_validator_1.MaxLength)(10),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeGroupMainTitle", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.MinLength)(1),
|
|
56
|
+
(0, class_validator_1.MaxLength)(20),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeGroupSubTitle", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsArray)(),
|
|
61
|
+
(0, class_validator_1.ArrayMaxSize)(100),
|
|
62
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
63
|
+
(0, class_transformer_1.Type)(() => StoreMDThemeAdminPreviewItem),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeItemList", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsBoolean)(),
|
|
69
|
+
__metadata("design:type", Boolean)
|
|
70
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeItemAutoDisplay", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsBoolean)(),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeManualItemPopularSortEnabled", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsBoolean)(),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeSoldOutItemBottomSortEnabled", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsArray)(),
|
|
82
|
+
(0, class_validator_1.ArrayMaxSize)(5),
|
|
83
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
84
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeAutoDisplayBrandIds", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsArray)(),
|
|
90
|
+
(0, class_validator_1.ArrayMaxSize)(3),
|
|
91
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
92
|
+
(0, class_transformer_1.Type)(() => StoreMDThemeAdminPreviewCategory),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeAutoDisplayCategories", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.ValidateIf)(group => (group.MDThemeItemAutoDisplay === true
|
|
97
|
+
|| group.MDThemeAutoDisplaySortType !== undefined)),
|
|
98
|
+
(0, class_validator_1.IsEnum)(storemdtheme_1.MDThemeAutoDisplaySortTypeEnum),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], StoreMDThemeAdminPreviewGroup.prototype, "MDThemeAutoDisplaySortType", void 0);
|
|
101
|
+
class GetStoreMDThemeAdminPreviewPayload {
|
|
102
|
+
}
|
|
103
|
+
exports.GetStoreMDThemeAdminPreviewPayload = GetStoreMDThemeAdminPreviewPayload;
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsArray)(),
|
|
106
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
107
|
+
(0, class_validator_1.ArrayMaxSize)(20),
|
|
108
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
109
|
+
(0, class_transformer_1.Type)(() => StoreMDThemeAdminPreviewGroup),
|
|
110
|
+
__metadata("design:type", Array)
|
|
111
|
+
], GetStoreMDThemeAdminPreviewPayload.prototype, "MDThemeGroupList", void 0);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './get-store-md-theme-by-id.dto';
|
|
2
|
+
export * from './get-store-md-theme-admin-preview.dto';
|
|
2
3
|
export * from './search-store-md-theme-detail-by-id.dto';
|
|
3
4
|
export * from './search-store-md-theme-ids-by-item-id.dto';
|
|
4
5
|
export * from './get-store-md-themes-by-brand-name.dto';
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-store-md-theme-by-id.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-store-md-theme-admin-preview.dto"), exports);
|
|
18
19
|
__exportStar(require("./search-store-md-theme-detail-by-id.dto"), exports);
|
|
19
20
|
__exportStar(require("./search-store-md-theme-ids-by-item-id.dto"), exports);
|
|
20
21
|
__exportStar(require("./get-store-md-themes-by-brand-name.dto"), exports);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { StoreMDThemeEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
|
|
4
|
-
import { GetStoreMDThemeByIdPayload, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult, SearchStoreMDThemeIdsByItemIdPayload, SearchStoreMDThemeIdsByItemIdResult, GetStoreMDThemesByBrandNamePayload, GetStoreMDThemesByBrandNameResult, DeleteMDThemeBrandIdPayload } from '../dto/store-md-theme';
|
|
4
|
+
import { GetStoreMDThemeByIdPayload, GetStoreMDThemeAdminPreviewPayload, GetStoreMDThemeAdminPreviewResult, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult, SearchStoreMDThemeIdsByItemIdPayload, SearchStoreMDThemeIdsByItemIdResult, GetStoreMDThemesByBrandNamePayload, GetStoreMDThemesByBrandNameResult, DeleteMDThemeBrandIdPayload } from '../dto/store-md-theme';
|
|
5
5
|
export declare class AmqpStoreMdThemeService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
8
8
|
constructor(client: ClientProxy);
|
|
9
9
|
getStoreMDThemeById(payload: GetStoreMDThemeByIdPayload, param: AbstractParam): Promise<StoreMDThemeEntity>;
|
|
10
10
|
searchStoreMDThemeDetailById(payload: SearchStoreMDThemeDetailByIdPayload, param: AbstractParam): Promise<SearchStoreMDThemeDetailByIdResult>;
|
|
11
|
+
getStoreMDThemeAdminPreview(payload: GetStoreMDThemeAdminPreviewPayload, param: AbstractParam): Promise<GetStoreMDThemeAdminPreviewResult>;
|
|
11
12
|
searchStoreMDThemeIdsByItemId(payload: SearchStoreMDThemeIdsByItemIdPayload, param: AbstractParam): Promise<SearchStoreMDThemeIdsByItemIdResult>;
|
|
12
13
|
getStoreMDThemesByBrandName(payload: GetStoreMDThemesByBrandNamePayload, param: AbstractParam): Promise<GetStoreMDThemesByBrandNameResult>;
|
|
13
14
|
deleteMDThemeBrandId(payload: DeleteMDThemeBrandIdPayload, param: AbstractParam): Promise<void>;
|
|
@@ -27,6 +27,9 @@ let AmqpStoreMdThemeService = class AmqpStoreMdThemeService {
|
|
|
27
27
|
async searchStoreMDThemeDetailById(payload, param) {
|
|
28
28
|
return this.amqpManager.call('MDTheme 상세 조회', 'store-md-theme.get.detail-by-id', payload, param, { isErrorThrowing: true });
|
|
29
29
|
}
|
|
30
|
+
async getStoreMDThemeAdminPreview(payload, param) {
|
|
31
|
+
return this.amqpManager.call('MDTheme 관리자 미리보기 조회', 'store-md-theme.get.admin-preview', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
30
33
|
async searchStoreMDThemeIdsByItemId(payload, param) {
|
|
31
34
|
return this.amqpManager.call('상품 아이디로 MDTheme 아이디 리스트 조회', 'store-md-theme.get.ids-by-item-id', payload, param, { isErrorThrowing: true });
|
|
32
35
|
}
|