@yolo-croket-dev/amqp-access 0.0.74 → 0.0.76-jun.0
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 +3 -3
- package/store-item-server/dto/store-item/query/atlas-search/get-legacy-store-items-by-atlas-search.dto.d.ts +5 -23
- package/store-item-server/dto/store-item/query/atlas-search/get-legacy-store-items-by-atlas-search.dto.js +8 -34
- package/store-item-server/dto/store-item/query/atlas-search/get-store-item-ids-by-atlas-search.dto.d.ts +83 -0
- package/store-item-server/dto/store-item/query/atlas-search/get-store-item-ids-by-atlas-search.dto.js +209 -0
- package/store-item-server/dto/store-item/query/atlas-search/index.d.ts +1 -0
- package/store-item-server/dto/store-item/query/atlas-search/index.js +1 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +3 -1
- package/store-item-server/services/amqp.store-item.service.js +4 -0
- package/user-service/dto/ask/index.d.ts +1 -0
- package/user-service/dto/ask/index.js +17 -0
- package/user-service/dto/ask/query/atlas/get-ask-ids-by-atlas-search.dto.d.ts +14 -0
- package/user-service/dto/ask/query/atlas/get-ask-ids-by-atlas-search.dto.js +47 -0
- package/user-service/dto/ask/query/atlas/index.d.ts +1 -0
- package/user-service/dto/ask/query/atlas/index.js +17 -0
- package/user-service/dto/ask/query/index.d.ts +1 -0
- package/user-service/dto/ask/query/index.js +17 -0
- package/user-service/services/ask/amqp.ask.service.d.ts +9 -0
- package/user-service/services/ask/amqp.ask.service.js +33 -0
- package/user-service/services/ask/index.d.ts +1 -0
- package/user-service/services/ask/index.js +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.76-jun.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@nestjs/common": "^10.3.10",
|
|
21
21
|
"@nestjs/microservices": "9.0.8",
|
|
22
22
|
"@yolo-croket-dev/core": "^1.4.52",
|
|
23
|
-
"@yolo-croket-dev/dto-v2": "^0.0.
|
|
23
|
+
"@yolo-croket-dev/dto-v2": "^0.0.149",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.1.108",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.0.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.0.35",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import { StoreItemLegacyEntity } from '@yolo-croket-dev/entity/src/store-item/store-item-legacy.entity';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
'택배' = "\uD0DD\uBC30",
|
|
5
|
-
'전체' = "\uC804\uCCB4"
|
|
6
|
-
}
|
|
7
|
-
export declare enum GetLegacyStoreItemsSortTypeEnum {
|
|
8
|
-
'최신순' = "\uCD5C\uC2E0\uC21C",
|
|
9
|
-
'인기순' = "\uC778\uAE30\uC21C",
|
|
10
|
-
'만료일순' = "\uB9CC\uB8CC\uC77C\uC21C",
|
|
11
|
-
'거래예정일순' = "\uAC70\uB798\uC608\uC815\uC77C\uC21C",
|
|
12
|
-
'가격낮은순' = "\uAC00\uACA9\uB0AE\uC740\uC21C",
|
|
13
|
-
'리뷰많은순' = "\uB9AC\uBDF0\uB9CE\uC740\uC21C",
|
|
14
|
-
'구매많은순' = "\uAD6C\uB9E4\uB9CE\uC740\uC21C",
|
|
15
|
-
'찜많은순' = "\uCC1C\uB9CE\uC740\uC21C",
|
|
16
|
-
'검색어기준' = "\uAC80\uC0C9\uC5B4\uAE30\uC900"
|
|
17
|
-
}
|
|
18
|
-
export declare class GetLegacyCategoryInfo {
|
|
19
|
-
mainCategory: string;
|
|
20
|
-
subCategory?: string;
|
|
21
|
-
}
|
|
2
|
+
import { GetStoreItemByAtlasSortTypeEnum, GetStoreItemByAtlasDTypeEnum, GetStoreItemByAtlasCategoryInfo } from './get-store-item-ids-by-atlas-search.dto';
|
|
3
|
+
export { GetStoreItemByAtlasSortTypeEnum, GetStoreItemByAtlasDTypeEnum, GetStoreItemByAtlasCategoryInfo, };
|
|
22
4
|
export declare class GetLegacyStoreItemsByAtlasSearchPayload {
|
|
23
5
|
/** 다음 페이징 토큰 */
|
|
24
6
|
searchAfter?: string;
|
|
@@ -31,17 +13,17 @@ export declare class GetLegacyStoreItemsByAtlasSearchPayload {
|
|
|
31
13
|
/** 상품 수 */
|
|
32
14
|
limit: number;
|
|
33
15
|
/** 정렬 방법 */
|
|
34
|
-
sortType:
|
|
16
|
+
sortType: GetStoreItemByAtlasSortTypeEnum;
|
|
35
17
|
/** 솔드아웃도 보여줘? */
|
|
36
18
|
isViewSoldOut?: boolean;
|
|
37
19
|
/** 스토어 아이디 */
|
|
38
20
|
storeId?: string;
|
|
39
21
|
/** 검색 카테고리 리스트 */
|
|
40
|
-
categoryInfos?:
|
|
22
|
+
categoryInfos?: GetStoreItemByAtlasCategoryInfo[];
|
|
41
23
|
/** 검색 나라 리스트 */
|
|
42
24
|
nations?: string[];
|
|
43
25
|
/** 배송 방법 */
|
|
44
|
-
DType?:
|
|
26
|
+
DType?: GetStoreItemByAtlasDTypeEnum;
|
|
45
27
|
/** 검색어 */
|
|
46
28
|
inputText?: string;
|
|
47
29
|
/** 검색 키워드로 검색한 상품 리스트인가 */
|
|
@@ -9,39 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.GetLegacyStoreItemsByAtlasSearchPayload = exports.
|
|
12
|
+
exports.GetLegacyStoreItemsByAtlasSearchPayload = exports.GetStoreItemByAtlasCategoryInfo = exports.GetStoreItemByAtlasDTypeEnum = exports.GetStoreItemByAtlasSortTypeEnum = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
|
|
16
|
-
(function (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
GetLegacyStoreItemsDTypeEnum["\uC804\uCCB4"] = "\uC804\uCCB4";
|
|
20
|
-
})(GetLegacyStoreItemsDTypeEnum || (exports.GetLegacyStoreItemsDTypeEnum = GetLegacyStoreItemsDTypeEnum = {}));
|
|
21
|
-
var GetLegacyStoreItemsSortTypeEnum;
|
|
22
|
-
(function (GetLegacyStoreItemsSortTypeEnum) {
|
|
23
|
-
GetLegacyStoreItemsSortTypeEnum["\uCD5C\uC2E0\uC21C"] = "\uCD5C\uC2E0\uC21C";
|
|
24
|
-
GetLegacyStoreItemsSortTypeEnum["\uC778\uAE30\uC21C"] = "\uC778\uAE30\uC21C";
|
|
25
|
-
GetLegacyStoreItemsSortTypeEnum["\uB9CC\uB8CC\uC77C\uC21C"] = "\uB9CC\uB8CC\uC77C\uC21C";
|
|
26
|
-
GetLegacyStoreItemsSortTypeEnum["\uAC70\uB798\uC608\uC815\uC77C\uC21C"] = "\uAC70\uB798\uC608\uC815\uC77C\uC21C";
|
|
27
|
-
GetLegacyStoreItemsSortTypeEnum["\uAC00\uACA9\uB0AE\uC740\uC21C"] = "\uAC00\uACA9\uB0AE\uC740\uC21C";
|
|
28
|
-
GetLegacyStoreItemsSortTypeEnum["\uB9AC\uBDF0\uB9CE\uC740\uC21C"] = "\uB9AC\uBDF0\uB9CE\uC740\uC21C";
|
|
29
|
-
GetLegacyStoreItemsSortTypeEnum["\uAD6C\uB9E4\uB9CE\uC740\uC21C"] = "\uAD6C\uB9E4\uB9CE\uC740\uC21C";
|
|
30
|
-
GetLegacyStoreItemsSortTypeEnum["\uCC1C\uB9CE\uC740\uC21C"] = "\uCC1C\uB9CE\uC740\uC21C";
|
|
31
|
-
GetLegacyStoreItemsSortTypeEnum["\uAC80\uC0C9\uC5B4\uAE30\uC900"] = "\uAC80\uC0C9\uC5B4\uAE30\uC900";
|
|
32
|
-
})(GetLegacyStoreItemsSortTypeEnum || (exports.GetLegacyStoreItemsSortTypeEnum = GetLegacyStoreItemsSortTypeEnum = {}));
|
|
33
|
-
class GetLegacyCategoryInfo {
|
|
34
|
-
}
|
|
35
|
-
exports.GetLegacyCategoryInfo = GetLegacyCategoryInfo;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], GetLegacyCategoryInfo.prototype, "mainCategory", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], GetLegacyCategoryInfo.prototype, "subCategory", void 0);
|
|
15
|
+
const get_store_item_ids_by_atlas_search_dto_1 = require("./get-store-item-ids-by-atlas-search.dto");
|
|
16
|
+
Object.defineProperty(exports, "GetStoreItemByAtlasSortTypeEnum", { enumerable: true, get: function () { return get_store_item_ids_by_atlas_search_dto_1.GetStoreItemByAtlasSortTypeEnum; } });
|
|
17
|
+
Object.defineProperty(exports, "GetStoreItemByAtlasDTypeEnum", { enumerable: true, get: function () { return get_store_item_ids_by_atlas_search_dto_1.GetStoreItemByAtlasDTypeEnum; } });
|
|
18
|
+
Object.defineProperty(exports, "GetStoreItemByAtlasCategoryInfo", { enumerable: true, get: function () { return get_store_item_ids_by_atlas_search_dto_1.GetStoreItemByAtlasCategoryInfo; } });
|
|
45
19
|
class GetLegacyStoreItemsByAtlasSearchPayload {
|
|
46
20
|
}
|
|
47
21
|
exports.GetLegacyStoreItemsByAtlasSearchPayload = GetLegacyStoreItemsByAtlasSearchPayload;
|
|
@@ -68,7 +42,7 @@ __decorate([
|
|
|
68
42
|
], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "limit", void 0);
|
|
69
43
|
__decorate([
|
|
70
44
|
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.IsEnum)(
|
|
45
|
+
(0, class_validator_1.IsEnum)(get_store_item_ids_by_atlas_search_dto_1.GetStoreItemByAtlasSortTypeEnum)
|
|
72
46
|
/** 정렬 방법 */
|
|
73
47
|
,
|
|
74
48
|
__metadata("design:type", String)
|
|
@@ -91,7 +65,7 @@ __decorate([
|
|
|
91
65
|
(0, class_validator_1.IsArray)(),
|
|
92
66
|
(0, class_validator_1.IsOptional)(),
|
|
93
67
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
94
|
-
(0, class_transformer_1.Type)(() =>
|
|
68
|
+
(0, class_transformer_1.Type)(() => get_store_item_ids_by_atlas_search_dto_1.GetStoreItemByAtlasCategoryInfo)
|
|
95
69
|
/** 검색 카테고리 리스트 */
|
|
96
70
|
,
|
|
97
71
|
__metadata("design:type", Array)
|
|
@@ -107,7 +81,7 @@ __decorate([
|
|
|
107
81
|
__decorate([
|
|
108
82
|
(0, class_validator_1.IsString)(),
|
|
109
83
|
(0, class_validator_1.IsOptional)(),
|
|
110
|
-
(0, class_validator_1.IsEnum)(
|
|
84
|
+
(0, class_validator_1.IsEnum)(get_store_item_ids_by_atlas_search_dto_1.GetStoreItemByAtlasDTypeEnum)
|
|
111
85
|
/** 배송 방법 */
|
|
112
86
|
,
|
|
113
87
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** atlas 상품 검색 시 DType */
|
|
2
|
+
export declare enum GetStoreItemByAtlasDTypeEnum {
|
|
3
|
+
'직거래' = "\uC9C1\uAC70\uB798",
|
|
4
|
+
'택배' = "\uD0DD\uBC30",
|
|
5
|
+
'전체' = "\uC804\uCCB4"
|
|
6
|
+
}
|
|
7
|
+
/** atlas 상품 검색 정렬 enum */
|
|
8
|
+
export declare enum GetStoreItemByAtlasSortTypeEnum {
|
|
9
|
+
'최신순' = "\uCD5C\uC2E0\uC21C",
|
|
10
|
+
'인기순' = "\uC778\uAE30\uC21C",
|
|
11
|
+
'만료일순' = "\uB9CC\uB8CC\uC77C\uC21C",
|
|
12
|
+
'거래예정일순' = "\uAC70\uB798\uC608\uC815\uC77C\uC21C",
|
|
13
|
+
'가격낮은순' = "\uAC00\uACA9\uB0AE\uC740\uC21C",
|
|
14
|
+
'리뷰많은순' = "\uB9AC\uBDF0\uB9CE\uC740\uC21C",
|
|
15
|
+
'구매많은순' = "\uAD6C\uB9E4\uB9CE\uC740\uC21C",
|
|
16
|
+
'찜많은순' = "\uCC1C\uB9CE\uC740\uC21C",
|
|
17
|
+
'검색어기준' = "\uAC80\uC0C9\uC5B4\uAE30\uC900"
|
|
18
|
+
}
|
|
19
|
+
/** atlas 상품 카테고리 정보 */
|
|
20
|
+
export declare class GetStoreItemByAtlasCategoryInfo {
|
|
21
|
+
mainCategory: string;
|
|
22
|
+
subCategory?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class GetStoreItemIdsByAtlasSearchPayload {
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated 페이지 (성능 이슈로 페이징 토큰 사용을 권장)
|
|
27
|
+
* */
|
|
28
|
+
page?: number;
|
|
29
|
+
/** 다음 페이징 토큰 */
|
|
30
|
+
searchAfter?: string;
|
|
31
|
+
/** 이전 페이징 토큰 */
|
|
32
|
+
searchBefore?: string;
|
|
33
|
+
/** 상품 수 */
|
|
34
|
+
limit: number;
|
|
35
|
+
/** 정렬 방법 */
|
|
36
|
+
sortType: GetStoreItemByAtlasSortTypeEnum;
|
|
37
|
+
/** 솔드아웃도 보여줘? */
|
|
38
|
+
isViewSoldOut?: boolean;
|
|
39
|
+
/** 스토어 아이디 */
|
|
40
|
+
storeId?: string;
|
|
41
|
+
/** 검색 카테고리 리스트 */
|
|
42
|
+
categoryInfos?: GetStoreItemByAtlasCategoryInfo[];
|
|
43
|
+
/** 검색 나라 리스트 */
|
|
44
|
+
nations?: string[];
|
|
45
|
+
/** 배송 방법 */
|
|
46
|
+
DType?: GetStoreItemByAtlasDTypeEnum;
|
|
47
|
+
/** 검색어 */
|
|
48
|
+
inputText?: string;
|
|
49
|
+
/** 검색 키워드로 검색한 상품 리스트인가 */
|
|
50
|
+
searchKeywordId?: string;
|
|
51
|
+
/** 최소 가격 */
|
|
52
|
+
minPrice?: number;
|
|
53
|
+
/** 최대 가격 */
|
|
54
|
+
maxPrice?: number;
|
|
55
|
+
/** 상품 가격 배송비 포함하여 검색할것인가 */
|
|
56
|
+
isItemPriceWithShippingFee?: boolean;
|
|
57
|
+
exceptItemIds?: string[];
|
|
58
|
+
/** @description 셀렉션 프레임 아이디 */
|
|
59
|
+
selectionFrameDataId?: string;
|
|
60
|
+
/** @description 픽한 상품 인가 - selectionFrameId 값 필요 */
|
|
61
|
+
isPick?: boolean;
|
|
62
|
+
/** @description 배송비 무료인가 */
|
|
63
|
+
isShippingFeeFree?: boolean;
|
|
64
|
+
/** 전체 상품명 검색 포함할지 여부 */
|
|
65
|
+
isAllItemNameInclude?: boolean;
|
|
66
|
+
isExistsMaxDiscountCoupon?: boolean;
|
|
67
|
+
itemNames?: string[];
|
|
68
|
+
isSticker?: boolean;
|
|
69
|
+
minBookNums?: number;
|
|
70
|
+
selectionFrameIds?: string[];
|
|
71
|
+
isSelectionItemConnect?: boolean;
|
|
72
|
+
isAbroadShipping?: boolean;
|
|
73
|
+
isBundleShipping?: boolean;
|
|
74
|
+
bundleShippingFee?: number;
|
|
75
|
+
isPrepay?: boolean;
|
|
76
|
+
prepayPrice?: number;
|
|
77
|
+
}
|
|
78
|
+
export interface GetStoreItemIdsByAtlasSearchResult {
|
|
79
|
+
allCount: number;
|
|
80
|
+
itemIds: string[];
|
|
81
|
+
searchAfter?: string;
|
|
82
|
+
searchBefore?: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
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.GetStoreItemIdsByAtlasSearchPayload = exports.GetStoreItemByAtlasCategoryInfo = exports.GetStoreItemByAtlasSortTypeEnum = exports.GetStoreItemByAtlasDTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/** atlas 상품 검색 시 DType */
|
|
16
|
+
var GetStoreItemByAtlasDTypeEnum;
|
|
17
|
+
(function (GetStoreItemByAtlasDTypeEnum) {
|
|
18
|
+
GetStoreItemByAtlasDTypeEnum["\uC9C1\uAC70\uB798"] = "\uC9C1\uAC70\uB798";
|
|
19
|
+
GetStoreItemByAtlasDTypeEnum["\uD0DD\uBC30"] = "\uD0DD\uBC30";
|
|
20
|
+
GetStoreItemByAtlasDTypeEnum["\uC804\uCCB4"] = "\uC804\uCCB4";
|
|
21
|
+
})(GetStoreItemByAtlasDTypeEnum || (exports.GetStoreItemByAtlasDTypeEnum = GetStoreItemByAtlasDTypeEnum = {}));
|
|
22
|
+
/** atlas 상품 검색 정렬 enum */
|
|
23
|
+
var GetStoreItemByAtlasSortTypeEnum;
|
|
24
|
+
(function (GetStoreItemByAtlasSortTypeEnum) {
|
|
25
|
+
GetStoreItemByAtlasSortTypeEnum["\uCD5C\uC2E0\uC21C"] = "\uCD5C\uC2E0\uC21C";
|
|
26
|
+
GetStoreItemByAtlasSortTypeEnum["\uC778\uAE30\uC21C"] = "\uC778\uAE30\uC21C";
|
|
27
|
+
GetStoreItemByAtlasSortTypeEnum["\uB9CC\uB8CC\uC77C\uC21C"] = "\uB9CC\uB8CC\uC77C\uC21C";
|
|
28
|
+
GetStoreItemByAtlasSortTypeEnum["\uAC70\uB798\uC608\uC815\uC77C\uC21C"] = "\uAC70\uB798\uC608\uC815\uC77C\uC21C";
|
|
29
|
+
GetStoreItemByAtlasSortTypeEnum["\uAC00\uACA9\uB0AE\uC740\uC21C"] = "\uAC00\uACA9\uB0AE\uC740\uC21C";
|
|
30
|
+
GetStoreItemByAtlasSortTypeEnum["\uB9AC\uBDF0\uB9CE\uC740\uC21C"] = "\uB9AC\uBDF0\uB9CE\uC740\uC21C";
|
|
31
|
+
GetStoreItemByAtlasSortTypeEnum["\uAD6C\uB9E4\uB9CE\uC740\uC21C"] = "\uAD6C\uB9E4\uB9CE\uC740\uC21C";
|
|
32
|
+
GetStoreItemByAtlasSortTypeEnum["\uCC1C\uB9CE\uC740\uC21C"] = "\uCC1C\uB9CE\uC740\uC21C";
|
|
33
|
+
GetStoreItemByAtlasSortTypeEnum["\uAC80\uC0C9\uC5B4\uAE30\uC900"] = "\uAC80\uC0C9\uC5B4\uAE30\uC900";
|
|
34
|
+
})(GetStoreItemByAtlasSortTypeEnum || (exports.GetStoreItemByAtlasSortTypeEnum = GetStoreItemByAtlasSortTypeEnum = {}));
|
|
35
|
+
/** atlas 상품 카테고리 정보 */
|
|
36
|
+
class GetStoreItemByAtlasCategoryInfo {
|
|
37
|
+
}
|
|
38
|
+
exports.GetStoreItemByAtlasCategoryInfo = GetStoreItemByAtlasCategoryInfo;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], GetStoreItemByAtlasCategoryInfo.prototype, "mainCategory", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GetStoreItemByAtlasCategoryInfo.prototype, "subCategory", void 0);
|
|
48
|
+
class GetStoreItemIdsByAtlasSearchPayload {
|
|
49
|
+
}
|
|
50
|
+
exports.GetStoreItemIdsByAtlasSearchPayload = GetStoreItemIdsByAtlasSearchPayload;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsNumber)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "page", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "searchAfter", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "searchBefore", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "limit", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
(0, class_validator_1.IsEnum)(GetStoreItemByAtlasSortTypeEnum),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "sortType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsBoolean)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isViewSoldOut", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsMongoId)(),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "storeId", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsArray)(),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
89
|
+
(0, class_transformer_1.Type)(() => GetStoreItemByAtlasCategoryInfo),
|
|
90
|
+
__metadata("design:type", Array)
|
|
91
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "categoryInfos", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, class_validator_1.IsArray)(),
|
|
95
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "nations", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsString)(),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsEnum)(GetStoreItemByAtlasDTypeEnum),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "DType", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsString)(),
|
|
106
|
+
(0, class_validator_1.IsOptional)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "inputText", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_validator_1.IsString)(),
|
|
111
|
+
(0, class_validator_1.IsOptional)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "searchKeywordId", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
(0, class_validator_1.IsNumber)(),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "minPrice", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
(0, class_validator_1.IsNumber)(),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "maxPrice", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsBoolean)(),
|
|
126
|
+
(0, class_validator_1.IsOptional)(),
|
|
127
|
+
__metadata("design:type", Boolean)
|
|
128
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isItemPriceWithShippingFee", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_validator_1.IsArray)(),
|
|
131
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
__metadata("design:type", Array)
|
|
134
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "exceptItemIds", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_validator_1.IsMongoId)(),
|
|
137
|
+
(0, class_validator_1.IsOptional)(),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "selectionFrameDataId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_validator_1.IsBoolean)(),
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
__metadata("design:type", Boolean)
|
|
144
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isPick", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsBoolean)(),
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
148
|
+
__metadata("design:type", Boolean)
|
|
149
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isShippingFeeFree", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, class_validator_1.IsBoolean)(),
|
|
152
|
+
(0, class_validator_1.IsOptional)(),
|
|
153
|
+
__metadata("design:type", Boolean)
|
|
154
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isAllItemNameInclude", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, class_validator_1.IsBoolean)(),
|
|
157
|
+
(0, class_validator_1.IsOptional)(),
|
|
158
|
+
__metadata("design:type", Boolean)
|
|
159
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isExistsMaxDiscountCoupon", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
162
|
+
(0, class_validator_1.IsOptional)(),
|
|
163
|
+
__metadata("design:type", Array)
|
|
164
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "itemNames", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, class_validator_1.IsBoolean)(),
|
|
167
|
+
(0, class_validator_1.IsOptional)(),
|
|
168
|
+
__metadata("design:type", Boolean)
|
|
169
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isSticker", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, class_validator_1.IsNumber)(),
|
|
172
|
+
(0, class_validator_1.IsOptional)(),
|
|
173
|
+
__metadata("design:type", Number)
|
|
174
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "minBookNums", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
177
|
+
(0, class_validator_1.IsOptional)(),
|
|
178
|
+
__metadata("design:type", Array)
|
|
179
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "selectionFrameIds", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, class_validator_1.IsBoolean)(),
|
|
182
|
+
(0, class_validator_1.IsOptional)(),
|
|
183
|
+
__metadata("design:type", Boolean)
|
|
184
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isSelectionItemConnect", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, class_validator_1.IsBoolean)(),
|
|
187
|
+
(0, class_validator_1.IsOptional)(),
|
|
188
|
+
__metadata("design:type", Boolean)
|
|
189
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isAbroadShipping", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, class_validator_1.IsBoolean)(),
|
|
192
|
+
(0, class_validator_1.IsOptional)(),
|
|
193
|
+
__metadata("design:type", Boolean)
|
|
194
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isBundleShipping", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, class_validator_1.IsNumber)(),
|
|
197
|
+
(0, class_validator_1.IsOptional)(),
|
|
198
|
+
__metadata("design:type", Number)
|
|
199
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "bundleShippingFee", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, class_validator_1.IsBoolean)(),
|
|
202
|
+
(0, class_validator_1.IsOptional)(),
|
|
203
|
+
__metadata("design:type", Boolean)
|
|
204
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isPrepay", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, class_validator_1.IsNumber)(),
|
|
207
|
+
(0, class_validator_1.IsOptional)(),
|
|
208
|
+
__metadata("design:type", Number)
|
|
209
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "prepayPrice", void 0);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-legacy-store-items-by-atlas-search.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-store-item-ids-by-atlas-search.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult } from '../dto/store-item';
|
|
3
|
+
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -9,6 +9,8 @@ export declare class AmqpStoreItemService {
|
|
|
9
9
|
getStoreItemLegacies(payload: GetStoreItemLegaciesPayload, param: AbstractParam): Promise<GetStoreItemLegaciesResult>;
|
|
10
10
|
/** atlas 검색 */
|
|
11
11
|
getLegacyStoreItemsByAtlasSearch(payload: GetLegacyStoreItemsByAtlasSearchPayload, param: AbstractParam): Promise<GetLegacyStoreItemsByAtlasSearchResult>;
|
|
12
|
+
/** atlas 상품 itemIds 검색 */
|
|
13
|
+
getStoreItemIdsByAtlasSearch(payload: GetStoreItemIdsByAtlasSearchPayload, param: AbstractParam): Promise<GetStoreItemIdsByAtlasSearchResult>;
|
|
12
14
|
getSellingItemIdsByStoreId(payload: GetSellingItemIdsByStoreIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByStoreIdResult>;
|
|
13
15
|
searchSellingStoreItems(payload: SearchSellingStoreItemsPayload, param: AbstractParam): Promise<SearchSellingStoreItemsResult>;
|
|
14
16
|
getStoreItemsForEs(payload: GetStoreItemsForESPayload, param: AbstractParam): Promise<GetStoreItemsForESResult>;
|
|
@@ -29,6 +29,10 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
29
29
|
async getLegacyStoreItemsByAtlasSearch(payload, param) {
|
|
30
30
|
return this.amqpManager.call('store item 레거시 조회 atlas ', 'store-item.get.legacy-store-items-by-atlas-search', payload, param, { isErrorThrowing: true });
|
|
31
31
|
}
|
|
32
|
+
/** atlas 상품 itemIds 검색 */
|
|
33
|
+
async getStoreItemIdsByAtlasSearch(payload, param) {
|
|
34
|
+
return this.amqpManager.call('atlas 상품 itemIds 검색', 'store-item.get.store-item-ids-by-atlas-search', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
32
36
|
async getSellingItemIdsByStoreId(payload, param) {
|
|
33
37
|
return this.amqpManager.call('해당 스토어에 판매중인 상품 아이디 리스트 호출', 'store-item.get.selling-item-ids-by-store-id', payload, param, { isErrorThrowing: true });
|
|
34
38
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './query';
|
|
@@ -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("./query"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class GetAskIdsByAtlasSearchPayload {
|
|
2
|
+
limit: number;
|
|
3
|
+
page: number;
|
|
4
|
+
askTitle?: string;
|
|
5
|
+
nations?: string[];
|
|
6
|
+
searchAfter?: string;
|
|
7
|
+
searchBefore?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetAskIdsByAtlasSearchResult {
|
|
10
|
+
allCount: number;
|
|
11
|
+
askIds: string[];
|
|
12
|
+
searchAfter?: string;
|
|
13
|
+
searchBefore?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.GetAskIdsByAtlasSearchResult = exports.GetAskIdsByAtlasSearchPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetAskIdsByAtlasSearchPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetAskIdsByAtlasSearchPayload = GetAskIdsByAtlasSearchPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], GetAskIdsByAtlasSearchPayload.prototype, "limit", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], GetAskIdsByAtlasSearchPayload.prototype, "page", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], GetAskIdsByAtlasSearchPayload.prototype, "askTitle", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], GetAskIdsByAtlasSearchPayload.prototype, "nations", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], GetAskIdsByAtlasSearchPayload.prototype, "searchAfter", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GetAskIdsByAtlasSearchPayload.prototype, "searchBefore", void 0);
|
|
45
|
+
class GetAskIdsByAtlasSearchResult {
|
|
46
|
+
}
|
|
47
|
+
exports.GetAskIdsByAtlasSearchResult = GetAskIdsByAtlasSearchResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-ask-ids-by-atlas-search.dto';
|
|
@@ -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("./get-ask-ids-by-atlas-search.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './atlas';
|
|
@@ -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("./atlas"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult } from '../../dto/ask';
|
|
4
|
+
export declare class AmqpAskService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
getAskIdsByAtlasSearch(payload: GetAskIdsByAtlasSearchPayload, param: AbstractParam): Promise<GetAskIdsByAtlasSearchResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AmqpAskService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
let AmqpAskService = class AmqpAskService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async getAskIdsByAtlasSearch(payload, param) {
|
|
25
|
+
return this.amqpManager.call('Atlas 요청 아이디 리스트 조회', 'ask.get.ask-ids-by-atlas', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpAskService = AmqpAskService;
|
|
29
|
+
exports.AmqpAskService = AmqpAskService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpAskService);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './amqp.ask.service';
|
|
@@ -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("./amqp.ask.service"), exports);
|