orbitx-core-models 11.152.0 → 11.153.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"company.model.d.ts","sourceRoot":"","sources":["../../src/models/company.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAA2B,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AA+N3D,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"company.model.d.ts","sourceRoot":"","sources":["../../src/models/company.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAA2B,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAoO3D,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
@@ -126,11 +126,16 @@ const companySchema = new mongoose_1.Schema({
126
126
  message: "Invalid alternate phone number format",
127
127
  },
128
128
  },
129
+ // No lowercase/case transform: shown verbatim across every dashboard and the widget, so
130
+ // whatever the creator actually typed (all-caps "ORBITXPRO", mixed-case "Handyman Of
131
+ // Karachi", etc.) is what persists and displays everywhere, permanently -- previously
132
+ // this forced lowercase at write time (irreversibly discarding the real casing), and each
133
+ // frontend independently re-capitalized it for display, inconsistently, which is why the
134
+ // same company's name never looked the same in two places.
129
135
  officialBusinessName: {
130
136
  type: String,
131
137
  required: true,
132
138
  trim: true,
133
- lowercase: true,
134
139
  },
135
140
  address: { type: String, trim: true },
136
141
  city: { type: String, trim: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.152.0",
3
+ "version": "11.153.0",
4
4
  "description": "Shared Mongoose models and interfaces for OrbitX services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",