@yolo-croket-dev/amqp-access 0.4.123-sj1 → 0.4.123-slowquery.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.123-sj1",
3
+ "version": "0.4.123-slowquery.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,7 @@
1
+ export declare class AdCenterStoreItemKeywordCreatePayload {
2
+ /** 상품 아이디 */
3
+ storeItemId: string;
4
+ /** 키워드 */
5
+ keyword: string;
6
+ }
7
+ export type AdCenterStoreItemKeywordCreateResult = boolean;
@@ -0,0 +1,24 @@
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.AdCenterStoreItemKeywordCreatePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class AdCenterStoreItemKeywordCreatePayload {
15
+ }
16
+ exports.AdCenterStoreItemKeywordCreatePayload = AdCenterStoreItemKeywordCreatePayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], AdCenterStoreItemKeywordCreatePayload.prototype, "storeItemId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], AdCenterStoreItemKeywordCreatePayload.prototype, "keyword", void 0);
@@ -0,0 +1 @@
1
+ export * from './ad-center-storeitem-keyword-create.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("./ad-center-storeitem-keyword-create.dto"), exports);
@@ -1,11 +1,7 @@
1
1
  import { BrandCohortForAdminEntity } from '@yolo-croket-dev/entity-v2';
2
- export declare enum BrandCohortSearchTypeEnum {
3
- COHORT_NAME = "COHORT_NAME",
4
- RELATED_BRAND = "RELATED_BRAND"
5
- }
6
2
  export declare class GetBrandCohortsForAdminPayload {
7
- searchKeyword?: string;
8
- searchType?: BrandCohortSearchTypeEnum;
3
+ cohortName?: string;
4
+ brandName?: string;
9
5
  page: number;
10
6
  limit: number;
11
7
  }
@@ -9,13 +9,8 @@ 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.GetBrandCohortsForAdminPayload = exports.BrandCohortSearchTypeEnum = void 0;
12
+ exports.GetBrandCohortsForAdminPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- var BrandCohortSearchTypeEnum;
15
- (function (BrandCohortSearchTypeEnum) {
16
- BrandCohortSearchTypeEnum["COHORT_NAME"] = "COHORT_NAME";
17
- BrandCohortSearchTypeEnum["RELATED_BRAND"] = "RELATED_BRAND";
18
- })(BrandCohortSearchTypeEnum || (exports.BrandCohortSearchTypeEnum = BrandCohortSearchTypeEnum = {}));
19
14
  class GetBrandCohortsForAdminPayload {
20
15
  }
21
16
  exports.GetBrandCohortsForAdminPayload = GetBrandCohortsForAdminPayload;
@@ -23,12 +18,12 @@ __decorate([
23
18
  (0, class_validator_1.IsString)(),
24
19
  (0, class_validator_1.IsOptional)(),
25
20
  __metadata("design:type", String)
26
- ], GetBrandCohortsForAdminPayload.prototype, "searchKeyword", void 0);
21
+ ], GetBrandCohortsForAdminPayload.prototype, "cohortName", void 0);
27
22
  __decorate([
28
- (0, class_validator_1.IsEnum)(BrandCohortSearchTypeEnum),
23
+ (0, class_validator_1.IsString)(),
29
24
  (0, class_validator_1.IsOptional)(),
30
25
  __metadata("design:type", String)
31
- ], GetBrandCohortsForAdminPayload.prototype, "searchType", void 0);
26
+ ], GetBrandCohortsForAdminPayload.prototype, "brandName", void 0);
32
27
  __decorate([
33
28
  (0, class_validator_1.IsNumber)(),
34
29
  __metadata("design:type", Number)
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
3
+ import { AdCenterStoreItemKeywordCreatePayload, AdCenterStoreItemKeywordCreateResult } from '../dto/ad-center-storeitem-keyword/command';
4
+ export declare class AmqpAdCenterStoreItemKeywordService {
5
+ private readonly client;
6
+ private readonly amqpManagement;
7
+ constructor(client: ClientProxy);
8
+ adCenterStoreItemKeywordCreate(payload: AdCenterStoreItemKeywordCreatePayload, param: AbstractParam): Promise<AdCenterStoreItemKeywordCreateResult>;
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.AmqpAdCenterStoreItemKeywordService = 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 AmqpAdCenterStoreItemKeywordService = class AmqpAdCenterStoreItemKeywordService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManagement = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async adCenterStoreItemKeywordCreate(payload, param) {
25
+ return this.amqpManagement.call('광고 센터 상품 키워드 생성', 'ad-center-storeitem-keyword.create', payload, param);
26
+ }
27
+ };
28
+ exports.AmqpAdCenterStoreItemKeywordService = AmqpAdCenterStoreItemKeywordService;
29
+ exports.AmqpAdCenterStoreItemKeywordService = AmqpAdCenterStoreItemKeywordService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('STORE_ITEM_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpAdCenterStoreItemKeywordService);
@@ -14,3 +14,4 @@ export * from './store-item.moduels';
14
14
  export * from './amqp.brand.service';
15
15
  export * from './amqp.brand-cohort.service';
16
16
  export * from './amqp.brand-bookmark.service';
17
+ export * from './amqp.ad-center-storeitem-keyword.service';
@@ -30,3 +30,4 @@ __exportStar(require("./store-item.moduels"), exports);
30
30
  __exportStar(require("./amqp.brand.service"), exports);
31
31
  __exportStar(require("./amqp.brand-cohort.service"), exports);
32
32
  __exportStar(require("./amqp.brand-bookmark.service"), exports);
33
+ __exportStar(require("./amqp.ad-center-storeitem-keyword.service"), exports);
@@ -0,0 +1,3 @@
1
+ import { PushRedisDBPayload } from './push-redis-db.dto';
2
+ export declare class PullRedisDBPayload extends PushRedisDBPayload {
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PullRedisDBPayload = void 0;
4
+ const push_redis_db_dto_1 = require("./push-redis-db.dto");
5
+ class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
6
+ }
7
+ exports.PullRedisDBPayload = PullRedisDBPayload;
@@ -0,0 +1,4 @@
1
+ export declare class PushRedisDBPayload {
2
+ redisDBKey: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,26 @@
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.PushRedisDBPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class PushRedisDBPayload {
15
+ }
16
+ exports.PushRedisDBPayload = PushRedisDBPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MinLength)(1),
20
+ __metadata("design:type", String)
21
+ ], PushRedisDBPayload.prototype, "redisDBKey", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.MinLength)(1),
25
+ __metadata("design:type", String)
26
+ ], PushRedisDBPayload.prototype, "value", void 0);