@hosterai/types 0.0.17 → 0.0.19
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/README.md +12 -9
- package/dist/decorators/all-or-none-validator.spec.d.ts +1 -0
- package/dist/decorators/all-or-none-validator.spec.js +91 -0
- package/dist/decorators/all-or-none.validator.d.ts +2 -0
- package/dist/decorators/all-or-none.validator.js +71 -0
- package/dist/decorators/at-least-one-non-empty-validator.spec.d.ts +1 -0
- package/dist/decorators/at-least-one-non-empty-validator.spec.js +79 -0
- package/dist/decorators/at-least-one-non-empty.validator.d.ts +2 -0
- package/dist/decorators/at-least-one-non-empty.validator.js +43 -0
- package/dist/decorators/is-of-allowed-types-validator.spec.d.ts +1 -0
- package/dist/decorators/is-of-allowed-types-validator.spec.js +188 -0
- package/dist/decorators/is-of-allowed-types.validator.d.ts +16 -0
- package/dist/decorators/is-of-allowed-types.validator.js +105 -0
- package/dist/decorators/is-one-of-validator.spec.d.ts +1 -0
- package/dist/decorators/is-one-of-validator.spec.js +51 -0
- package/dist/decorators/is-one-of.validator.d.ts +2 -0
- package/dist/decorators/is-one-of.validator.js +19 -0
- package/dist/decorators/is-plain-object-validator.spec.d.ts +1 -0
- package/dist/decorators/is-plain-object-validator.spec.js +46 -0
- package/dist/decorators/is-plain-object.validator.d.ts +2 -0
- package/dist/decorators/is-plain-object.validator.js +30 -0
- package/dist/decorators/is-property-forbidden-validator.spec.d.ts +1 -0
- package/dist/decorators/is-property-forbidden-validator.spec.js +62 -0
- package/dist/decorators/is-property-forbidden.validator.d.ts +2 -0
- package/dist/decorators/is-property-forbidden.validator.js +22 -0
- package/dist/decorators/is-regex-validator.spec.d.ts +1 -0
- package/dist/decorators/is-regex-validator.spec.js +46 -0
- package/dist/decorators/is-regex.validator.d.ts +2 -0
- package/dist/decorators/is-regex.validator.js +32 -0
- package/dist/decorators/min-less-or-equal-validator.spec.d.ts +1 -0
- package/dist/decorators/min-less-or-equal-validator.spec.js +60 -0
- package/dist/decorators/min-less-or-equal.validator.d.ts +2 -0
- package/dist/decorators/min-less-or-equal.validator.js +58 -0
- package/dist/decorators/unique-field-in-array-validator.spec.d.ts +1 -0
- package/dist/decorators/unique-field-in-array-validator.spec.js +39 -0
- package/dist/decorators/unique-field-in-array.validator.d.ts +6 -0
- package/dist/decorators/unique-field-in-array.validator.js +47 -0
- package/dist/dtos/action.dto.js +25 -1
- package/dist/dtos/admin-panel.dto.d.ts +38 -0
- package/dist/dtos/admin-panel.dto.js +241 -0
- package/dist/dtos/client-panel.dto.d.ts +24 -0
- package/dist/dtos/client-panel.dto.js +105 -0
- package/dist/dtos/company-data.dto.js +1 -1
- package/dist/dtos/field-option.dto.js +16 -0
- package/dist/dtos/field.dto.d.ts +2 -0
- package/dist/dtos/field.dto.js +112 -2
- package/dist/dtos/info.dto.d.ts +4 -79
- package/dist/dtos/info.dto.js +141 -0
- package/dist/dtos/menu.dto.d.ts +5 -6
- package/dist/dtos/menu.dto.js +108 -0
- package/dist/dtos/multilang-text.dto.js +1 -1
- package/dist/dtos/notification/notification-info.dto.js +42 -0
- package/dist/dtos/product/product-info.dto.js +73 -0
- package/dist/dtos/product/requests/product-downgradeable-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-downgradeable-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-upgradeable-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-upgradeable-request.dto.js +37 -0
- package/dist/dtos/product/responses/product-downgradeable-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-downgradeable-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-upgradeable-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-upgradeable-response.dto.js +11 -0
- package/dist/dtos/settings.dto.d.ts +14 -0
- package/dist/dtos/settings.dto.js +81 -0
- package/dist/dtos/tab.dto.js +32 -0
- package/dist/dtos/unit.dto.js +47 -0
- package/dist/index.d.ts +23 -7
- package/dist/index.js +26 -7
- package/dist/openapi/schemas/components.schemas.d.ts +991 -0
- package/dist/openapi/schemas/components.schemas.js +2552 -0
- package/dist/transformers/menu.transformer.d.ts +2 -0
- package/dist/transformers/menu.transformer.js +16 -0
- package/dist/transformers/settings.transformer.d.ts +1 -0
- package/dist/transformers/settings.transformer.js +15 -0
- package/dist/validators/action-validator.spec.d.ts +1 -0
- package/dist/validators/action-validator.spec.js +67 -0
- package/dist/validators/admin-panel-more-actions-validator.spec.d.ts +1 -0
- package/dist/validators/admin-panel-more-actions-validator.spec.js +129 -0
- package/dist/validators/admin-panel-more-actions.validator.d.ts +2 -0
- package/dist/validators/admin-panel-more-actions.validator.js +11 -0
- package/dist/validators/admin-panel-tabs-validator.spec.d.ts +1 -0
- package/dist/validators/admin-panel-tabs-validator.spec.js +39 -0
- package/dist/validators/admin-panel-tabs.validator.d.ts +2 -0
- package/dist/validators/admin-panel-tabs.validator.js +11 -0
- package/dist/validators/admin-panel-validator.spec.d.ts +1 -0
- package/dist/validators/admin-panel-validator.spec.js +112 -0
- package/dist/validators/admin-panel.validator.d.ts +2 -0
- package/dist/validators/admin-panel.validator.js +14 -0
- package/dist/validators/client-data-validator.spec.d.ts +1 -0
- package/dist/validators/client-data-validator.spec.js +35 -0
- package/dist/validators/client-panel-validator.spec.d.ts +1 -0
- package/dist/validators/client-panel-validator.spec.js +51 -0
- package/dist/validators/client-panel.validator.d.ts +2 -0
- package/dist/validators/client-panel.validator.js +14 -0
- package/dist/validators/company-data-validator.spec.d.ts +1 -0
- package/dist/validators/company-data-validator.spec.js +73 -0
- package/dist/validators/field-option-validator.spec.d.ts +1 -0
- package/dist/validators/field-option-validator.spec.js +28 -0
- package/dist/validators/field-option.validator.d.ts +2 -0
- package/dist/validators/field-option.validator.js +11 -0
- package/dist/validators/field-validator.spec.d.ts +1 -0
- package/dist/validators/field-validator.spec.js +102 -0
- package/dist/validators/jwt-validator.spec.d.ts +2 -0
- package/dist/validators/jwt-validator.spec.js +43 -0
- package/dist/validators/menu-with-submenu-validator.spec.d.ts +1 -0
- package/dist/validators/menu-with-submenu-validator.spec.js +52 -0
- package/dist/validators/menu-with-submenu.validator.d.ts +2 -0
- package/dist/validators/menu-with-submenu.validator.js +11 -0
- package/dist/validators/menu-with-url-validator.spec.d.ts +1 -0
- package/dist/validators/menu-with-url-validator.spec.js +70 -0
- package/dist/validators/menu-with-url.validator.d.ts +2 -0
- package/dist/validators/menu-with-url.validator.js +11 -0
- package/dist/validators/multilang-text-validator.spec.d.ts +1 -0
- package/dist/validators/multilang-text-validator.spec.js +33 -0
- package/dist/validators/notification-info-validator.spec.d.ts +1 -0
- package/dist/validators/notification-info-validator.spec.js +82 -0
- package/dist/validators/notification-info.validator.d.ts +7 -0
- package/dist/validators/notification-info.validator.js +16 -0
- package/dist/validators/notification-request-validator.spec.d.ts +1 -0
- package/dist/validators/notification-request-validator.spec.js +115 -0
- package/dist/validators/product-create-request-validator.spec.d.ts +2 -0
- package/dist/validators/product-create-request-validator.spec.js +44 -0
- package/dist/validators/product-delete-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-delete-request-validator.spec.js +40 -0
- package/dist/validators/product-downgradable-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-downgradable-request-validator.spec.js +40 -0
- package/dist/validators/product-downgrade-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-downgrade-request-validator.spec.js +46 -0
- package/dist/validators/product-downgradeable-request-validator.d.ts +8 -0
- package/dist/validators/product-downgradeable-request-validator.js +17 -0
- package/dist/validators/product-info-validator.spec.d.ts +1 -0
- package/dist/validators/product-info-validator.spec.js +259 -0
- package/dist/validators/product-info.validator.d.ts +2 -0
- package/dist/validators/product-info.validator.js +11 -0
- package/dist/validators/product-renew-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-renew-request-validator.spec.js +40 -0
- package/dist/validators/product-suspend-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-suspend-request-validator.spec.js +40 -0
- package/dist/validators/product-unsuspend-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-unsuspend-request-validator.spec.js +40 -0
- package/dist/validators/product-upgradable-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-upgradable-request-validator.spec.js +40 -0
- package/dist/validators/product-upgrade-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-upgrade-request-validator.spec.js +46 -0
- package/dist/validators/product-upgradeable-request-validator.d.ts +8 -0
- package/dist/validators/product-upgradeable-request-validator.js +17 -0
- package/dist/validators/product-validate-attributes-request-validator.spec.d.ts +1 -0
- package/dist/validators/product-validate-attributes-request-validator.spec.js +27 -0
- package/dist/validators/receiver-email-validator.spec.d.ts +1 -0
- package/dist/validators/receiver-email-validator.spec.js +32 -0
- package/dist/validators/receiver-push-validator.spec.d.ts +1 -0
- package/dist/validators/receiver-push-validator.spec.js +31 -0
- package/dist/validators/receiver-sms-validator.spec.d.ts +1 -0
- package/dist/validators/receiver-sms-validator.spec.js +29 -0
- package/dist/validators/sender-email-validator.spec.d.ts +2 -0
- package/dist/validators/sender-email-validator.spec.js +62 -0
- package/dist/validators/sender-push-validator.spec.d.ts +1 -0
- package/dist/validators/sender-push-validator.spec.js +38 -0
- package/dist/validators/sender-sms-validator.spec.d.ts +1 -0
- package/dist/validators/sender-sms-validator.spec.js +22 -0
- package/dist/validators/settings-with-tabs-validator.spec.d.ts +1 -0
- package/dist/validators/settings-with-tabs-validator.spec.js +29 -0
- package/dist/validators/settings-with-tabs.validator.d.ts +2 -0
- package/dist/validators/settings-with-tabs.validator.js +11 -0
- package/dist/validators/settings-with-url-validator.spec.d.ts +1 -0
- package/dist/validators/settings-with-url-validator.spec.js +29 -0
- package/dist/validators/settings-with-url.validator.d.ts +2 -0
- package/dist/validators/settings-with-url.validator.js +11 -0
- package/dist/validators/unit-validator.spec.d.ts +1 -0
- package/dist/validators/unit-validator.spec.js +27 -0
- package/dist/validators/unit.validator.d.ts +2 -0
- package/dist/validators/unit.validator.js +11 -0
- package/package.json +4 -1
- package/dist/dtos/info/info-notification.dto.d.ts +0 -5
- package/dist/dtos/info/info-notification.dto.js +0 -7
- package/dist/dtos/info/info.dto.d.ts +0 -196
- package/dist/dtos/info/info.dto.js +0 -278
- package/dist/dtos/notification/notification-request.dto.d.ts +0 -20
- package/dist/dtos/notification/notification-request.dto.js +0 -31
- package/dist/dtos/receiver/receiver-email.dto.d.ts +0 -20
- package/dist/dtos/receiver/receiver-email.dto.js +0 -39
- package/dist/dtos/receiver/receiver-push.dto.d.ts +0 -15
- package/dist/dtos/receiver/receiver-push.dto.js +0 -31
- package/dist/dtos/receiver/receiver-sms.dto.d.ts +0 -11
- package/dist/dtos/receiver/receiver-sms.dto.js +0 -26
- package/dist/dtos/request.dto.d.ts +0 -20
- package/dist/dtos/request.dto.js +0 -31
- package/dist/dtos/sender/sender-email.dto.d.ts +0 -25
- package/dist/dtos/sender/sender-email.dto.js +0 -46
- package/dist/dtos/sender/sender-push.dto.d.ts +0 -31
- package/dist/dtos/sender/sender-push.dto.js +0 -50
- package/dist/dtos/sender/sender-sms.dto.d.ts +0 -15
- package/dist/dtos/sender/sender-sms.dto.js +0 -30
- package/dist/enums/message-type.enum.d.ts +0 -5
- package/dist/enums/message-type.enum.js +0 -9
|
@@ -1,20 +0,0 @@
|
|
|
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 RequestDto {
|
|
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
|
-
}
|
package/dist/dtos/request.dto.js
DELETED
|
@@ -1,31 +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.RequestDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class RequestDto {
|
|
15
|
-
}
|
|
16
|
-
exports.RequestDto = RequestDto;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], RequestDto.prototype, "notificationId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
-
(0, class_validator_1.IsObject)(),
|
|
25
|
-
__metadata("design:type", Object)
|
|
26
|
-
], RequestDto.prototype, "sender", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
-
(0, class_validator_1.IsObject)(),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], RequestDto.prototype, "receiver", void 0);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AttachmentDto } from '../attachment.dto';
|
|
2
|
-
/**
|
|
3
|
-
* DTO for email sender
|
|
4
|
-
* Used to define the details for sending an email
|
|
5
|
-
*/
|
|
6
|
-
export declare class EmailSenderDto {
|
|
7
|
-
/**
|
|
8
|
-
* The full name of the sender
|
|
9
|
-
*/
|
|
10
|
-
fullName: string;
|
|
11
|
-
/**
|
|
12
|
-
* The email subject
|
|
13
|
-
* Length restriction from 1 to 500 characters
|
|
14
|
-
*/
|
|
15
|
-
subject: string;
|
|
16
|
-
/**
|
|
17
|
-
* The message content
|
|
18
|
-
* Length restriction from 1 to 50000 characters
|
|
19
|
-
*/
|
|
20
|
-
message: string;
|
|
21
|
-
/**
|
|
22
|
-
* File attachments (optional)
|
|
23
|
-
*/
|
|
24
|
-
attachments?: AttachmentDto[];
|
|
25
|
-
}
|
|
@@ -1,46 +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.EmailSenderDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const attachment_dto_1 = require("../attachment.dto");
|
|
16
|
-
/**
|
|
17
|
-
* DTO for email sender
|
|
18
|
-
* Used to define the details for sending an email
|
|
19
|
-
*/
|
|
20
|
-
class EmailSenderDto {
|
|
21
|
-
}
|
|
22
|
-
exports.EmailSenderDto = EmailSenderDto;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], EmailSenderDto.prototype, "fullName", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
(0, class_validator_1.Length)(1, 500),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], EmailSenderDto.prototype, "subject", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
-
(0, class_validator_1.IsString)(),
|
|
37
|
-
(0, class_validator_1.Length)(1, 50000),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], EmailSenderDto.prototype, "message", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
(0, class_validator_1.IsArray)(),
|
|
43
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
44
|
-
(0, class_transformer_1.Type)(() => attachment_dto_1.AttachmentDto),
|
|
45
|
-
__metadata("design:type", Array)
|
|
46
|
-
], EmailSenderDto.prototype, "attachments", void 0);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DTO for push notification sender
|
|
3
|
-
* Used to define the details for sending a push notification
|
|
4
|
-
*/
|
|
5
|
-
export declare class PushSenderDto {
|
|
6
|
-
/**
|
|
7
|
-
* Unique identifier of the message
|
|
8
|
-
* Length restriction from 1 to 255 characters
|
|
9
|
-
*/
|
|
10
|
-
messageId: string;
|
|
11
|
-
/**
|
|
12
|
-
* The user ID that will receive the push notification
|
|
13
|
-
* Length restriction from 1 to 255 characters
|
|
14
|
-
*/
|
|
15
|
-
userId: string;
|
|
16
|
-
/**
|
|
17
|
-
* The title of the push notification
|
|
18
|
-
* Length restriction from 1 to 255 characters
|
|
19
|
-
*/
|
|
20
|
-
title: string;
|
|
21
|
-
/**
|
|
22
|
-
* The content of the push notification
|
|
23
|
-
* Length restriction from 1 to 1000 characters
|
|
24
|
-
*/
|
|
25
|
-
message: string;
|
|
26
|
-
/**
|
|
27
|
-
* The subtitle of the push notification (optional)
|
|
28
|
-
* Length restriction from 1 to 255 characters
|
|
29
|
-
*/
|
|
30
|
-
subtitle?: string;
|
|
31
|
-
}
|
|
@@ -1,50 +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.PushSenderDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
/**
|
|
15
|
-
* DTO for push notification sender
|
|
16
|
-
* Used to define the details for sending a push notification
|
|
17
|
-
*/
|
|
18
|
-
class PushSenderDto {
|
|
19
|
-
}
|
|
20
|
-
exports.PushSenderDto = PushSenderDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.Length)(1, 255),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], PushSenderDto.prototype, "messageId", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.Length)(1, 255),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], PushSenderDto.prototype, "userId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
(0, class_validator_1.Length)(1, 255),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], PushSenderDto.prototype, "title", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.Length)(1, 1000),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], PushSenderDto.prototype, "message", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.Length)(1, 255),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], PushSenderDto.prototype, "subtitle", void 0);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DTO for SMS sender
|
|
3
|
-
* Used to define the details for sending an SMS message
|
|
4
|
-
*/
|
|
5
|
-
export declare class SmsSenderDto {
|
|
6
|
-
/**
|
|
7
|
-
* Sender's phone number
|
|
8
|
-
* Must be a valid phone number
|
|
9
|
-
*/
|
|
10
|
-
senderPhone: string;
|
|
11
|
-
/**
|
|
12
|
-
* The content of the SMS message
|
|
13
|
-
*/
|
|
14
|
-
message: string;
|
|
15
|
-
}
|
|
@@ -1,30 +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.SmsSenderDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
/**
|
|
15
|
-
* DTO for SMS sender
|
|
16
|
-
* Used to define the details for sending an SMS message
|
|
17
|
-
*/
|
|
18
|
-
class SmsSenderDto {
|
|
19
|
-
}
|
|
20
|
-
exports.SmsSenderDto = SmsSenderDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
(0, class_validator_1.IsPhoneNumber)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], SmsSenderDto.prototype, "senderPhone", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], SmsSenderDto.prototype, "message", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageTypeEnum = void 0;
|
|
4
|
-
var MessageTypeEnum;
|
|
5
|
-
(function (MessageTypeEnum) {
|
|
6
|
-
MessageTypeEnum["EMAIL"] = "email";
|
|
7
|
-
MessageTypeEnum["SMS"] = "sms";
|
|
8
|
-
MessageTypeEnum["PUSH"] = "push";
|
|
9
|
-
})(MessageTypeEnum || (exports.MessageTypeEnum = MessageTypeEnum = {}));
|