@xoxno/types 1.0.1 → 1.0.2
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/package.json +2 -2
- package/dist/cosmos-db/documents/activity/chain-activity.enum.d.ts +0 -4
- package/dist/cosmos-db/documents/activity/chain-activity.enum.js +0 -5
- package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.d.ts +0 -90
- package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.js +0 -99
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.js +0 -32
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.d.ts +0 -25
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.js +0 -91
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.d.ts +0 -23
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.js +0 -196
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.d.ts +0 -10
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.js +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.d.ts +0 -64
- package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.js +0 -387
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.d.ts +0 -12
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.js +0 -74
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.d.ts +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.js +0 -99
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.js +0 -10
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.d.ts +0 -32
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.js +0 -206
- package/dist/cosmos-db/documents/ticketing/entities/event-location.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-location.js +0 -68
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.d.ts +0 -47
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.js +0 -269
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.d.ts +0 -41
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.js +0 -129
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.js +0 -108
- package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.d.ts +0 -93
- package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.js +0 -544
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.d.ts +0 -9
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.js +0 -13
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.d.ts +0 -23
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.js +0 -127
- package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.js +0 -61
- package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.js +0 -65
- package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.js +0 -32
- package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.d.ts +0 -15
- package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.js +0 -87
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.js +0 -58
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.d.ts +0 -5
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.js +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.d.ts +0 -23
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.js +0 -116
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.d.ts +0 -27
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.js +0 -148
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.js +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.js +0 -36
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.d.ts +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.js +0 -161
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.d.ts +0 -16
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.js +0 -100
- package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.js +0 -92
- package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.d.ts +0 -24
- package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.js +0 -46
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.d.ts +0 -13
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.js +0 -109
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.js +0 -48
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.d.ts +0 -21
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.js +0 -168
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.js +0 -74
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.d.ts +0 -7
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.js +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.d.ts +0 -25
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.js +0 -166
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.d.ts +0 -43
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.js +0 -201
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.d.ts +0 -9
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.js +0 -69
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.d.ts +0 -25
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.js +0 -130
- package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.d.ts +0 -15
- package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.js +0 -20
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.d.ts +0 -15
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.js +0 -116
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.js +0 -48
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.d.ts +0 -33
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.js +0 -173
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.d.ts +0 -33
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.js +0 -189
- package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.d.ts +0 -5
- package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.js +0 -74
- package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.js +0 -18
- package/dist/cosmos-db/documents/token-data/nft-details.doc.d.ts +0 -56
- package/dist/cosmos-db/documents/token-data/nft-details.doc.js +0 -31
- package/dist/redis/keys.d.ts +0 -11
- package/dist/redis/keys.js +0 -12
- package/dist/redis/ttl.d.ts +0 -10
- package/dist/redis/ttl.js +0 -11
- package/dist/requests/collection/collection-mint-stage.doc.d.ts +0 -19
- package/dist/requests/collection/collection-mint-stage.doc.js +0 -12
- package/dist/types/common.d.ts +0 -12
- package/dist/types/common.js +0 -12
|
@@ -1,544 +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
|
-
var _a;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.BageQRData = exports.GetMyEventsQuery = exports.MyEvents = exports.EventProfileQuery = exports.EventProfile = exports.EventStartPrice = exports.EventProfileDoc = exports.EventGuestSummary = exports.EventGuestProfileSummary = exports.PremiumType = exports.RegistrationType = void 0;
|
|
14
|
-
const crypto_1 = require("crypto");
|
|
15
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
-
const types_1 = require("@xoxno/types");
|
|
17
|
-
const class_validator_1 = require("class-validator");
|
|
18
|
-
const uuid_1 = require("uuid");
|
|
19
|
-
const static_config_1 = require("src/common/api-config/static-config");
|
|
20
|
-
const cosmos_db_paginated_response_dto_1 = require("src/common/cosmos-db/entities/cosmos-db-paginated-response.dto");
|
|
21
|
-
const event_category_enum_1 = require("./event-category.enum");
|
|
22
|
-
const event_guest_status_enum_1 = require("./event-guest-status.enum");
|
|
23
|
-
const event_guest_doc_1 = require("./event-guest.doc");
|
|
24
|
-
const event_profile_create_dto_1 = require("./event-profile-create.dto");
|
|
25
|
-
const event_ticket_qr_type_enum_1 = require("./event-ticket-qr-type.enum");
|
|
26
|
-
const event_user_role_doc_1 = require("./event-user-role.doc");
|
|
27
|
-
const ticketing_data_type_enum_1 = require("./ticketing-data-type.enum");
|
|
28
|
-
class RegistrationType {
|
|
29
|
-
}
|
|
30
|
-
exports.RegistrationType = RegistrationType;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, swagger_1.ApiProperty)({
|
|
33
|
-
enum: event_profile_create_dto_1.Visibility,
|
|
34
|
-
required: true,
|
|
35
|
-
description: 'Visibility of the event registration',
|
|
36
|
-
enumName: 'Visibility',
|
|
37
|
-
}),
|
|
38
|
-
(0, class_validator_1.IsEnum)(event_profile_create_dto_1.Visibility),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], RegistrationType.prototype, "visibility", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({
|
|
43
|
-
type: 'integer',
|
|
44
|
-
required: true,
|
|
45
|
-
description: 'Maximum number of registrations allowed',
|
|
46
|
-
}),
|
|
47
|
-
(0, class_validator_1.IsInt)(),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], RegistrationType.prototype, "maxLimit", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)({
|
|
52
|
-
type: 'integer',
|
|
53
|
-
required: true,
|
|
54
|
-
description: 'Maximum number of registrations allowed per user',
|
|
55
|
-
}),
|
|
56
|
-
(0, class_validator_1.IsInt)(),
|
|
57
|
-
__metadata("design:type", Number)
|
|
58
|
-
], RegistrationType.prototype, "userLimit", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, swagger_1.ApiProperty)({
|
|
61
|
-
type: 'integer',
|
|
62
|
-
required: false,
|
|
63
|
-
description: 'Current number of tickets sold',
|
|
64
|
-
}),
|
|
65
|
-
(0, class_validator_1.IsInt)(),
|
|
66
|
-
__metadata("design:type", Number)
|
|
67
|
-
], RegistrationType.prototype, "soldCount", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, swagger_1.ApiProperty)({
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
required: true,
|
|
72
|
-
description: 'Whether the event has side events',
|
|
73
|
-
}),
|
|
74
|
-
(0, class_validator_1.IsBoolean)(),
|
|
75
|
-
__metadata("design:type", Boolean)
|
|
76
|
-
], RegistrationType.prototype, "hasSideEvents", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, swagger_1.ApiProperty)({
|
|
79
|
-
type: 'boolean',
|
|
80
|
-
required: false,
|
|
81
|
-
description: 'Whether to show the guest count',
|
|
82
|
-
}),
|
|
83
|
-
(0, class_validator_1.IsBoolean)(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], RegistrationType.prototype, "showGuestCount", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, swagger_1.ApiProperty)({
|
|
88
|
-
type: 'boolean',
|
|
89
|
-
required: true,
|
|
90
|
-
description: 'Whether KYC is required for registration',
|
|
91
|
-
}),
|
|
92
|
-
(0, class_validator_1.IsBoolean)(),
|
|
93
|
-
__metadata("design:type", Boolean)
|
|
94
|
-
], RegistrationType.prototype, "requireKYC", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, swagger_1.ApiProperty)({
|
|
97
|
-
type: 'boolean',
|
|
98
|
-
required: true,
|
|
99
|
-
description: 'Whether the event is refundable',
|
|
100
|
-
}),
|
|
101
|
-
(0, class_validator_1.IsBoolean)(),
|
|
102
|
-
__metadata("design:type", Boolean)
|
|
103
|
-
], RegistrationType.prototype, "refundable", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, swagger_1.ApiProperty)({
|
|
106
|
-
type: 'boolean',
|
|
107
|
-
required: true,
|
|
108
|
-
description: 'Whether to show name with number',
|
|
109
|
-
}),
|
|
110
|
-
(0, class_validator_1.IsBoolean)(),
|
|
111
|
-
__metadata("design:type", Boolean)
|
|
112
|
-
], RegistrationType.prototype, "nameWithNumber", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, swagger_1.ApiProperty)({
|
|
115
|
-
type: 'boolean',
|
|
116
|
-
required: true,
|
|
117
|
-
description: 'Whether bot protection is enabled',
|
|
118
|
-
}),
|
|
119
|
-
(0, class_validator_1.IsBoolean)(),
|
|
120
|
-
__metadata("design:type", Boolean)
|
|
121
|
-
], RegistrationType.prototype, "botProtection", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, swagger_1.ApiProperty)({
|
|
124
|
-
type: 'boolean',
|
|
125
|
-
required: true,
|
|
126
|
-
description: 'Whether the event is published',
|
|
127
|
-
}),
|
|
128
|
-
(0, class_validator_1.IsBoolean)(),
|
|
129
|
-
__metadata("design:type", Boolean)
|
|
130
|
-
], RegistrationType.prototype, "isPublished", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, swagger_1.ApiProperty)({
|
|
133
|
-
type: Boolean,
|
|
134
|
-
required: false,
|
|
135
|
-
description: 'Whether the event has a waitlist',
|
|
136
|
-
}),
|
|
137
|
-
(0, class_validator_1.IsBoolean)(),
|
|
138
|
-
__metadata("design:type", Boolean)
|
|
139
|
-
], RegistrationType.prototype, "hasWaitlist", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
(0, swagger_1.ApiProperty)({
|
|
142
|
-
type: Boolean,
|
|
143
|
-
required: true,
|
|
144
|
-
description: 'Whether name is required for registration',
|
|
145
|
-
}),
|
|
146
|
-
(0, class_validator_1.IsBoolean)(),
|
|
147
|
-
__metadata("design:type", Boolean)
|
|
148
|
-
], RegistrationType.prototype, "requireName", void 0);
|
|
149
|
-
__decorate([
|
|
150
|
-
(0, swagger_1.ApiProperty)({
|
|
151
|
-
type: Boolean,
|
|
152
|
-
required: true,
|
|
153
|
-
description: 'Whether email is required for registration',
|
|
154
|
-
}),
|
|
155
|
-
(0, class_validator_1.IsBoolean)(),
|
|
156
|
-
__metadata("design:type", Boolean)
|
|
157
|
-
], RegistrationType.prototype, "requireEmail", void 0);
|
|
158
|
-
__decorate([
|
|
159
|
-
(0, swagger_1.ApiProperty)({
|
|
160
|
-
type: Boolean,
|
|
161
|
-
required: true,
|
|
162
|
-
description: 'Whether phone number is required for registration',
|
|
163
|
-
}),
|
|
164
|
-
(0, class_validator_1.IsBoolean)(),
|
|
165
|
-
__metadata("design:type", Boolean)
|
|
166
|
-
], RegistrationType.prototype, "requirePhoneNumber", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
(0, swagger_1.ApiProperty)({
|
|
169
|
-
type: Boolean,
|
|
170
|
-
required: false,
|
|
171
|
-
description: 'Whether the event has custom questions',
|
|
172
|
-
}),
|
|
173
|
-
(0, class_validator_1.IsBoolean)(),
|
|
174
|
-
__metadata("design:type", Boolean)
|
|
175
|
-
], RegistrationType.prototype, "hasCustomQuestions", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
(0, swagger_1.ApiProperty)({
|
|
178
|
-
type: String,
|
|
179
|
-
required: false,
|
|
180
|
-
description: 'Email sender for notifications',
|
|
181
|
-
}),
|
|
182
|
-
(0, class_validator_1.IsString)(),
|
|
183
|
-
__metadata("design:type", String)
|
|
184
|
-
], RegistrationType.prototype, "emailSender", void 0);
|
|
185
|
-
class PremiumType {
|
|
186
|
-
}
|
|
187
|
-
exports.PremiumType = PremiumType;
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, swagger_1.ApiProperty)({
|
|
190
|
-
type: Boolean,
|
|
191
|
-
required: true,
|
|
192
|
-
description: 'Whether the event is searchable',
|
|
193
|
-
}),
|
|
194
|
-
(0, class_validator_1.IsBoolean)(),
|
|
195
|
-
__metadata("design:type", Boolean)
|
|
196
|
-
], PremiumType.prototype, "searchable", void 0);
|
|
197
|
-
class EventGuestProfileSummary {
|
|
198
|
-
}
|
|
199
|
-
exports.EventGuestProfileSummary = EventGuestProfileSummary;
|
|
200
|
-
__decorate([
|
|
201
|
-
(0, swagger_1.ApiProperty)({
|
|
202
|
-
description: 'The address of the guest.',
|
|
203
|
-
example: 'erd1234',
|
|
204
|
-
}),
|
|
205
|
-
__metadata("design:type", String)
|
|
206
|
-
], EventGuestProfileSummary.prototype, "address", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
(0, swagger_1.ApiProperty)({
|
|
209
|
-
description: 'The profile URL of the guest.',
|
|
210
|
-
example: 'https://example.com/profile.png',
|
|
211
|
-
}),
|
|
212
|
-
__metadata("design:type", String)
|
|
213
|
-
], EventGuestProfileSummary.prototype, "profile", void 0);
|
|
214
|
-
__decorate([
|
|
215
|
-
(0, swagger_1.ApiProperty)({
|
|
216
|
-
description: 'The name of the guest.',
|
|
217
|
-
example: 'John Doe',
|
|
218
|
-
required: false,
|
|
219
|
-
}),
|
|
220
|
-
__metadata("design:type", String)
|
|
221
|
-
], EventGuestProfileSummary.prototype, "name", void 0);
|
|
222
|
-
__decorate([
|
|
223
|
-
(0, swagger_1.ApiProperty)({
|
|
224
|
-
description: 'The herotag of the guest.',
|
|
225
|
-
example: 'john-doe',
|
|
226
|
-
required: false,
|
|
227
|
-
}),
|
|
228
|
-
__metadata("design:type", String)
|
|
229
|
-
], EventGuestProfileSummary.prototype, "herotag", void 0);
|
|
230
|
-
class EventGuestSummary {
|
|
231
|
-
}
|
|
232
|
-
exports.EventGuestSummary = EventGuestSummary;
|
|
233
|
-
__decorate([
|
|
234
|
-
(0, swagger_1.ApiProperty)({
|
|
235
|
-
description: 'Total number of guests.',
|
|
236
|
-
example: 100,
|
|
237
|
-
type: 'integer',
|
|
238
|
-
}),
|
|
239
|
-
(0, class_validator_1.IsInt)(),
|
|
240
|
-
__metadata("design:type", Number)
|
|
241
|
-
], EventGuestSummary.prototype, "count", void 0);
|
|
242
|
-
__decorate([
|
|
243
|
-
(0, swagger_1.ApiProperty)({
|
|
244
|
-
description: 'List of guests with their address, profile, name, and herotag.',
|
|
245
|
-
type: EventGuestProfileSummary,
|
|
246
|
-
isArray: true,
|
|
247
|
-
}),
|
|
248
|
-
__metadata("design:type", Array)
|
|
249
|
-
], EventGuestSummary.prototype, "guests", void 0);
|
|
250
|
-
class EventProfileDoc {
|
|
251
|
-
constructor(props) {
|
|
252
|
-
this.dataType = ticketing_data_type_enum_1.TicketingDataType.EVENT_PROFILE;
|
|
253
|
-
this.createdAt = Math.floor(Date.now() / 1000);
|
|
254
|
-
this.profile = static_config_1.StaticConfig.getDefaultProfilePicture();
|
|
255
|
-
this.premium = {
|
|
256
|
-
searchable: false,
|
|
257
|
-
};
|
|
258
|
-
this.id = (0, uuid_1.v4)();
|
|
259
|
-
Object.assign(this, props);
|
|
260
|
-
// Set the partition key to the data type for now
|
|
261
|
-
this.pk = this.dataType;
|
|
262
|
-
this.premium.searchable = true;
|
|
263
|
-
if (!this.slug) {
|
|
264
|
-
this.slug = this.generateRandomSlug();
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
generateRandomSlug(length = 8) {
|
|
268
|
-
const CHARACTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
269
|
-
const CHARACTERS_LENGTH = CHARACTERS.length;
|
|
270
|
-
const randomValues = (0, crypto_1.randomBytes)(length);
|
|
271
|
-
let result = '';
|
|
272
|
-
for (let i = 0; i < length; i++) {
|
|
273
|
-
result += CHARACTERS.charAt(randomValues[i] % CHARACTERS_LENGTH);
|
|
274
|
-
}
|
|
275
|
-
return result.toLowerCase();
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
exports.EventProfileDoc = EventProfileDoc;
|
|
279
|
-
__decorate([
|
|
280
|
-
(0, swagger_1.ApiProperty)({
|
|
281
|
-
description: 'The type of user data.',
|
|
282
|
-
enum: ticketing_data_type_enum_1.TicketingDataType,
|
|
283
|
-
enumName: 'TicketingDataType',
|
|
284
|
-
default: ticketing_data_type_enum_1.TicketingDataType.EVENT_PROFILE,
|
|
285
|
-
}),
|
|
286
|
-
__metadata("design:type", String)
|
|
287
|
-
], EventProfileDoc.prototype, "dataType", void 0);
|
|
288
|
-
__decorate([
|
|
289
|
-
(0, swagger_1.ApiProperty)({
|
|
290
|
-
description: 'The time the event was created as a Unix timestamp in seconds.',
|
|
291
|
-
type: 'integer',
|
|
292
|
-
}),
|
|
293
|
-
(0, class_validator_1.IsInt)(),
|
|
294
|
-
__metadata("design:type", Number)
|
|
295
|
-
], EventProfileDoc.prototype, "createdAt", void 0);
|
|
296
|
-
__decorate([
|
|
297
|
-
(0, swagger_1.ApiProperty)({
|
|
298
|
-
description: 'Wallet address of the creator of the event.',
|
|
299
|
-
}),
|
|
300
|
-
__metadata("design:type", String)
|
|
301
|
-
], EventProfileDoc.prototype, "creatorAddress", void 0);
|
|
302
|
-
__decorate([
|
|
303
|
-
(0, swagger_1.ApiProperty)({ description: 'Title of the event.' }),
|
|
304
|
-
__metadata("design:type", String)
|
|
305
|
-
], EventProfileDoc.prototype, "title", void 0);
|
|
306
|
-
__decorate([
|
|
307
|
-
(0, swagger_1.ApiProperty)({
|
|
308
|
-
description: 'Start time of the event as a Unix timestamp in seconds.',
|
|
309
|
-
type: 'integer',
|
|
310
|
-
}),
|
|
311
|
-
(0, class_validator_1.IsInt)(),
|
|
312
|
-
__metadata("design:type", Number)
|
|
313
|
-
], EventProfileDoc.prototype, "startTime", void 0);
|
|
314
|
-
__decorate([
|
|
315
|
-
(0, swagger_1.ApiProperty)({
|
|
316
|
-
description: 'End time of the event as a Unix timestamp in seconds.',
|
|
317
|
-
required: true,
|
|
318
|
-
type: 'integer',
|
|
319
|
-
}),
|
|
320
|
-
(0, class_validator_1.IsInt)(),
|
|
321
|
-
__metadata("design:type", Number)
|
|
322
|
-
], EventProfileDoc.prototype, "endTime", void 0);
|
|
323
|
-
__decorate([
|
|
324
|
-
(0, swagger_1.ApiProperty)({
|
|
325
|
-
description: 'URL to the markdown file in Azure storage containing the event description.',
|
|
326
|
-
default: static_config_1.StaticConfig.getDefaultEventDescription(),
|
|
327
|
-
required: false,
|
|
328
|
-
}),
|
|
329
|
-
__metadata("design:type", String)
|
|
330
|
-
], EventProfileDoc.prototype, "descriptionUrl", void 0);
|
|
331
|
-
__decorate([
|
|
332
|
-
(0, swagger_1.ApiProperty)({
|
|
333
|
-
type: event_profile_create_dto_1.EventLocationDto,
|
|
334
|
-
description: 'Location details including geo points, address, and optional instructions.',
|
|
335
|
-
}),
|
|
336
|
-
__metadata("design:type", event_profile_create_dto_1.EventLocationDto)
|
|
337
|
-
], EventProfileDoc.prototype, "location", void 0);
|
|
338
|
-
__decorate([
|
|
339
|
-
(0, swagger_1.ApiProperty)({
|
|
340
|
-
description: 'Define if the event happens in real life or virtual on Zoom/Meet',
|
|
341
|
-
type: 'boolean',
|
|
342
|
-
}),
|
|
343
|
-
(0, class_validator_1.IsBoolean)(),
|
|
344
|
-
__metadata("design:type", Boolean)
|
|
345
|
-
], EventProfileDoc.prototype, "isVirtualEvent", void 0);
|
|
346
|
-
__decorate([
|
|
347
|
-
(0, swagger_1.ApiProperty)({ description: 'Unique slug for the event URL.' }),
|
|
348
|
-
__metadata("design:type", String)
|
|
349
|
-
], EventProfileDoc.prototype, "slug", void 0);
|
|
350
|
-
__decorate([
|
|
351
|
-
(0, swagger_1.ApiProperty)({
|
|
352
|
-
description: 'URL to the profile image in Azure storage.',
|
|
353
|
-
default: static_config_1.StaticConfig.getDefaultProfilePicture(),
|
|
354
|
-
}),
|
|
355
|
-
__metadata("design:type", String)
|
|
356
|
-
], EventProfileDoc.prototype, "profile", void 0);
|
|
357
|
-
__decorate([
|
|
358
|
-
(0, swagger_1.ApiProperty)({
|
|
359
|
-
description: 'Category of the event.',
|
|
360
|
-
enum: event_category_enum_1.EventCategory,
|
|
361
|
-
enumName: 'EventCategory',
|
|
362
|
-
}),
|
|
363
|
-
__metadata("design:type", String)
|
|
364
|
-
], EventProfileDoc.prototype, "category", void 0);
|
|
365
|
-
__decorate([
|
|
366
|
-
(0, swagger_1.ApiProperty)({
|
|
367
|
-
description: 'Subcategory of the event.',
|
|
368
|
-
enum: event_category_enum_1.EventSubCategory,
|
|
369
|
-
enumName: 'EventSubCategory',
|
|
370
|
-
required: false,
|
|
371
|
-
}),
|
|
372
|
-
__metadata("design:type", String)
|
|
373
|
-
], EventProfileDoc.prototype, "subCategory", void 0);
|
|
374
|
-
__decorate([
|
|
375
|
-
(0, swagger_1.ApiProperty)({
|
|
376
|
-
description: 'URL to the background image in Azure storage, optional.',
|
|
377
|
-
required: false,
|
|
378
|
-
}),
|
|
379
|
-
__metadata("design:type", String)
|
|
380
|
-
], EventProfileDoc.prototype, "background", void 0);
|
|
381
|
-
__decorate([
|
|
382
|
-
(0, swagger_1.ApiProperty)({
|
|
383
|
-
description: 'Registration details such as visibility, max capacity, and ticket limits.',
|
|
384
|
-
type: () => RegistrationType,
|
|
385
|
-
}),
|
|
386
|
-
__metadata("design:type", RegistrationType)
|
|
387
|
-
], EventProfileDoc.prototype, "registration", void 0);
|
|
388
|
-
__decorate([
|
|
389
|
-
(0, swagger_1.ApiProperty)({
|
|
390
|
-
description: 'Event premium features',
|
|
391
|
-
type: () => PremiumType,
|
|
392
|
-
}),
|
|
393
|
-
__metadata("design:type", PremiumType)
|
|
394
|
-
], EventProfileDoc.prototype, "premium", void 0);
|
|
395
|
-
__decorate([
|
|
396
|
-
(0, swagger_1.ApiProperty)({
|
|
397
|
-
description: 'The address of the contract that manages the event.',
|
|
398
|
-
required: false,
|
|
399
|
-
}),
|
|
400
|
-
__metadata("design:type", String)
|
|
401
|
-
], EventProfileDoc.prototype, "contractAddress", void 0);
|
|
402
|
-
__decorate([
|
|
403
|
-
(0, swagger_1.ApiProperty)({
|
|
404
|
-
description: 'The NFT collection the event is associated with.',
|
|
405
|
-
required: false,
|
|
406
|
-
}),
|
|
407
|
-
__metadata("design:type", String)
|
|
408
|
-
], EventProfileDoc.prototype, "collection", void 0);
|
|
409
|
-
__decorate([
|
|
410
|
-
(0, swagger_1.ApiProperty)({
|
|
411
|
-
type: event_profile_create_dto_1.EventSeoDto,
|
|
412
|
-
example: {},
|
|
413
|
-
required: false,
|
|
414
|
-
description: 'SEO-related information such as short description, tags, and alternative title.',
|
|
415
|
-
}),
|
|
416
|
-
__metadata("design:type", event_profile_create_dto_1.EventSeoDto)
|
|
417
|
-
], EventProfileDoc.prototype, "seo", void 0);
|
|
418
|
-
__decorate([
|
|
419
|
-
(0, swagger_1.ApiProperty)({
|
|
420
|
-
description: 'Automatically generated unique identifier for the event.',
|
|
421
|
-
}),
|
|
422
|
-
__metadata("design:type", String)
|
|
423
|
-
], EventProfileDoc.prototype, "id", void 0);
|
|
424
|
-
__decorate([
|
|
425
|
-
(0, swagger_1.ApiProperty)({
|
|
426
|
-
description: 'Permissions for the event.',
|
|
427
|
-
required: false,
|
|
428
|
-
type: () => event_user_role_doc_1.EventUserRoleDoc,
|
|
429
|
-
}),
|
|
430
|
-
__metadata("design:type", Object)
|
|
431
|
-
], EventProfileDoc.prototype, "eventPermissions", void 0);
|
|
432
|
-
__decorate([
|
|
433
|
-
(0, class_validator_1.IsInt)(),
|
|
434
|
-
__metadata("design:type", Number)
|
|
435
|
-
], EventProfileDoc.prototype, "_ts", void 0);
|
|
436
|
-
// Define a class for the startsFrom object
|
|
437
|
-
class EventStartPrice {
|
|
438
|
-
}
|
|
439
|
-
exports.EventStartPrice = EventStartPrice;
|
|
440
|
-
__decorate([
|
|
441
|
-
(0, swagger_1.ApiProperty)({
|
|
442
|
-
type: 'number',
|
|
443
|
-
description: 'Starting price of the event ticket.',
|
|
444
|
-
}),
|
|
445
|
-
(0, class_validator_1.IsNumber)(),
|
|
446
|
-
__metadata("design:type", Number)
|
|
447
|
-
], EventStartPrice.prototype, "price", void 0);
|
|
448
|
-
__decorate([
|
|
449
|
-
(0, swagger_1.ApiProperty)({
|
|
450
|
-
type: 'string',
|
|
451
|
-
description: 'Currency of the price.',
|
|
452
|
-
example: 'USD',
|
|
453
|
-
}),
|
|
454
|
-
(0, class_validator_1.IsString)(),
|
|
455
|
-
__metadata("design:type", String)
|
|
456
|
-
], EventStartPrice.prototype, "currency", void 0);
|
|
457
|
-
class EventProfile extends EventProfileDoc {
|
|
458
|
-
}
|
|
459
|
-
exports.EventProfile = EventProfile;
|
|
460
|
-
__decorate([
|
|
461
|
-
(0, swagger_1.ApiProperty)({
|
|
462
|
-
description: 'Creator profile data including name, profile, and herotag.',
|
|
463
|
-
type: () => types_1.CreatorProfileDoc,
|
|
464
|
-
required: false,
|
|
465
|
-
}),
|
|
466
|
-
__metadata("design:type", typeof (_a = typeof types_1.CreatorProfileDoc !== "undefined" && types_1.CreatorProfileDoc) === "function" ? _a : Object)
|
|
467
|
-
], EventProfile.prototype, "creatorProfile", void 0);
|
|
468
|
-
__decorate([
|
|
469
|
-
(0, swagger_1.ApiProperty)({
|
|
470
|
-
description: 'Summary of the guests attending the event.',
|
|
471
|
-
required: false,
|
|
472
|
-
type: () => EventGuestSummary,
|
|
473
|
-
}),
|
|
474
|
-
__metadata("design:type", EventGuestSummary)
|
|
475
|
-
], EventProfile.prototype, "guestSummary", void 0);
|
|
476
|
-
__decorate([
|
|
477
|
-
(0, swagger_1.ApiProperty)({
|
|
478
|
-
description: 'The starting price of the event, if applicable.',
|
|
479
|
-
required: false,
|
|
480
|
-
type: () => EventStartPrice, // Use the new class here
|
|
481
|
-
}),
|
|
482
|
-
__metadata("design:type", EventStartPrice)
|
|
483
|
-
], EventProfile.prototype, "startsFrom", void 0);
|
|
484
|
-
__decorate([
|
|
485
|
-
(0, swagger_1.ApiProperty)({
|
|
486
|
-
description: 'The guest profile of the user.',
|
|
487
|
-
required: false,
|
|
488
|
-
type: () => event_guest_doc_1.EventGuestDoc,
|
|
489
|
-
}),
|
|
490
|
-
__metadata("design:type", event_guest_doc_1.EventGuestDoc)
|
|
491
|
-
], EventProfile.prototype, "guestProfile", void 0);
|
|
492
|
-
class EventProfileQuery extends (0, cosmos_db_paginated_response_dto_1.createCosmosPaginatedResponse)(EventProfile) {
|
|
493
|
-
}
|
|
494
|
-
exports.EventProfileQuery = EventProfileQuery;
|
|
495
|
-
class MyEvents {
|
|
496
|
-
}
|
|
497
|
-
exports.MyEvents = MyEvents;
|
|
498
|
-
__decorate([
|
|
499
|
-
(0, swagger_1.ApiProperty)({
|
|
500
|
-
description: 'The number of tickets the user has for the event.',
|
|
501
|
-
example: 1,
|
|
502
|
-
type: 'integer',
|
|
503
|
-
}),
|
|
504
|
-
(0, class_validator_1.IsInt)(),
|
|
505
|
-
__metadata("design:type", Number)
|
|
506
|
-
], MyEvents.prototype, "ticketCount", void 0);
|
|
507
|
-
__decorate([
|
|
508
|
-
(0, swagger_1.ApiProperty)({
|
|
509
|
-
description: 'The status of the user for the event.',
|
|
510
|
-
type: String,
|
|
511
|
-
enum: event_guest_status_enum_1.EventGuestStatus,
|
|
512
|
-
enumName: 'EventGuestStatus',
|
|
513
|
-
}),
|
|
514
|
-
__metadata("design:type", String)
|
|
515
|
-
], MyEvents.prototype, "status", void 0);
|
|
516
|
-
__decorate([
|
|
517
|
-
(0, swagger_1.ApiProperty)({
|
|
518
|
-
description: 'The event profile.',
|
|
519
|
-
type: () => EventProfile,
|
|
520
|
-
}),
|
|
521
|
-
__metadata("design:type", EventProfile)
|
|
522
|
-
], MyEvents.prototype, "eventProfile", void 0);
|
|
523
|
-
class GetMyEventsQuery extends (0, cosmos_db_paginated_response_dto_1.createCosmosPaginatedResponse)(MyEvents) {
|
|
524
|
-
}
|
|
525
|
-
exports.GetMyEventsQuery = GetMyEventsQuery;
|
|
526
|
-
class BageQRData {
|
|
527
|
-
}
|
|
528
|
-
exports.BageQRData = BageQRData;
|
|
529
|
-
__decorate([
|
|
530
|
-
(0, swagger_1.ApiProperty)({
|
|
531
|
-
description: 'The type of the QR code.',
|
|
532
|
-
example: 'badge',
|
|
533
|
-
enum: event_ticket_qr_type_enum_1.EventTicketQrType,
|
|
534
|
-
enumName: 'EventTicketQrType',
|
|
535
|
-
}),
|
|
536
|
-
__metadata("design:type", String)
|
|
537
|
-
], BageQRData.prototype, "type", void 0);
|
|
538
|
-
__decorate([
|
|
539
|
-
(0, swagger_1.ApiProperty)({
|
|
540
|
-
description: 'The data of the QR code.',
|
|
541
|
-
example: 'base64',
|
|
542
|
-
}),
|
|
543
|
-
__metadata("design:type", String)
|
|
544
|
-
], BageQRData.prototype, "data", void 0);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventQuestionAnswerType = void 0;
|
|
4
|
-
var EventQuestionAnswerType;
|
|
5
|
-
(function (EventQuestionAnswerType) {
|
|
6
|
-
EventQuestionAnswerType["TEXT"] = "text";
|
|
7
|
-
EventQuestionAnswerType["TEXTAREA"] = "textarea";
|
|
8
|
-
EventQuestionAnswerType["RADIO"] = "radio";
|
|
9
|
-
EventQuestionAnswerType["DROPDOWN"] = "dropdown";
|
|
10
|
-
EventQuestionAnswerType["CHECKBOX"] = "checkbox";
|
|
11
|
-
EventQuestionAnswerType["TIME"] = "time";
|
|
12
|
-
EventQuestionAnswerType["DATE"] = "date";
|
|
13
|
-
})(EventQuestionAnswerType || (exports.EventQuestionAnswerType = EventQuestionAnswerType = {}));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { EventQuestionDoc } from './event-question.doc';
|
|
2
|
-
import { TicketingDataType } from './ticketing-data-type.enum';
|
|
3
|
-
export declare class EventGuestAnswerDoc {
|
|
4
|
-
dataType: TicketingDataType;
|
|
5
|
-
id: string;
|
|
6
|
-
wallet: string;
|
|
7
|
-
questionId: string;
|
|
8
|
-
eventId: string;
|
|
9
|
-
answer: string | string[];
|
|
10
|
-
createdAt: number;
|
|
11
|
-
ttl?: number;
|
|
12
|
-
pk: string;
|
|
13
|
-
constructor(partial: Partial<EventGuestAnswerDoc>);
|
|
14
|
-
static create(data: Omit<EventGuestAnswerDoc, 'id' | 'dataType' | 'createdAt' | 'pk'>): EventGuestAnswerDoc;
|
|
15
|
-
}
|
|
16
|
-
declare const EventQuestionAnswerDto_base: import("@nestjs/common").Type<Pick<EventGuestAnswerDoc, "questionId" | "answer">>;
|
|
17
|
-
export declare class EventQuestionAnswerDto extends EventQuestionAnswerDto_base {
|
|
18
|
-
}
|
|
19
|
-
export declare class AnsweredQuestionWithDetails {
|
|
20
|
-
answer?: EventGuestAnswerDoc;
|
|
21
|
-
question?: EventQuestionDoc;
|
|
22
|
-
}
|
|
23
|
-
export {};
|