@yolo-croket-dev/amqp-access 0.4.37-jun.4 → 0.4.38

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.
@@ -45,4 +45,6 @@ export declare class SendTemplateNotificationPayload {
45
45
  notificationActivityParam?: ActivityParam;
46
46
  /** 테스트용으로 사용, 활동 저장하지 않기 */
47
47
  isNotAcitivtySave?: boolean;
48
+ /** 활동내역만 저장하고, 이후 프로세스 하지 않기 */
49
+ isOnlyActivitySave?: boolean;
48
50
  }
@@ -58,3 +58,10 @@ __decorate([
58
58
  ,
59
59
  __metadata("design:type", Boolean)
60
60
  ], SendTemplateNotificationPayload.prototype, "isNotAcitivtySave", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsBoolean)()
64
+ /** 활동내역만 저장하고, 이후 프로세스 하지 않기 */
65
+ ,
66
+ __metadata("design:type", Boolean)
67
+ ], SendTemplateNotificationPayload.prototype, "isOnlyActivitySave", void 0);
@@ -1,9 +1,10 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { SendTemplateNotificationPayload } from '../dto/notification';
3
+ import { SendTemplateNotificationPayload, SendTemplateNotificationBulkPayload, SendTemplateNotificationBulkResult } from '../dto/notification';
4
4
  export declare class AmqpSendNotificationService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  sendTemplateNotification(payload: SendTemplateNotificationPayload, param: AbstractParam): Promise<boolean>;
9
+ sendTemplateNotificationBulk(payload: SendTemplateNotificationBulkPayload, param: AbstractParam): Promise<SendTemplateNotificationBulkResult>;
9
10
  }
@@ -24,6 +24,9 @@ let AmqpSendNotificationService = class AmqpSendNotificationService {
24
24
  async sendTemplateNotification(payload, param) {
25
25
  return this.amqpManager.call('알림 보내기', 'notification.template.send', payload, param, { isErrorThrowing: true });
26
26
  }
27
+ async sendTemplateNotificationBulk(payload, param) {
28
+ return this.amqpManager.call('알림 보내기 Bulk', 'notification.template.bulk-send', payload, param, { isErrorThrowing: true });
29
+ }
27
30
  };
28
31
  exports.AmqpSendNotificationService = AmqpSendNotificationService;
29
32
  exports.AmqpSendNotificationService = AmqpSendNotificationService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.37-jun.4",
3
+ "version": "0.4.38",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,2 +1 @@
1
1
  export * from './search-selling-info-log-info.dto';
2
- export * from './search-selling-info-log-info-for-sabang.dto';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./search-selling-info-log-info.dto"), exports);
18
- __exportStar(require("./search-selling-info-log-info-for-sabang.dto"), exports);
@@ -8,6 +8,7 @@ interface StoreItemPrice {
8
8
  result?: {
9
9
  calulatedItemPrice?: number;
10
10
  itemPriceForBuyer: number;
11
+ itemName: string;
11
12
  };
12
13
  error?: string;
13
14
  }
