@mac777/project-pinecone-models 1.1.0 → 1.1.2

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
@@ -99,6 +99,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
99
99
  platformTermsAccepted: boolean;
100
100
  visibility: "public" | "private" | "unlisted";
101
101
  scheduleModified: boolean;
102
+ salesPaused: boolean;
102
103
  history: mongoose.Types.DocumentArray<{
103
104
  timestamp: NativeDate;
104
105
  action?: string | null | undefined;
@@ -384,6 +385,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
384
385
  platformTermsAccepted: boolean;
385
386
  visibility: "public" | "private" | "unlisted";
386
387
  scheduleModified: boolean;
388
+ salesPaused: boolean;
387
389
  history: mongoose.Types.DocumentArray<{
388
390
  timestamp: NativeDate;
389
391
  action?: string | null | undefined;
@@ -669,6 +671,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
669
671
  platformTermsAccepted: boolean;
670
672
  visibility: "public" | "private" | "unlisted";
671
673
  scheduleModified: boolean;
674
+ salesPaused: boolean;
672
675
  history: mongoose.Types.DocumentArray<{
673
676
  timestamp: NativeDate;
674
677
  action?: string | null | undefined;
package/dist/Event.js CHANGED
@@ -214,6 +214,7 @@ const eventSchema = new mongoose_1.default.Schema({
214
214
  visibility: { type: String, enum: ['public', 'private', 'unlisted'], default: 'public' },
215
215
  publishedAt: Date,
216
216
  scheduleModified: { type: Boolean, default: false },
217
+ salesPaused: { type: Boolean, default: false },
217
218
  // METRICS
218
219
  metrics: metricsSchema,
219
220
  // BUSINESS
package/dist/Payment.d.ts CHANGED
@@ -6,7 +6,7 @@ declare const paymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any,
6
6
  currency: string;
7
7
  userId: mongoose.Types.ObjectId;
8
8
  paymentId: string;
9
- paymentMethod: "card" | "bkash";
9
+ paymentMethod: "card" | "bkash" | "free";
10
10
  orderId: mongoose.Types.ObjectId;
11
11
  refundedAt?: NativeDate | null | undefined;
12
12
  last4?: string | null | undefined;
@@ -24,7 +24,7 @@ declare const paymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any,
24
24
  currency: string;
25
25
  userId: mongoose.Types.ObjectId;
26
26
  paymentId: string;
27
- paymentMethod: "card" | "bkash";
27
+ paymentMethod: "card" | "bkash" | "free";
28
28
  orderId: mongoose.Types.ObjectId;
29
29
  refundedAt?: NativeDate | null | undefined;
30
30
  last4?: string | null | undefined;
@@ -42,7 +42,7 @@ declare const paymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any,
42
42
  currency: string;
43
43
  userId: mongoose.Types.ObjectId;
44
44
  paymentId: string;
45
- paymentMethod: "card" | "bkash";
45
+ paymentMethod: "card" | "bkash" | "free";
46
46
  orderId: mongoose.Types.ObjectId;
47
47
  refundedAt?: NativeDate | null | undefined;
48
48
  last4?: string | null | undefined;
package/dist/Payment.js CHANGED
@@ -21,7 +21,7 @@ const paymentSchema = new mongoose_1.default.Schema({
21
21
  default: 'pending'
22
22
  },
23
23
  // METADATA
24
- paymentMethod: { type: String, required: true, enum: ['bkash', 'card'] },
24
+ paymentMethod: { type: String, required: true, enum: ['bkash', 'card', 'free'] },
25
25
  last4: String, // Card last 4 digits (for receipt)
26
26
  brand: { type: String, enum: ['visa', 'mastercard', 'amex', 'discover'] }, // Card brand
27
27
  // FAILURE (if failed)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mac777/project-pinecone-models",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/Event.ts CHANGED
@@ -240,6 +240,7 @@ const eventSchema = new mongoose.Schema({
240
240
  visibility: { type: String, enum: ['public', 'private', 'unlisted'], default: 'public' },
241
241
  publishedAt: Date,
242
242
  scheduleModified: { type: Boolean, default: false },
243
+ salesPaused: { type: Boolean, default: false },
243
244
 
244
245
  // METRICS
245
246
  metrics: metricsSchema,
package/src/Payment.ts CHANGED
@@ -21,7 +21,7 @@ const paymentSchema = new mongoose.Schema({
21
21
  },
22
22
 
23
23
  // METADATA
24
- paymentMethod: { type: String, required: true, enum: ['bkash', 'card'] },
24
+ paymentMethod: { type: String, required: true, enum: ['bkash', 'card', 'free'] },
25
25
  last4: String, // Card last 4 digits (for receipt)
26
26
  brand: { type: String, enum: ['visa', 'mastercard', 'amex', 'discover'] }, // Card brand
27
27