goldstars-services 1.0.67 → 1.0.69

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.
@@ -37,7 +37,7 @@ var bikeSchema = new _mongoose.default.Schema({
37
37
  },
38
38
  status: {
39
39
  type: String,
40
- enum: ['Disponible', 'Fuera de Servicio'],
40
+ enum: ['Disponible', 'En Reparación', 'Dañada', 'Fuera de Servicio'],
41
41
  default: 'Disponible'
42
42
  },
43
43
  position: {
@@ -39,10 +39,17 @@ var PlanSchema = new Schema({
39
39
  // Sedes donde el plan es válido
40
40
  required: true
41
41
  },
42
+ // Relación histórica con usuarios (se mantiene para compatibilidad pero ya no se muestra en UI)
42
43
  users: [{
43
44
  type: Schema.Types.ObjectId,
44
45
  ref: "User"
45
46
  }],
47
+ // Indica si el plan da acceso al área de bikes para el cliente
48
+ bikeAccess: {
49
+ type: Boolean,
50
+ required: true,
51
+ default: false
52
+ },
46
53
  status: {
47
54
  type: Boolean,
48
55
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstars-services",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "This is the services layer for GoldStars",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {