@yolo-croket-dev/amqp-access 0.6.80-sj1 → 0.6.80-sj2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.6.80-sj1",
3
+ "version": "0.6.80-sj2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -3,18 +3,18 @@ export declare class ExcludedCategoryPayload {
3
3
  mainCategory: string;
4
4
  subCategory?: string;
5
5
  }
6
- export declare class GetStoreItemsForSyncMetaPayload {
6
+ export declare class GetStoreItemsForProductFeedPayload {
7
7
  excludedSellerIds?: string[];
8
8
  excludedCategories?: ExcludedCategoryPayload[];
9
9
  excludedItemNameKeywords?: string[];
10
10
  paginationToken?: string;
11
11
  limit: number;
12
12
  }
13
- export interface GetStoreItemsForSyncMetaItem extends Pick<StoreItem, '_id' | 'isSelling' | 'isDelete' | 'itemPriceForBuyer' | 'itemPrice' | 'itemPriceForBuyerWithShippingFee' | 'itemName' | 'remainCount' | 'contents' | 'itemImg' | 'mainCategory' | 'subCategory' | 'sellingInfo' | 'brandInfo' | 'storeId' | 'sellerId' | 'storeItemGroupId'> {
13
+ export interface GetStoreItemsForProductFeedItem extends Pick<StoreItem, '_id' | 'isSelling' | 'isDelete' | 'itemPriceForBuyer' | 'itemPrice' | 'itemPriceForBuyerWithShippingFee' | 'itemName' | 'remainCount' | 'contents' | 'itemImg' | 'mainCategory' | 'subCategory' | 'sellingInfo' | 'brandInfo' | 'storeId' | 'sellerId' | 'storeItemGroupId'> {
14
14
  }
15
- export declare class GetStoreItemsForSyncMetaResult {
15
+ export declare class GetStoreItemsForProductFeedResult {
16
16
  /** 전체 페이지 수 (첫 페이지 조회 시에만 반환) */
17
- storeItems: GetStoreItemsForSyncMetaItem[];
17
+ storeItems: GetStoreItemsForProductFeedItem[];
18
18
  maxPage?: number;
19
19
  /** 다음 페이지 조회를 위한 페이지네이션 토큰 (마지막 페이지일 경우 undefined) */
20
20
  lastPaginationToken?: string;
@@ -9,7 +9,7 @@ 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.GetStoreItemsForSyncMetaResult = exports.GetStoreItemsForSyncMetaPayload = exports.ExcludedCategoryPayload = void 0;
12
+ exports.GetStoreItemsForProductFeedResult = exports.GetStoreItemsForProductFeedPayload = exports.ExcludedCategoryPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  class ExcludedCategoryPayload {
@@ -24,38 +24,38 @@ __decorate([
24
24
  (0, class_validator_1.IsOptional)(),
25
25
  __metadata("design:type", String)
26
26
  ], ExcludedCategoryPayload.prototype, "subCategory", void 0);
27
- class GetStoreItemsForSyncMetaPayload {
27
+ class GetStoreItemsForProductFeedPayload {
28
28
  }
29
- exports.GetStoreItemsForSyncMetaPayload = GetStoreItemsForSyncMetaPayload;
29
+ exports.GetStoreItemsForProductFeedPayload = GetStoreItemsForProductFeedPayload;
30
30
  __decorate([
31
31
  (0, class_validator_1.IsArray)(),
32
32
  (0, class_validator_1.IsMongoId)({ each: true }),
33
33
  (0, class_validator_1.IsOptional)(),
34
34
  __metadata("design:type", Array)
35
- ], GetStoreItemsForSyncMetaPayload.prototype, "excludedSellerIds", void 0);
35
+ ], GetStoreItemsForProductFeedPayload.prototype, "excludedSellerIds", void 0);
36
36
  __decorate([
37
37
  (0, class_validator_1.IsArray)(),
38
38
  (0, class_validator_1.IsOptional)(),
39
39
  (0, class_validator_1.ValidateNested)({ each: true }),
40
40
  (0, class_transformer_1.Type)(() => ExcludedCategoryPayload),
41
41
  __metadata("design:type", Array)
42
- ], GetStoreItemsForSyncMetaPayload.prototype, "excludedCategories", void 0);
42
+ ], GetStoreItemsForProductFeedPayload.prototype, "excludedCategories", void 0);
43
43
  __decorate([
44
44
  (0, class_validator_1.IsArray)(),
45
45
  (0, class_validator_1.IsString)({ each: true }),
46
46
  (0, class_validator_1.IsOptional)(),
47
47
  __metadata("design:type", Array)
48
- ], GetStoreItemsForSyncMetaPayload.prototype, "excludedItemNameKeywords", void 0);
48
+ ], GetStoreItemsForProductFeedPayload.prototype, "excludedItemNameKeywords", void 0);
49
49
  __decorate([
50
50
  (0, class_validator_1.IsString)(),
51
51
  (0, class_validator_1.IsOptional)(),
52
52
  __metadata("design:type", String)
53
- ], GetStoreItemsForSyncMetaPayload.prototype, "paginationToken", void 0);
53
+ ], GetStoreItemsForProductFeedPayload.prototype, "paginationToken", void 0);
54
54
  __decorate([
55
55
  (0, class_validator_1.IsNumber)(),
56
56
  (0, class_transformer_1.Type)(() => Number),
57
57
  __metadata("design:type", Number)
58
- ], GetStoreItemsForSyncMetaPayload.prototype, "limit", void 0);
59
- class GetStoreItemsForSyncMetaResult {
58
+ ], GetStoreItemsForProductFeedPayload.prototype, "limit", void 0);
59
+ class GetStoreItemsForProductFeedResult {
60
60
  }
61
- exports.GetStoreItemsForSyncMetaResult = GetStoreItemsForSyncMetaResult;
61
+ exports.GetStoreItemsForProductFeedResult = GetStoreItemsForProductFeedResult;
@@ -4,5 +4,4 @@ export * from './facet';
4
4
  export * from './get-random-item-ids.dto';
5
5
  export * from './get-used-img-item-ids.dto';
6
6
  export * from './get-used-imgs-item-ids.dto';
7
- export * from './get-store-items-for-sync-meta.dto';
8
- export * from './get-store-items-for-sync-google.dto';
7
+ export * from './get-store-items-for-product-feed.dto';
@@ -20,5 +20,4 @@ __exportStar(require("./facet"), exports);
20
20
  __exportStar(require("./get-random-item-ids.dto"), exports);
21
21
  __exportStar(require("./get-used-img-item-ids.dto"), exports);
22
22
  __exportStar(require("./get-used-imgs-item-ids.dto"), exports);
23
- __exportStar(require("./get-store-items-for-sync-meta.dto"), exports);
24
- __exportStar(require("./get-store-items-for-sync-google.dto"), exports);
23
+ __exportStar(require("./get-store-items-for-product-feed.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, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload, GetStoreInfosByItemIdsPayload, GetStoreInfosByItemIdsResult, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForSyncMetaPayload, GetStoreItemsForSyncMetaResult, GetStoreItemsForSyncGoogleResult, GetStoreItemsForSyncGooglePayload } from '../dto/store-item';
3
+ import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload, GetStoreInfosByItemIdsPayload, GetStoreInfosByItemIdsResult, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -68,6 +68,5 @@ export declare class AmqpStoreItemService {
68
68
  updateStoreItemGlobalInfoBulk(payload: UpdateStoreItemGlobalInfoBulkPayload, param: AbstractParam): Promise<string>;
69
69
  updateNaverEnabledBulk(payload: UpdateNaverEnabledBulkPayload, param: AbstractParam): Promise<void>;
70
70
  getCroCareStoreItemInfo(payload: GetCroCareStoreItemInfoPayload, param: AbstractParam): Promise<GetCroCareStoreItemInfoResult>;
71
- getStoreItemsForSyncMeta(payload: GetStoreItemsForSyncMetaPayload, param: AbstractParam): Promise<GetStoreItemsForSyncMetaResult>;
72
- getStoreItemsForSyncGoogle(payload: GetStoreItemsForSyncGooglePayload, param: AbstractParam): Promise<GetStoreItemsForSyncGoogleResult>;
71
+ getStoreItemsForProductFeed(payload: GetStoreItemsForProductFeedPayload, param: AbstractParam): Promise<GetStoreItemsForProductFeedResult>;
73
72
  }
@@ -204,11 +204,8 @@ let AmqpStoreItemService = class AmqpStoreItemService {
204
204
  async getCroCareStoreItemInfo(payload, param) {
205
205
  return this.amqpManager.call('크로케어 상품 정보 조회 -상품 상세 이벤트 배너 조회에서 사용 get-event-banner-for-buyer.service(manage-service)-', 'store-item.get.cro-care-store-item-info', payload, param, { isErrorThrowing: true });
206
206
  }
207
- async getStoreItemsForSyncMeta(payload, param) {
208
- return this.amqpManager.call('상품 동기화 메타 조회', 'store-item.get.store-items-for-sync-meta', payload, param, { isErrorThrowing: true });
209
- }
210
- async getStoreItemsForSyncGoogle(payload, param) {
211
- return this.amqpManager.call('상품 동기화 google 조회', 'store-item.get.store-items-for-sync-google', payload, param, { isErrorThrowing: true });
207
+ async getStoreItemsForProductFeed(payload, param) {
208
+ return this.amqpManager.call('광고 플랫폼(메타, 구글) 연동용 상품 목록 조회', 'store-item.get.store-items-for-product-feed', payload, param, { isErrorThrowing: true });
212
209
  }
213
210
  };
214
211
  exports.AmqpStoreItemService = AmqpStoreItemService;
@@ -1,21 +0,0 @@
1
- import { StoreItem } from '@yolo-croket-dev/entity/src/store-item/store-item.entity';
2
- export declare class GoogleExcludedCategory {
3
- mainCategory: string;
4
- subCategory?: string;
5
- }
6
- export declare class GetStoreItemsForSyncGooglePayload {
7
- excludedSellerIds?: string[];
8
- excludedCategories?: GoogleExcludedCategory[];
9
- excludedItemNameKeywords?: string[];
10
- paginationToken?: string;
11
- limit: number;
12
- }
13
- export interface GetStoreItemsForSyncGoogleItem extends Pick<StoreItem, '_id' | 'isSelling' | 'isDelete' | 'itemPriceForBuyer' | 'itemPrice' | 'itemPriceForBuyerWithShippingFee' | 'itemName' | 'remainCount' | 'contents' | 'itemImg' | 'mainCategory' | 'subCategory' | 'sellingInfo' | 'brandInfo' | 'optionInfo'> {
14
- }
15
- export declare class GetStoreItemsForSyncGoogleResult {
16
- /** 전체 페이지 수 (첫 페이지 조회 시에만 반환) */
17
- storeItems: GetStoreItemsForSyncGoogleItem[];
18
- maxPage?: number;
19
- /** 다음 페이지 조회를 위한 페이지네이션 토큰 (마지막 페이지일 경우 undefined) */
20
- lastPaginationToken?: string;
21
- }
@@ -1,61 +0,0 @@
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.GetStoreItemsForSyncGoogleResult = exports.GetStoreItemsForSyncGooglePayload = exports.GoogleExcludedCategory = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- class GoogleExcludedCategory {
16
- }
17
- exports.GoogleExcludedCategory = GoogleExcludedCategory;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], GoogleExcludedCategory.prototype, "mainCategory", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsOptional)(),
25
- __metadata("design:type", String)
26
- ], GoogleExcludedCategory.prototype, "subCategory", void 0);
27
- class GetStoreItemsForSyncGooglePayload {
28
- }
29
- exports.GetStoreItemsForSyncGooglePayload = GetStoreItemsForSyncGooglePayload;
30
- __decorate([
31
- (0, class_validator_1.IsArray)(),
32
- (0, class_validator_1.IsMongoId)({ each: true }),
33
- (0, class_validator_1.IsOptional)(),
34
- __metadata("design:type", Array)
35
- ], GetStoreItemsForSyncGooglePayload.prototype, "excludedSellerIds", void 0);
36
- __decorate([
37
- (0, class_validator_1.IsArray)(),
38
- (0, class_validator_1.IsOptional)(),
39
- (0, class_validator_1.ValidateNested)({ each: true }),
40
- (0, class_transformer_1.Type)(() => GoogleExcludedCategory),
41
- __metadata("design:type", Array)
42
- ], GetStoreItemsForSyncGooglePayload.prototype, "excludedCategories", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsArray)(),
45
- (0, class_validator_1.IsString)({ each: true }),
46
- (0, class_validator_1.IsOptional)(),
47
- __metadata("design:type", Array)
48
- ], GetStoreItemsForSyncGooglePayload.prototype, "excludedItemNameKeywords", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsString)(),
51
- (0, class_validator_1.IsOptional)(),
52
- __metadata("design:type", String)
53
- ], GetStoreItemsForSyncGooglePayload.prototype, "paginationToken", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsNumber)(),
56
- (0, class_transformer_1.Type)(() => Number),
57
- __metadata("design:type", Number)
58
- ], GetStoreItemsForSyncGooglePayload.prototype, "limit", void 0);
59
- class GetStoreItemsForSyncGoogleResult {
60
- }
61
- exports.GetStoreItemsForSyncGoogleResult = GetStoreItemsForSyncGoogleResult;