orbitx-core-models 11.60.0 → 11.61.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":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AA0IrD,eAAO,MAAM,IAAI;;;;OAA4C,CAAC"}
1
+ {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAwJrD,eAAO,MAAM,IAAI;;;;OAA4C,CAAC"}
@@ -73,6 +73,19 @@ const userSchema = new mongoose_1.Schema({
73
73
  index: true,
74
74
  },
75
75
  // ─────────────────────────────────────────────
76
+ // HUBSPOT INTEGRATION
77
+ // ─────────────────────────────────────────────
78
+ hubspotIntegration: {
79
+ isConnected: { type: Boolean, default: false },
80
+ isSyncActive: { type: Boolean, default: false },
81
+ accessToken: { type: String, default: null },
82
+ refreshToken: { type: String, default: null },
83
+ tokenExpiresAt: { type: Date, default: null },
84
+ hubId: { type: String, default: null },
85
+ accountName: { type: String, default: null },
86
+ lastSyncedAt: { type: Date, default: null }
87
+ },
88
+ // ─────────────────────────────────────────────
76
89
  // MULTI-TENANT OWNERSHIP
77
90
  // ─────────────────────────────────────────────
78
91
  ownerType: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.60.0",
3
+ "version": "11.61.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",