@yolo-croket-dev/amqp-access 0.7.48-sj4 → 0.7.48-sj6
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 +2 -2
- package/store-item-server/dto/campaign-link/command/create-campaign-link.dto.d.ts +3 -2
- package/store-item-server/dto/campaign-link/index.d.ts +1 -0
- package/store-item-server/dto/campaign-link/index.js +1 -0
- package/store-item-server/dto/campaign-link/query/get-campaign-links-for-admin.dto.d.ts +24 -0
- package/store-item-server/dto/campaign-link/query/get-campaign-links-for-admin.dto.js +34 -0
- package/store-item-server/dto/campaign-link/query/index.d.ts +1 -1
- package/store-item-server/dto/campaign-link/query/index.js +15 -0
- package/store-item-server/services/amqp.campaign-link.service.d.ts +3 -1
- package/store-item-server/services/amqp.campaign-link.service.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.48-
|
|
3
|
+
"version": "0.7.48-sj6",
|
|
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/domain": "^0.2.27",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "0.2.15",
|
|
24
24
|
"@yolo-croket-dev/entity": "0.2.66",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.2.125-
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.2.125-sj3",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CampaignLinkEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
1
|
export declare class CreateCampaignLinkPayload {
|
|
3
2
|
campaignStoreItemId: string;
|
|
4
3
|
}
|
|
5
|
-
export interface CreateCampaignLinkResult
|
|
4
|
+
export interface CreateCampaignLinkResult {
|
|
5
|
+
orgUrl: string;
|
|
6
|
+
shortUrl: string;
|
|
6
7
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class GetCampaignLinksForAdminPayload {
|
|
2
|
+
lastId?: string;
|
|
3
|
+
userId?: string;
|
|
4
|
+
itemId?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GetCampaignLinksForAdminResultItem {
|
|
7
|
+
_id: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
orgUrl: string;
|
|
11
|
+
shortUrl: string;
|
|
12
|
+
regDate: Date;
|
|
13
|
+
influencerInfo: {
|
|
14
|
+
influencerName: string;
|
|
15
|
+
};
|
|
16
|
+
storeItem: {
|
|
17
|
+
itemName: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare class GetCampaignLinksForAdminResult {
|
|
21
|
+
items: GetCampaignLinksForAdminResultItem[];
|
|
22
|
+
totalCount?: number;
|
|
23
|
+
lastId?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.GetCampaignLinksForAdminResult = exports.GetCampaignLinksForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetCampaignLinksForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetCampaignLinksForAdminPayload = GetCampaignLinksForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetCampaignLinksForAdminPayload.prototype, "lastId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GetCampaignLinksForAdminPayload.prototype, "userId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsMongoId)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], GetCampaignLinksForAdminPayload.prototype, "itemId", void 0);
|
|
32
|
+
class GetCampaignLinksForAdminResult {
|
|
33
|
+
}
|
|
34
|
+
exports.GetCampaignLinksForAdminResult = GetCampaignLinksForAdminResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './get-campaign-links-for-admin.dto';
|
|
@@ -1,2 +1,17 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-campaign-links-for-admin.dto"), exports);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateCampaignLinkPayload, CreateCampaignLinkResult } from '../dto/campaign-link';
|
|
3
|
+
import { CreateCampaignLinkPayload, CreateCampaignLinkResult, GetCampaignLinksForAdminPayload, GetCampaignLinksForAdminResult } from '../dto/campaign-link';
|
|
4
4
|
export declare class AmqpCampaignLinkService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
/** @description [인플루언서] 캠페인 링크 발급 */
|
|
9
9
|
createCampaignLink(payload: CreateCampaignLinkPayload, param: AbstractParam): Promise<CreateCampaignLinkResult>;
|
|
10
|
+
/** @description [관리자] 캠페인 링크 리스트 조회 */
|
|
11
|
+
getCampaignLinksForAdmin(payload: GetCampaignLinksForAdminPayload, param: AbstractParam): Promise<GetCampaignLinksForAdminResult>;
|
|
10
12
|
}
|
|
@@ -25,6 +25,10 @@ let AmqpCampaignLinkService = class AmqpCampaignLinkService {
|
|
|
25
25
|
async createCampaignLink(payload, param) {
|
|
26
26
|
return this.amqpManager.call('[인플루언서] 캠페인 링크 발급', 'campaign-link.create', payload, param, { isErrorThrowing: true });
|
|
27
27
|
}
|
|
28
|
+
/** @description [관리자] 캠페인 링크 리스트 조회 */
|
|
29
|
+
async getCampaignLinksForAdmin(payload, param) {
|
|
30
|
+
return this.amqpManager.call('[관리자] 캠페인 링크 리스트 조회', 'campaign-link.get.list', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
28
32
|
};
|
|
29
33
|
exports.AmqpCampaignLinkService = AmqpCampaignLinkService;
|
|
30
34
|
exports.AmqpCampaignLinkService = AmqpCampaignLinkService = __decorate([
|