@@ -1,10 +0,0 @@
1
- export declare class SearchSellingInfoLogInfoForSabangPayload {
2
- area: string;
3
- nation: string;
4
- city: string;
5
- expectedSendDays: number;
6
- isAbroadShipping: boolean;
7
- shippingFee: number;
8
- isBundleShipping: boolean;
9
- bundleShippingFee?: number;
10
- }
@@ -1,49 +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.SearchSellingInfoLogInfoForSabangPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SearchSellingInfoLogInfoForSabangPayload {
15
- }
16
- exports.SearchSellingInfoLogInfoForSabangPayload = SearchSellingInfoLogInfoForSabangPayload;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- __metadata("design:type", String)
20
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "area", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsString)(),
23
- __metadata("design:type", String)
24
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "nation", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "city", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsNumber)(),
31
- __metadata("design:type", Number)
32
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "expectedSendDays", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsBoolean)(),
35
- __metadata("design:type", Boolean)
36
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "isAbroadShipping", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsNumber)(),
39
- __metadata("design:type", Number)
40
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "shippingFee", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsBoolean)(),
43
- __metadata("design:type", Boolean)
44
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "isBundleShipping", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsNumber)(),
47
- (0, class_validator_1.IsOptional)(),
48
- __metadata("design:type", Number)
49
- ], SearchSellingInfoLogInfoForSabangPayload.prototype, "bundleShippingFee", void 0);
@@ -1 +0,0 @@
1
- export * from './reg-store-item-by-sabang.dto';
@@ -1,17 +0,0 @@
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("./reg-store-item-by-sabang.dto"), exports);
@@ -1,46 +0,0 @@
1
- import { StoreItemOptionTypeEnum } from '@yolo-croket-dev/entity/src/store-item';
2
- export declare class RegStoreItemBySabangContentsData {
3
- title: string;
4
- explanation: string;
5
- imgUrl: string;
6
- }
7
- export declare class RegStoreItemBySabangSingleOptionInfo {
8
- optionNameList: string[];
9
- optionNumList: number[];
10
- }
11
- export declare class RegStoreItemBySabangOptionFrameList {
12
- optionTitle: string;
13
- optionFrameValueList: string[];
14
- }
15
- export declare class RegStoreItemBySabangGroupOptionInfo {
16
- optionFrameList: RegStoreItemBySabangOptionFrameList[];
17
- optionNums: number;
18
- }
19
- export declare class RegStoreItemBySabangPayload {
20
- itemName: string;
21
- itemPrice: number;
22
- itemImgUrls: string[];
23
- isSelling: boolean;
24
- contents?: string;
25
- htmlContents?: string;
26
- contentsDataList?: RegStoreItemBySabangContentsData[];
27
- optionType: StoreItemOptionTypeEnum;
28
- singleOptionInfo?: RegStoreItemBySabangSingleOptionInfo;
29
- groupOptionInfo?: RegStoreItemBySabangGroupOptionInfo;
30
- precautionCodeList?: string[];
31
- precautionEtc?: string;
32
- purchasedDate?: string;
33
- mainCategory: string;
34
- subCategory: string;
35
- area: string;
36
- nation: string;
37
- city: string;
38
- expectedSendDays: number;
39
- isAbroadShipping: boolean;
40
- shippingFee: number;
41
- isBundleShipping: boolean;
42
- bundleShippingFee?: number;
43
- }
44
- export declare class RegStoreItemBySabangResult {
45
- itemId: string;
46
- }
@@ -1,181 +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.RegStoreItemBySabangResult = exports.RegStoreItemBySabangPayload = exports.RegStoreItemBySabangGroupOptionInfo = exports.RegStoreItemBySabangOptionFrameList = exports.RegStoreItemBySabangSingleOptionInfo = exports.RegStoreItemBySabangContentsData = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
16
- class RegStoreItemBySabangContentsData {
17
- }
18
- exports.RegStoreItemBySabangContentsData = RegStoreItemBySabangContentsData;
19
- __decorate([
20
- (0, class_validator_1.IsString)(),
21
- __metadata("design:type", String)
22
- ], RegStoreItemBySabangContentsData.prototype, "title", void 0);
23
- __decorate([
24
- (0, class_validator_1.IsString)(),
25
- __metadata("design:type", String)
26
- ], RegStoreItemBySabangContentsData.prototype, "explanation", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsString)(),
29
- __metadata("design:type", String)
30
- ], RegStoreItemBySabangContentsData.prototype, "imgUrl", void 0);
31
- class RegStoreItemBySabangSingleOptionInfo {
32
- }
33
- exports.RegStoreItemBySabangSingleOptionInfo = RegStoreItemBySabangSingleOptionInfo;
34
- __decorate([
35
- (0, class_validator_1.IsArray)(),
36
- (0, class_validator_1.IsString)({ each: true }),
37
- __metadata("design:type", Array)
38
- ], RegStoreItemBySabangSingleOptionInfo.prototype, "optionNameList", void 0);
39
- __decorate([
40
- (0, class_validator_1.IsArray)(),
41
- (0, class_validator_1.IsNumber)({}, { each: true }),
42
- __metadata("design:type", Array)
43
- ], RegStoreItemBySabangSingleOptionInfo.prototype, "optionNumList", void 0);
44
- class RegStoreItemBySabangOptionFrameList {
45
- }
46
- exports.RegStoreItemBySabangOptionFrameList = RegStoreItemBySabangOptionFrameList;
47
- __decorate([
48
- (0, class_validator_1.IsString)(),
49
- __metadata("design:type", String)
50
- ], RegStoreItemBySabangOptionFrameList.prototype, "optionTitle", void 0);
51
- __decorate([
52
- (0, class_validator_1.IsArray)(),
53
- (0, class_validator_1.IsString)({ each: true }),
54
- __metadata("design:type", Array)
55
- ], RegStoreItemBySabangOptionFrameList.prototype, "optionFrameValueList", void 0);
56
- class RegStoreItemBySabangGroupOptionInfo {
57
- }
58
- exports.RegStoreItemBySabangGroupOptionInfo = RegStoreItemBySabangGroupOptionInfo;
59
- __decorate([
60
- (0, class_validator_1.IsArray)(),
61
- (0, class_validator_1.ValidateNested)({ each: true }),
62
- (0, class_transformer_1.Type)(() => RegStoreItemBySabangOptionFrameList),
63
- __metadata("design:type", Array)
64
- ], RegStoreItemBySabangGroupOptionInfo.prototype, "optionFrameList", void 0);
65
- __decorate([
66
- (0, class_validator_1.IsNumber)(),
67
- __metadata("design:type", Number)
68
- ], RegStoreItemBySabangGroupOptionInfo.prototype, "optionNums", void 0);
69
- class RegStoreItemBySabangPayload {
70
- }
71
- exports.RegStoreItemBySabangPayload = RegStoreItemBySabangPayload;
72
- __decorate([
73
- (0, class_validator_1.IsString)(),
74
- __metadata("design:type", String)
75
- ], RegStoreItemBySabangPayload.prototype, "itemName", void 0);
76
- __decorate([
77
- (0, class_validator_1.IsNumber)(),
78
- __metadata("design:type", Number)
79
- ], RegStoreItemBySabangPayload.prototype, "itemPrice", void 0);
80
- __decorate([
81
- (0, class_validator_1.IsArray)(),
82
- (0, class_validator_1.IsString)({ each: true }),
83
- __metadata("design:type", Array)
84
- ], RegStoreItemBySabangPayload.prototype, "itemImgUrls", void 0);
85
- __decorate([
86
- (0, class_validator_1.IsBoolean)(),
87
- __metadata("design:type", Boolean)
88
- ], RegStoreItemBySabangPayload.prototype, "isSelling", void 0);
89
- __decorate([
90
- (0, class_validator_1.IsString)(),
91
- (0, class_validator_1.IsOptional)(),
92
- __metadata("design:type", String)
93
- ], RegStoreItemBySabangPayload.prototype, "contents", void 0);
94
- __decorate([
95
- (0, class_validator_1.IsString)(),
96
- (0, class_validator_1.IsOptional)(),
97
- __metadata("design:type", String)
98
- ], RegStoreItemBySabangPayload.prototype, "htmlContents", void 0);
99
- __decorate([
100
- (0, class_validator_1.IsArray)(),
101
- (0, class_validator_1.ValidateNested)({ each: true }),
102
- (0, class_transformer_1.Type)(() => RegStoreItemBySabangContentsData),
103
- (0, class_validator_1.IsOptional)(),
104
- __metadata("design:type", Array)
105
- ], RegStoreItemBySabangPayload.prototype, "contentsDataList", void 0);
106
- __decorate([
107
- (0, class_validator_1.IsEnum)(store_item_1.StoreItemOptionTypeEnum),
108
- __metadata("design:type", String)
109
- ], RegStoreItemBySabangPayload.prototype, "optionType", void 0);
110
- __decorate([
111
- (0, class_validator_1.IsOptional)(),
112
- (0, class_validator_1.ValidateNested)(),
113
- (0, class_transformer_1.Type)(() => RegStoreItemBySabangSingleOptionInfo),
114
- __metadata("design:type", RegStoreItemBySabangSingleOptionInfo)
115
- ], RegStoreItemBySabangPayload.prototype, "singleOptionInfo", void 0);
116
- __decorate([
117
- (0, class_validator_1.IsOptional)(),
118
- (0, class_validator_1.ValidateNested)(),
119
- (0, class_transformer_1.Type)(() => RegStoreItemBySabangGroupOptionInfo),
120
- __metadata("design:type", RegStoreItemBySabangGroupOptionInfo)
121
- ], RegStoreItemBySabangPayload.prototype, "groupOptionInfo", void 0);
122
- __decorate([
123
- (0, class_validator_1.IsOptional)(),
124
- (0, class_validator_1.IsArray)(),
125
- (0, class_validator_1.IsString)({ each: true }),
126
- __metadata("design:type", Array)
127
- ], RegStoreItemBySabangPayload.prototype, "precautionCodeList", void 0);
128
- __decorate([
129
- (0, class_validator_1.IsOptional)(),
130
- (0, class_validator_1.IsString)(),
131
- __metadata("design:type", String)
132
- ], RegStoreItemBySabangPayload.prototype, "precautionEtc", void 0);
133
- __decorate([
134
- (0, class_validator_1.IsOptional)(),
135
- (0, class_validator_1.IsString)(),
136
- __metadata("design:type", String)
137
- ], RegStoreItemBySabangPayload.prototype, "purchasedDate", void 0);
138
- __decorate([
139
- (0, class_validator_1.IsString)(),
140
- __metadata("design:type", String)
141
- ], RegStoreItemBySabangPayload.prototype, "mainCategory", void 0);
142
- __decorate([
143
- (0, class_validator_1.IsString)(),
144
- __metadata("design:type", String)
145
- ], RegStoreItemBySabangPayload.prototype, "subCategory", void 0);
146
- __decorate([
147
- (0, class_validator_1.IsString)(),
148
- __metadata("design:type", String)
149
- ], RegStoreItemBySabangPayload.prototype, "area", void 0);
150
- __decorate([
151
- (0, class_validator_1.IsString)(),
152
- __metadata("design:type", String)
153
- ], RegStoreItemBySabangPayload.prototype, "nation", void 0);
154
- __decorate([
155
- (0, class_validator_1.IsString)(),
156
- __metadata("design:type", String)
157
- ], RegStoreItemBySabangPayload.prototype, "city", void 0);
158
- __decorate([
159
- (0, class_validator_1.IsNumber)(),
160
- __metadata("design:type", Number)
161
- ], RegStoreItemBySabangPayload.prototype, "expectedSendDays", void 0);
162
- __decorate([
163
- (0, class_validator_1.IsBoolean)(),
164
- __metadata("design:type", Boolean)
165
- ], RegStoreItemBySabangPayload.prototype, "isAbroadShipping", void 0);
166
- __decorate([
167
- (0, class_validator_1.IsNumber)(),
168
- __metadata("design:type", Number)
169
- ], RegStoreItemBySabangPayload.prototype, "shippingFee", void 0);
170
- __decorate([
171
- (0, class_validator_1.IsBoolean)(),
172
- __metadata("design:type", Boolean)
173
- ], RegStoreItemBySabangPayload.prototype, "isBundleShipping", void 0);
174
- __decorate([
175
- (0, class_validator_1.IsNumber)(),
176
- (0, class_validator_1.IsOptional)(),
177
- __metadata("design:type", Number)
178
- ], RegStoreItemBySabangPayload.prototype, "bundleShippingFee", void 0);
179
- class RegStoreItemBySabangResult {
180
- }
181
- exports.RegStoreItemBySabangResult = RegStoreItemBySabangResult;
@@ -1 +0,0 @@
1
- export * from './command';
@@ -1,17 +0,0 @@
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("./command"), exports);