@yolo-croket-dev/amqp-access 0.0.84 → 0.0.85-jun.1
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/dto/pay-try-log/index.d.ts +1 -0
- package/order-server/dto/pay-try-log/index.js +17 -0
- package/order-server/dto/pay-try-log/write-normal-store-item-pay-try-log-init.dto.d.ts +27 -0
- package/order-server/dto/pay-try-log/write-normal-store-item-pay-try-log-init.dto.js +73 -0
- package/order-server/dto/purchasedinfos/query/atlas/{get-p-info-settle-amount-logs-by-atlas.dto.d.ts → get-p-info-legacy-settle-logs-by-atlas.dto.d.ts} +2 -2
- package/order-server/dto/purchasedinfos/query/atlas/{get-p-info-settle-amount-logs-by-atlas.dto.js → get-p-info-legacy-settle-logs-by-atlas.dto.js} +10 -10
- package/order-server/dto/purchasedinfos/query/atlas/index.d.ts +1 -1
- package/order-server/dto/purchasedinfos/query/atlas/index.js +1 -1
- package/order-server/services/amqp.purchased-info.service.d.ts +2 -2
- package/order-server/services/amqp.purchased-info.service.js +2 -2
- package/package.json +1 -1
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.d.ts +7 -0
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js +23 -0
- package/user-service/dto/ask/query/atlas/{get-ask-settle-amount-logs-by-atlas.dto.d.ts → get-ask-legacy-settle-logs-by-atlas.dto.d.ts} +4 -4
- package/user-service/dto/ask/query/atlas/{get-ask-settle-amount-logs-by-atlas.dto.js → get-ask-legacy-settle-logs-by-atlas.dto.js} +10 -10
- package/user-service/dto/ask/query/atlas/index.d.ts +1 -1
- package/user-service/dto/ask/query/atlas/index.js +1 -1
- package/user-service/dto/inflow-session/index.d.ts +1 -0
- package/user-service/dto/inflow-session/index.js +17 -0
- package/user-service/dto/inflow-session/query/index.d.ts +1 -0
- package/user-service/dto/inflow-session/query/index.js +17 -0
- package/user-service/dto/inflow-session/query/search-inflow-sessions-by-ip-or-user-id.dto.d.ts +5 -0
- package/user-service/dto/inflow-session/query/search-inflow-sessions-by-ip-or-user-id.dto.js +29 -0
- package/user-service/services/amqp.inflow-session.service.d.ts +11 -0
- package/user-service/services/amqp.inflow-session.service.js +33 -0
- package/user-service/services/ask/amqp.ask.service.d.ts +2 -2
- package/user-service/services/ask/amqp.ask.service.js +2 -2
- package/user-service/services/index.d.ts +1 -0
- package/user-service/services/index.js +1 -0
|
@@ -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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './write-normal-store-item-pay-try-log-init.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("./write-normal-store-item-pay-try-log-init.dto"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum WriteNormalStoreItemPayTryLogDTypeEnum {
|
|
2
|
+
shipping = "shipping",
|
|
3
|
+
direct = "direct"
|
|
4
|
+
}
|
|
5
|
+
export declare class WriteNormalStoreItemPayTryLogPOptionInfoChild {
|
|
6
|
+
pNums: number;
|
|
7
|
+
optionNameList: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare class WriteNormalStoreItemPayTryLogPOptionInfo {
|
|
10
|
+
pOptionType: string;
|
|
11
|
+
pOptionList: WriteNormalStoreItemPayTryLogPOptionInfoChild[];
|
|
12
|
+
}
|
|
13
|
+
export declare class WriteNormalStoreItemPayTryLogInitPayload {
|
|
14
|
+
isCart: boolean;
|
|
15
|
+
paidPrice: number;
|
|
16
|
+
buyerId: string;
|
|
17
|
+
itemId: string;
|
|
18
|
+
DType: WriteNormalStoreItemPayTryLogDTypeEnum;
|
|
19
|
+
pOptionInfo: WriteNormalStoreItemPayTryLogPOptionInfo;
|
|
20
|
+
}
|
|
21
|
+
export declare class WriteNormalStoreItemPayTryLogInitResult {
|
|
22
|
+
PTLId: string;
|
|
23
|
+
date: Date;
|
|
24
|
+
payProcess: string;
|
|
25
|
+
type: string;
|
|
26
|
+
_author: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.WriteNormalStoreItemPayTryLogInitResult = exports.WriteNormalStoreItemPayTryLogInitPayload = exports.WriteNormalStoreItemPayTryLogPOptionInfo = exports.WriteNormalStoreItemPayTryLogPOptionInfoChild = exports.WriteNormalStoreItemPayTryLogDTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
var WriteNormalStoreItemPayTryLogDTypeEnum;
|
|
16
|
+
(function (WriteNormalStoreItemPayTryLogDTypeEnum) {
|
|
17
|
+
WriteNormalStoreItemPayTryLogDTypeEnum["shipping"] = "shipping";
|
|
18
|
+
WriteNormalStoreItemPayTryLogDTypeEnum["direct"] = "direct";
|
|
19
|
+
})(WriteNormalStoreItemPayTryLogDTypeEnum || (exports.WriteNormalStoreItemPayTryLogDTypeEnum = WriteNormalStoreItemPayTryLogDTypeEnum = {}));
|
|
20
|
+
class WriteNormalStoreItemPayTryLogPOptionInfoChild {
|
|
21
|
+
}
|
|
22
|
+
exports.WriteNormalStoreItemPayTryLogPOptionInfoChild = WriteNormalStoreItemPayTryLogPOptionInfoChild;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], WriteNormalStoreItemPayTryLogPOptionInfoChild.prototype, "pNums", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], WriteNormalStoreItemPayTryLogPOptionInfoChild.prototype, "optionNameList", void 0);
|
|
31
|
+
class WriteNormalStoreItemPayTryLogPOptionInfo {
|
|
32
|
+
}
|
|
33
|
+
exports.WriteNormalStoreItemPayTryLogPOptionInfo = WriteNormalStoreItemPayTryLogPOptionInfo;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], WriteNormalStoreItemPayTryLogPOptionInfo.prototype, "pOptionType", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
40
|
+
(0, class_transformer_1.Type)(() => WriteNormalStoreItemPayTryLogPOptionInfo),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], WriteNormalStoreItemPayTryLogPOptionInfo.prototype, "pOptionList", void 0);
|
|
43
|
+
class WriteNormalStoreItemPayTryLogInitPayload {
|
|
44
|
+
}
|
|
45
|
+
exports.WriteNormalStoreItemPayTryLogInitPayload = WriteNormalStoreItemPayTryLogInitPayload;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "isCart", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNumber)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "paidPrice", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsMongoId)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "buyerId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsMongoId)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "itemId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsEnum)(WriteNormalStoreItemPayTryLogDTypeEnum),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "DType", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.ValidateNested)({}),
|
|
68
|
+
(0, class_transformer_1.Type)(() => WriteNormalStoreItemPayTryLogPOptionInfo),
|
|
69
|
+
__metadata("design:type", WriteNormalStoreItemPayTryLogPOptionInfo)
|
|
70
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "pOptionInfo", void 0);
|
|
71
|
+
class WriteNormalStoreItemPayTryLogInitResult {
|
|
72
|
+
}
|
|
73
|
+
exports.WriteNormalStoreItemPayTryLogInitResult = WriteNormalStoreItemPayTryLogInitResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class GetPInfoLegacySettleLogsByAtlasPayload {
|
|
2
2
|
settleSDate: Date;
|
|
3
3
|
settleEDate?: Date;
|
|
4
4
|
searchAfter?: string;
|
|
@@ -29,7 +29,7 @@ export interface LegacySettleLog {
|
|
|
29
29
|
isZeroRateVat?: boolean;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export declare class
|
|
32
|
+
export declare class GetPInfoLegacySettleLogsByAtlasResult {
|
|
33
33
|
settleLogs: LegacySettleLog[];
|
|
34
34
|
searchAfter?: string;
|
|
35
35
|
searchBefore?: string;
|
|
@@ -9,34 +9,34 @@ 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.GetPInfoLegacySettleLogsByAtlasResult = exports.GetPInfoLegacySettleLogsByAtlasPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class GetPInfoLegacySettleLogsByAtlasPayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.GetPInfoLegacySettleLogsByAtlasPayload = GetPInfoLegacySettleLogsByAtlasPayload;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsDateString)(),
|
|
19
19
|
__metadata("design:type", Date)
|
|
20
|
-
],
|
|
20
|
+
], GetPInfoLegacySettleLogsByAtlasPayload.prototype, "settleSDate", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsDateString)(),
|
|
23
23
|
(0, class_validator_1.IsOptional)(),
|
|
24
24
|
__metadata("design:type", Date)
|
|
25
|
-
],
|
|
25
|
+
], GetPInfoLegacySettleLogsByAtlasPayload.prototype, "settleEDate", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsString)(),
|
|
28
28
|
(0, class_validator_1.IsOptional)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
30
|
+
], GetPInfoLegacySettleLogsByAtlasPayload.prototype, "searchAfter", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsString)(),
|
|
33
33
|
(0, class_validator_1.IsOptional)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], GetPInfoLegacySettleLogsByAtlasPayload.prototype, "searchBefore", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, class_validator_1.IsNumber)(),
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
|
-
],
|
|
40
|
-
class
|
|
39
|
+
], GetPInfoLegacySettleLogsByAtlasPayload.prototype, "limit", void 0);
|
|
40
|
+
class GetPInfoLegacySettleLogsByAtlasResult {
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
42
|
+
exports.GetPInfoLegacySettleLogsByAtlasResult = GetPInfoLegacySettleLogsByAtlasResult;
|
|
@@ -15,5 +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-p-info-settle-amount-info-by-atlas.dto"), exports);
|
|
18
|
-
__exportStar(require("./get-p-info-settle-
|
|
18
|
+
__exportStar(require("./get-p-info-legacy-settle-logs-by-atlas.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-p-info-all-settle-amount-by-atlas.dto"), exports);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult,
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getPInfoSettleAmountInfoByAtlas(payload: GetPInfoSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetPInfoSettleAmountInfoByAtlasResult>;
|
|
9
9
|
getPInfoAllSettleAmountByAtlas(payload: GetPInfoAllSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoAllSettleAmountByAtlasResult>;
|
|
10
|
-
|
|
10
|
+
getPInfoLegacySettleLogsByAtlas(payload: GetPInfoLegacySettleLogsByAtlasPayload, param: AbstractParam): Promise<GetPInfoLegacySettleLogsByAtlasResult>;
|
|
11
11
|
}
|
|
@@ -27,8 +27,8 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
|
27
27
|
async getPInfoAllSettleAmountByAtlas(payload, param) {
|
|
28
28
|
return this.amqpManager.call('atlas 검색 - 전체 정산된 금액 조회', 'purchased-info.get.all-settle-amount-by-atlas', payload, param, { isErrorThrowing: true });
|
|
29
29
|
}
|
|
30
|
-
async
|
|
31
|
-
return this.amqpManager.call('atlas 검색 - 스토어 정산 로그 조회', 'purchased-info.get.settle-
|
|
30
|
+
async getPInfoLegacySettleLogsByAtlas(payload, param) {
|
|
31
|
+
return this.amqpManager.call('atlas 검색 - 스토어 정산 로그 조회', 'purchased-info.get.legacy-settle-logs-by-atlas', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
|
|
21
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
22
|
+
}
|
|
23
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = SearchAllSelectionFrameDatasByTargetSelectionDataIdResult;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { LegacySettleLog } from '../../../../../order-server/dto/purchasedinfos/query/atlas/get-p-info-settle-
|
|
2
|
-
export { LegacySettleLog
|
|
3
|
-
export declare class
|
|
1
|
+
import { LegacySettleLog } from '../../../../../order-server/dto/purchasedinfos/query/atlas/get-p-info-legacy-settle-logs-by-atlas.dto';
|
|
2
|
+
export { LegacySettleLog };
|
|
3
|
+
export declare class GetAskLegacySettleLogsByAtlasPayload {
|
|
4
4
|
settleSDate: Date;
|
|
5
5
|
settleEDate?: Date;
|
|
6
6
|
searchAfter?: string;
|
|
7
7
|
searchBefore?: string;
|
|
8
8
|
limit: number;
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class GetAskLegacySettleLogsByAtlasResult {
|
|
11
11
|
settleLogs: LegacySettleLog[];
|
|
12
12
|
searchAfter?: string;
|
|
13
13
|
searchBefore?: string;
|
|
@@ -9,34 +9,34 @@ 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.GetAskLegacySettleLogsByAtlasResult = exports.GetAskLegacySettleLogsByAtlasPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class GetAskLegacySettleLogsByAtlasPayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.GetAskLegacySettleLogsByAtlasPayload = GetAskLegacySettleLogsByAtlasPayload;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsDateString)(),
|
|
19
19
|
__metadata("design:type", Date)
|
|
20
|
-
],
|
|
20
|
+
], GetAskLegacySettleLogsByAtlasPayload.prototype, "settleSDate", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsDateString)(),
|
|
23
23
|
(0, class_validator_1.IsOptional)(),
|
|
24
24
|
__metadata("design:type", Date)
|
|
25
|
-
],
|
|
25
|
+
], GetAskLegacySettleLogsByAtlasPayload.prototype, "settleEDate", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsString)(),
|
|
28
28
|
(0, class_validator_1.IsOptional)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
30
|
+
], GetAskLegacySettleLogsByAtlasPayload.prototype, "searchAfter", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsString)(),
|
|
33
33
|
(0, class_validator_1.IsOptional)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], GetAskLegacySettleLogsByAtlasPayload.prototype, "searchBefore", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, class_validator_1.IsNumber)(),
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
|
-
],
|
|
40
|
-
class
|
|
39
|
+
], GetAskLegacySettleLogsByAtlasPayload.prototype, "limit", void 0);
|
|
40
|
+
class GetAskLegacySettleLogsByAtlasResult {
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
42
|
+
exports.GetAskLegacySettleLogsByAtlasResult = GetAskLegacySettleLogsByAtlasResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './get-ask-ids-by-atlas-search.dto';
|
|
2
2
|
export * from './get-ask-settle-amount-info-by-atlas.dto';
|
|
3
3
|
export * from './get-ask-all-settle-amount-by-atlas.dto';
|
|
4
|
-
export * from './get-ask-settle-
|
|
4
|
+
export * from './get-ask-legacy-settle-logs-by-atlas.dto';
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-ask-ids-by-atlas-search.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-ask-settle-amount-info-by-atlas.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-ask-all-settle-amount-by-atlas.dto"), exports);
|
|
20
|
-
__exportStar(require("./get-ask-settle-
|
|
20
|
+
__exportStar(require("./get-ask-legacy-settle-logs-by-atlas.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 @@
|
|
|
1
|
+
export * from './search-inflow-sessions-by-ip-or-user-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("./search-inflow-sessions-by-ip-or-user-id.dto"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.SearchInflowSessionByIpOrUserIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchInflowSessionByIpOrUserIdPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SearchInflowSessionByIpOrUserIdPayload = SearchInflowSessionByIpOrUserIdPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SearchInflowSessionByIpOrUserIdPayload.prototype, "ip", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], SearchInflowSessionByIpOrUserIdPayload.prototype, "limit", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsMongoId)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SearchInflowSessionByIpOrUserIdPayload.prototype, "userId", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { InflowSession } from '@yolo-croket-dev/entity/src/inflow-session';
|
|
4
|
+
/** @dto -v2 */
|
|
5
|
+
import { SearchInflowSessionByIpOrUserIdPayload } from '../dto/inflow-session/query';
|
|
6
|
+
export declare class AmqpInflowSessionByUserService {
|
|
7
|
+
private readonly client;
|
|
8
|
+
private readonly amqpManager;
|
|
9
|
+
constructor(client: ClientProxy);
|
|
10
|
+
searchInflowSessions(payload: SearchInflowSessionByIpOrUserIdPayload, param: AbstractParam): Promise<InflowSession[]>;
|
|
11
|
+
}
|
|
@@ -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.AmqpInflowSessionByUserService = 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 AmqpInflowSessionByUserService = class AmqpInflowSessionByUserService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async searchInflowSessions(payload, param) {
|
|
25
|
+
return this.amqpManager.call('유입 세션 정보 검색', 'inflow-session.get.by-ip-or-user-id', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpInflowSessionByUserService = AmqpInflowSessionByUserService;
|
|
29
|
+
exports.AmqpInflowSessionByUserService = AmqpInflowSessionByUserService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpInflowSessionByUserService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult, GetAskSettleAmountInfoByAtlasPayload, GetAskSettleAmountInfoByAtlasResult, GetAskAllSettleAmountByAtlasPayload, GetAskAllSettleAmountByAtlasResult,
|
|
3
|
+
import { GetAskIdsByAtlasSearchPayload, GetAskIdsByAtlasSearchResult, GetAskSettleAmountInfoByAtlasPayload, GetAskSettleAmountInfoByAtlasResult, GetAskAllSettleAmountByAtlasPayload, GetAskAllSettleAmountByAtlasResult, GetAskLegacySettleLogsByAtlasPayload, GetAskLegacySettleLogsByAtlasResult } from '../../dto/ask';
|
|
4
4
|
export declare class AmqpAskService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -8,5 +8,5 @@ export declare class AmqpAskService {
|
|
|
8
8
|
getAskIdsByAtlasSearch(payload: GetAskIdsByAtlasSearchPayload, param: AbstractParam): Promise<GetAskIdsByAtlasSearchResult>;
|
|
9
9
|
getAskSettleAmountInfoByAtlas(payload: GetAskSettleAmountInfoByAtlasPayload, param: AbstractParam): Promise<GetAskSettleAmountInfoByAtlasResult>;
|
|
10
10
|
getAskAllSettleAmountByAtlas(payload: GetAskAllSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetAskAllSettleAmountByAtlasResult>;
|
|
11
|
-
|
|
11
|
+
getAskLegacySettleLogsByAtlas(payload: GetAskLegacySettleLogsByAtlasPayload, param: AbstractParam): Promise<GetAskLegacySettleLogsByAtlasResult>;
|
|
12
12
|
}
|
|
@@ -30,8 +30,8 @@ let AmqpAskService = class AmqpAskService {
|
|
|
30
30
|
async getAskAllSettleAmountByAtlas(payload, param) {
|
|
31
31
|
return this.amqpManager.call('Atlas - 전체 정산된 금액 조회', 'ask.get.all-settle-amount-by-atlas', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
|
-
async
|
|
34
|
-
return this.amqpManager.call('atlas 검색 - 요청 정산 로그 조회', 'ask.get.settle-
|
|
33
|
+
async getAskLegacySettleLogsByAtlas(payload, param) {
|
|
34
|
+
return this.amqpManager.call('atlas 검색 - 요청 정산 로그 조회', 'ask.get.legacy-settle-logs-by-atlas', payload, param, { isErrorThrowing: true });
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
exports.AmqpAskService = AmqpAskService;
|
|
@@ -22,3 +22,4 @@ __exportStar(require("./amqp.store-item.service"), exports);
|
|
|
22
22
|
__exportStar(require("./amqp.user-entity.service"), exports);
|
|
23
23
|
__exportStar(require("./amqp.store.service"), exports);
|
|
24
24
|
__exportStar(require("./ask"), exports);
|
|
25
|
+
__exportStar(require("./amqp.inflow-session.service"), exports);
|