@xoxno/types 1.0.184 → 1.0.185

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.
@@ -40,9 +40,12 @@ export declare type RegistrationDetailsCreateDto = RegistrationDetailsCreateDto_
40
40
  declare const RegistrationDetailsCreateDtoNest_base: import("@nestjs/common").Type<Pick<RegistrationDetailsDto, "maxLimit" | "userLimit" | "visibility" | "requireKYC" | "requireName" | "requireEmail" | "requirePhoneNumber" | "isPublished" | "hasSideEvents" | "hasWaitlist" | "showGuestCount" | "refundable" | "nameWithNumber" | "botProtection">>;
41
41
  export declare class RegistrationDetailsCreateDtoNest extends RegistrationDetailsCreateDtoNest_base {
42
42
  }
43
- declare type EventProfileCreateDto_base = Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "registration" | "location" | "isVirtualEvent" | "category" | "subCategory" | "seo">;
44
- export declare type EventProfileCreateDto = EventProfileCreateDto_base ;
45
- declare const EventProfileCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "registration" | "location" | "isVirtualEvent" | "category" | "subCategory" | "seo">>;
43
+ declare type EventProfileCreateDto_base = Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "location" | "isVirtualEvent" | "slug" | "category" | "subCategory" | "seo">;
44
+ export declare type EventProfileCreateDto = EventProfileCreateDto_base & {
45
+ registration: RegistrationDetailsCreateDto;
46
+ };
47
+ declare const EventProfileCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "location" | "isVirtualEvent" | "slug" | "category" | "subCategory" | "seo">>;
46
48
  export declare class EventProfileCreateDtoNest extends EventProfileCreateDtoNest_base {
49
+ registration: RegistrationDetailsCreateDto;
47
50
  }
48
51
  export {};
@@ -14,6 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
16
16
  const event_profile_doc_1 = require("./event-profile.doc");
17
+ const class_transformer_1 = require("class-transformer");
17
18
  class EventSeoDto {
18
19
  }
19
20
  exports.EventSeoDto = EventSeoDto;
@@ -147,6 +148,7 @@ __decorate([
147
148
  description: 'Current number of tickets sold',
148
149
  }),
149
150
  (0, class_validator_1.IsInt)(),
151
+ (0, class_validator_1.IsOptional)(),
150
152
  __metadata("design:type", Number)
151
153
  ], RegistrationDetailsDto.prototype, "soldCount", void 0);
152
154
  __decorate([
@@ -156,6 +158,7 @@ __decorate([
156
158
  description: 'Whether the event has custom questions',
157
159
  }),
158
160
  (0, class_validator_1.IsBoolean)(),
161
+ (0, class_validator_1.IsOptional)(),
159
162
  __metadata("design:type", Boolean)
160
163
  ], RegistrationDetailsDto.prototype, "hasCustomQuestions", void 0);
161
164
  __decorate([
@@ -165,6 +168,7 @@ __decorate([
165
168
  description: 'Email sender for notifications',
166
169
  }),
167
170
  (0, class_validator_1.IsString)(),
171
+ (0, class_validator_1.IsOptional)(),
168
172
  __metadata("design:type", String)
169
173
  ], RegistrationDetailsDto.prototype, "emailSender", void 0);
