flykup_model_development 3.1.46 → 3.1.48

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.
@@ -181,7 +181,7 @@ const showSchema = new Schema(
181
181
  ],
182
182
  default: [],
183
183
  },
184
- auctionProducts: {
184
+ auctionProducts: {
185
185
  type: [
186
186
  {
187
187
  _id: false,
@@ -191,6 +191,12 @@ const showSchema = new Schema(
191
191
  reservedPrice: { type: Number, min: 0, default: null },
192
192
  auctionNumber: {
193
193
  type: Number,
194
+ },
195
+ // BGA Integration - Reference to BGA auction document
196
+ auctionObjectId: {
197
+ type: Schema.Types.ObjectId,
198
+ required: true,
199
+ index: true
194
200
  }
195
201
  },
196
202
  ],
@@ -6,21 +6,36 @@ import Seller from "./seller.model.js";
6
6
  // ------------------- User Schema -------------------
7
7
  const UserSchema = new mongoose.Schema(
8
8
  {
9
- devices: [
10
- {
11
- deviceId: { type: String, required: true },
12
- fcmToken: { type: String, required: true },
13
- platform: {
14
- type: String,
15
- enum: ["web", "android", "ios", "mobile-web"],
16
- required: true,
17
- },
18
- lastLogin: { type: Date, default: Date.now },
19
- lastLogout: { type: Date },
20
- isActive: { type: Boolean, default: true },
21
- _id: false,
9
+ // devices: [
10
+ // {
11
+ // deviceId: { type: String, required: true },
12
+ // fcmToken: { type: String, required: true },
13
+ // platform: {
14
+ // type: String,
15
+ // enum: ["web", "android", "ios", "mobile-web"],
16
+ // required: true,
17
+ // },
18
+ // lastLogin: { type: Date, default: Date.now },
19
+ // lastLogout: { type: Date },
20
+ // isActive: { type: Boolean, default: true },
21
+ // _id: false,
22
+ // },
23
+ // ],
24
+ devices: [
25
+ {
26
+ deviceId: { type: String, required: true },
27
+ snsEndpointArn: { type: String }, // Store SNS endpoint ARN instead of fcmToken
28
+ platform: {
29
+ type: String,
30
+ enum: ["web", "android", "ios", "mobile-web"],
31
+ required: true,
22
32
  },
23
- ],
33
+ lastLogin: { type: Date, default: Date.now },
34
+ lastLogout: { type: Date },
35
+ isActive: { type: Boolean, default: true },
36
+ _id: false,
37
+ },
38
+ ],
24
39
  sellerInfo: { type: mongoose.Schema.Types.ObjectId, ref: "sellers" },
25
40
  dropshipperInfo: { type: mongoose.Schema.Types.ObjectId, ref: "dropshippers" },
26
41
  categories: { type: [String], default: [], maxLength: 100 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.46",
3
+ "version": "3.1.48",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,