@eventista/ticketing-common 1.3.43 → 1.3.44-dev.0
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/constants/order-amount.js +12 -3
- package/dist/constants/order-amount.js.map +1 -1
- package/dist/schemas/event/event.interfaces.d.ts +107 -5
- package/dist/schemas/event/event.interfaces.js +43 -1
- package/dist/schemas/event/event.interfaces.js.map +1 -1
- package/dist/schemas/event/event.schema.d.ts +48 -6
- package/dist/schemas/event/event.schema.js +185 -2
- package/dist/schemas/event/event.schema.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/order/order.interfaces.d.ts +10 -4
- package/dist/schemas/order/order.interfaces.js.map +1 -1
- package/dist/schemas/participant-group/participant-group.interfaces.d.ts +1 -0
- package/dist/schemas/participant-group/participant-group.schema.d.ts +1 -0
- package/dist/schemas/participant-group/participant-group.schema.js +4 -0
- package/dist/schemas/participant-group/participant-group.schema.js.map +1 -1
- package/dist/schemas/promotions/promotions.interfaces.d.ts +24 -0
- package/dist/schemas/promotions/promotions.interfaces.js +6 -1
- package/dist/schemas/promotions/promotions.interfaces.js.map +1 -1
- package/dist/schemas/promotions/promotions.schema.d.ts +14 -1
- package/dist/schemas/promotions/promotions.schema.js +58 -1
- package/dist/schemas/promotions/promotions.schema.js.map +1 -1
- package/dist/schemas/rows/rows.interfaces.d.ts +1 -0
- package/dist/schemas/rows/rows.schema.d.ts +1 -0
- package/dist/schemas/rows/rows.schema.js +4 -0
- package/dist/schemas/rows/rows.schema.js.map +1 -1
- package/dist/schemas/schema.module.d.ts +24 -0
- package/dist/schemas/schema.module.js +4 -0
- package/dist/schemas/schema.module.js.map +1 -1
- package/dist/schemas/ticket-classes/ticket-classes.interfaces.d.ts +20 -0
- package/dist/schemas/ticket-classes/ticket-classes.interfaces.js +18 -1
- package/dist/schemas/ticket-classes/ticket-classes.interfaces.js.map +1 -1
- package/dist/schemas/ticket-classes/ticket-classes.schemas.d.ts +7 -1
- package/dist/schemas/ticket-classes/ticket-classes.schemas.js +34 -0
- package/dist/schemas/ticket-classes/ticket-classes.schemas.js.map +1 -1
- package/dist/schemas/tickets/tickets.interfaces.d.ts +1 -0
- package/dist/schemas/tickets/tickets.interfaces.js.map +1 -1
- package/dist/schemas/tickets/tickets.schema.d.ts +1 -0
- package/dist/schemas/tickets/tickets.schema.js +4 -0
- package/dist/schemas/tickets/tickets.schema.js.map +1 -1
- package/dist/schemas/venue/venue-seatmap.schema.d.ts +23 -0
- package/dist/schemas/venue/venue-seatmap.schema.js +62 -0
- package/dist/schemas/venue/venue-seatmap.schema.js.map +1 -0
- package/dist/schemas/venue/venue.interfaces.d.ts +32 -0
- package/dist/schemas/venue/venue.interfaces.js +6 -0
- package/dist/schemas/venue/venue.interfaces.js.map +1 -0
- package/dist/schemas/venue/venue.schema.d.ts +23 -0
- package/dist/schemas/venue/venue.schema.js +62 -0
- package/dist/schemas/venue/venue.schema.js.map +1 -0
- package/dist/schemas/zones/zone.interfaces.d.ts +39 -0
- package/dist/schemas/zones/zone.interfaces.js +30 -0
- package/dist/schemas/zones/zone.interfaces.js.map +1 -1
- package/dist/schemas/zones/zone.schema.d.ts +6 -0
- package/dist/schemas/zones/zone.schema.js +34 -0
- package/dist/schemas/zones/zone.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { BaseDocument, BaseSchema } from '../index';
|
|
3
|
+
import { IVenueStatus } from './venue.interfaces';
|
|
4
|
+
export type VenueSeatmapDocument = HydratedDocument<VenueSeatmap> & BaseDocument;
|
|
5
|
+
export declare class VenueSeatmap extends BaseSchema {
|
|
6
|
+
venueSeatmapId: string;
|
|
7
|
+
venueId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
seatCount: number;
|
|
10
|
+
rowCount?: number;
|
|
11
|
+
thumbnailUrl?: string | null;
|
|
12
|
+
status: IVenueStatus;
|
|
13
|
+
sourceNote?: string | null;
|
|
14
|
+
}
|
|
15
|
+
export declare const VenueSeatmapSchema: import("mongoose").Schema<VenueSeatmap, import("mongoose").Model<VenueSeatmap, any, any, any, import("mongoose").Document<unknown, any, VenueSeatmap, any> & VenueSeatmap & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VenueSeatmap, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<VenueSeatmap>, {}> & import("mongoose").FlatRecord<VenueSeatmap> & {
|
|
20
|
+
_id: import("mongoose").Types.ObjectId;
|
|
21
|
+
} & {
|
|
22
|
+
__v: number;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.VenueSeatmapSchema = exports.VenueSeatmap = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const index_1 = require("../index");
|
|
15
|
+
const venue_interfaces_1 = require("./venue.interfaces");
|
|
16
|
+
let VenueSeatmap = class VenueSeatmap extends index_1.BaseSchema {
|
|
17
|
+
};
|
|
18
|
+
exports.VenueSeatmap = VenueSeatmap;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], VenueSeatmap.prototype, "venueSeatmapId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], VenueSeatmap.prototype, "venueId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], VenueSeatmap.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], VenueSeatmap.prototype, "seatCount", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ type: Number }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], VenueSeatmap.prototype, "rowCount", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], VenueSeatmap.prototype, "thumbnailUrl", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ type: String, enum: venue_interfaces_1.VENUE_STATUSES, default: 'published' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], VenueSeatmap.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], VenueSeatmap.prototype, "sourceNote", void 0);
|
|
51
|
+
exports.VenueSeatmap = VenueSeatmap = __decorate([
|
|
52
|
+
(0, mongoose_1.Schema)({
|
|
53
|
+
collection: 'venue_seatmaps',
|
|
54
|
+
...index_1.defaultSchemaOptions,
|
|
55
|
+
})
|
|
56
|
+
], VenueSeatmap);
|
|
57
|
+
exports.VenueSeatmapSchema = mongoose_1.SchemaFactory.createForClass(VenueSeatmap);
|
|
58
|
+
(0, index_1.addUpdateHooks)(exports.VenueSeatmapSchema);
|
|
59
|
+
(0, index_1.addSoftDeleteHooks)(exports.VenueSeatmapSchema);
|
|
60
|
+
exports.VenueSeatmapSchema.index({ venueSeatmapId: 1 }, { unique: true });
|
|
61
|
+
exports.VenueSeatmapSchema.index({ venueId: 1, status: 1, updatedAt: -1 });
|
|
62
|
+
//# sourceMappingURL=venue-seatmap.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"venue-seatmap.schema.js","sourceRoot":"","sources":["../../../src/schemas/venue/venue-seatmap.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,yDAAkE;AAe3D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,kBAAU;CAwB3C,CAAA;AAxBY,oCAAY;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAChB;AAGvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACvB;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC1B;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CACjC;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACL;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;kDACT;AAG7B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAc,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;;4CAC9C;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACX;uBAvBlB,YAAY;IAJxB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,gBAAgB;QAC5B,GAAG,4BAAoB;KAC1B,CAAC;GACW,YAAY,CAwBxB;AAEY,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;AAE7E,IAAA,sBAAc,EAAC,0BAAkB,CAAC,CAAC;AACnC,IAAA,0BAAkB,EAAC,0BAAkB,CAAC,CAAC;AAEvC,0BAAkB,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAElE,0BAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const VENUE_TYPES: readonly ["indoor", "outdoor"];
|
|
2
|
+
export type IVenueType = (typeof VENUE_TYPES)[number];
|
|
3
|
+
export declare const VENUE_STATUSES: readonly ["published", "archived"];
|
|
4
|
+
export type IVenueStatus = (typeof VENUE_STATUSES)[number];
|
|
5
|
+
export interface IVenue {
|
|
6
|
+
_id?: string;
|
|
7
|
+
venueId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
address?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
country?: string;
|
|
12
|
+
capacity?: number;
|
|
13
|
+
venueType?: IVenueType;
|
|
14
|
+
status: IVenueStatus;
|
|
15
|
+
isDeleted?: boolean;
|
|
16
|
+
createdAt?: Date;
|
|
17
|
+
updatedAt?: Date;
|
|
18
|
+
}
|
|
19
|
+
export interface IVenueSeatmap {
|
|
20
|
+
_id?: string;
|
|
21
|
+
venueSeatmapId: string;
|
|
22
|
+
venueId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
seatCount: number;
|
|
25
|
+
rowCount?: number;
|
|
26
|
+
thumbnailUrl?: string | null;
|
|
27
|
+
status: IVenueStatus;
|
|
28
|
+
sourceNote?: string | null;
|
|
29
|
+
isDeleted?: boolean;
|
|
30
|
+
createdAt?: Date;
|
|
31
|
+
updatedAt?: Date;
|
|
32
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VENUE_STATUSES = exports.VENUE_TYPES = void 0;
|
|
4
|
+
exports.VENUE_TYPES = ['indoor', 'outdoor'];
|
|
5
|
+
exports.VENUE_STATUSES = ['published', 'archived'];
|
|
6
|
+
//# sourceMappingURL=venue.interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"venue.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/venue/venue.interfaces.ts"],"names":[],"mappings":";;;AAWa,QAAA,WAAW,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAU,CAAC;AAI7C,QAAA,cAAc,GAAG,CAAC,WAAW,EAAE,UAAU,CAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { BaseDocument, BaseSchema } from '../index';
|
|
3
|
+
import { IVenueStatus, IVenueType } from './venue.interfaces';
|
|
4
|
+
export type VenueDocument = HydratedDocument<Venue> & BaseDocument;
|
|
5
|
+
export declare class Venue extends BaseSchema {
|
|
6
|
+
venueId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
address?: string;
|
|
9
|
+
city?: string;
|
|
10
|
+
country?: string;
|
|
11
|
+
capacity?: number;
|
|
12
|
+
venueType?: IVenueType;
|
|
13
|
+
status: IVenueStatus;
|
|
14
|
+
}
|
|
15
|
+
export declare const VenueSchema: import("mongoose").Schema<Venue, import("mongoose").Model<Venue, any, any, any, import("mongoose").Document<unknown, any, Venue, any> & Venue & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Venue, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Venue>, {}> & import("mongoose").FlatRecord<Venue> & {
|
|
20
|
+
_id: import("mongoose").Types.ObjectId;
|
|
21
|
+
} & {
|
|
22
|
+
__v: number;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.VenueSchema = exports.Venue = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const index_1 = require("../index");
|
|
15
|
+
const venue_interfaces_1 = require("./venue.interfaces");
|
|
16
|
+
let Venue = class Venue extends index_1.BaseSchema {
|
|
17
|
+
};
|
|
18
|
+
exports.Venue = Venue;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Venue.prototype, "venueId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Venue.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: String }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Venue.prototype, "address", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ type: String }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Venue.prototype, "city", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ type: String }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Venue.prototype, "country", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, mongoose_1.Prop)({ type: Number }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], Venue.prototype, "capacity", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ type: String, enum: venue_interfaces_1.VENUE_TYPES }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Venue.prototype, "venueType", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, mongoose_1.Prop)({ type: String, enum: venue_interfaces_1.VENUE_STATUSES, default: 'published' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Venue.prototype, "status", void 0);
|
|
51
|
+
exports.Venue = Venue = __decorate([
|
|
52
|
+
(0, mongoose_1.Schema)({
|
|
53
|
+
collection: 'venues',
|
|
54
|
+
...index_1.defaultSchemaOptions,
|
|
55
|
+
})
|
|
56
|
+
], Venue);
|
|
57
|
+
exports.VenueSchema = mongoose_1.SchemaFactory.createForClass(Venue);
|
|
58
|
+
(0, index_1.addUpdateHooks)(exports.VenueSchema);
|
|
59
|
+
(0, index_1.addSoftDeleteHooks)(exports.VenueSchema);
|
|
60
|
+
exports.VenueSchema.index({ venueId: 1 }, { unique: true });
|
|
61
|
+
exports.VenueSchema.index({ status: 1, city: 1, name: 1 });
|
|
62
|
+
//# sourceMappingURL=venue.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"venue.schema.js","sourceRoot":"","sources":["../../../src/schemas/venue/venue.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,yDAA2F;AASpF,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,kBAAU;CAwBpC,CAAA;AAxBY,sBAAK;AAEd;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACvB;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCAC1B;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACN;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mCACT;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACN;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uCACL;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAW,EAAE,CAAC;;wCACnB;AAGvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAc,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;;qCAC9C;gBAvBZ,KAAK;IAJjB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,QAAQ;QACpB,GAAG,4BAAoB;KAC1B,CAAC;GACW,KAAK,CAwBjB;AAEY,QAAA,WAAW,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/D,IAAA,sBAAc,EAAC,mBAAW,CAAC,CAAC;AAC5B,IAAA,0BAAkB,EAAC,mBAAW,CAAC,CAAC;AAEhC,mBAAW,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAEpD,mBAAW,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -10,4 +10,43 @@ export interface IZone {
|
|
|
10
10
|
createdAt?: Date;
|
|
11
11
|
updatedAt?: Date;
|
|
12
12
|
isDeleted?: boolean;
|
|
13
|
+
rowCount?: number;
|
|
14
|
+
seatsPerRow?: number;
|
|
15
|
+
numberingRule?: IZoneNumberingRule;
|
|
16
|
+
type?: IZoneType;
|
|
17
|
+
seatSelectable?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare enum IZoneType {
|
|
20
|
+
SEATED = "seated",
|
|
21
|
+
STANDING = "standing"
|
|
22
|
+
}
|
|
23
|
+
export declare enum IZoneRowNaming {
|
|
24
|
+
LETTERS = "letters",
|
|
25
|
+
NUMBERS = "numbers",
|
|
26
|
+
NONE = "none"
|
|
27
|
+
}
|
|
28
|
+
export declare enum IZoneSeatOrder {
|
|
29
|
+
SEQUENTIAL = "sequential",
|
|
30
|
+
ODD_ONLY = "odd_only",
|
|
31
|
+
EVEN_ONLY = "even_only",
|
|
32
|
+
CENTER_OUT = "center_out",
|
|
33
|
+
ODD_EVEN = "odd_even"
|
|
34
|
+
}
|
|
35
|
+
export declare enum IZoneSeatDirection {
|
|
36
|
+
LEFT_TO_RIGHT = "ltr",
|
|
37
|
+
RIGHT_TO_LEFT = "rtl"
|
|
38
|
+
}
|
|
39
|
+
export declare enum IZoneOddSide {
|
|
40
|
+
LEFT = "left",
|
|
41
|
+
RIGHT = "right"
|
|
42
|
+
}
|
|
43
|
+
export interface IZoneNumberingRule {
|
|
44
|
+
rowNaming: IZoneRowNaming;
|
|
45
|
+
seatOrder: IZoneSeatOrder;
|
|
46
|
+
firstRow: string;
|
|
47
|
+
firstSeat: number;
|
|
48
|
+
skipLetters: string[];
|
|
49
|
+
stageNearestFirst: boolean;
|
|
50
|
+
direction?: IZoneSeatDirection;
|
|
51
|
+
oddSide?: IZoneOddSide;
|
|
13
52
|
}
|
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IZoneOddSide = exports.IZoneSeatDirection = exports.IZoneSeatOrder = exports.IZoneRowNaming = exports.IZoneType = void 0;
|
|
4
|
+
var IZoneType;
|
|
5
|
+
(function (IZoneType) {
|
|
6
|
+
IZoneType["SEATED"] = "seated";
|
|
7
|
+
IZoneType["STANDING"] = "standing";
|
|
8
|
+
})(IZoneType || (exports.IZoneType = IZoneType = {}));
|
|
9
|
+
var IZoneRowNaming;
|
|
10
|
+
(function (IZoneRowNaming) {
|
|
11
|
+
IZoneRowNaming["LETTERS"] = "letters";
|
|
12
|
+
IZoneRowNaming["NUMBERS"] = "numbers";
|
|
13
|
+
IZoneRowNaming["NONE"] = "none";
|
|
14
|
+
})(IZoneRowNaming || (exports.IZoneRowNaming = IZoneRowNaming = {}));
|
|
15
|
+
var IZoneSeatOrder;
|
|
16
|
+
(function (IZoneSeatOrder) {
|
|
17
|
+
IZoneSeatOrder["SEQUENTIAL"] = "sequential";
|
|
18
|
+
IZoneSeatOrder["ODD_ONLY"] = "odd_only";
|
|
19
|
+
IZoneSeatOrder["EVEN_ONLY"] = "even_only";
|
|
20
|
+
IZoneSeatOrder["CENTER_OUT"] = "center_out";
|
|
21
|
+
IZoneSeatOrder["ODD_EVEN"] = "odd_even";
|
|
22
|
+
})(IZoneSeatOrder || (exports.IZoneSeatOrder = IZoneSeatOrder = {}));
|
|
23
|
+
var IZoneSeatDirection;
|
|
24
|
+
(function (IZoneSeatDirection) {
|
|
25
|
+
IZoneSeatDirection["LEFT_TO_RIGHT"] = "ltr";
|
|
26
|
+
IZoneSeatDirection["RIGHT_TO_LEFT"] = "rtl";
|
|
27
|
+
})(IZoneSeatDirection || (exports.IZoneSeatDirection = IZoneSeatDirection = {}));
|
|
28
|
+
var IZoneOddSide;
|
|
29
|
+
(function (IZoneOddSide) {
|
|
30
|
+
IZoneOddSide["LEFT"] = "left";
|
|
31
|
+
IZoneOddSide["RIGHT"] = "right";
|
|
32
|
+
})(IZoneOddSide || (exports.IZoneOddSide = IZoneOddSide = {}));
|
|
3
33
|
//# sourceMappingURL=zone.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/zones/zone.interfaces.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"zone.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/zones/zone.interfaces.ts"],"names":[],"mappings":";;;AA8BA,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACzB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,IAAY,cAOX;AAPD,WAAY,cAAc;IAEtB,qCAAmB,CAAA;IAEnB,qCAAmB,CAAA;IAEnB,+BAAa,CAAA;AACjB,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB;AAED,IAAY,cAWX;AAXD,WAAY,cAAc;IAEtB,2CAAyB,CAAA;IAEzB,uCAAqB,CAAA;IAErB,yCAAuB,CAAA;IAEvB,2CAAyB,CAAA;IAEzB,uCAAqB,CAAA;AACzB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB;AAGD,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;AACzB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAGD,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACnB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HydratedDocument } from 'mongoose';
|
|
2
2
|
import { BaseDocument, BaseSchema } from '../index';
|
|
3
|
+
import { IZoneNumberingRule, IZoneType } from './zone.interfaces';
|
|
3
4
|
export type ZoneDocument = HydratedDocument<Zone> & BaseDocument;
|
|
4
5
|
export declare class Zone extends BaseSchema {
|
|
5
6
|
position: number;
|
|
@@ -8,6 +9,11 @@ export declare class Zone extends BaseSchema {
|
|
|
8
9
|
eventId: string;
|
|
9
10
|
ticketClassId: string;
|
|
10
11
|
syncTicketSummary: boolean;
|
|
12
|
+
rowCount: number;
|
|
13
|
+
seatsPerRow: number;
|
|
14
|
+
numberingRule: IZoneNumberingRule;
|
|
15
|
+
type?: IZoneType;
|
|
16
|
+
seatSelectable?: boolean;
|
|
11
17
|
}
|
|
12
18
|
export declare const ZoneSchema: import("mongoose").Schema<Zone, import("mongoose").Model<Zone, any, any, any, import("mongoose").Document<unknown, any, Zone, any> & Zone & {
|
|
13
19
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ZoneSchema = exports.Zone = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const index_1 = require("../index");
|
|
15
|
+
const zone_interfaces_1 = require("./zone.interfaces");
|
|
15
16
|
let Zone = class Zone extends index_1.BaseSchema {
|
|
16
17
|
};
|
|
17
18
|
exports.Zone = Zone;
|
|
@@ -54,6 +55,39 @@ __decorate([
|
|
|
54
55
|
}),
|
|
55
56
|
__metadata("design:type", Boolean)
|
|
56
57
|
], Zone.prototype, "syncTicketSummary", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], Zone.prototype, "rowCount", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], Zone.prototype, "seatsPerRow", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({
|
|
68
|
+
type: {
|
|
69
|
+
rowNaming: { type: String },
|
|
70
|
+
seatOrder: { type: String },
|
|
71
|
+
firstRow: { type: String },
|
|
72
|
+
firstSeat: { type: Number },
|
|
73
|
+
skipLetters: { type: [String] },
|
|
74
|
+
stageNearestFirst: { type: Boolean },
|
|
75
|
+
direction: { type: String },
|
|
76
|
+
oddSide: { type: String },
|
|
77
|
+
},
|
|
78
|
+
default: null,
|
|
79
|
+
_id: false,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], Zone.prototype, "numberingRule", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, mongoose_1.Prop)({ type: String, enum: Object.values(zone_interfaces_1.IZoneType), required: false }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Zone.prototype, "type", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false }),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], Zone.prototype, "seatSelectable", void 0);
|
|
57
91
|
exports.Zone = Zone = __decorate([
|
|
58
92
|
(0, mongoose_1.Schema)({
|
|
59
93
|
collection: 'zones',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone.schema.js","sourceRoot":"","sources":["../../../src/schemas/zones/zone.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;
|
|
1
|
+
{"version":3,"file":"zone.schema.js","sourceRoot":"","sources":["../../../src/schemas/zones/zone.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAC9G,uDAAkE;AAQ3D,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kBAAU;CAoEnC,CAAA;AApEY,oBAAI;AAKb;IAHC,IAAA,eAAI,EAAC;QACF,OAAO,EAAE,CAAC;KACb,CAAC;;sCACe;AAKjB;IAHC,IAAA,eAAI,EAAC;QACF,IAAI,EAAE,MAAM;KACf,CAAC;;kCACW;AAMb;IAJC,IAAA,eAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACd,CAAC;;wCACiB;AAMnB;IAJC,IAAA,eAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACd,CAAC;;qCACc;AAMhB;IAJC,IAAA,eAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACd,CAAC;;2CACoB;AAKtB;IAHC,IAAA,eAAI,EAAC;QACF,OAAO,EAAE,KAAK;KACjB,CAAC;;+CACyB;AAM3B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sCAClB;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACf;AAiBpB;IAdC,IAAA,eAAI,EAAC;QACF,IAAI,EAAE;YACF,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC1B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE;YAC/B,iBAAiB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YACpC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B;QACD,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,KAAK;KACb,CAAC;;2CACgC;AAIlC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,2BAAS,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCACvD;AAIjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CAChB;eAnEhB,IAAI;IAJhB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,OAAO;QACnB,GAAG,4BAAoB;KAC1B,CAAC;GACW,IAAI,CAoEhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAE7D,IAAA,0BAAkB,EAAC,kBAAU,CAAC,CAAC;AAC/B,IAAA,sBAAc,EAAC,kBAAU,CAAC,CAAC"}
|