170
174
  class EventLocationDto {
@@ -256,11 +260,11 @@ class RegistrationDetailsCreateDto extends (0, swagger_1.PickType)(RegistrationD
256
260
  }
257
261
  exports.RegistrationDetailsCreateDto = RegistrationDetailsCreateDto;
258
262
  class EventProfileCreateDto extends (0, swagger_1.PickType)(event_profile_doc_1.EventProfileDoc, [
263
+ 'slug',
259
264
  'title',
260
265
  'startTime',
261
266
  'endTime',
262
267
  'location',
263
- 'registration',
264
268
  'isVirtualEvent',
265
269
  'seo',
266
270
  'category',
@@ -268,6 +272,12 @@ class EventProfileCreateDto extends (0, swagger_1.PickType)(event_profile_doc_1.
268
272
  ]) {
269
273
  }
270
274
  exports.EventProfileCreateDto = EventProfileCreateDto;
275
+ __decorate([
276
+ (0, class_validator_1.IsObject)(),
277
+ (0, class_validator_1.ValidateNested)(),
278
+ (0, class_transformer_1.Type)(() => RegistrationDetailsDto),
279
+ __metadata("design:type", RegistrationDetailsCreateDto)
280
+ ], EventProfileCreateDto.prototype, "registration", void 0);
271
281
 
272
282
  exports.RegistrationDetailsCreateDtoNest = RegistrationDetailsCreateDto;
273
283
 
@@ -1,10 +1,7 @@
1
1
  import { EventProfileCreateDto } from './event-profile-create.dto';
2
2
  declare type EventProfileEditDto_base = Partial<EventProfileCreateDto>;
3
- export declare type EventProfileEditDto = EventProfileEditDto_base & {
4
- slug?: string;
5
- };
3
+ export declare type EventProfileEditDto = EventProfileEditDto_base ;
6
4
  declare const EventProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<EventProfileCreateDto>>;
7
5
  export declare class EventProfileEditDtoNest extends EventProfileEditDtoNest_base {
8
- slug?: string;
9
6
  }
10
7
  export {};
@@ -1,33 +1,10 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.EventProfileEditDto = void 0;
13
4
  const swagger_1 = require("@nestjs/swagger");
14
5
  const event_profile_create_dto_1 = require("./event-profile-create.dto");
15
- const class_validator_1 = require("class-validator");
16
6
  class EventProfileEditDto extends (0, swagger_1.PartialType)(event_profile_create_dto_1.EventProfileCreateDto) {
17
7
  }
18
8
  exports.EventProfileEditDto = EventProfileEditDto;
19
- __decorate([
20
- (0, swagger_1.ApiProperty)({
21
- description: 'Unique slug for the event URL.',
22
- required: false,
23
- }),
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.Matches)(/^[a-z0-9-]+$/, {
26
- message: 'Slug can only contain lowercase letters, numbers, and hyphens',
27
- }),
28
- (0, class_validator_1.Length)(3, 20),
29
- (0, class_validator_1.IsOptional)(),
30
- __metadata("design:type", String)
31
- ], EventProfileEditDto.prototype, "slug", void 0);
32
9
 
33
10
  exports.EventProfileEditDtoNest = EventProfileEditDto;
@@ -29,7 +29,7 @@ export declare class EventProfileDoc {
29
29
  descriptionUrl?: string;
30
30
  location: EventLocationDto;
31
31
  isVirtualEvent: boolean;
32
- slug: string;
32
+ slug?: string;
33
33
  profile: string;
34
34
  category: EventCategory;
35
35
  subCategory?: EventSubCategory;
@@ -195,8 +195,16 @@ __decorate([
195
195
  __metadata("design:type", Boolean)
196
196
  ], EventProfileDoc.prototype, "isVirtualEvent", void 0);
197
197
  __decorate([
198
- (0, swagger_1.ApiProperty)({ description: 'Unique slug for the event URL.' }),
198
+ (0, swagger_1.ApiProperty)({
199
+ description: 'Unique slug for the event URL.',
200
+ required: false,
201
+ }),
199
202
  (0, class_validator_1.IsString)(),
203
+ (0, class_validator_1.Matches)(/^[a-z0-9-]+$/, {
204
+ message: 'Slug can only contain lowercase letters, numbers, and hyphens',
205
+ }),
206
+ (0, class_validator_1.Length)(3, 20),
207
+ (0, class_validator_1.IsOptional)(),
200
208
  __metadata("design:type", String)
201
209
  ], EventProfileDoc.prototype, "slug", void 0);
202
210
  __decorate([
@@ -1,7 +1,7 @@
1
1
  import { EventReferralDoc } from './event-referral.doc';
2
- declare type EventReferralEditDto_base = Partial<Pick<EventReferralDoc, "isActive" | "referralCode">>;
2
+ declare type EventReferralEditDto_base = Partial<Pick<EventReferralDoc, "isActive">>;
3
3
  export declare type EventReferralEditDto = EventReferralEditDto_base ;
4
- declare const EventReferralEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<EventReferralDoc, "isActive" | "referralCode">>>;
4
+ declare const EventReferralEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<EventReferralDoc, "isActive">>>;
5
5
  export declare class EventReferralEditDtoNest extends EventReferralEditDtoNest_base {
6
6
  }
7
7
  export {};
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventReferralEditDto = void 0;
4
4
  const swagger_1 = require("@nestjs/swagger");
5
5
  const event_referral_doc_1 = require("./event-referral.doc");
6
- class EventReferralEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(event_referral_doc_1.EventReferralDoc, ['referralCode', 'isActive'])) {
6
+ class EventReferralEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(event_referral_doc_1.EventReferralDoc, ['isActive'])) {
7
7
  }
8
8
  exports.EventReferralEditDto = EventReferralEditDto;
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.184",
3
+ "version": "1.0.185",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {