@yolo-croket-dev/amqp-access 0.7.309 → 0.7.311
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/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/store-item-server/dto/store-item/command/index.d.ts +1 -0
- package/store-item-server/dto/store-item/command/index.js +1 -0
- package/store-item-server/dto/store-item/command/instant-selection-sync.dto.d.ts +45 -0
- package/store-item-server/dto/store-item/command/instant-selection-sync.dto.js +74 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +7 -1
- package/store-item-server/services/amqp.store-item.service.js +12 -0
- package/user-service/dto/store/query/get-public-seller-info.dto.d.ts +22 -0
- package/user-service/dto/store/query/get-public-seller-info.dto.js +33 -0
- package/user-service/dto/store/query/index.d.ts +1 -0
- package/user-service/dto/store/query/index.js +1 -0
- package/user-service/dto/store.modules/store-admin/command/create-business-info-document-download-url.dto.d.ts +19 -0
- package/user-service/dto/store.modules/store-admin/command/create-business-info-document-download-url.dto.js +36 -0
- package/user-service/dto/store.modules/store-admin/command/index.d.ts +2 -0
- package/user-service/dto/store.modules/store-admin/command/index.js +18 -0
- package/user-service/dto/store.modules/store-admin/command/update-store-business-info-for-admin.dto.d.ts +23 -0
- package/user-service/dto/store.modules/store-admin/command/update-store-business-info-for-admin.dto.js +70 -0
- package/user-service/dto/store.modules/store-admin/index.d.ts +1 -0
- package/user-service/dto/store.modules/store-admin/index.js +1 -0
- package/user-service/dto/store.modules/store-admin/query/get-store-business-info-for-admin.dto.d.ts +10 -0
- package/user-service/dto/store.modules/store-admin/query/get-store-business-info-for-admin.dto.js +25 -0
- package/user-service/dto/store.modules/store-admin/query/get-store-business-infos-for-admin.dto.d.ts +35 -0
- package/user-service/dto/store.modules/store-admin/query/get-store-business-infos-for-admin.dto.js +85 -0
- package/user-service/dto/store.modules/store-admin/query/index.d.ts +2 -0
- package/user-service/dto/store.modules/store-admin/query/index.js +2 -0
- package/user-service/services/amqp.store.service.d.ts +7 -1
- package/user-service/services/amqp.store.service.js +8 -0
- package/user-service/services/store.modules/amqp.store-admin.service.d.ts +13 -1
- package/user-service/services/store.modules/amqp.store-admin.service.js +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.311",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@yolo-croket-dev/domain": "0.2.47",
|
|
24
24
|
"@yolo-croket-dev/dto-v2": "0.2.23",
|
|
25
25
|
"@yolo-croket-dev/entity": "0.2.106",
|
|
26
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
26
|
+
"@yolo-croket-dev/entity-v2": "0.3.40",
|
|
27
27
|
"class-transformer": "^0.5.1",
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"dotenv": "^16.3.1"
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
}
|
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
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "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: {
|
|
@@ -44,3 +44,4 @@ __exportStar(require("./stop-selling-bulk.dto"), exports);
|
|
|
44
44
|
__exportStar(require("./used-selling-bulk.dto"), exports);
|
|
45
45
|
__exportStar(require("./refresh-shipping-lead-time-stats.dto"), exports);
|
|
46
46
|
__exportStar(require("./create-additional-payment-store-item.dto"), exports);
|
|
47
|
+
__exportStar(require("./instant-selection-sync.dto"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { StoreItemInstantSelectionSyncReasonEnum, StoreItemInstantSelectionSyncStateEnum } from '@yolo-croket-dev/entity-v2/store-item';
|
|
2
|
+
export declare enum InstantSelectionSyncRunOutcomeEnum {
|
|
3
|
+
SUCCESS = "SUCCESS",
|
|
4
|
+
FAILED = "FAILED",
|
|
5
|
+
SKIPPED = "SKIPPED",
|
|
6
|
+
ALREADY_PROCESSED = "ALREADY_PROCESSED",
|
|
7
|
+
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
8
|
+
NOT_FOUND = "NOT_FOUND",
|
|
9
|
+
CLAIM_LOST = "CLAIM_LOST",
|
|
10
|
+
DISABLED = "DISABLED"
|
|
11
|
+
}
|
|
12
|
+
export declare class RunInstantSelectionSyncPayload {
|
|
13
|
+
storeItemId: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class RunInstantSelectionSyncResult {
|
|
16
|
+
storeItemId: string;
|
|
17
|
+
outcome: InstantSelectionSyncRunOutcomeEnum;
|
|
18
|
+
state?: StoreItemInstantSelectionSyncStateEnum;
|
|
19
|
+
selectionFrameId?: string;
|
|
20
|
+
reason?: StoreItemInstantSelectionSyncReasonEnum;
|
|
21
|
+
}
|
|
22
|
+
export declare class BackfillInstantSelectionSyncPayload {
|
|
23
|
+
limit: 20 | 50 | 100;
|
|
24
|
+
searchAfter?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class BackfillInstantSelectionSyncResult {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
scannedCount: number;
|
|
29
|
+
successCount: number;
|
|
30
|
+
failedCount: number;
|
|
31
|
+
skippedCount: number;
|
|
32
|
+
ignoredCount: number;
|
|
33
|
+
failedStoreItemIds: string[];
|
|
34
|
+
skippedStoreItemIds: string[];
|
|
35
|
+
nextSearchAfter: string | null;
|
|
36
|
+
}
|
|
37
|
+
export declare class ResetInstantSelectionSyncPayload {
|
|
38
|
+
storeItemIds: string[];
|
|
39
|
+
}
|
|
40
|
+
export declare class ResetInstantSelectionSyncResult {
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
requestedCount: number;
|
|
43
|
+
resetCount: number;
|
|
44
|
+
unchangedCount: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.ResetInstantSelectionSyncResult = exports.ResetInstantSelectionSyncPayload = exports.BackfillInstantSelectionSyncResult = exports.BackfillInstantSelectionSyncPayload = exports.RunInstantSelectionSyncResult = exports.RunInstantSelectionSyncPayload = exports.InstantSelectionSyncRunOutcomeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
var InstantSelectionSyncRunOutcomeEnum;
|
|
16
|
+
(function (InstantSelectionSyncRunOutcomeEnum) {
|
|
17
|
+
InstantSelectionSyncRunOutcomeEnum["SUCCESS"] = "SUCCESS";
|
|
18
|
+
InstantSelectionSyncRunOutcomeEnum["FAILED"] = "FAILED";
|
|
19
|
+
InstantSelectionSyncRunOutcomeEnum["SKIPPED"] = "SKIPPED";
|
|
20
|
+
InstantSelectionSyncRunOutcomeEnum["ALREADY_PROCESSED"] = "ALREADY_PROCESSED";
|
|
21
|
+
InstantSelectionSyncRunOutcomeEnum["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
22
|
+
InstantSelectionSyncRunOutcomeEnum["NOT_FOUND"] = "NOT_FOUND";
|
|
23
|
+
InstantSelectionSyncRunOutcomeEnum["CLAIM_LOST"] = "CLAIM_LOST";
|
|
24
|
+
InstantSelectionSyncRunOutcomeEnum["DISABLED"] = "DISABLED";
|
|
25
|
+
})(InstantSelectionSyncRunOutcomeEnum || (exports.InstantSelectionSyncRunOutcomeEnum = InstantSelectionSyncRunOutcomeEnum = {}));
|
|
26
|
+
class RunInstantSelectionSyncPayload {
|
|
27
|
+
}
|
|
28
|
+
exports.RunInstantSelectionSyncPayload = RunInstantSelectionSyncPayload;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsMongoId)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], RunInstantSelectionSyncPayload.prototype, "storeItemId", void 0);
|
|
33
|
+
class RunInstantSelectionSyncResult {
|
|
34
|
+
}
|
|
35
|
+
exports.RunInstantSelectionSyncResult = RunInstantSelectionSyncResult;
|
|
36
|
+
class BackfillInstantSelectionSyncPayload {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.limit = 20;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.BackfillInstantSelectionSyncPayload = BackfillInstantSelectionSyncPayload;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
45
|
+
(0, class_validator_1.IsInt)(),
|
|
46
|
+
(0, class_validator_1.IsIn)([
|
|
47
|
+
20,
|
|
48
|
+
50,
|
|
49
|
+
100,
|
|
50
|
+
]),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], BackfillInstantSelectionSyncPayload.prototype, "limit", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], BackfillInstantSelectionSyncPayload.prototype, "searchAfter", void 0);
|
|
58
|
+
class BackfillInstantSelectionSyncResult {
|
|
59
|
+
}
|
|
60
|
+
exports.BackfillInstantSelectionSyncResult = BackfillInstantSelectionSyncResult;
|
|
61
|
+
class ResetInstantSelectionSyncPayload {
|
|
62
|
+
}
|
|
63
|
+
exports.ResetInstantSelectionSyncPayload = ResetInstantSelectionSyncPayload;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsArray)(),
|
|
66
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
67
|
+
(0, class_validator_1.ArrayMaxSize)(100),
|
|
68
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
69
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], ResetInstantSelectionSyncPayload.prototype, "storeItemIds", void 0);
|
|
72
|
+
class ResetInstantSelectionSyncResult {
|
|
73
|
+
}
|
|
74
|
+
exports.ResetInstantSelectionSyncResult = ResetInstantSelectionSyncResult;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, SearchNormalSellingStoreItemsForBulkStopPayload, SearchNormalSellingStoreItemsForBulkStopResult, 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, PatchStoreItemOptionRemainCountByChangePurchasedOptionResult, 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, UpdateIsRequiredPCCCBulkPayload, UpdateIsRequiredPCCCBulkResult, UpdateStoreItemSellerMemoPayload, UpdateStoreItemSellerMemoResult, GetStoreItemSellerMemoPayload, GetStoreItemSellerMemoResult, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, StopSellingSelectedBulkPayload, StopSellingAllBulkPayload, StopSellingBulkResult, UsedSellingSelectedBulkPayload, UsedSellingAllBulkPayload, UsedSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult, RefreshShippingLeadTimeStatsPayload, GetAbroadShippingStoreItemExistsResult, CreateAdditionalPaymentStoreItemPayload, CreateAdditionalPaymentStoreItemResult, GetUsedStoreItemsByBrandCategoryPayload, GetUsedStoreItemsByBrandCategoryResult } from '../dto/store-item';
|
|
3
|
+
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, SearchNormalSellingStoreItemsForBulkStopPayload, SearchNormalSellingStoreItemsForBulkStopResult, 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, PatchStoreItemOptionRemainCountByChangePurchasedOptionResult, 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, UpdateIsRequiredPCCCBulkPayload, UpdateIsRequiredPCCCBulkResult, UpdateStoreItemSellerMemoPayload, UpdateStoreItemSellerMemoResult, GetStoreItemSellerMemoPayload, GetStoreItemSellerMemoResult, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, StopSellingSelectedBulkPayload, StopSellingAllBulkPayload, StopSellingBulkResult, UsedSellingSelectedBulkPayload, UsedSellingAllBulkPayload, UsedSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult, RefreshShippingLeadTimeStatsPayload, GetAbroadShippingStoreItemExistsResult, CreateAdditionalPaymentStoreItemPayload, CreateAdditionalPaymentStoreItemResult, GetUsedStoreItemsByBrandCategoryPayload, GetUsedStoreItemsByBrandCategoryResult, RunInstantSelectionSyncPayload, RunInstantSelectionSyncResult, BackfillInstantSelectionSyncPayload, BackfillInstantSelectionSyncResult, ResetInstantSelectionSyncPayload, ResetInstantSelectionSyncResult } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
|
+
/** ZOZO USED 상품 한 건의 즉시 셀렉션 연결을 실행한다. */
|
|
9
|
+
runInstantSelectionSync(payload: RunInstantSelectionSyncPayload, param: AbstractParam): Promise<RunInstantSelectionSyncResult>;
|
|
10
|
+
/** 즉시 셀렉션 연결 대상을 조회해 제한된 건수만 처리한다. */
|
|
11
|
+
backfillInstantSelectionSync(payload: BackfillInstantSelectionSyncPayload, param: AbstractParam): Promise<BackfillInstantSelectionSyncResult>;
|
|
12
|
+
/** 실패·스킵·장기 처리 중인 즉시 셀렉션 상태를 대기 상태로 되돌린다. */
|
|
13
|
+
resetInstantSelectionSync(payload: ResetInstantSelectionSyncPayload, param: AbstractParam): Promise<ResetInstantSelectionSyncResult>;
|
|
8
14
|
/**
|
|
9
15
|
* @author jun
|
|
10
16
|
* @description 브랜드와 카테고리가 정확히 일치하는 구매 가능한 중고상품을 조회한다.
|
|
@@ -21,6 +21,18 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
/** ZOZO USED 상품 한 건의 즉시 셀렉션 연결을 실행한다. */
|
|
25
|
+
async runInstantSelectionSync(payload, param) {
|
|
26
|
+
return this.amqpManager.call('즉시 셀렉션 연결 실행', 'store-item.instant-selection-sync.run', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
/** 즉시 셀렉션 연결 대상을 조회해 제한된 건수만 처리한다. */
|
|
29
|
+
async backfillInstantSelectionSync(payload, param) {
|
|
30
|
+
return this.amqpManager.call('즉시 셀렉션 연결 backfill', 'store-item.instant-selection-sync.backfill', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
32
|
+
/** 실패·스킵·장기 처리 중인 즉시 셀렉션 상태를 대기 상태로 되돌린다. */
|
|
33
|
+
async resetInstantSelectionSync(payload, param) {
|
|
34
|
+
return this.amqpManager.call('즉시 셀렉션 연결 상태 초기화', 'store-item.instant-selection-sync.reset', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
24
36
|
/**
|
|
25
37
|
* @author jun
|
|
26
38
|
* @description 브랜드와 카테고리가 정확히 일치하는 구매 가능한 중고상품을 조회한다.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BusinessInfoSellerTypeEnum } from '@yolo-croket-dev/entity-v2/store';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 상품 상세에 공개할 판매자 정보 조회 요청이다.
|
|
5
|
+
* @process 스토어 아이디로 공개 가능한 판매자 표시 정보만 조회한다.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GetPublicSellerInfoPayload {
|
|
8
|
+
storeId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @author jun
|
|
12
|
+
* @description 상품 상세에 공개 가능한 최소 판매자 정보다.
|
|
13
|
+
* @process 판매자 유형별 저장 구조를 평면 응답으로 정규화한다.
|
|
14
|
+
*/
|
|
15
|
+
export declare class GetPublicSellerInfoResult {
|
|
16
|
+
sellerType: BusinessInfoSellerTypeEnum;
|
|
17
|
+
displayName: string | null;
|
|
18
|
+
representativeName: string | null;
|
|
19
|
+
registrationNumber: string | null;
|
|
20
|
+
businessAddress: string | null;
|
|
21
|
+
mailOrderSellerRegistrationNumber: string | null;
|
|
22
|
+
}
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetPublicSellerInfoResult = exports.GetPublicSellerInfoPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description 상품 상세에 공개할 판매자 정보 조회 요청이다.
|
|
17
|
+
* @process 스토어 아이디로 공개 가능한 판매자 표시 정보만 조회한다.
|
|
18
|
+
*/
|
|
19
|
+
class GetPublicSellerInfoPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.GetPublicSellerInfoPayload = GetPublicSellerInfoPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], GetPublicSellerInfoPayload.prototype, "storeId", void 0);
|
|
26
|
+
/**
|
|
27
|
+
* @author jun
|
|
28
|
+
* @description 상품 상세에 공개 가능한 최소 판매자 정보다.
|
|
29
|
+
* @process 판매자 유형별 저장 구조를 평면 응답으로 정규화한다.
|
|
30
|
+
*/
|
|
31
|
+
class GetPublicSellerInfoResult {
|
|
32
|
+
}
|
|
33
|
+
exports.GetPublicSellerInfoResult = GetPublicSellerInfoResult;
|
|
@@ -27,3 +27,4 @@ __exportStar(require("./get-store-id-by-seller-id.dto"), exports);
|
|
|
27
27
|
__exportStar(require("./get-store-by-id.dto"), exports);
|
|
28
28
|
__exportStar(require("./get-store-commission-rate-by-id.dto"), exports);
|
|
29
29
|
__exportStar(require("./get-description-notice-confirmed.dto"), exports);
|
|
30
|
+
__exportStar(require("./get-public-seller-info.dto"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum BusinessInfoDocumentTypeEnum {
|
|
2
|
+
BUSINESS_REGISTRATION_CERTIFICATE = "business-registration-certificate",
|
|
3
|
+
MAIL_ORDER_SELLER_REGISTRATION_CERTIFICATE = "mail-order-seller-registration-certificate",
|
|
4
|
+
ENGLISH_REGISTRATION_CERTIFICATE = "english-registration-certificate",
|
|
5
|
+
REPRESENTATIVE_IDENTIFICATION = "representative-identification"
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @author jun
|
|
9
|
+
* @description 관리자용 사업자 증빙 문서 다운로드 URL 발급 요청이다.
|
|
10
|
+
* @process 스토어와 문서 유형으로 저장 경로를 서버에서 해석한다.
|
|
11
|
+
*/
|
|
12
|
+
export declare class CreateBusinessInfoDocumentDownloadUrlPayload {
|
|
13
|
+
storeId: string;
|
|
14
|
+
documentType: BusinessInfoDocumentTypeEnum;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateBusinessInfoDocumentDownloadUrlResult {
|
|
17
|
+
fileUrl: string;
|
|
18
|
+
expiresInSeconds: 60;
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.CreateBusinessInfoDocumentDownloadUrlPayload = exports.BusinessInfoDocumentTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var BusinessInfoDocumentTypeEnum;
|
|
15
|
+
(function (BusinessInfoDocumentTypeEnum) {
|
|
16
|
+
BusinessInfoDocumentTypeEnum["BUSINESS_REGISTRATION_CERTIFICATE"] = "business-registration-certificate";
|
|
17
|
+
BusinessInfoDocumentTypeEnum["MAIL_ORDER_SELLER_REGISTRATION_CERTIFICATE"] = "mail-order-seller-registration-certificate";
|
|
18
|
+
BusinessInfoDocumentTypeEnum["ENGLISH_REGISTRATION_CERTIFICATE"] = "english-registration-certificate";
|
|
19
|
+
BusinessInfoDocumentTypeEnum["REPRESENTATIVE_IDENTIFICATION"] = "representative-identification";
|
|
20
|
+
})(BusinessInfoDocumentTypeEnum || (exports.BusinessInfoDocumentTypeEnum = BusinessInfoDocumentTypeEnum = {}));
|
|
21
|
+
/**
|
|
22
|
+
* @author jun
|
|
23
|
+
* @description 관리자용 사업자 증빙 문서 다운로드 URL 발급 요청이다.
|
|
24
|
+
* @process 스토어와 문서 유형으로 저장 경로를 서버에서 해석한다.
|
|
25
|
+
*/
|
|
26
|
+
class CreateBusinessInfoDocumentDownloadUrlPayload {
|
|
27
|
+
}
|
|
28
|
+
exports.CreateBusinessInfoDocumentDownloadUrlPayload = CreateBusinessInfoDocumentDownloadUrlPayload;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsMongoId)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateBusinessInfoDocumentDownloadUrlPayload.prototype, "storeId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(BusinessInfoDocumentTypeEnum),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateBusinessInfoDocumentDownloadUrlPayload.prototype, "documentType", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./update-store-business-info-for-admin.dto"), exports);
|
|
18
|
+
__exportStar(require("./create-business-info-document-download-url.dto"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BusinessInfo, BusinessInfoVerifiProcessEnum, ZeroRateVatProcessEnum } from '@yolo-croket-dev/entity-v2/store';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 관리자가 전체 사업자정보를 수정하는 요청이다.
|
|
5
|
+
* @process 기존 관리자 수정 로직에 스토어 아이디와 전체 사업자정보를 전달한다.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UpdateStoreBusinessInfoForAdminPayload {
|
|
8
|
+
storeId: string;
|
|
9
|
+
businessInfo?: BusinessInfo;
|
|
10
|
+
}
|
|
11
|
+
/** 관리자 사업자정보 검토 상태 변경 요청이다. */
|
|
12
|
+
export declare class UpdateStoreBusinessInfoVerificationForAdminPayload {
|
|
13
|
+
storeId: string;
|
|
14
|
+
verifiProcess: BusinessInfoVerifiProcessEnum;
|
|
15
|
+
notMatchReason?: string;
|
|
16
|
+
}
|
|
17
|
+
/** 관리자 영세율 상태 변경 요청이다. */
|
|
18
|
+
export declare class UpdateStoreBusinessInfoZeroRateVatForAdminPayload {
|
|
19
|
+
storeId: string;
|
|
20
|
+
zeroRateVatProcess: ZeroRateVatProcessEnum;
|
|
21
|
+
isDesired?: boolean;
|
|
22
|
+
zeroRateVatRequestDate?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.UpdateStoreBusinessInfoZeroRateVatForAdminPayload = exports.UpdateStoreBusinessInfoVerificationForAdminPayload = exports.UpdateStoreBusinessInfoForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const store_1 = require("@yolo-croket-dev/entity-v2/store");
|
|
15
|
+
/**
|
|
16
|
+
* @author jun
|
|
17
|
+
* @description 관리자가 전체 사업자정보를 수정하는 요청이다.
|
|
18
|
+
* @process 기존 관리자 수정 로직에 스토어 아이디와 전체 사업자정보를 전달한다.
|
|
19
|
+
*/
|
|
20
|
+
class UpdateStoreBusinessInfoForAdminPayload {
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateStoreBusinessInfoForAdminPayload = UpdateStoreBusinessInfoForAdminPayload;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpdateStoreBusinessInfoForAdminPayload.prototype, "storeId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsObject)(),
|
|
30
|
+
__metadata("design:type", store_1.BusinessInfo)
|
|
31
|
+
], UpdateStoreBusinessInfoForAdminPayload.prototype, "businessInfo", void 0);
|
|
32
|
+
/** 관리자 사업자정보 검토 상태 변경 요청이다. */
|
|
33
|
+
class UpdateStoreBusinessInfoVerificationForAdminPayload {
|
|
34
|
+
}
|
|
35
|
+
exports.UpdateStoreBusinessInfoVerificationForAdminPayload = UpdateStoreBusinessInfoVerificationForAdminPayload;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsMongoId)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UpdateStoreBusinessInfoVerificationForAdminPayload.prototype, "storeId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsEnum)(store_1.BusinessInfoVerifiProcessEnum),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], UpdateStoreBusinessInfoVerificationForAdminPayload.prototype, "verifiProcess", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], UpdateStoreBusinessInfoVerificationForAdminPayload.prototype, "notMatchReason", void 0);
|
|
49
|
+
/** 관리자 영세율 상태 변경 요청이다. */
|
|
50
|
+
class UpdateStoreBusinessInfoZeroRateVatForAdminPayload {
|
|
51
|
+
}
|
|
52
|
+
exports.UpdateStoreBusinessInfoZeroRateVatForAdminPayload = UpdateStoreBusinessInfoZeroRateVatForAdminPayload;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsMongoId)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateStoreBusinessInfoZeroRateVatForAdminPayload.prototype, "storeId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsEnum)(store_1.ZeroRateVatProcessEnum),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], UpdateStoreBusinessInfoZeroRateVatForAdminPayload.prototype, "zeroRateVatProcess", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], UpdateStoreBusinessInfoZeroRateVatForAdminPayload.prototype, "isDesired", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsDateString)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], UpdateStoreBusinessInfoZeroRateVatForAdminPayload.prototype, "zeroRateVatRequestDate", void 0);
|
package/user-service/dto/store.modules/store-admin/query/get-store-business-info-for-admin.dto.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessInfo } from '@yolo-croket-dev/entity-v2/store';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 관리자용 단일 사업자정보 조회 요청이다.
|
|
5
|
+
* @process 스토어 아이디로 전체 사업자정보를 조회한다.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GetStoreBusinessInfoForAdminPayload {
|
|
8
|
+
storeId: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetStoreBusinessInfoForAdminResult = BusinessInfo | undefined;
|
package/user-service/dto/store.modules/store-admin/query/get-store-business-info-for-admin.dto.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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.GetStoreBusinessInfoForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description 관리자용 단일 사업자정보 조회 요청이다.
|
|
17
|
+
* @process 스토어 아이디로 전체 사업자정보를 조회한다.
|
|
18
|
+
*/
|
|
19
|
+
class GetStoreBusinessInfoForAdminPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.GetStoreBusinessInfoForAdminPayload = GetStoreBusinessInfoForAdminPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], GetStoreBusinessInfoForAdminPayload.prototype, "storeId", void 0);
|
package/user-service/dto/store.modules/store-admin/query/get-store-business-infos-for-admin.dto.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BusinessInfo, BusinessInfoSellerTypeEnum, BusinessInfoVerifiProcessEnum, ZeroRateVatProcessEnum } from '@yolo-croket-dev/entity-v2/store';
|
|
2
|
+
export declare enum GetStoreBusinessInfosForAdminSortTypeEnum {
|
|
3
|
+
REQUEST_DATE_BY_DESC = "requestDateByDesc",
|
|
4
|
+
REQUEST_DATE_BY_ASC = "requestDateByAsc"
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @author jun
|
|
8
|
+
* @description 관리자용 사업자정보 목록 조회 조건이다.
|
|
9
|
+
* @process 필터와 페이지네이션 조건을 user-service에 전달한다.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GetStoreBusinessInfosForAdminPayload {
|
|
12
|
+
adminId?: string;
|
|
13
|
+
storeTitle?: string;
|
|
14
|
+
verifiProcess?: BusinessInfoVerifiProcessEnum;
|
|
15
|
+
sellerType?: BusinessInfoSellerTypeEnum;
|
|
16
|
+
isIndividual?: boolean;
|
|
17
|
+
isLivingAbroad?: boolean;
|
|
18
|
+
zeroRateVatProcess?: ZeroRateVatProcessEnum;
|
|
19
|
+
sRequestDate?: string;
|
|
20
|
+
eRequestDate?: string;
|
|
21
|
+
limit: number;
|
|
22
|
+
page: number;
|
|
23
|
+
sortType?: GetStoreBusinessInfosForAdminSortTypeEnum;
|
|
24
|
+
}
|
|
25
|
+
export interface StoreBusinessInfoForAdmin {
|
|
26
|
+
_id: string;
|
|
27
|
+
storeTitle: string;
|
|
28
|
+
adminId: string;
|
|
29
|
+
businessInfo?: BusinessInfo;
|
|
30
|
+
userLeaves: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface GetStoreBusinessInfosForAdminResult {
|
|
33
|
+
allCount: number;
|
|
34
|
+
storeInfos: StoreBusinessInfoForAdmin[];
|
|
35
|
+
}
|
package/user-service/dto/store.modules/store-admin/query/get-store-business-infos-for-admin.dto.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
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.GetStoreBusinessInfosForAdminPayload = exports.GetStoreBusinessInfosForAdminSortTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const store_1 = require("@yolo-croket-dev/entity-v2/store");
|
|
15
|
+
var GetStoreBusinessInfosForAdminSortTypeEnum;
|
|
16
|
+
(function (GetStoreBusinessInfosForAdminSortTypeEnum) {
|
|
17
|
+
GetStoreBusinessInfosForAdminSortTypeEnum["REQUEST_DATE_BY_DESC"] = "requestDateByDesc";
|
|
18
|
+
GetStoreBusinessInfosForAdminSortTypeEnum["REQUEST_DATE_BY_ASC"] = "requestDateByAsc";
|
|
19
|
+
})(GetStoreBusinessInfosForAdminSortTypeEnum || (exports.GetStoreBusinessInfosForAdminSortTypeEnum = GetStoreBusinessInfosForAdminSortTypeEnum = {}));
|
|
20
|
+
/**
|
|
21
|
+
* @author jun
|
|
22
|
+
* @description 관리자용 사업자정보 목록 조회 조건이다.
|
|
23
|
+
* @process 필터와 페이지네이션 조건을 user-service에 전달한다.
|
|
24
|
+
*/
|
|
25
|
+
class GetStoreBusinessInfosForAdminPayload {
|
|
26
|
+
}
|
|
27
|
+
exports.GetStoreBusinessInfosForAdminPayload = GetStoreBusinessInfosForAdminPayload;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsMongoId)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "adminId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "storeTitle", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsEnum)(store_1.BusinessInfoVerifiProcessEnum),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "verifiProcess", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsEnum)(store_1.BusinessInfoSellerTypeEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "sellerType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsBoolean)(),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "isIndividual", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsBoolean)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "isLivingAbroad", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsEnum)(store_1.ZeroRateVatProcessEnum),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "zeroRateVatProcess", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsDateString)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "sRequestDate", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsDateString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "eRequestDate", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsNumber)(),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "limit", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsNumber)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "page", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsEnum)(GetStoreBusinessInfosForAdminSortTypeEnum),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], GetStoreBusinessInfosForAdminPayload.prototype, "sortType", void 0);
|
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-store-account-info-for-admin.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-store-business-info-for-admin.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-store-business-infos-for-admin.dto"), exports);
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { DomesticAccountStoreEntity, StoreEntity, StoreForTossPaymentEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
-
import { GetDomesticAccountStoreInfoPayload, GetDomesticAccountStoresPayload, MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload, GetUserIdsByStoreTitlePayload, GetUserIdsByStoreTitleResult, GetStoreIdsByStoreTitlePayload, GetStoreIdsByStoreTitleResult, GetStoreTitlesByStoreIdsPayload, GetStoreTitlesByStoreIdsResult, GetStoreIdsByAtlasPayload, GetStoreIdsByAtlasResult, GetStoreTitlesBySellerIdsPayload, GetStoreTitlesBySellerIdsResult, UpdateLastActivityDatePayload, GetStoresBySellerIdsPayload, StoreBySellerId, GetStoreIdBySellerIdPayload, GetStoreIdBySellerIdResult, BulkWriteStoreAdminDesignatedAutoReplyMessagePayload, BulkWriteStoreAdminDesignatedAutoReplyMessageResult, GetStoreByIdPayload, BulkWriteLastProceedsGoalSettleDatePayload, BulkWriteLastProceedsGoalSettleDateResult, UpdateCommissionInfoPayload, UpsertCommissionPeriodInfoPayload, GetStoreCommissionRateByIdPayload, GetStoreCommissionRateByIdResult, GetDescriptionNoticeConfirmedPayload, GetDescriptionNoticeConfirmedResult, UpdateDescriptionNoticeConfirmedPayload, UpdateEcommerceOperatorCodePayload, UpdateEcommerceOperatorCodeResult, UpdateCustomsActAmendmentNoticeAgreementResult } from '../dto/store';
|
|
4
|
+
import { GetDomesticAccountStoreInfoPayload, GetDomesticAccountStoresPayload, MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload, GetUserIdsByStoreTitlePayload, GetUserIdsByStoreTitleResult, GetStoreIdsByStoreTitlePayload, GetStoreIdsByStoreTitleResult, GetStoreTitlesByStoreIdsPayload, GetStoreTitlesByStoreIdsResult, GetStoreIdsByAtlasPayload, GetStoreIdsByAtlasResult, GetStoreTitlesBySellerIdsPayload, GetStoreTitlesBySellerIdsResult, UpdateLastActivityDatePayload, GetStoresBySellerIdsPayload, StoreBySellerId, GetStoreIdBySellerIdPayload, GetStoreIdBySellerIdResult, BulkWriteStoreAdminDesignatedAutoReplyMessagePayload, BulkWriteStoreAdminDesignatedAutoReplyMessageResult, GetStoreByIdPayload, BulkWriteLastProceedsGoalSettleDatePayload, BulkWriteLastProceedsGoalSettleDateResult, UpdateCommissionInfoPayload, UpsertCommissionPeriodInfoPayload, GetStoreCommissionRateByIdPayload, GetStoreCommissionRateByIdResult, GetDescriptionNoticeConfirmedPayload, GetDescriptionNoticeConfirmedResult, UpdateDescriptionNoticeConfirmedPayload, UpdateEcommerceOperatorCodePayload, UpdateEcommerceOperatorCodeResult, UpdateCustomsActAmendmentNoticeAgreementResult, GetPublicSellerInfoPayload, GetPublicSellerInfoResult } from '../dto/store';
|
|
5
5
|
import { GetStoresForTossPaymentPayload } from '../dto/store/query/get-stores-for-toss-payment.dto';
|
|
6
6
|
export declare class AmqpStoreService {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
9
9
|
constructor(client: ClientProxy);
|
|
10
10
|
updatePrivateSellerInfoSellerAddress(payload: UpdatePrivateSellerInfoSellerAddressPayload, param: AbstractParam): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* @author jun
|
|
13
|
+
* @description 상품 상세에 공개할 최소 판매자 정보를 조회한다.
|
|
14
|
+
* @process 공개 전용 route를 호출해 평면 projection 결과만 반환한다.
|
|
15
|
+
*/
|
|
16
|
+
getPublicSellerInfo(payload: GetPublicSellerInfoPayload, param: AbstractParam): Promise<GetPublicSellerInfoResult>;
|
|
11
17
|
/**
|
|
12
18
|
* @description 로그인한 국내·해외 사업자의 전자상거래업자 부호를 검증하고 저장한다.
|
|
13
19
|
*/
|
|
@@ -24,6 +24,14 @@ let AmqpStoreService = class AmqpStoreService {
|
|
|
24
24
|
async updatePrivateSellerInfoSellerAddress(payload, param) {
|
|
25
25
|
return this.amqpManager.call('개인 판매자 주소 저장', 'store.business-info.seller-address-update', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @author jun
|
|
29
|
+
* @description 상품 상세에 공개할 최소 판매자 정보를 조회한다.
|
|
30
|
+
* @process 공개 전용 route를 호출해 평면 projection 결과만 반환한다.
|
|
31
|
+
*/
|
|
32
|
+
async getPublicSellerInfo(payload, param) {
|
|
33
|
+
return this.amqpManager.call('상품 상세 공개 판매자 정보 조회', 'store.get.public-seller-info', payload, param, { isErrorThrowing: true });
|
|
34
|
+
}
|
|
27
35
|
/**
|
|
28
36
|
* @description 로그인한 국내·해외 사업자의 전자상거래업자 부호를 검증하고 저장한다.
|
|
29
37
|
*/
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetStoreAccountInfoForAdminPayload, GetStoreAccountInfoForAdminResult } from '../../dto/store.modules';
|
|
3
|
+
import { CreateBusinessInfoDocumentDownloadUrlPayload, CreateBusinessInfoDocumentDownloadUrlResult, GetStoreAccountInfoForAdminPayload, GetStoreAccountInfoForAdminResult, GetStoreBusinessInfoForAdminPayload, GetStoreBusinessInfoForAdminResult, GetStoreBusinessInfosForAdminPayload, GetStoreBusinessInfosForAdminResult, UpdateStoreBusinessInfoForAdminPayload, UpdateStoreBusinessInfoVerificationForAdminPayload, UpdateStoreBusinessInfoZeroRateVatForAdminPayload } from '../../dto/store.modules';
|
|
4
4
|
export declare class AmqpStoreAdminService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getStoreAccountInfoForAdmin(payload: GetStoreAccountInfoForAdminPayload, param: AbstractParam): Promise<GetStoreAccountInfoForAdminResult>;
|
|
9
|
+
/** 관리자용 사업자정보 목록을 조회한다. */
|
|
10
|
+
getStoreBusinessInfosForAdmin(payload: GetStoreBusinessInfosForAdminPayload, param: AbstractParam): Promise<GetStoreBusinessInfosForAdminResult>;
|
|
11
|
+
/** 관리자용 단일 사업자정보를 조회한다. */
|
|
12
|
+
getStoreBusinessInfoForAdmin(payload: GetStoreBusinessInfoForAdminPayload, param: AbstractParam): Promise<GetStoreBusinessInfoForAdminResult>;
|
|
13
|
+
/** 관리자 사업자정보를 수정한다. */
|
|
14
|
+
updateStoreBusinessInfoForAdmin(payload: UpdateStoreBusinessInfoForAdminPayload, param: AbstractParam): Promise<void>;
|
|
15
|
+
/** 관리자 사업자정보 검토 상태를 변경한다. */
|
|
16
|
+
updateStoreBusinessInfoVerificationForAdmin(payload: UpdateStoreBusinessInfoVerificationForAdminPayload, param: AbstractParam): Promise<void>;
|
|
17
|
+
/** 관리자 사업자정보 영세율 상태를 변경한다. */
|
|
18
|
+
updateStoreBusinessInfoZeroRateVatForAdmin(payload: UpdateStoreBusinessInfoZeroRateVatForAdminPayload, param: AbstractParam): Promise<void>;
|
|
19
|
+
/** 관리자용 사업자 증빙 문서 다운로드 URL을 발급한다. */
|
|
20
|
+
createBusinessInfoDocumentDownloadUrl(payload: CreateBusinessInfoDocumentDownloadUrlPayload, param: AbstractParam): Promise<CreateBusinessInfoDocumentDownloadUrlResult>;
|
|
9
21
|
}
|
|
@@ -24,6 +24,30 @@ let AmqpStoreAdminService = class AmqpStoreAdminService {
|
|
|
24
24
|
async getStoreAccountInfoForAdmin(payload, param) {
|
|
25
25
|
return this.amqpManager.call('스토어 계정 정보 조회 (관리자)', 'store-admin.get.account-info', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
/** 관리자용 사업자정보 목록을 조회한다. */
|
|
28
|
+
async getStoreBusinessInfosForAdmin(payload, param) {
|
|
29
|
+
return this.amqpManager.call('사업자정보 목록 조회 (관리자)', 'store-admin.get.business-infos', payload, param, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
31
|
+
/** 관리자용 단일 사업자정보를 조회한다. */
|
|
32
|
+
async getStoreBusinessInfoForAdmin(payload, param) {
|
|
33
|
+
return this.amqpManager.call('사업자정보 상세 조회 (관리자)', 'store-admin.get.business-info', payload, param, { isErrorThrowing: true });
|
|
34
|
+
}
|
|
35
|
+
/** 관리자 사업자정보를 수정한다. */
|
|
36
|
+
async updateStoreBusinessInfoForAdmin(payload, param) {
|
|
37
|
+
return this.amqpManager.call('사업자정보 수정 (관리자)', 'store-admin.update.business-info', payload, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
39
|
+
/** 관리자 사업자정보 검토 상태를 변경한다. */
|
|
40
|
+
async updateStoreBusinessInfoVerificationForAdmin(payload, param) {
|
|
41
|
+
return this.amqpManager.call('사업자정보 검토 상태 변경 (관리자)', 'store-admin.update.business-info-verification', payload, param, { isErrorThrowing: true });
|
|
42
|
+
}
|
|
43
|
+
/** 관리자 사업자정보 영세율 상태를 변경한다. */
|
|
44
|
+
async updateStoreBusinessInfoZeroRateVatForAdmin(payload, param) {
|
|
45
|
+
return this.amqpManager.call('사업자정보 영세율 상태 변경 (관리자)', 'store-admin.update.business-info-zero-rate-vat', payload, param, { isErrorThrowing: true });
|
|
46
|
+
}
|
|
47
|
+
/** 관리자용 사업자 증빙 문서 다운로드 URL을 발급한다. */
|
|
48
|
+
async createBusinessInfoDocumentDownloadUrl(payload, param) {
|
|
49
|
+
return this.amqpManager.call('사업자 증빙 문서 다운로드 URL 발급 (관리자)', 'store-admin.create.business-info-document-download-url', payload, param, { isErrorThrowing: true });
|
|
50
|
+
}
|
|
27
51
|
};
|
|
28
52
|
exports.AmqpStoreAdminService = AmqpStoreAdminService;
|
|
29
53
|
exports.AmqpStoreAdminService = AmqpStoreAdminService = __decorate([
|