@xoxno/types 1.0.100 → 1.0.101

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.
@@ -21,6 +21,9 @@ export declare class RegistrationDetailsDto {
21
21
  nameWithNumber: boolean;
22
22
  botProtection: boolean;
23
23
  allowCrypto?: boolean;
24
+ soldCount?: number;
25
+ hasCustomQuestions?: boolean;
26
+ emailSender?: string;
24
27
  }
25
28
  export declare class EventLocationDto {
26
29
  address?: string;
@@ -133,6 +133,33 @@ __decorate([
133
133
  (0, class_validator_1.IsOptional)(),
134
134
  __metadata("design:type", Boolean)
135
135
  ], RegistrationDetailsDto.prototype, "allowCrypto", void 0);
136
+ __decorate([
137
+ (0, swagger_1.ApiProperty)({
138
+ type: 'integer',
139
+ required: false,
140
+ description: 'Current number of tickets sold',
141
+ }),
142
+ (0, class_validator_1.IsInt)(),
143
+ __metadata("design:type", Number)
144
+ ], RegistrationDetailsDto.prototype, "soldCount", void 0);
145
+ __decorate([
146
+ (0, swagger_1.ApiProperty)({
147
+ type: Boolean,
148
+ required: false,
149
+ description: 'Whether the event has custom questions',
150
+ }),
151
+ (0, class_validator_1.IsBoolean)(),
152
+ __metadata("design:type", Boolean)
153
+ ], RegistrationDetailsDto.prototype, "hasCustomQuestions", void 0);
154
+ __decorate([
155
+ (0, swagger_1.ApiProperty)({
156
+ type: String,
157
+ required: false,
158
+ description: 'Email sender for notifications',
159
+ }),
160
+ (0, class_validator_1.IsString)(),
161
+ __metadata("design:type", String)
162
+ ], RegistrationDetailsDto.prototype, "emailSender", void 0);
136
163
  class EventLocationDto {
137
164
  }
138
165
  exports.EventLocationDto = EventLocationDto;
@@ -1,30 +1,11 @@
1
1
  import { EventCategory } from '../../../enums/event-category.enum';
2
2
  import { EventGuestStatus } from '../../../enums/event-guest-status.enum';
3
- import { EventGuestDoc } from './event-guest.doc';
4
- import { EventLocationDto, EventSeoDto } from './event-profile-create.dto';
5
- import { EventUserRoleDoc } from './event-user-role.doc';
6
3
  import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
4
+ import { EventTicketQrType } from '../../../enums/ticketing-visibility.enum';
7
5
  import { CreatorProfileDoc } from '../user/user-creator-profile.doc';
8
- import { Visibility, EventTicketQrType } from '../../../enums/ticketing-visibility.enum';
9
- export declare class RegistrationType {
10
- visibility: Visibility;
11
- maxLimit: number;
12
- userLimit: number;
13
- soldCount?: number;
14
- hasSideEvents: boolean;
15
- showGuestCount?: boolean;
16
- requireKYC: boolean;
17
- refundable: boolean;
18
- nameWithNumber: boolean;
19
- botProtection: boolean;
20
- isPublished: boolean;
21
- hasWaitlist?: boolean;
22
- requireName: boolean;
23
- requireEmail: boolean;
24
- requirePhoneNumber: boolean;
25
- hasCustomQuestions?: boolean;
26
- emailSender?: string;
27
- }
6
+ import { EventGuestDoc } from './event-guest.doc';
7
+ import { EventLocationDto, EventSeoDto, RegistrationDetailsDto } from './event-profile-create.dto';
8
+ import { EventUserRoleDoc } from './event-user-role.doc';
28
9
  export declare class PremiumType {
29
10
  searchable: boolean;
30
11
  }
@@ -53,7 +34,7 @@ export declare class EventProfileDoc {
53
34
  category: EventCategory;
54
35
  subCategory?: string;
55
36
  background?: string;
56
- registration: RegistrationType;
37
+ registration: RegistrationDetailsDto;
57
38
  premium: PremiumType;
58
39
  contractAddress?: string;
59
40
  collection?: string;
@@ -9,177 +9,23 @@ 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.BageQRData = exports.GetMyEventsQuery = exports.MyEvents = exports.EventProfileQuery = exports.EventProfile = exports.EventStartPrice = exports.EventProfileDoc = exports.EventGuestSummary = exports.EventGuestProfileSummary = exports.PremiumType = exports.RegistrationType = void 0;
12
+ exports.BageQRData = exports.GetMyEventsQuery = exports.MyEvents = exports.EventProfileQuery = exports.EventProfile = exports.EventStartPrice = exports.EventProfileDoc = exports.EventGuestSummary = exports.EventGuestProfileSummary = exports.PremiumType = void 0;
13
13
  const crypto_1 = require("crypto");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const class_validator_1 = require("class-validator");
16
16
  const uuid_1 = require("uuid");
17
17
  const event_category_enum_1 = require("../../../enums/event-category.enum");
18
18
  const event_guest_status_enum_1 = require("../../../enums/event-guest-status.enum");
19
- const event_guest_doc_1 = require("./event-guest.doc");
20
- const event_profile_create_dto_1 = require("./event-profile-create.dto");
21
- const event_user_role_doc_1 = require("./event-user-role.doc");
22
19
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
20
+ const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
23
21
  const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
24
22
  const user_creator_profile_doc_1 = require("../user/user-creator-profile.doc");
25
- const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
26
- class RegistrationType {
27
- }
28
- exports.RegistrationType = RegistrationType;
29
- __decorate([
30
- (0, swagger_1.ApiProperty)({
31
- enum: ticketing_visibility_enum_1.Visibility,
32
- required: true,
33
- description: 'Visibility of the event registration',
34
- enumName: 'Visibility',
35
- }),
36
- (0, class_validator_1.IsEnum)(ticketing_visibility_enum_1.Visibility),
37
- __metadata("design:type", String)
38
- ], RegistrationType.prototype, "visibility", void 0);
39
- __decorate([
40
- (0, swagger_1.ApiProperty)({
41
- type: 'integer',
42
- required: true,
43
- description: 'Maximum number of registrations allowed',
44
- }),
45
- (0, class_validator_1.IsInt)(),
46
- __metadata("design:type", Number)
47
- ], RegistrationType.prototype, "maxLimit", void 0);
48
- __decorate([
49
- (0, swagger_1.ApiProperty)({
50
- type: 'integer',
51
- required: true,
52
- description: 'Maximum number of registrations allowed per user',
53
- }),
54
- (0, class_validator_1.IsInt)(),
55
- __metadata("design:type", Number)
56
- ], RegistrationType.prototype, "userLimit", void 0);
57
- __decorate([
58
- (0, swagger_1.ApiProperty)({
59
- type: 'integer',
60
- required: false,
61
- description: 'Current number of tickets sold',
62
- }),
63
- (0, class_validator_1.IsInt)(),
64
- __metadata("design:type", Number)
65
- ], RegistrationType.prototype, "soldCount", void 0);
66
- __decorate([
67
- (0, swagger_1.ApiProperty)({
68
- type: 'boolean',
69
- required: true,
70
- description: 'Whether the event has side events',
71
- }),
72
- (0, class_validator_1.IsBoolean)(),
73
- __metadata("design:type", Boolean)
74
- ], RegistrationType.prototype, "hasSideEvents", void 0);
75
- __decorate([
76
- (0, swagger_1.ApiProperty)({
77
- type: 'boolean',
78
- required: false,
79
- description: 'Whether to show the guest count',
80
- }),
81
- (0, class_validator_1.IsBoolean)(),
82
- __metadata("design:type", Boolean)
83
- ], RegistrationType.prototype, "showGuestCount", void 0);
84
- __decorate([
85
- (0, swagger_1.ApiProperty)({
86
- type: 'boolean',
87
- required: true,
88
- description: 'Whether KYC is required for registration',
89
- }),
90
- (0, class_validator_1.IsBoolean)(),
91
- __metadata("design:type", Boolean)
92
- ], RegistrationType.prototype, "requireKYC", void 0);
93
- __decorate([
94
- (0, swagger_1.ApiProperty)({
95
- type: 'boolean',
96
- required: true,
97
- description: 'Whether the event is refundable',
98
- }),
99
- (0, class_validator_1.IsBoolean)(),
100
- __metadata("design:type", Boolean)
101
- ], RegistrationType.prototype, "refundable", void 0);
102
- __decorate([
103
- (0, swagger_1.ApiProperty)({
104
- type: 'boolean',
105
- required: true,
106
- description: 'Whether to show name with number',
107
- }),
108
- (0, class_validator_1.IsBoolean)(),
109
- __metadata("design:type", Boolean)
110
- ], RegistrationType.prototype, "nameWithNumber", void 0);
111
- __decorate([
112
- (0, swagger_1.ApiProperty)({
113
- type: 'boolean',
114
- required: true,
115
- description: 'Whether bot protection is enabled',
116
- }),
117
- (0, class_validator_1.IsBoolean)(),
118
- __metadata("design:type", Boolean)
119
- ], RegistrationType.prototype, "botProtection", void 0);
120
- __decorate([
121
- (0, swagger_1.ApiProperty)({
122
- type: 'boolean',
123
- required: true,
124
- description: 'Whether the event is published',
125
- }),
126
- (0, class_validator_1.IsBoolean)(),
127
- __metadata("design:type", Boolean)
128
- ], RegistrationType.prototype, "isPublished", void 0);
129
- __decorate([
130
- (0, swagger_1.ApiProperty)({
131
- type: Boolean,
132
- required: false,
133
- description: 'Whether the event has a waitlist',
134
- }),
135
- (0, class_validator_1.IsBoolean)(),
136
- __metadata("design:type", Boolean)
137
- ], RegistrationType.prototype, "hasWaitlist", void 0);
138
- __decorate([
139
- (0, swagger_1.ApiProperty)({
140
- type: Boolean,
141
- required: true,
142
- description: 'Whether name is required for registration',
143
- }),
144
- (0, class_validator_1.IsBoolean)(),
145
- __metadata("design:type", Boolean)
146
- ], RegistrationType.prototype, "requireName", void 0);
147
- __decorate([
148
- (0, swagger_1.ApiProperty)({
149
- type: Boolean,
150
- required: true,
151
- description: 'Whether email is required for registration',
152
- }),
153
- (0, class_validator_1.IsBoolean)(),
154
- __metadata("design:type", Boolean)
155
- ], RegistrationType.prototype, "requireEmail", void 0);
156
- __decorate([
157
- (0, swagger_1.ApiProperty)({
158
- type: Boolean,
159
- required: true,
160
- description: 'Whether phone number is required for registration',
161
- }),
162
- (0, class_validator_1.IsBoolean)(),
163
- __metadata("design:type", Boolean)
164
- ], RegistrationType.prototype, "requirePhoneNumber", void 0);
165
- __decorate([
166
- (0, swagger_1.ApiProperty)({
167
- type: Boolean,
168
- required: false,
169
- description: 'Whether the event has custom questions',
170
- }),
171
- (0, class_validator_1.IsBoolean)(),
172
- __metadata("design:type", Boolean)
173
- ], RegistrationType.prototype, "hasCustomQuestions", void 0);
174
- __decorate([
175
- (0, swagger_1.ApiProperty)({
176
- type: String,
177
- required: false,
178
- description: 'Email sender for notifications',
179
- }),
180
- (0, class_validator_1.IsString)(),
181
- __metadata("design:type", String)
182
- ], RegistrationType.prototype, "emailSender", void 0);
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_user_role_doc_1 = require("./event-user-role.doc");
26
+ /* export class RegistrationType {
27
+
28
+ } */
183
29
  class PremiumType {
184
30
  }
185
31
  exports.PremiumType = PremiumType;
@@ -378,9 +224,9 @@ __decorate([
378
224
  __decorate([
379
225
  (0, swagger_1.ApiProperty)({
380
226
  description: 'Registration details such as visibility, max capacity, and ticket limits.',
381
- type: () => RegistrationType,
227
+ type: () => event_profile_create_dto_1.RegistrationDetailsDto,
382
228
  }),
383
- __metadata("design:type", RegistrationType)
229
+ __metadata("design:type", event_profile_create_dto_1.RegistrationDetailsDto)
384
230
  ], EventProfileDoc.prototype, "registration", void 0);
385
231
  __decorate([
386
232
  (0, swagger_1.ApiProperty)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",