@yolo-croket-dev/amqp-access 0.5.68 → 0.5.70
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/excel-upload-server/amqp.excel-upload-server.module.js +2 -0
- package/excel-upload-server/dto/app-bulk-push-excel/command/create-app-bulk-push-result-excel.dto.d.ts +6 -0
- package/excel-upload-server/dto/app-bulk-push-excel/command/create-app-bulk-push-result-excel.dto.js +21 -0
- package/excel-upload-server/dto/app-bulk-push-excel/command/index.d.ts +1 -0
- package/excel-upload-server/dto/app-bulk-push-excel/command/index.js +17 -0
- package/excel-upload-server/services/amqp.app-bulk-push-excel.service.d.ts +9 -0
- package/excel-upload-server/services/amqp.app-bulk-push-excel.service.js +33 -0
- package/excel-upload-server/services/index.d.ts +1 -0
- package/excel-upload-server/services/index.js +1 -0
- package/notification-service/dto/user-notification-setting/command/index.d.ts +1 -0
- package/notification-service/dto/user-notification-setting/command/index.js +17 -0
- package/notification-service/dto/user-notification-setting/command/update-user-notification-setting-bulk.dto.d.ts +14 -0
- package/notification-service/dto/user-notification-setting/command/update-user-notification-setting-bulk.dto.js +34 -0
- package/package.json +2 -2
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +26 -0
|
@@ -21,6 +21,7 @@ exports.AmqpExcelUploadServerModule = AmqpExcelUploadServerModule = __decorate([
|
|
|
21
21
|
services_1.AmqpPurchasedInfoExcelService,
|
|
22
22
|
services_1.AmqpBrandExcelService,
|
|
23
23
|
services_1.AmqpAdCenterStoreItemKeywordExcelService,
|
|
24
|
+
services_1.AmqpAppBulkPushExcelService,
|
|
24
25
|
],
|
|
25
26
|
exports: [
|
|
26
27
|
services_1.AmqpStoreItemExcelService,
|
|
@@ -28,6 +29,7 @@ exports.AmqpExcelUploadServerModule = AmqpExcelUploadServerModule = __decorate([
|
|
|
28
29
|
services_1.AmqpPurchasedInfoExcelService,
|
|
29
30
|
services_1.AmqpBrandExcelService,
|
|
30
31
|
services_1.AmqpAdCenterStoreItemKeywordExcelService,
|
|
32
|
+
services_1.AmqpAppBulkPushExcelService,
|
|
31
33
|
],
|
|
32
34
|
})
|
|
33
35
|
], AmqpExcelUploadServerModule);
|
package/excel-upload-server/dto/app-bulk-push-excel/command/create-app-bulk-push-result-excel.dto.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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.CreateAppBulkPushResultExcelPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** 앱 푸시 결과 엑셀 생성 Payload */
|
|
15
|
+
class CreateAppBulkPushResultExcelPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateAppBulkPushResultExcelPayload = CreateAppBulkPushResultExcelPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateAppBulkPushResultExcelPayload.prototype, "appBulkPushLogId", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-app-bulk-push-result-excel.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("./create-app-bulk-push-result-excel.dto"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
|
+
import { CreateAppBulkPushResultExcelPayload, CreateAppBulkPushResultExcelResult } from '../dto/app-bulk-push-excel/command';
|
|
4
|
+
export declare class AmqpAppBulkPushExcelService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createAppBulkPushResultExcel(payload: CreateAppBulkPushResultExcelPayload, param: AbstractParam): Promise<CreateAppBulkPushResultExcelResult>;
|
|
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.AmqpAppBulkPushExcelService = 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 AmqpAppBulkPushExcelService = class AmqpAppBulkPushExcelService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createAppBulkPushResultExcel(payload, param) {
|
|
25
|
+
return this.amqpManager.onlyPublish('앱 푸시 결과 엑셀 생성', 'app-bulk-push-excel.create.result-excel', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpAppBulkPushExcelService = AmqpAppBulkPushExcelService;
|
|
29
|
+
exports.AmqpAppBulkPushExcelService = AmqpAppBulkPushExcelService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('EXCEL_UPLOAD_SERVER_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpAppBulkPushExcelService);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./amqp.store-item-excel.service"), exports);
|
|
|
18
18
|
__exportStar(require("./amqp.purchased-info-excel.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp.brand-excel.service"), exports);
|
|
20
20
|
__exportStar(require("./amqp.ad-center-storeitem-keyword-excel.service"), exports);
|
|
21
|
+
__exportStar(require("./amqp.app-bulk-push-excel.service"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './update-user-notification-setting-bulk.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("./update-user-notification-setting-bulk.dto"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class UpdateUserNotificationSetting {
|
|
2
|
+
/** 유저 아이디 */
|
|
3
|
+
userId: string;
|
|
4
|
+
/** 앱 푸시 토큰 그룹 비활성화 여부 */
|
|
5
|
+
isAppPushTokenGroupDisabled: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** 유저 앱 디바이스 토큰 관리 설정 Bulk 업데이트 Payload */
|
|
8
|
+
export declare class UpdateUserNotificationSettingBulkPayload {
|
|
9
|
+
updateUserNotificationSettings: UpdateUserNotificationSetting[];
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateUserNotificationSettingBulkResult {
|
|
12
|
+
/** bulkWrite 중 오류가 발생한 유저 아이디 목록 */
|
|
13
|
+
errorUserIds: string[];
|
|
14
|
+
}
|
|
@@ -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.UpdateUserNotificationSettingBulkPayload = exports.UpdateUserNotificationSetting = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class UpdateUserNotificationSetting {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateUserNotificationSetting = UpdateUserNotificationSetting;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdateUserNotificationSetting.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], UpdateUserNotificationSetting.prototype, "isAppPushTokenGroupDisabled", void 0);
|
|
26
|
+
/** 유저 앱 디바이스 토큰 관리 설정 Bulk 업데이트 Payload */
|
|
27
|
+
class UpdateUserNotificationSettingBulkPayload {
|
|
28
|
+
}
|
|
29
|
+
exports.UpdateUserNotificationSettingBulkPayload = UpdateUserNotificationSettingBulkPayload;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
32
|
+
(0, class_transformer_1.Type)(() => UpdateUserNotificationSetting),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], UpdateUserNotificationSettingBulkPayload.prototype, "updateUserNotificationSettings", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.70",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nestjs/common": "^10.3.10",
|
|
21
21
|
"@yolo-croket-dev/core": "1.7.17",
|
|
22
|
-
"@yolo-croket-dev/domain": "^0.
|
|
22
|
+
"@yolo-croket-dev/domain": "^0.2.10",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.10",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.2.24",
|
|
25
25
|
"@yolo-croket-dev/entity-v2": "^0.2.23",
|
|
@@ -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,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);
|