@mac777/project-pinecone-models 1.0.9 → 1.0.11

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/Event.d.ts CHANGED
@@ -17,8 +17,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
17
17
  isActive: boolean;
18
18
  isVisible: boolean;
19
19
  wristbandColor: string;
20
+ accentColor: string;
21
+ isDark: boolean;
22
+ glassMode: boolean;
23
+ cornerRadius: number;
24
+ perforationStyle: "solid" | "dashed" | "dotted";
20
25
  benefits: string[];
21
26
  tier: string;
27
+ description?: string | null | undefined;
22
28
  price?: {
23
29
  amount: number;
24
30
  currency: string;
@@ -39,8 +45,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
39
45
  isActive: boolean;
40
46
  isVisible: boolean;
41
47
  wristbandColor: string;
48
+ accentColor: string;
49
+ isDark: boolean;
50
+ glassMode: boolean;
51
+ cornerRadius: number;
52
+ perforationStyle: "solid" | "dashed" | "dotted";
42
53
  benefits: string[];
43
54
  tier: string;
55
+ description?: string | null | undefined;
44
56
  price?: {
45
57
  amount: number;
46
58
  currency: string;
@@ -61,8 +73,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
61
73
  isActive: boolean;
62
74
  isVisible: boolean;
63
75
  wristbandColor: string;
76
+ accentColor: string;
77
+ isDark: boolean;
78
+ glassMode: boolean;
79
+ cornerRadius: number;
80
+ perforationStyle: "solid" | "dashed" | "dotted";
64
81
  benefits: string[];
65
82
  tier: string;
83
+ description?: string | null | undefined;
66
84
  price?: {
67
85
  amount: number;
68
86
  currency: string;
@@ -283,8 +301,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
283
301
  isActive: boolean;
284
302
  isVisible: boolean;
285
303
  wristbandColor: string;
304
+ accentColor: string;
305
+ isDark: boolean;
306
+ glassMode: boolean;
307
+ cornerRadius: number;
308
+ perforationStyle: "solid" | "dashed" | "dotted";
286
309
  benefits: string[];
287
310
  tier: string;
311
+ description?: string | null | undefined;
288
312
  price?: {
289
313
  amount: number;
290
314
  currency: string;
@@ -305,8 +329,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
305
329
  isActive: boolean;
306
330
  isVisible: boolean;
307
331
  wristbandColor: string;
332
+ accentColor: string;
333
+ isDark: boolean;
334
+ glassMode: boolean;
335
+ cornerRadius: number;
336
+ perforationStyle: "solid" | "dashed" | "dotted";
308
337
  benefits: string[];
309
338
  tier: string;
339
+ description?: string | null | undefined;
310
340
  price?: {
311
341
  amount: number;
312
342
  currency: string;
@@ -327,8 +357,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
327
357
  isActive: boolean;
328
358
  isVisible: boolean;
329
359
  wristbandColor: string;
360
+ accentColor: string;
361
+ isDark: boolean;
362
+ glassMode: boolean;
363
+ cornerRadius: number;
364
+ perforationStyle: "solid" | "dashed" | "dotted";
330
365
  benefits: string[];
331
366
  tier: string;
367
+ description?: string | null | undefined;
332
368
  price?: {
333
369
  amount: number;
334
370
  currency: string;
@@ -549,8 +585,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
549
585
  isActive: boolean;
550
586
  isVisible: boolean;
551
587
  wristbandColor: string;
588
+ accentColor: string;
589
+ isDark: boolean;
590
+ glassMode: boolean;
591
+ cornerRadius: number;
592
+ perforationStyle: "solid" | "dashed" | "dotted";
552
593
  benefits: string[];
553
594
  tier: string;
595
+ description?: string | null | undefined;
554
596
  price?: {
555
597
  amount: number;
556
598
  currency: string;
@@ -571,8 +613,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
571
613
  isActive: boolean;
572
614
  isVisible: boolean;
573
615
  wristbandColor: string;
616
+ accentColor: string;
617
+ isDark: boolean;
618
+ glassMode: boolean;
619
+ cornerRadius: number;
620
+ perforationStyle: "solid" | "dashed" | "dotted";
574
621
  benefits: string[];
575
622
  tier: string;
623
+ description?: string | null | undefined;
576
624
  price?: {
577
625
  amount: number;
578
626
  currency: string;
@@ -593,8 +641,14 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
593
641
  isActive: boolean;
594
642
  isVisible: boolean;
595
643
  wristbandColor: string;
644
+ accentColor: string;
645
+ isDark: boolean;
646
+ glassMode: boolean;
647
+ cornerRadius: number;
648
+ perforationStyle: "solid" | "dashed" | "dotted";
596
649
  benefits: string[];
597
650
  tier: string;
651
+ description?: string | null | undefined;
598
652
  price?: {
599
653
  amount: number;
600
654
  currency: string;
package/dist/Event.js CHANGED
@@ -32,7 +32,10 @@ const venueSchema = new mongoose_1.default.Schema({
32
32
  enum: ['Point'],
33
33
  default: 'Point'
34
34
  },
35
- coordinates: [Number] // [lng, lat]
35
+ coordinates: {
36
+ type: [Number],
37
+ default: [0, 0]
38
+ } // [lng, lat]
36
39
  },
37
40
  capacity: { type: Number, required: true, min: 10, max: 100000 },
38
41
  type: { type: String, enum: ['indoor', 'outdoor', 'hybrid'] },
@@ -79,13 +82,20 @@ const salesWindowSchema = new mongoose_1.default.Schema({
79
82
  }, { _id: false });
80
83
  const ticketSchema = new mongoose_1.default.Schema({
81
84
  name: { type: String, required: true },
85
+ description: String,
82
86
  price: priceSchema,
83
87
  quantity: { type: Number, required: true },
84
88
  sold: { type: Number, default: 0 },
85
89
  reserved: { type: Number, default: 0 },
86
90
  isActive: { type: Boolean, default: true },
87
91
  isVisible: { type: Boolean, default: true },
88
- wristbandColor: { type: String, default: '#000000' },
92
+ // Visual customization
93
+ wristbandColor: { type: String, default: '#4f46e5' },
94
+ accentColor: { type: String, default: '#4f46e5' },
95
+ isDark: { type: Boolean, default: false },
96
+ glassMode: { type: Boolean, default: false },
97
+ cornerRadius: { type: Number, default: 32, min: 0, max: 50 },
98
+ perforationStyle: { type: String, enum: ['solid', 'dashed', 'dotted'], default: 'dotted' },
89
99
  limits: {
90
100
  minPerOrder: { type: Number, default: 1 },
91
101
  maxPerOrder: { type: Number, default: 10 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mac777/project-pinecone-models",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/Event.ts CHANGED
@@ -30,7 +30,10 @@ const venueSchema = new mongoose.Schema({
30
30
  enum: ['Point'],
31
31
  default: 'Point'
32
32
  },
33
- coordinates: [Number] // [lng, lat]
33
+ coordinates: {
34
+ type: [Number],
35
+ default: [0, 0]
36
+ } // [lng, lat]
34
37
  },
35
38
  capacity: { type: Number, required: true, min: 10, max: 100000 },
36
39
  type: { type: String, enum: ['indoor', 'outdoor', 'hybrid'] },
@@ -84,13 +87,22 @@ const salesWindowSchema = new mongoose.Schema({
84
87
 
85
88
  const ticketSchema = new mongoose.Schema({
86
89
  name: { type: String, required: true },
90
+ description: String,
87
91
  price: priceSchema,
88
92
  quantity: { type: Number, required: true },
89
93
  sold: { type: Number, default: 0 },
90
94
  reserved: { type: Number, default: 0 },
91
95
  isActive: { type: Boolean, default: true },
92
96
  isVisible: { type: Boolean, default: true },
93
- wristbandColor: { type: String, default: '#000000' },
97
+
98
+ // Visual customization
99
+ wristbandColor: { type: String, default: '#4f46e5' },
100
+ accentColor: { type: String, default: '#4f46e5' },
101
+ isDark: { type: Boolean, default: false },
102
+ glassMode: { type: Boolean, default: false },
103
+ cornerRadius: { type: Number, default: 32, min: 0, max: 50 },
104
+ perforationStyle: { type: String, enum: ['solid', 'dashed', 'dotted'], default: 'dotted' },
105
+
94
106
  limits: {
95
107
  minPerOrder: { type: Number, default: 1 },
96
108
  maxPerOrder: { type: Number, default: 10 },