@hosterai/types 0.0.6 → 0.0.7

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.
@@ -0,0 +1,20 @@
1
+ import { EmailReceiverDto } from '../receiver/receiver-email.dto';
2
+ import { EmailSenderDto } from '../sender/sender-email.dto';
3
+ import { PushSenderDto } from '../sender/sender-push.dto';
4
+ import { SmsSenderDto } from '../sender/sender-sms.dto';
5
+ import { PushReceiverDto } from '../receiver/receiver-push.dto';
6
+ import { SmsReceiverDto } from '../receiver/receiver-sms.dto';
7
+ export declare class NotificationRequestDto {
8
+ /**
9
+ * Unique identifier of the hoster message
10
+ */
11
+ notificationId: string;
12
+ /**
13
+ * Sender details according to the integration's notification type
14
+ */
15
+ sender: EmailSenderDto | SmsSenderDto | PushSenderDto;
16
+ /**
17
+ * Recipient details according to the integration's notification type
18
+ */
19
+ receiver: EmailReceiverDto | SmsReceiverDto | PushReceiverDto;
20
+ }
@@ -0,0 +1,31 @@
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.NotificationRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class NotificationRequestDto {
15
+ }
16
+ exports.NotificationRequestDto = NotificationRequestDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], NotificationRequestDto.prototype, "notificationId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_validator_1.IsObject)(),
25
+ __metadata("design:type", Object)
26
+ ], NotificationRequestDto.prototype, "sender", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_validator_1.IsObject)(),
30
+ __metadata("design:type", Object)
31
+ ], NotificationRequestDto.prototype, "receiver", void 0);
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from './dtos/base-response.dto';
3
3
  export * from './dtos/company-data.dto';
4
4
  export * from './dtos/error-response.dto';
5
5
  export * from './dtos/jwt.dto';
6
- export * from './dtos/request.dto';
6
+ export * from './dtos/notification/request.dto';
7
7
  export * from './dtos/setup-status-response.dto';
8
8
  export * from './dtos/success-response.dto';
9
9
  export * from './dtos/task-response.dto';
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ __exportStar(require("./dtos/base-response.dto"), exports);
20
20
  __exportStar(require("./dtos/company-data.dto"), exports);
21
21
  __exportStar(require("./dtos/error-response.dto"), exports);
22
22
  __exportStar(require("./dtos/jwt.dto"), exports);
23
- __exportStar(require("./dtos/request.dto"), exports);
23
+ __exportStar(require("./dtos/notification/request.dto"), exports);
24
24
  __exportStar(require("./dtos/setup-status-response.dto"), exports);
25
25
  __exportStar(require("./dtos/success-response.dto"), exports);
26
26
  __exportStar(require("./dtos/task-response.dto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hosterai/types",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {