@eventista/ticketing-common 1.0.23 → 1.0.25

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.
@@ -14,3 +14,5 @@ export * from './user-fanpass/user-fanpass.interfaces';
14
14
  export * from './user-fanpass/user-fanpass.schemas';
15
15
  export * from './promotions/promotions.interfaces';
16
16
  export * from './promotions/promotions.schema';
17
+ export * from './zones/zone.interfaces';
18
+ export * from './zones/zone.schema';
@@ -30,4 +30,6 @@ __exportStar(require("./user-fanpass/user-fanpass.interfaces"), exports);
30
30
  __exportStar(require("./user-fanpass/user-fanpass.schemas"), exports);
31
31
  __exportStar(require("./promotions/promotions.interfaces"), exports);
32
32
  __exportStar(require("./promotions/promotions.schema"), exports);
33
+ __exportStar(require("./zones/zone.interfaces"), exports);
34
+ __exportStar(require("./zones/zone.schema"), exports);
33
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,6EAA2D;AAC3D,yEAAuD;AACvD,6EAA2D;AAC3D,0EAAwD;AACxD,yDAAuC;AACvC,qDAAmC;AACnC,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,yEAAuD;AACvD,sEAAoD;AACpD,qEAAmD;AACnD,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,6EAA2D;AAC3D,yEAAuD;AACvD,6EAA2D;AAC3D,0EAAwD;AACxD,yDAAuC;AACvC,qDAAmC;AACnC,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,yEAAuD;AACvD,sEAAoD;AACpD,qEAAmD;AACnD,iEAA+C;AAC/C,0DAAwC;AACxC,sDAAoC"}
@@ -0,0 +1,11 @@
1
+ export interface IZone {
2
+ _id?: string;
3
+ position: number;
4
+ name: string;
5
+ calendarId: string;
6
+ eventId: string;
7
+ ticketClassId: string;
8
+ createdAt?: Date;
9
+ updatedAt?: Date;
10
+ isDeleted?: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=zone.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone.interfaces.js","sourceRoot":"","sources":["../../../src/schemas/zones/zone.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { BaseDocument } from '../index';
3
+ export type ZoneDocument = HydratedDocument<Zone> & BaseDocument;
4
+ export declare class Zone {
5
+ position: number;
6
+ name: string;
7
+ calendarId: string;
8
+ eventId: string;
9
+ ticketClassId: string;
10
+ }
11
+ export declare const ZoneSchema: import("mongoose").Schema<Zone, import("mongoose").Model<Zone, any, any, any, import("mongoose").Document<unknown, any, Zone, any> & Zone & {
12
+ _id: import("mongoose").Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Zone, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Zone>, {}> & import("mongoose").FlatRecord<Zone> & {
16
+ _id: import("mongoose").Types.ObjectId;
17
+ } & {
18
+ __v: number;
19
+ }>;
@@ -0,0 +1,60 @@
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.ZoneSchema = exports.Zone = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const index_1 = require("../index");
15
+ let Zone = class Zone {
16
+ };
17
+ exports.Zone = Zone;
18
+ __decorate([
19
+ (0, mongoose_1.Prop)({
20
+ default: 0,
21
+ }),
22
+ __metadata("design:type", Number)
23
+ ], Zone.prototype, "position", void 0);
24
+ __decorate([
25
+ (0, mongoose_1.Prop)({
26
+ type: String,
27
+ }),
28
+ __metadata("design:type", String)
29
+ ], Zone.prototype, "name", void 0);
30
+ __decorate([
31
+ (0, mongoose_1.Prop)({
32
+ required: true,
33
+ index: true,
34
+ }),
35
+ __metadata("design:type", String)
36
+ ], Zone.prototype, "calendarId", void 0);
37
+ __decorate([
38
+ (0, mongoose_1.Prop)({
39
+ required: true,
40
+ index: true,
41
+ }),
42
+ __metadata("design:type", String)
43
+ ], Zone.prototype, "eventId", void 0);
44
+ __decorate([
45
+ (0, mongoose_1.Prop)({
46
+ required: true,
47
+ index: true,
48
+ }),
49
+ __metadata("design:type", String)
50
+ ], Zone.prototype, "ticketClassId", void 0);
51
+ exports.Zone = Zone = __decorate([
52
+ (0, mongoose_1.Schema)({
53
+ collection: 'zones',
54
+ ...index_1.defaultSchemaOptions,
55
+ })
56
+ ], Zone);
57
+ exports.ZoneSchema = mongoose_1.SchemaFactory.createForClass(Zone);
58
+ (0, index_1.addSoftDeleteHooks)(exports.ZoneSchema);
59
+ (0, index_1.addUpdateHooks)(exports.ZoneSchema);
60
+ //# sourceMappingURL=zone.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone.schema.js","sourceRoot":"","sources":["../../../src/schemas/zones/zone.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,oCAA8G;AAQvG,IAAM,IAAI,GAAV,MAAM,IAAI;CA8BhB,CAAA;AA9BY,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;eA5Bb,IAAI;IAJhB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,OAAO;QACnB,GAAG,4BAAoB;KAC1B,CAAC;GACW,IAAI,CA8BhB;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"}