@yolo-croket-dev/amqp-access 0.0.80-hj-4 → 0.0.80-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/elastic-service/services/amqp.es-store-item.service.d.ts +18 -0
- package/elastic-service/services/amqp.es-store-item.service.js +60 -0
- package/order-server/amqp.order-server.module.js +2 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-info-by-atlas.dto.d.ts +12 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-info-by-atlas.dto.js +28 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-logs-by-atlas.dto.d.ts +36 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-logs-by-atlas.dto.js +42 -0
- package/order-server/dto/purchasedinfos/query/atlas/index.d.ts +2 -0
- package/order-server/dto/purchasedinfos/query/atlas/index.js +18 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/index.js +1 -0
- package/order-server/services/amqp.purchased-info.service.d.ts +9 -0
- package/order-server/services/amqp.purchased-info.service.js +33 -0
- package/order-server/services/index.d.ts +1 -0
- package/order-server/services/index.js +1 -0
- package/package.json +2 -2
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.d.ts +7 -0
- package/{user-service/dto/store/query/get-domestic-account-store-info.dto.js → selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js} +7 -10
- package/user-service/amqp.user-service.service.d.ts +2 -0
- package/user-service/amqp.user-service.service.js +3 -0
- package/user-service/dto/ask/query/atlas/get-ask-settle-amount-info-by-atlas.dto.d.ts +12 -0
- package/user-service/dto/ask/query/atlas/get-ask-settle-amount-info-by-atlas.dto.js +28 -0
- package/user-service/dto/ask/query/atlas/index.d.ts +1 -0
- package/user-service/dto/ask/query/atlas/index.js +1 -0
- package/user-service/dto/index.d.ts +1 -1
- package/user-service/dto/index.js +1 -1
- package/user-service/dto/store/query/index.d.ts +0 -2
- package/user-service/dto/store/query/index.js +0 -2
- package/user-service/dto/user/index.d.ts +1 -0
- package/user-service/dto/user/index.js +17 -0
- package/user-service/dto/user/query/get-user-info-by-id.dto.d.ts +12 -0
- package/user-service/dto/user/query/get-user-info-by-id.dto.js +9 -0
- package/user-service/dto/user/query/index.d.ts +1 -0
- package/user-service/dto/user/query/index.js +17 -0
- package/user-service/services/amqp.store.service.d.ts +2 -4
- package/user-service/services/amqp.store.service.js +0 -6
- package/user-service/services/ask/amqp.ask.service.d.ts +2 -1
- package/user-service/services/ask/amqp.ask.service.js +3 -0
- package/user-service/dto/store/query/get-domestic-account-store-info.dto.d.ts +0 -8
- package/user-service/dto/store/query/get-domestic-account-stores.dto.d.ts +0 -17
- package/user-service/dto/store/query/get-domestic-account-stores.dto.js +0 -69
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ESStoreItemSearchDataPayload, ESStoreItemSearchDataResult, ESStoreItemCountGroupPayloadDto, ESStoreItemCountGroupResultDto, ESStoreItemRandomSearchDataPayload, ESStoreItemRandomSearchDataResult, ESStoreItemDeleteDataPayloadDto, ESStoreItemDeleteDataResultDto, ESStoreItemUpdateDataByItemNamePayloadDto, ESStoreItemUpdateDataByItemNameResultDto, ESStoreItemCreateDataPayload, ESStoreItemCreateDataResult, ESStoreItemUpdateDataPayload, ESStoreItemUpdateDataResult, ESStoreItemCreateAndUpdateDataBulkPayload } from '../dto/es-store-item-v1';
|
|
4
|
+
export declare class AmqpEsStoreItemV2Service {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
refreshIndex(payload: void, param: AbstractParam): Promise<void>;
|
|
9
|
+
refreshAllDataOnlyPublish(payload: void, param: AbstractParam): Promise<void>;
|
|
10
|
+
searchData(payload: ESStoreItemSearchDataPayload, param: AbstractParam): Promise<ESStoreItemSearchDataResult>;
|
|
11
|
+
countGroup(payload: ESStoreItemCountGroupPayloadDto, param: AbstractParam): Promise<ESStoreItemCountGroupResultDto>;
|
|
12
|
+
createData(payload: ESStoreItemCreateDataPayload, param: AbstractParam): Promise<ESStoreItemCreateDataResult>;
|
|
13
|
+
createAndUpdateBulk(payload: ESStoreItemCreateAndUpdateDataBulkPayload, param: AbstractParam): Promise<void>;
|
|
14
|
+
deleteData(payload: ESStoreItemDeleteDataPayloadDto, param: AbstractParam): Promise<ESStoreItemDeleteDataResultDto>;
|
|
15
|
+
updateData(payload: ESStoreItemUpdateDataPayload, param: AbstractParam): Promise<ESStoreItemUpdateDataResult>;
|
|
16
|
+
updateDataByItemName(payload: ESStoreItemUpdateDataByItemNamePayloadDto, param: AbstractParam): Promise<ESStoreItemUpdateDataByItemNameResultDto>;
|
|
17
|
+
searchRandomData(payload: ESStoreItemRandomSearchDataPayload, param: AbstractParam): Promise<ESStoreItemRandomSearchDataResult>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.AmqpEsStoreItemV2Service = 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 AmqpEsStoreItemV2Service = class AmqpEsStoreItemV2Service {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async refreshIndex(payload, param) {
|
|
25
|
+
return this.amqpManager.call('es store item v1 index 갱신', 'ES_STORE_ITEM_REFRESH_INDEX', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async refreshAllDataOnlyPublish(payload, param) {
|
|
28
|
+
this.amqpManager.onlyPublish('es store item v1 전체 데이터 갱신', 'ES_STORE_ITEM_REFRESH_DATA_SUCCESS', payload, param);
|
|
29
|
+
}
|
|
30
|
+
async searchData(payload, param) {
|
|
31
|
+
return this.amqpManager.call('es store item v1 상품 검색', 'ES_STORE_ITEM_SEARCH_DATA', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
async countGroup(payload, param) {
|
|
34
|
+
return this.amqpManager.call('es store item v1 상품 개수 group 검색', 'ES_STORE_ITEM_COUNT_GROUP', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
36
|
+
async createData(payload, param) {
|
|
37
|
+
return this.amqpManager.call('es store item v1 상품 생성', 'ES_STORE_ITEM_CREATE_DATA', payload, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
39
|
+
async createAndUpdateBulk(payload, param) {
|
|
40
|
+
return this.amqpManager.call('es store item v1 데이터 대량 업데이트', 'ES_STORE_ITEM_CREATE_AND_UPDATE_BULK', payload, param, { isErrorThrowing: true });
|
|
41
|
+
}
|
|
42
|
+
async deleteData(payload, param) {
|
|
43
|
+
return this.amqpManager.call('es store item v1 데이터 삭제', 'ES_STORE_ITEM_DELETE_DATA', payload, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
45
|
+
async updateData(payload, param) {
|
|
46
|
+
return this.amqpManager.call('es store item v1 데이터 업데이트', 'ES_STORE_ITEM_UPDATE_DATA', payload, param, { isErrorThrowing: true });
|
|
47
|
+
}
|
|
48
|
+
async updateDataByItemName(payload, param) {
|
|
49
|
+
return this.amqpManager.call('es store item v1 상품명으로 부터 데이터 업데이트', 'ES_STORE_ITEM_UPDATE_DATA_BY_ITEM_NAME', payload, param, { isErrorThrowing: true });
|
|
50
|
+
}
|
|
51
|
+
async searchRandomData(payload, param) {
|
|
52
|
+
return this.amqpManager.call('es store item v1 랜덤 검색', 'ES_STORE_ITEM_RANDOM_SEARCH_DATA', payload, param, { isErrorThrowing: true });
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.AmqpEsStoreItemV2Service = AmqpEsStoreItemV2Service;
|
|
56
|
+
exports.AmqpEsStoreItemV2Service = AmqpEsStoreItemV2Service = __decorate([
|
|
57
|
+
(0, common_1.Injectable)(),
|
|
58
|
+
__param(0, (0, common_1.Inject)('ELASTIC_SERVICE_PROVIDER')),
|
|
59
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
60
|
+
], AmqpEsStoreItemV2Service);
|
|
@@ -23,6 +23,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
23
23
|
services_1.AmqpPayTryLogService,
|
|
24
24
|
services_1.AmqpPortOneService,
|
|
25
25
|
services_1.AmqpYoloDepositHistoryByPgService,
|
|
26
|
+
services_1.AmqpPurchasedInfoService,
|
|
26
27
|
],
|
|
27
28
|
exports: [
|
|
28
29
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
@@ -31,6 +32,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
31
32
|
services_1.AmqpPayTryLogService,
|
|
32
33
|
services_1.AmqpPortOneService,
|
|
33
34
|
services_1.AmqpYoloDepositHistoryByPgService,
|
|
35
|
+
services_1.AmqpPurchasedInfoService,
|
|
34
36
|
],
|
|
35
37
|
})
|
|
36
38
|
], AmqpOrderServerModule);
|
package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-info-by-atlas.dto.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GetPInfoSettleAmountInfoByAtlasPayload {
|
|
2
|
+
settleSDate: Date;
|
|
3
|
+
settleEDate?: Date;
|
|
4
|
+
}
|
|
5
|
+
export declare class GetPInfoSettleAmountInfoByAtlasResult {
|
|
6
|
+
/** 정산받은 금액 */
|
|
7
|
+
receivedMoney: number;
|
|
8
|
+
/** 전체 결제에 대한 예상 정산금 */
|
|
9
|
+
willReceiveMoney: number;
|
|
10
|
+
/** 결제에 완료된 건에 대한 정산금 */
|
|
11
|
+
mustReceiveMoney: number;
|
|
12
|
+
}
|
package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-info-by-atlas.dto.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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.GetPInfoSettleAmountInfoByAtlasResult = exports.GetPInfoSettleAmountInfoByAtlasPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetPInfoSettleAmountInfoByAtlasPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetPInfoSettleAmountInfoByAtlasPayload = GetPInfoSettleAmountInfoByAtlasPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], GetPInfoSettleAmountInfoByAtlasPayload.prototype, "settleSDate", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], GetPInfoSettleAmountInfoByAtlasPayload.prototype, "settleEDate", void 0);
|
|
26
|
+
class GetPInfoSettleAmountInfoByAtlasResult {
|
|
27
|
+
}
|
|
28
|
+
exports.GetPInfoSettleAmountInfoByAtlasResult = GetPInfoSettleAmountInfoByAtlasResult;
|
package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-logs-by-atlas.dto.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare class GetSettleAmountLogsByAtlasPayload {
|
|
2
|
+
settleSDate: Date;
|
|
3
|
+
settleEDate?: Date;
|
|
4
|
+
searchAfter?: string;
|
|
5
|
+
searchBefore?: string;
|
|
6
|
+
limit: number;
|
|
7
|
+
}
|
|
8
|
+
export interface SettleLog {
|
|
9
|
+
itemName: string;
|
|
10
|
+
optionName: string;
|
|
11
|
+
receivedDate?: Date;
|
|
12
|
+
buyerName: string;
|
|
13
|
+
proceeds: number;
|
|
14
|
+
pOptionInfo: {
|
|
15
|
+
pOptionType: string;
|
|
16
|
+
pOptionList: {
|
|
17
|
+
pNums: number;
|
|
18
|
+
optionNameList: string[];
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
totalPrice: number;
|
|
22
|
+
originPrice: number;
|
|
23
|
+
totalShippingFee: number;
|
|
24
|
+
serviceFee: number;
|
|
25
|
+
serviceFeePercent: number;
|
|
26
|
+
VATInfo?: {
|
|
27
|
+
VAT?: number;
|
|
28
|
+
VATPercent?: number;
|
|
29
|
+
isZeroRateVat?: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare class GetPInfoSettleAmountLogsByAtlasResult {
|
|
33
|
+
settleLogs: SettleLog[];
|
|
34
|
+
searchAfter?: string;
|
|
35
|
+
searchBefore?: string;
|
|
36
|
+
}
|
package/order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-amount-logs-by-atlas.dto.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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.GetPInfoSettleAmountLogsByAtlasResult = exports.GetSettleAmountLogsByAtlasPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetSettleAmountLogsByAtlasPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetSettleAmountLogsByAtlasPayload = GetSettleAmountLogsByAtlasPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], GetSettleAmountLogsByAtlasPayload.prototype, "settleSDate", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], GetSettleAmountLogsByAtlasPayload.prototype, "settleEDate", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], GetSettleAmountLogsByAtlasPayload.prototype, "searchAfter", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], GetSettleAmountLogsByAtlasPayload.prototype, "searchBefore", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNumber)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], GetSettleAmountLogsByAtlasPayload.prototype, "limit", void 0);
|
|
40
|
+
class GetPInfoSettleAmountLogsByAtlasResult {
|
|
41
|
+
}
|
|
42
|
+
exports.GetPInfoSettleAmountLogsByAtlasResult = GetPInfoSettleAmountLogsByAtlasResult;
|
|
@@ -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("./get-p-info-settle-amount-info-by-atlas.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-p-info-settle-amount-logs-by-atlas.dto"), exports);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./search-seller-transaction-history-by-process.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-p-infos-for-manage-buyer.dto"), exports);
|
|
19
|
+
__exportStar(require("./atlas"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult } from '../dto/purchasedinfos';
|
|
4
|
+
export declare class AmqpPurchasedInfoService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
getPInfoSettleAmountInfoByAtlas(payload: GetPInfoSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetPInfoSettleAmountInfoByAtlasResult>;
|
|
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.AmqpPurchasedInfoService = 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 AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async getPInfoSettleAmountInfoByAtlas(payload, param) {
|
|
25
|
+
return this.amqpManager.call('es를 위한 결제 시도 로그 리스트 조회', 'purchased-info.get.settle-amount-info-by-atlas', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
|
29
|
+
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpPurchasedInfoService);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./amqp.pay-try-log.service"), exports);
|
|
|
18
18
|
__exportStar(require("./amqp.port-one.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp.yolo-deposit-history-by-pg.service"), exports);
|
|
20
20
|
__exportStar(require("./amqp.bundle-p-info.service"), exports);
|
|
21
|
+
__exportStar(require("./amqp.purchased-info.service"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.0.80-
|
|
3
|
+
"version": "0.0.80-jun.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@yolo-croket-dev/core": "^1.4.52",
|
|
23
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"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectionFrameDataEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
3
|
+
targetSelectionDataId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
6
|
+
selectionFrameDatas: SelectionFrameDataEntity[];
|
|
7
|
+
}
|
|
@@ -9,18 +9,15 @@ 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.
|
|
12
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
-
class GetDomesticAccountStoreInfoPayload {
|
|
14
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
16
15
|
}
|
|
17
|
-
exports.
|
|
16
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload;
|
|
18
17
|
__decorate([
|
|
19
18
|
(0, class_validator_1.IsMongoId)(),
|
|
20
19
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
GetDomesticAccountStoreInfoErrorTypeEnum["NOT_FOUND_STORE"] = "NOT_FOUND_STORE";
|
|
26
|
-
})(GetDomesticAccountStoreInfoErrorTypeEnum || (exports.GetDomesticAccountStoreInfoErrorTypeEnum = GetDomesticAccountStoreInfoErrorTypeEnum = {}));
|
|
20
|
+
], SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
|
|
21
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
22
|
+
}
|
|
23
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = SearchAllSelectionFrameDatasByTargetSelectionDataIdResult;
|
|
@@ -6,6 +6,7 @@ import { GetUsernameByIdPayload, GetUsersForAppPushPayload, GetUsersForAppPushRe
|
|
|
6
6
|
import { Membership } from '@yolo-croket-dev/entity';
|
|
7
7
|
import { UserPhoneDecodeByPhoneNumberPayloadDto, UserPhoneDecodeByPhoneNumberResultDto } from '@yolo-croket-dev/dto/user-service';
|
|
8
8
|
import { NotificationUser, UpdateUserByIdPayload } from './amqp.user-service.types';
|
|
9
|
+
import { GetUserInfoByIdPayload, GetUserInfoByIdResult } from './dto/user';
|
|
9
10
|
export declare class AmqpUserService {
|
|
10
11
|
private readonly client;
|
|
11
12
|
private readonly amqpManager;
|
|
@@ -25,4 +26,5 @@ export declare class AmqpUserService {
|
|
|
25
26
|
updateUserById(payload: UpdateUserByIdPayload, param: AbstractParam): Promise<void>;
|
|
26
27
|
/** 유저 아이디를 통한 휴대폰 번호 가져오기 (use. notification) */
|
|
27
28
|
userPhoneDecodeById(userId: string, param: AbstractParam): Promise<string | null>;
|
|
29
|
+
getUserInfoById(payload: GetUserInfoByIdPayload, param: AbstractParam): Promise<GetUserInfoByIdResult>;
|
|
28
30
|
}
|
|
@@ -66,6 +66,9 @@ let AmqpUserService = class AmqpUserService {
|
|
|
66
66
|
async userPhoneDecodeById(userId, param) {
|
|
67
67
|
return this.amqpManager.call('userPhoneDecodeById', 'USER_PHONE_DECODE_BY_ID', { userId }, param);
|
|
68
68
|
}
|
|
69
|
+
async getUserInfoById(payload, param) {
|
|
70
|
+
return this.amqpManager.call('유저 아이디로 해당 유저 정보 검색', 'user.get.by-id', payload, param, { isErrorThrowing: true });
|
|
71
|
+
}
|
|
69
72
|
};
|
|
70
73
|
exports.AmqpUserService = AmqpUserService;
|
|
71
74
|
exports.AmqpUserService = AmqpUserService = __decorate([
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GetAskSettleAmountInfoByAtlasPayload {
|
|
2
|
+
settleSDate: Date;
|
|
3
|
+
settleEDate?: Date;
|
|
4
|
+
}
|
|
5
|
+
export declare class GetAskSettleAmountInfoByAtlasResult {
|
|
6
|
+
/** 정산받은 금액 */
|
|
7
|
+
receivedMoney: number;
|
|
8
|
+
/** 전체 결제에 대한 예상 정산금 */
|
|
9
|
+
willReceiveMoney: number;
|
|
10
|
+
/** 결제에 완료된 건에 대한 정산금 */
|
|
11
|
+
mustReceiveMoney: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GetAskSettleAmountInfoByAtlasResult = exports.GetAskSettleAmountInfoByAtlasPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetAskSettleAmountInfoByAtlasPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetAskSettleAmountInfoByAtlasPayload = GetAskSettleAmountInfoByAtlasPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], GetAskSettleAmountInfoByAtlasPayload.prototype, "settleSDate", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], GetAskSettleAmountInfoByAtlasPayload.prototype, "settleEDate", void 0);
|
|
26
|
+
class GetAskSettleAmountInfoByAtlasResult {
|
|
27
|
+
}
|
|
28
|
+
exports.GetAskSettleAmountInfoByAtlasResult = GetAskSettleAmountInfoByAtlasResult;
|
|
@@ -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-ask-ids-by-atlas-search.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-ask-settle-amount-info-by-atlas.dto"), exports);
|
|
@@ -18,4 +18,4 @@ __exportStar(require("./ban-word/query"), exports);
|
|
|
18
18
|
__exportStar(require("./search-keyword"), exports);
|
|
19
19
|
__exportStar(require("./store-item-bookmark"), exports);
|
|
20
20
|
__exportStar(require("./ask"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./user"), exports);
|
|
@@ -15,5 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-stores-for-toss-payment.dto"), exports);
|
|
18
|
-
__exportStar(require("./get-domestic-account-stores.dto"), exports);
|
|
19
|
-
__exportStar(require("./get-domestic-account-store-info.dto"), exports);
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { UserEntity } from '@yolo-croket-dev/entity-v2/user';
|
|
2
|
+
export declare class GetUserInfoByIdPayload {
|
|
3
|
+
/** 유저 아이디 */
|
|
4
|
+
userId: string;
|
|
5
|
+
/** 검색 포함 필드 */
|
|
6
|
+
includeFields?: string[];
|
|
7
|
+
/** 검색 제외 필드 */
|
|
8
|
+
excludeFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class GetUserInfoByIdResult {
|
|
11
|
+
user: UserEntity | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserInfoByIdResult = exports.GetUserInfoByIdPayload = void 0;
|
|
4
|
+
class GetUserInfoByIdPayload {
|
|
5
|
+
}
|
|
6
|
+
exports.GetUserInfoByIdPayload = GetUserInfoByIdPayload;
|
|
7
|
+
class GetUserInfoByIdResult {
|
|
8
|
+
}
|
|
9
|
+
exports.GetUserInfoByIdResult = GetUserInfoByIdResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-user-info-by-id.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-user-info-by-id.dto"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { StoreForTossPaymentEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
+
import { MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload } 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;
|
|
@@ -10,6 +10,4 @@ export declare class AmqpStoreService {
|
|
|
10
10
|
updatePrivateSellerInfoSellerAddress(payload: UpdatePrivateSellerInfoSellerAddressPayload, param: AbstractParam): Promise<void>;
|
|
11
11
|
getStoresForTossPayment(payload: GetStoresForTossPaymentPayload, param: AbstractParam): Promise<StoreForTossPaymentEntity[]>;
|
|
12
12
|
migrationTossPaymentsSettlementProxySellerId(payload: void, param: AbstractParam): Promise<MigrationTossPaymentsSettlementProxySellerIdResult>;
|
|
13
|
-
getDomesticAccountStores(payload: GetDomesticAccountStoresPayload, param: AbstractParam): Promise<DomesticAccountStoreEntity[]>;
|
|
14
|
-
getDomesticAccountStoreInfo(payload: GetDomesticAccountStoreInfoPayload, param: AbstractParam): Promise<DomesticAccountStoreEntity>;
|
|
15
13
|
}
|
|
@@ -30,12 +30,6 @@ let AmqpStoreService = class AmqpStoreService {
|
|
|
30
30
|
async migrationTossPaymentsSettlementProxySellerId(payload, param) {
|
|
31
31
|
return this.amqpManager.call('토스 페이먼츠 정산 지급대행 셀러 아이디 마이그레이션', 'store.migration.toss-payments-settlement-proxy-seller-id', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
|
-
async getDomesticAccountStores(payload, param) {
|
|
34
|
-
return this.amqpManager.call('스토어 리스트 호출 - 국내 계좌 스토어들', 'store.get.domestic-account-stores', payload, param, { isErrorThrowing: true });
|
|
35
|
-
}
|
|
36
|
-
async getDomesticAccountStoreInfo(payload, param) {
|
|
37
|
-
return this.amqpManager.call('스토어 정보 호출 - 국내 계좌 스토어', 'store.get.domestic-account-store', payload, param, { isErrorThrowing: true });
|
|
38
|
-
}
|
|
39
33
|
};
|
|
40
34
|
exports.AmqpStoreService = AmqpStoreService;
|
|
41
35
|
exports.AmqpStoreService = AmqpStoreService = __decorate([
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult } from '../../dto/ask';
|
|
3
|
+
import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult, GetAskSettleAmountInfoByAtlasPayload, GetAskSettleAmountInfoByAtlasResult } from '../../dto/ask';
|
|
4
4
|
export declare class AmqpAskService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getAskIdsByAtlasSearch(payload: GetAskIdsByAtlasSearchPayload, param: AbstractParam): Promise<GetAskIdsByAtlasSearchResult>;
|
|
9
|
+
getAskSettleAmountInfoByAtlas(payload: GetAskSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetAskSettleAmountInfoByAtlasResult>;
|
|
9
10
|
}
|
|
@@ -24,6 +24,9 @@ let AmqpAskService = class AmqpAskService {
|
|
|
24
24
|
async getAskIdsByAtlasSearch(payload, param) {
|
|
25
25
|
return this.amqpManager.call('Atlas 요청 아이디 리스트 조회', 'ask.get.ask-ids-by-atlas', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
async getAskSettleAmountInfoByAtlas(payload, param) {
|
|
28
|
+
return this.amqpManager.call('Atlas 정산금 정보 조회', 'ask.get.settle-amount-info-by-atlas', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
27
30
|
};
|
|
28
31
|
exports.AmqpAskService = AmqpAskService;
|
|
29
32
|
exports.AmqpAskService = AmqpAskService = __decorate([
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** @description result - DomesticAccountStoreEntity */
|
|
2
|
-
export declare class GetDomesticAccountStoreInfoPayload {
|
|
3
|
-
storeId: string;
|
|
4
|
-
}
|
|
5
|
-
export declare enum GetDomesticAccountStoreInfoErrorTypeEnum {
|
|
6
|
-
/** @description 아이디에 해당하는 스토어가 없음 */
|
|
7
|
-
NOT_FOUND_STORE = "NOT_FOUND_STORE"
|
|
8
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BusinessInfoSellerTypeEnum, DomesticAccountStoreEntity, ZeroRateVatProcessEnum } from '@yolo-croket-dev/entity-v2';
|
|
2
|
-
export declare class GetDomesticAccountStoresPayload {
|
|
3
|
-
startEditDate?: string;
|
|
4
|
-
endEditDate?: string;
|
|
5
|
-
sellerType?: BusinessInfoSellerTypeEnum;
|
|
6
|
-
isIndividual?: boolean;
|
|
7
|
-
isLivingAbroad?: boolean;
|
|
8
|
-
zeroRateVatProcess?: ZeroRateVatProcessEnum;
|
|
9
|
-
storeTitle?: string;
|
|
10
|
-
adminId?: string;
|
|
11
|
-
page: number;
|
|
12
|
-
limit: number;
|
|
13
|
-
}
|
|
14
|
-
export declare class GetDomesticAccountStoresResult {
|
|
15
|
-
allCount: number;
|
|
16
|
-
stores: DomesticAccountStoreEntity[];
|
|
17
|
-
}
|
|
@@ -1,69 +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.GetDomesticAccountStoresResult = exports.GetDomesticAccountStoresPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
|
-
class GetDomesticAccountStoresPayload {
|
|
16
|
-
}
|
|
17
|
-
exports.GetDomesticAccountStoresPayload = GetDomesticAccountStoresPayload;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsDateString)(),
|
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], GetDomesticAccountStoresPayload.prototype, "startEditDate", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsDateString)(),
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], GetDomesticAccountStoresPayload.prototype, "endEditDate", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
(0, class_validator_1.IsEnum)(entity_v2_1.BusinessInfoSellerTypeEnum),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], GetDomesticAccountStoresPayload.prototype, "sellerType", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsBoolean)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
__metadata("design:type", Boolean)
|
|
37
|
-
], GetDomesticAccountStoresPayload.prototype, "isIndividual", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsBoolean)(),
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
__metadata("design:type", Boolean)
|
|
42
|
-
], GetDomesticAccountStoresPayload.prototype, "isLivingAbroad", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
(0, class_validator_1.IsEnum)(entity_v2_1.ZeroRateVatProcessEnum),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], GetDomesticAccountStoresPayload.prototype, "zeroRateVatProcess", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsString)(),
|
|
50
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
-
(0, class_validator_1.IsOptional)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], GetDomesticAccountStoresPayload.prototype, "storeTitle", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsMongoId)(),
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], GetDomesticAccountStoresPayload.prototype, "adminId", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsNumber)(),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], GetDomesticAccountStoresPayload.prototype, "page", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsNumber)(),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], GetDomesticAccountStoresPayload.prototype, "limit", void 0);
|
|
67
|
-
class GetDomesticAccountStoresResult {
|
|
68
|
-
}
|
|
69
|
-
exports.GetDomesticAccountStoresResult = GetDomesticAccountStoresResult;
|