@xoxno/types 1.0.108 → 1.0.110
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/dist/cosmos-db/documents/chat/chat-message-content.dto.d.ts +2 -1
- package/dist/cosmos-db/documents/chat/chat-message.doc.d.ts +3 -22
- package/dist/cosmos-db/documents/chat/chat-message.doc.js +4 -46
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.d.ts +17 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +89 -4
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ChatMessageContentType } from '../../../enums/chat-message-content-type.enum';
|
|
1
2
|
import { ChatMessageReplyDto } from './chat-message-reply.dto';
|
|
2
3
|
export declare class ChatMessageContentDto {
|
|
3
|
-
readonly type:
|
|
4
|
+
readonly type: ChatMessageContentType;
|
|
4
5
|
readonly value: string;
|
|
5
6
|
readonly replyTo?: ChatMessageReplyDto;
|
|
6
7
|
}
|
|
@@ -1,32 +1,13 @@
|
|
|
1
|
-
import { ChatDataType } from '../../../enums/chat-data-type.enum';
|
|
2
|
-
import { ChatMessageContentType } from '../../../enums/chat-message-content-type.enum';
|
|
3
1
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: string;
|
|
7
|
-
}
|
|
8
|
-
declare class ReplyToDto {
|
|
9
|
-
sender: OwnerDto;
|
|
10
|
-
content: MessageContentReplyToDto;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
id: string;
|
|
13
|
-
}
|
|
14
|
-
declare class MessageContentDto {
|
|
15
|
-
type: string;
|
|
16
|
-
value: string;
|
|
17
|
-
replyTo?: ReplyToDto;
|
|
18
|
-
}
|
|
2
|
+
import { ChatDataType } from '../../../enums/chat-data-type.enum';
|
|
3
|
+
import { ChatMessageContentDto } from './chat-message-content.dto';
|
|
19
4
|
export declare class MessageDto {
|
|
20
|
-
content:
|
|
5
|
+
content: ChatMessageContentDto;
|
|
21
6
|
isRead: boolean;
|
|
22
7
|
timestamp: number;
|
|
23
8
|
sender?: string;
|
|
24
9
|
isDeletedFor?: string[];
|
|
25
10
|
}
|
|
26
|
-
export interface ChatMessageContent {
|
|
27
|
-
type: ChatMessageContentType;
|
|
28
|
-
value: string;
|
|
29
|
-
}
|
|
30
11
|
declare class ChatMessageDocBase {
|
|
31
12
|
dataType: ChatDataType;
|
|
32
13
|
chatId: string;
|
|
@@ -11,57 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChatMessageDocHydrated = exports.ChatMessageDoc = exports.MessageDto = void 0;
|
|
13
13
|
const uuid_1 = require("uuid");
|
|
14
|
-
const chat_data_type_enum_1 = require("../../../enums/chat-data-type.enum");
|
|
15
|
-
const owner_dto_1 = require("../../../common/owner.dto");
|
|
16
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], MessageContentReplyToDto.prototype, "type", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ example: 'Hello world' }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], MessageContentReplyToDto.prototype, "value", void 0);
|
|
27
|
-
class ReplyToDto {
|
|
28
|
-
}
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)({ type: owner_dto_1.OwnerDto }),
|
|
31
|
-
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
32
|
-
], ReplyToDto.prototype, "sender", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ type: MessageContentReplyToDto }),
|
|
35
|
-
__metadata("design:type", MessageContentReplyToDto)
|
|
36
|
-
], ReplyToDto.prototype, "content", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({ example: 1720468991 }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], ReplyToDto.prototype, "timestamp", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({ example: 'b02f639a-abcf-4db8-9397-bdb3b60cef6a' }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], ReplyToDto.prototype, "id", void 0);
|
|
45
|
-
class MessageContentDto {
|
|
46
|
-
}
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], MessageContentDto.prototype, "type", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, swagger_1.ApiProperty)({ example: 'Vv' }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], MessageContentDto.prototype, "value", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, swagger_1.ApiProperty)({ required: false, type: ReplyToDto }),
|
|
57
|
-
__metadata("design:type", ReplyToDto)
|
|
58
|
-
], MessageContentDto.prototype, "replyTo", void 0);
|
|
15
|
+
const chat_data_type_enum_1 = require("../../../enums/chat-data-type.enum");
|
|
16
|
+
const chat_message_content_dto_1 = require("./chat-message-content.dto");
|
|
59
17
|
class MessageDto {
|
|
60
18
|
}
|
|
61
19
|
exports.MessageDto = MessageDto;
|
|
62
20
|
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
64
|
-
__metadata("design:type",
|
|
21
|
+
(0, swagger_1.ApiProperty)({ type: chat_message_content_dto_1.ChatMessageContentDto }),
|
|
22
|
+
__metadata("design:type", chat_message_content_dto_1.ChatMessageContentDto)
|
|
65
23
|
], MessageDto.prototype, "content", void 0);
|
|
66
24
|
__decorate([
|
|
67
25
|
(0, swagger_1.ApiProperty)({ example: true }),
|
|
@@ -35,12 +35,28 @@ export declare class EventLocationDto {
|
|
|
35
35
|
city?: string;
|
|
36
36
|
country?: string;
|
|
37
37
|
}
|
|
38
|
+
export declare class RegistrationDetailsCreateDto {
|
|
39
|
+
visibility: Visibility;
|
|
40
|
+
maxLimit: number;
|
|
41
|
+
userLimit: number;
|
|
42
|
+
requireKYC: boolean;
|
|
43
|
+
requireName: boolean;
|
|
44
|
+
requireEmail: boolean;
|
|
45
|
+
requirePhoneNumber: boolean;
|
|
46
|
+
isPublished: boolean;
|
|
47
|
+
hasSideEvents: boolean;
|
|
48
|
+
hasWaitlist: boolean;
|
|
49
|
+
showGuestCount: boolean;
|
|
50
|
+
refundable: boolean;
|
|
51
|
+
nameWithNumber: boolean;
|
|
52
|
+
botProtection: boolean;
|
|
53
|
+
}
|
|
38
54
|
export declare class EventProfileCreateDto {
|
|
39
55
|
title: string;
|
|
40
56
|
startTime: number;
|
|
41
57
|
endTime: number;
|
|
42
58
|
location: EventLocationDto;
|
|
43
|
-
registration:
|
|
59
|
+
registration: RegistrationDetailsCreateDto;
|
|
44
60
|
isVirtualEvent: boolean;
|
|
45
61
|
seo?: EventSeoDto;
|
|
46
62
|
category: EventCategory;
|
|
@@ -9,7 +9,7 @@ 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.EventProfileCreateDto = exports.EventLocationDto = exports.RegistrationDetailsDto = exports.EventSeoDto = void 0;
|
|
12
|
+
exports.EventProfileCreateDto = exports.RegistrationDetailsCreateDto = exports.EventLocationDto = exports.RegistrationDetailsDto = exports.EventSeoDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -230,6 +230,91 @@ __decorate([
|
|
|
230
230
|
(0, class_validator_1.Length)(3, 100),
|
|
231
231
|
__metadata("design:type", String)
|
|
232
232
|
], EventLocationDto.prototype, "country", void 0);
|
|
233
|
+
class RegistrationDetailsCreateDto {
|
|
234
|
+
}
|
|
235
|
+
exports.RegistrationDetailsCreateDto = RegistrationDetailsCreateDto;
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, swagger_1.ApiProperty)({
|
|
238
|
+
enum: ticketing_visibility_enum_1.Visibility,
|
|
239
|
+
enumName: 'Visibility',
|
|
240
|
+
}),
|
|
241
|
+
(0, class_validator_1.IsEnum)(ticketing_visibility_enum_1.Visibility),
|
|
242
|
+
__metadata("design:type", String)
|
|
243
|
+
], RegistrationDetailsCreateDto.prototype, "visibility", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, swagger_1.ApiProperty)({
|
|
246
|
+
type: 'integer',
|
|
247
|
+
description: 'Maximum registrations allowed',
|
|
248
|
+
}),
|
|
249
|
+
(0, class_validator_1.IsInt)(),
|
|
250
|
+
__metadata("design:type", Number)
|
|
251
|
+
], RegistrationDetailsCreateDto.prototype, "maxLimit", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, swagger_1.ApiProperty)({
|
|
254
|
+
type: 'integer',
|
|
255
|
+
description: 'Maximum registrations per user',
|
|
256
|
+
}),
|
|
257
|
+
(0, class_validator_1.IsInt)(),
|
|
258
|
+
__metadata("design:type", Number)
|
|
259
|
+
], RegistrationDetailsCreateDto.prototype, "userLimit", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, swagger_1.ApiProperty)(),
|
|
262
|
+
(0, class_validator_1.IsBoolean)(),
|
|
263
|
+
__metadata("design:type", Boolean)
|
|
264
|
+
], RegistrationDetailsCreateDto.prototype, "requireKYC", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
(0, swagger_1.ApiProperty)(),
|
|
267
|
+
(0, class_validator_1.IsBoolean)(),
|
|
268
|
+
__metadata("design:type", Boolean)
|
|
269
|
+
], RegistrationDetailsCreateDto.prototype, "requireName", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
(0, swagger_1.ApiProperty)(),
|
|
272
|
+
(0, class_validator_1.IsBoolean)(),
|
|
273
|
+
__metadata("design:type", Boolean)
|
|
274
|
+
], RegistrationDetailsCreateDto.prototype, "requireEmail", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, swagger_1.ApiProperty)(),
|
|
277
|
+
(0, class_validator_1.IsBoolean)(),
|
|
278
|
+
__metadata("design:type", Boolean)
|
|
279
|
+
], RegistrationDetailsCreateDto.prototype, "requirePhoneNumber", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, swagger_1.ApiProperty)(),
|
|
282
|
+
(0, class_validator_1.IsBoolean)(),
|
|
283
|
+
(0, class_validator_1.IsOptional)(),
|
|
284
|
+
__metadata("design:type", Boolean)
|
|
285
|
+
], RegistrationDetailsCreateDto.prototype, "isPublished", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, swagger_1.ApiProperty)(),
|
|
288
|
+
(0, class_validator_1.IsBoolean)(),
|
|
289
|
+
__metadata("design:type", Boolean)
|
|
290
|
+
], RegistrationDetailsCreateDto.prototype, "hasSideEvents", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, swagger_1.ApiProperty)(),
|
|
293
|
+
(0, class_validator_1.IsOptional)(),
|
|
294
|
+
(0, class_validator_1.IsBoolean)(),
|
|
295
|
+
__metadata("design:type", Boolean)
|
|
296
|
+
], RegistrationDetailsCreateDto.prototype, "hasWaitlist", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
(0, swagger_1.ApiProperty)(),
|
|
299
|
+
(0, class_validator_1.IsOptional)(),
|
|
300
|
+
(0, class_validator_1.IsBoolean)(),
|
|
301
|
+
__metadata("design:type", Boolean)
|
|
302
|
+
], RegistrationDetailsCreateDto.prototype, "showGuestCount", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
(0, swagger_1.ApiProperty)(),
|
|
305
|
+
(0, class_validator_1.IsBoolean)(),
|
|
306
|
+
__metadata("design:type", Boolean)
|
|
307
|
+
], RegistrationDetailsCreateDto.prototype, "refundable", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
(0, swagger_1.ApiProperty)(),
|
|
310
|
+
(0, class_validator_1.IsBoolean)(),
|
|
311
|
+
__metadata("design:type", Boolean)
|
|
312
|
+
], RegistrationDetailsCreateDto.prototype, "nameWithNumber", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
(0, swagger_1.ApiProperty)(),
|
|
315
|
+
(0, class_validator_1.IsBoolean)(),
|
|
316
|
+
__metadata("design:type", Boolean)
|
|
317
|
+
], RegistrationDetailsCreateDto.prototype, "botProtection", void 0);
|
|
233
318
|
class EventProfileCreateDto {
|
|
234
319
|
}
|
|
235
320
|
exports.EventProfileCreateDto = EventProfileCreateDto;
|
|
@@ -258,11 +343,11 @@ __decorate([
|
|
|
258
343
|
__metadata("design:type", EventLocationDto)
|
|
259
344
|
], EventProfileCreateDto.prototype, "location", void 0);
|
|
260
345
|
__decorate([
|
|
261
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
346
|
+
(0, swagger_1.ApiProperty)({ type: RegistrationDetailsCreateDto }),
|
|
262
347
|
(0, class_validator_1.IsObject)(),
|
|
263
348
|
(0, class_validator_1.ValidateNested)(),
|
|
264
|
-
(0, class_transformer_1.Type)(() =>
|
|
265
|
-
__metadata("design:type",
|
|
349
|
+
(0, class_transformer_1.Type)(() => RegistrationDetailsCreateDto),
|
|
350
|
+
__metadata("design:type", RegistrationDetailsCreateDto)
|
|
266
351
|
], EventProfileCreateDto.prototype, "registration", void 0);
|
|
267
352
|
__decorate([
|
|
268
353
|
(0, swagger_1.ApiProperty)(),
|